feat(payment): add advance payment status to advance payment doctypes to better track advance payments
This commit is contained in:
@@ -1689,6 +1689,12 @@ class AccountsController(TransactionBase):
|
||||
)
|
||||
|
||||
frappe.db.set_value(self.doctype, self.name, "advance_paid", advance_paid)
|
||||
frappe.db.set_value(
|
||||
self.doctype,
|
||||
self.name,
|
||||
"advance_payment_status",
|
||||
"Partially Paid" if advance_paid < order_total else "Paid",
|
||||
)
|
||||
|
||||
@property
|
||||
def company_abbr(self):
|
||||
|
||||
Reference in New Issue
Block a user