mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
make due date, invoice_portion mandatory
This commit is contained in:
@@ -666,7 +666,7 @@ class AccountsController(TransactionBase):
|
||||
def validate_invoice_portion(self):
|
||||
total_portion = 0
|
||||
for term in self.payment_schedule:
|
||||
total_portion += term.invoice_portion
|
||||
total_portion += flt(term.get('invoice_portion', 0))
|
||||
|
||||
if flt(total_portion, 2) != 100.00:
|
||||
frappe.msgprint(_('Combined invoice portion must equal 100%'), raise_exception=1, indicator='red')
|
||||
|
||||
Reference in New Issue
Block a user