fix: bind this to function

(cherry picked from commit 41649cf52d)

# Conflicts:
#	erpnext/buying/doctype/purchase_order/purchase_order.js
This commit is contained in:
Mihir Kandoi
2025-01-30 17:29:31 +05:30
committed by Mergify
parent 0086656748
commit 83bce785ff

View File

@@ -205,9 +205,18 @@ erpnext.buying.PurchaseOrderController = class PurchaseOrderController extends e
}
}
<<<<<<< HEAD
if(is_drop_ship && doc.status!="Delivered") {
this.frm.add_custom_button(__('Delivered'),
this.delivered_by_supplier, __("Status"));
=======
if (is_drop_ship && doc.status != "Delivered") {
this.frm.add_custom_button(
__("Delivered"),
this.delivered_by_supplier.bind(this),
__("Status")
);
>>>>>>> 41649cf52d (fix: bind this to function)
this.frm.page.set_inner_btn_group_as_primary(__("Status"));
}