[ux] added folds, show actual / projected qty in pos
diff --git a/erpnext/public/js/transaction.js b/erpnext/public/js/transaction.js
index 915bbd9..dd11fab 100644
--- a/erpnext/public/js/transaction.js
+++ b/erpnext/public/js/transaction.js
@@ -57,8 +57,9 @@
this.set_dynamic_labels();
// Show POS button only if it is enabled from features setup
- if(cint(sys_defaults.fs_pos_view)===1 && this.frm.doctype!="Material Request")
+ if(cint(sys_defaults.fs_pos_view)===1 && this.frm.doctype!="Material Request") {
this.make_pos_btn();
+ }
},
make_pos_btn: function() {
@@ -77,6 +78,8 @@
erpnext.open_as_pos = false;
}
+ this.$pos_btn && this.$pos_btn.remove();
+
this.$pos_btn = this.frm.appframe.add_primary_action(btn_label, function() {
me.toggle_pos();
}, icon, "btn-default");