Merge pull request #45621 from mihir-kandoi/delivered-button

fix: delivered button of purchase order
This commit is contained in:
rohitwaghchaure
2025-02-03 11:51:37 +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"));
}