diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 9d8d37d3ce12b9b2166bbc1eb1c1c80455246d6a..f7d4a52f1b65e735fb4e6604a0069b89a2cfc8de 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");