style: change position of hold and resume button
diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.js b/erpnext/buying/doctype/purchase_order/purchase_order.js
index 6c862c4..c66c66d 100644
--- a/erpnext/buying/doctype/purchase_order/purchase_order.js
+++ b/erpnext/buying/doctype/purchase_order/purchase_order.js
@@ -100,15 +100,15 @@
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() {
- me.hold_purchase_order();
- }, __("Status"));
+ function() {
+ me.hold_purchase_order();
+ }, __("Status"));
} else{
cur_frm.add_custom_button(__('Resume'), this.unhold_purchase_order, __("Status"));
}
+ cur_frm.add_custom_button(__('Close'), this.close_purchase_order, __("Status"));
}
}