Merge pull request #7082 from rohitwaghchaure/pos_qty_issues

[Fix] Wrong actual qty showing in POS
diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js
index a44e91a..9aafdae 100644
--- a/erpnext/accounts/page/pos/pos.js
+++ b/erpnext/accounts/page/pos/pos.js
@@ -246,6 +246,8 @@
 		var me = this;
 
 		this.items = this.item_data;
+		this.actual_qty_dict = {};
+
 		if(load_doc) {
 			this.frm.doc =  JSON.parse(localStorage.getItem('doc'));
 		}
@@ -680,7 +682,7 @@
 				item_code: d.item_code,
 				item_name: (d.item_name===d.item_code || !d.item_name) ? "" : ("<br>" + d.item_name),
 				qty: d.qty,
-				actual_qty: me.actual_qty,
+				actual_qty: me.actual_qty_dict[d.item_code] || 0,
 				projected_qty: d.projected_qty,
 				rate: format_number(d.rate, me.frm.doc.currency),
 				amount: format_currency(d.amount, me.frm.doc.currency)
@@ -1083,9 +1085,11 @@
 
 	get_actual_qty: function(item) {
 		this.actual_qty = 0.0;
+
 		var warehouse = this.pos_profile_data['warehouse'] || item.default_warehouse;
 		if(warehouse && this.bin_data[item.item_code]) {
 			this.actual_qty = this.bin_data[item.item_code][warehouse] || 0;
+			this.actual_qty_dict[item.item_code] = this.actual_qty
 		}
 
 		return this.actual_qty