mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-22 16:18:30 +00:00
[fixes] fetch value from grand total field while creating payment request from si
This commit is contained in:
@@ -211,7 +211,7 @@ def get_amount(ref_doc, dt):
|
||||
grand_total = flt(ref_doc.grand_total) - flt(ref_doc.advance_paid)
|
||||
|
||||
if dt == "Sales Invoice":
|
||||
grand_total = flt(ref_doc.outstanding_amount)
|
||||
grand_total = flt(ref_doc.grand_total)
|
||||
|
||||
if grand_total > 0 :
|
||||
return grand_total
|
||||
|
||||
Reference in New Issue
Block a user