fix: bind this to function
This commit is contained in:
@@ -367,7 +367,11 @@ erpnext.buying.PurchaseOrderController = class PurchaseOrderController extends (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_drop_ship && doc.status != "Delivered") {
|
if (is_drop_ship && doc.status != "Delivered") {
|
||||||
this.frm.add_custom_button(__("Delivered"), this.delivered_by_supplier, __("Status"));
|
this.frm.add_custom_button(
|
||||||
|
__("Delivered"),
|
||||||
|
this.delivered_by_supplier.bind(this),
|
||||||
|
__("Status")
|
||||||
|
);
|
||||||
|
|
||||||
this.frm.page.set_inner_btn_group_as_primary(__("Status"));
|
this.frm.page.set_inner_btn_group_as_primary(__("Status"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user