diff --git a/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js b/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js index afb8f179fe34..6a15a3d64d78 100644 --- a/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js +++ b/erpnext/accounts/doctype/pos_closing_entry/pos_closing_entry.js @@ -56,7 +56,7 @@ frappe.ui.form.on("POS Closing Entry", { } }, - pos_opening_entry(frm) { + reload_invoices: function (frm) { if ( frm.doc.pos_opening_entry && frm.doc.period_start_date && @@ -73,6 +73,18 @@ frappe.ui.form.on("POS Closing Entry", { } }, + pos_opening_entry(frm) { + frm.trigger("reload_invoices"); + }, + + period_start_date(frm) { + frm.trigger("reload_invoices"); + }, + + period_end_date(frm) { + frm.trigger("reload_invoices"); + }, + set_opening_amounts(frm) { return frappe.db .get_doc("POS Opening Entry", frm.doc.pos_opening_entry)