[fixes] fetch value from grand total field while creating payment request from si
This commit is contained in:
parent
01a8473996
commit
9f94266892
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user