Skip to content

Commit

Permalink
fix: Identical items are added line by line instead of grouped togeth…
Browse files Browse the repository at this point in the history
…er in POS (#37986)

fix: Identical items are added line by line instead of grouped together in POS (#37986)
  • Loading branch information
bvisible authored Nov 13, 2023
1 parent f6b56f2 commit 011cf3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/selling/page/point_of_sale/pos_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,12 @@ erpnext.PointOfSale.Controller = class {
// if item is clicked twice from item selector
// then "item_code, batch_no, uom, rate" will help in getting the exact item
// to increase the qty by one
const has_batch_no = batch_no;
const has_batch_no = (batch_no !== 'null' && batch_no !== null);
item_row = this.frm.doc.items.find(
i => i.item_code === item_code
&& (!has_batch_no || (has_batch_no && i.batch_no === batch_no))
&& (i.uom === uom)
&& (i.rate === flt(rate))
);
}

Expand Down

0 comments on commit 011cf3d

Please sign in to comment.