Skip to content

Commit

Permalink
refs #117 - fix validate batches
Browse files Browse the repository at this point in the history
  • Loading branch information
pccosta-pdm committed Sep 5, 2022
1 parent f9fc85e commit 0354c44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fgt-api/managers/SimpleShipmentManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ class SimpleShipmentManager extends Manager {
if (err)
return _callback(err);

if (!accum.hasOwnProperty(sl.gtin))
accum[sl.gtin] = [];

accum[sl.gtin].push(new Batch({
batchNumber: sl.batch,
quantity: factor * sl.quantity
Expand Down

0 comments on commit 0354c44

Please sign in to comment.