fix: set pos data if not return doc

This commit is contained in:
ljain112
2024-07-18 17:40:19 +05:30
parent 57f928da55
commit 65d672da65

View File

@@ -505,11 +505,12 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends (
frappe.msgprint(__("Please specify Company to proceed"));
} else {
var me = this;
const for_validate = me.frm.doc.is_return ? true : false;
return this.frm.call({
doc: me.frm.doc,
method: "set_missing_values",
args: {
for_validate: true,
for_validate: for_validate,
},
callback: function (r) {
if (!r.exc) {