style: change position of hold and resume button
This commit is contained in:
parent
e613c4f380
commit
db96db2897
@ -100,15 +100,15 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
|
|||||||
if(!in_list(["Closed", "Delivered"], doc.status)) {
|
if(!in_list(["Closed", "Delivered"], doc.status)) {
|
||||||
if (this.frm.has_perm("submit")) {
|
if (this.frm.has_perm("submit")) {
|
||||||
if(flt(doc.per_billed, 2) < 100 || doc.per_received < 100) {
|
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") {
|
if (doc.status != "On Hold") {
|
||||||
cur_frm.add_custom_button(__('Hold'),
|
cur_frm.add_custom_button(__('Hold'),
|
||||||
function() {
|
function() {
|
||||||
me.hold_purchase_order();
|
me.hold_purchase_order();
|
||||||
}, __("Status"));
|
}, __("Status"));
|
||||||
} else{
|
} else{
|
||||||
cur_frm.add_custom_button(__('Resume'), this.unhold_purchase_order, __("Status"));
|
cur_frm.add_custom_button(__('Resume'), this.unhold_purchase_order, __("Status"));
|
||||||
}
|
}
|
||||||
|
cur_frm.add_custom_button(__('Close'), this.close_purchase_order, __("Status"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user