fix: restore missing change from develop branch

This commit is contained in:
Saqib Ansari
2022-02-10 10:28:51 +05:30
parent 41b7c5f92d
commit 503cc65db4

View File

@@ -186,11 +186,10 @@ class POSInvoiceMergeLog(Document):
if not found:
payments.append(payment)
if doc.rounding_adjustment or doc.base_rounding_adjustment:
rounding_adjustment += doc.rounding_adjustment
rounded_total += doc.rounded_total
base_rounding_adjustment += doc.base_rounding_adjustment
base_rounded_total += doc.base_rounded_total
rounding_adjustment += doc.rounding_adjustment
rounded_total += doc.rounded_total
base_rounding_adjustment += doc.base_rounding_adjustment
base_rounded_total += doc.base_rounded_total
if loyalty_points_sum: