fix: add payment hook to point of sale JS (#33988)

This commit is contained in:
Richard Case 2023-02-11 15:10:15 +00:00 committed by GitHub
parent e4953df4a3
commit a0eb5e5535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,6 +322,11 @@ erpnext.PointOfSale.Payment = class {
this.focus_on_default_mop();
}
after_render() {
const frm = this.events.get_frm();
frm.script_manager.trigger("after_payment_render", frm.doc.doctype, frm.doc.docname);
}
edit_cart() {
this.events.toggle_other_sections(false);
this.toggle_component(false);
@ -332,6 +337,7 @@ erpnext.PointOfSale.Payment = class {
this.toggle_component(true);
this.render_payment_section();
this.after_render();
}
toggle_remarks_control() {