From d58ccdeb353add51953ee5d032140f4a7ea3d1ac Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Thu, 11 Jul 2024 17:21:41 +0530 Subject: [PATCH] fix: missing discount on POS Credit Notes --- erpnext/accounts/doctype/sales_invoice/sales_invoice.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 9d8d37d3ce..f7d4a52f1b 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -479,9 +479,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"); -- GitLab