index.js
// helper -- todo will move to module helper file
- todo will move to module helper file
- todo will move to module helper file
function checkStock(item, orderqty) {
    let ukStock = inventoryStock.UK.find(x => x.item == item);
    let germanyStock = inventoryStock.Germany.find(x => x.item == item);
    return orderqty > ukStock.qty + germanyStock.qty ? false : true;
}
function checkStock ( item , orderqty ) { let ukStock = inventoryStock . UK . find ( x => x . item == item ) ; let germanyStock = inventoryStock . Germany . find ( x => x . item == item ) ; return orderqty > ukStock . qty + germanyStock . qty ? false : true ; }
helper -- todo will move to module helper file
helper -- todo will move to module helper file