fix(shop): map correct orderSnapshot and labels in InvoicePDF and routes
All checks were successful
Staging Build / build (push) Successful in 2m51s
All checks were successful
Staging Build / build (push) Successful in 2m51s
This commit is contained in:
@@ -82,11 +82,9 @@ export async function GET(
|
||||
|
||||
const buffer = await renderToBuffer(
|
||||
React.createElement(InvoicePDF, {
|
||||
orderNumber: order.order_number || `AE-${id.slice(0, 8)}`,
|
||||
dateStr: formattedDate,
|
||||
order: order,
|
||||
orderSnapshot: order.order_data,
|
||||
customer: order.customer_data,
|
||||
orderData: order.order_data,
|
||||
totalPrice: Number(order.total_price),
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user