mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
Merge pull request #38385 from frappe/version-13-hotfix
chore: release v13
This commit is contained in:
@@ -358,6 +358,7 @@ def update_outstanding_amt(
|
|||||||
if against_voucher_type in ["Sales Invoice", "Purchase Invoice", "Fees"]:
|
if against_voucher_type in ["Sales Invoice", "Purchase Invoice", "Fees"]:
|
||||||
ref_doc = frappe.get_doc(against_voucher_type, against_voucher)
|
ref_doc = frappe.get_doc(against_voucher_type, against_voucher)
|
||||||
|
|
||||||
|
bal = flt(bal, frappe.get_precision(against_voucher_type, "outstanding_amount"))
|
||||||
# Didn't use db_set for optimization purpose
|
# Didn't use db_set for optimization purpose
|
||||||
ref_doc.outstanding_amount = bal
|
ref_doc.outstanding_amount = bal
|
||||||
frappe.db.set_value(against_voucher_type, against_voucher, "outstanding_amount", bal)
|
frappe.db.set_value(against_voucher_type, against_voucher, "outstanding_amount", bal)
|
||||||
|
|||||||
Reference in New Issue
Block a user