Merge pull request #17931 from rohitwaghchaure/fixed_pos_not_overriding_the_taxes

fix: taxes are not overriding after changing the tax template for the POS invoice
This commit is contained in:
rohitwaghchaure
2019-06-13 16:25:56 +05:30
committed by GitHub

View File

@@ -371,6 +371,10 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
me.frm.pos_print_format = r.message.print_format;
}
me.frm.script_manager.trigger("update_stock");
if(me.frm.doc.taxes_and_charges) {
me.frm.script_manager.trigger("taxes_and_charges");
}
frappe.model.set_default_values(me.frm.doc);
me.set_dynamic_labels();
me.calculate_taxes_and_totals();