mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 07:32:50 +00:00
style: change position of hold and resume button
This commit is contained in:
@@ -100,7 +100,6 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
|
||||
if(!in_list(["Closed", "Delivered"], doc.status)) {
|
||||
if (this.frm.has_perm("submit")) {
|
||||
if(flt(doc.per_billed, 2) < 100 || doc.per_received < 100) {
|
||||
cur_frm.add_custom_button(__('Close'), this.close_purchase_order, __("Status"));
|
||||
if (doc.status != "On Hold") {
|
||||
cur_frm.add_custom_button(__('Hold'),
|
||||
function() {
|
||||
@@ -109,6 +108,7 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
|
||||
} else{
|
||||
cur_frm.add_custom_button(__('Resume'), this.unhold_purchase_order, __("Status"));
|
||||
}
|
||||
cur_frm.add_custom_button(__('Close'), this.close_purchase_order, __("Status"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user