Skip to content

Commit

Permalink
Merge pull request #31588 from SolufyPrivateLimited/Solufyin-oict
Browse files Browse the repository at this point in the history
fix: Opening Invoice Creation Tool msgprint
  • Loading branch information
marination authored Jul 19, 2022
2 parents feffc3a + cb80bcd commit 2840951
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,15 @@ frappe.ui.form.on('Opening Invoice Creation Tool', {
doc: frm.doc,
btn: $(btn_primary),
method: "make_invoices",
freeze_message: __("Creating {0} Invoice", [frm.doc.invoice_type])
freeze: 1,
freeze_message: __("Creating {0} Invoice", [frm.doc.invoice_type]),
callback: function(r) {
if (r.message.length == 1) {
frappe.msgprint(__("{0} Invoice created successfully.", [frm.doc.invoice_type]));
} else if (r.message.length < 50) {
frappe.msgprint(__("{0} Invoices created successfully.", [frm.doc.invoice_type]));
}
}
});
});

Expand Down

0 comments on commit 2840951

Please sign in to comment.