feat(TICKET-LOGO): completed feature

This commit is contained in:
chattie
2026-08-25 06:35:39 +02:00
parent 419f47ec1c
commit 7639c1ff42
16 changed files with 324 additions and 12 deletions

View File

@@ -37,6 +37,7 @@ interface ReceiptOrderRow {
terminal_name: string;
cashier_email: string;
return_policy: string | null;
logo_url: string | null;
}
interface ReceiptItemRow {
@@ -61,7 +62,7 @@ export async function buildPosReceipt(queryable: Queryable, orderId: string): Pr
o.total_cents, o.created_at, o.cash_session_id, o.terminal_id,
customer.email AS customer_email,
store.name AS store_name, store.address, store.tax_id, store.contact_email,
store.contact_phone, store.receipt_header, store.receipt_footer,
store.contact_phone, store.receipt_header, store.receipt_footer, store.logo_url,
terminal.name AS terminal_name, cashier.email AS cashier_email,
receipt_settings.return_policy
FROM orders_orders o
@@ -117,6 +118,7 @@ export async function buildPosReceipt(queryable: Queryable, orderId: string): Pr
email: order.contact_email,
phone: order.contact_phone,
},
logoUrl: order.logo_url,
terminal: { id: order.terminal_id, name: order.terminal_name },
cashier: order.cashier_email,
sessionId: order.cash_session_id,
@@ -231,6 +233,7 @@ export async function buildPosReturnReceipt(
orderId: original.orderId,
issuedAt: original.issuedAt,
company: original.company,
logoUrl: original.logoUrl,
terminal: original.terminal,
cashier: original.cashier,
sessionId: original.sessionId,