quirons-broker
Advanced tools
Comparing version 0.0.1-alpha.138 to 0.0.1-alpha.139
@@ -29,3 +29,3 @@ import * as t from 'io-ts'; | ||
export declare const Converter: { | ||
fromInventoryUM(data: inventoryUM.StockLevelInfo): Array<StockLevel>; | ||
fromInventory(data: inventoryUM.StockLevelInfo, useLotNumber: boolean): Array<StockLevel>; | ||
}; |
@@ -61,3 +61,3 @@ "use strict"; | ||
exports.Converter = { | ||
fromInventoryUM(data) { | ||
fromInventory(data, useLotNumber) { | ||
const { Header, Content } = data; | ||
@@ -67,3 +67,3 @@ const stockLevel = []; | ||
const { ListOfWarehouseStock, ListOfLotStock } = item; | ||
if (ListOfLotStock && ListOfLotStock.length > 0) { | ||
if (useLotNumber && ListOfLotStock && ListOfLotStock.length > 0) { | ||
ListOfLotStock.forEach(warehouse => { | ||
@@ -70,0 +70,0 @@ stockLevel.push({ |
{ | ||
"name": "quirons-broker", | ||
"version": "0.0.1-alpha.138", | ||
"version": "0.0.1-alpha.139", | ||
"description": "A small library to expose the broker types", | ||
@@ -5,0 +5,0 @@ "typings": "index.d.ts", |
1185272