[fixes] fetch value from grand total field while creating payment request from si

This commit is contained in:
Saurabh 2016-03-14 11:23:03 +05:30
parent 01a8473996
commit 9f94266892

View File

@ -211,7 +211,7 @@ def get_amount(ref_doc, dt):
grand_total = flt(ref_doc.grand_total) - flt(ref_doc.advance_paid) grand_total = flt(ref_doc.grand_total) - flt(ref_doc.advance_paid)
if dt == "Sales Invoice": if dt == "Sales Invoice":
grand_total = flt(ref_doc.outstanding_amount) grand_total = flt(ref_doc.grand_total)
if grand_total > 0 : if grand_total > 0 :
return grand_total return grand_total