fix: Multiple fixes in GST

This commit is contained in:
Deepesh Garg
2020-07-17 11:31:15 +05:30
parent 48ba29b647
commit 188273564c
5 changed files with 34 additions and 33 deletions

View File

@@ -704,9 +704,10 @@ def update_totals(gst_tax, doc):
doc.rounding_adjustment += flt(doc.rounded_total - doc.grand_total,
doc.precision("rounding_adjustment"))
doc.outstanding_amount = doc.base_rounded_total
doc.outstanding_amount = doc.rounded_total or doc.grand_total
doc.in_words = money_in_words(doc.grand_total, doc.currency)
doc.set_payment_schedule()
def make_regional_gl_entries(gl_entries, doc):
country = frappe.get_cached_value('Company', doc.company, 'country')