[hotfix] total amount in journal entry

This commit is contained in:
Anand Doshi 2015-11-27 17:23:54 +05:30
parent f4c3819134
commit 5b03a75970
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ class JournalEntry(AccountsController):
"customer_name" if d.party_type=="Customer" else "supplier_name") "customer_name" if d.party_type=="Customer" else "supplier_name")
elif frappe.db.get_value("Account", d.account, "account_type") in ["Bank", "Cash"]: elif frappe.db.get_value("Account", d.account, "account_type") in ["Bank", "Cash"]:
total_amount += (d.debit or d.credit) total_amount += (d.debit_in_account_currency or d.credit_in_account_currency)
self.set_total_amount(total_amount) self.set_total_amount(total_amount)

View File

@ -235,5 +235,5 @@ execute:frappe.delete_doc_if_exists("DocType", "Stock UOM Replace Utility")
erpnext.patches.v6_8.make_webform_standard #2015-11-23 erpnext.patches.v6_8.make_webform_standard #2015-11-23
erpnext.patches.v6_8.move_drop_ship_to_po_items erpnext.patches.v6_8.move_drop_ship_to_po_items
erpnext.patches.v6_10.fix_ordered_received_billed erpnext.patches.v6_10.fix_ordered_received_billed
erpnext.patches.v6_10.fix_jv_total_amount erpnext.patches.v6_10.fix_jv_total_amount #2015-11-27
erpnext.patches.v6_10.email_digest_default_quote erpnext.patches.v6_10.email_digest_default_quote