mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-11 14:29:12 +00:00
fix: add payment hook to point of sale JS (#33988)
fix: add payment hook to point of sale JS (#33988)
(cherry picked from commit a0eb5e5535)
Co-authored-by: Richard Case <110036763+casesolved-co-uk@users.noreply.github.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user