fix: print split bill
This commit is contained in:
@@ -133,6 +133,7 @@ Future<void> onPrintRecipt(
|
||||
required String paymentMethod,
|
||||
required int nominalBayar,
|
||||
required int kembalian,
|
||||
required List<ProductQuantity> productQuantity,
|
||||
}) async {
|
||||
final receiptPrinter =
|
||||
await ProductLocalDatasource.instance.getPrinterByCode('receipt');
|
||||
@@ -143,16 +144,16 @@ Future<void> onPrintRecipt(
|
||||
if (receiptPrinter != null) {
|
||||
try {
|
||||
final printValue = await PrintDataoutputs.instance.printOrderV4(
|
||||
order,
|
||||
authData.user?.name ?? "",
|
||||
paymentMethod,
|
||||
nominalBayar,
|
||||
kembalian,
|
||||
settings.value,
|
||||
receiptPrinter.paper.toIntegerFromText,
|
||||
order.orderType ?? "",
|
||||
outlet,
|
||||
);
|
||||
order,
|
||||
authData.user?.name ?? "",
|
||||
paymentMethod,
|
||||
nominalBayar,
|
||||
kembalian,
|
||||
settings.value,
|
||||
receiptPrinter.paper.toIntegerFromText,
|
||||
order.orderType ?? "",
|
||||
outlet,
|
||||
productQuantity);
|
||||
await PrinterService()
|
||||
.printWithPrinter(receiptPrinter, printValue, context);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user