From 18293e944822544a21d44263769da0c9117edb2b Mon Sep 17 00:00:00 2001 From: Rahul Dev Garg <34365102+rahuldevgarg@users.noreply.github.com> Date: Mon, 11 Mar 2024 11:41:24 +0530 Subject: [PATCH] Thermal Printer Advance Fix --- .../house_connection_and_bill/consumer_bill_payment.dart | 4 ++-- .../mgramseva/lib/providers/collect_payment_provider.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/mgramseva/lib/components/house_connection_and_bill/consumer_bill_payment.dart b/frontend/mgramseva/lib/components/house_connection_and_bill/consumer_bill_payment.dart index 6800b26dd..11e3be5d9 100644 --- a/frontend/mgramseva/lib/components/house_connection_and_bill/consumer_bill_payment.dart +++ b/frontend/mgramseva/lib/components/house_connection_and_bill/consumer_bill_payment.dart @@ -230,9 +230,9 @@ class ConsumerBillPaymentsState extends State { .toString()) + ' only')), getPrinterLabel( - i18.consumerReciepts.CONSUMER_PENDING_AMOUNT, + (item.totalDue ?? 0) - (item.totalAmountPaid ?? 0)>0?i18.consumerReciepts.CONSUMER_PENDING_AMOUNT:i18.common.CORE_ADVANCE, ('₹' + - ((item.totalDue ?? 0) - (item.totalAmountPaid ?? 0)) + ((item.totalDue ?? 0) - (item.totalAmountPaid ?? 0)).abs() .toString())), SizedBox( height: 8, diff --git a/frontend/mgramseva/lib/providers/collect_payment_provider.dart b/frontend/mgramseva/lib/providers/collect_payment_provider.dart index 2e8f00870..51d78de5d 100644 --- a/frontend/mgramseva/lib/providers/collect_payment_provider.dart +++ b/frontend/mgramseva/lib/providers/collect_payment_provider.dart @@ -398,9 +398,9 @@ class CollectPaymentProvider with ChangeNotifier { .toString()) + ' only')), getPrinterLabel( - i18.consumerReciepts.CONSUMER_PENDING_AMOUNT, + (item.totalDue ?? 0) - (item.totalAmountPaid ?? 0)>0?i18.consumerReciepts.CONSUMER_PENDING_AMOUNT:i18.common.CORE_ADVANCE, ('₹' + - ((item.totalDue ?? 0) - (item.totalAmountPaid ?? 0)) + ((item.totalDue ?? 0) - (item.totalAmountPaid ?? 0)).abs() .toString())), SizedBox( height: 8,