Merge pull request #42288 from frappe/mergify/bp/version-14-hotfix/pr-42287

fix: missing discount on POS Credit Notes (backport #42287)
This commit is contained in:
ruthra kumar
2024-07-11 17:33:26 +05:30
committed by GitHub

View File

@@ -431,9 +431,12 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends e
return this.frm.call({
doc: me.frm.doc,
method: "set_missing_values",
callback: function(r) {
if(!r.exc) {
if(r.message && r.message.print_format) {
args: {
for_validate: true,
},
callback: function (r) {
if (!r.exc) {
if (r.message && r.message.print_format) {
me.frm.pos_print_format = r.message.print_format;
}
me.frm.trigger("update_stock");