Merge pull request #4328 from nabinhait/hotfix1

[hotfix]
This commit is contained in:
Nabin Hait 2015-11-16 18:11:18 +05:30
commit fee95f1135

View File

@ -503,7 +503,7 @@ erpnext.taxes_and_totals = erpnext.stock.StockController.extend({
if(this.frm.doc.party_account_currency == this.frm.doc.currency) {
var total_amount_to_pay = flt((this.frm.doc.grand_total - this.frm.doc.total_advance
- this.frm.doc.write_off_amount), precision("grand_total"));
else {
} else {
var total_amount_to_pay = flt((this.frm.doc.base_grand_total - this.frm.doc.total_advance
- this.frm.doc.base_write_off_amount), precision("base_grand_total"));
}