mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-31 02:40:43 +02:00
fix: condition (#18708)
This commit is contained in:
committed by
Nabin Hait
parent
582c86a7b6
commit
b6b2c48340
@@ -205,9 +205,9 @@ class SalesInvoice(SellingController):
|
||||
if self.is_pos and self.is_return:
|
||||
total_amount_in_payments = 0
|
||||
for payment in self.payments:
|
||||
total_amount_in_payments = payment.amount
|
||||
total_amount_in_payments += payment.amount
|
||||
|
||||
if -total_amount_in_payments > -self.rounded_total:
|
||||
if total_amount_in_payments < self.rounded_total:
|
||||
frappe.throw(_("Total payments amount can't be greater than {}".format(-self.rounded_total)))
|
||||
|
||||
def validate_pos_paid_amount(self):
|
||||
|
||||
Reference in New Issue
Block a user