Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Thermal Printer Advance Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldevgarg committed Mar 11, 2024
1 parent 9fdf83c commit 18293e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ class ConsumerBillPaymentsState extends State<ConsumerBillPayments> {
.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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 18293e9

Please sign in to comment.