Merge pull request #45667 from frappe/mergify/bp/version-15-hotfix/pr-45621

fix: delivered button of purchase order (backport #45621)
This commit is contained in:
rohitwaghchaure
2025-02-03 11:58:35 +05:30
committed by GitHub

View File

@@ -367,7 +367,11 @@ erpnext.buying.PurchaseOrderController = class PurchaseOrderController extends (
}
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"));
}