diff --git a/pos/src/lib/invoice-api.ts b/pos/src/lib/invoice-api.ts index b57b826..f3a3e28 100644 --- a/pos/src/lib/invoice-api.ts +++ b/pos/src/lib/invoice-api.ts @@ -151,10 +151,11 @@ export async function networkPrint(orderId: string, printer: string, printFormat }); } -export async function selectNetworkPrinter(orderId: string, posProfile: string) { +export async function selectNetworkPrinter(orderId: string, posProfile: string, printFormat?: string | null) { await call.post('ury.ury.api.ury_print.select_network_printer', { invoice_id: orderId, pos_profile: posProfile, + print_format: printFormat, }); } diff --git a/pos/src/lib/print.ts b/pos/src/lib/print.ts index 92c05f9..7976a41 100644 --- a/pos/src/lib/print.ts +++ b/pos/src/lib/print.ts @@ -28,7 +28,7 @@ export async function printOrder({ orderId, posProfile }: PrintOrderParams): Pro if (cashier && !multiple_cashier) { await networkPrint(orderId, printer as string, print_format as string); } else { - await selectNetworkPrinter(orderId, name); + await selectNetworkPrinter(orderId, name, print_format); } await updatePrintStatus(orderId); return 'network';