openlmis.js:9 TypeError: Cannot read property 'push' of undefined
at Object.calculateAverageConsumption [as averageConsumption] (https://test.openlmis.org/openlmis.js:56:8077)
at getColumnValue (https://test.openlmis.org/openlmis.js:56:9683)
at Object.calculateMaximumStockQuantity [as maximumStockQuantity] (https://test.openlmis.org/openlmis.js:56:9054)
at getColumnValue (https://test.openlmis.org/openlmis.js:56:9683)
at calculateOrderQuantity (https://test.openlmis.org/openlmis.js:56:9453)
at getOrderQuantity (https://test.openlmis.org/openlmis.js:56:8807)
at Object.calculatePacksToShip [as packsToShip] (https://test.openlmis.org/openlmis.js:56:6774)
at Object.calculateTotalCost [as totalCost] (https://test.openlmis.org/openlmis.js:56:7250)
at https://test.openlmis.org/openlmis.js:57:10446
at Array.forEach (native)
Acceptance criteria
No more errors in browser console when emptying requested quantity on one of the non full supply products.
Calculations related to the requested quantity work as they should.
While working on the https://openlmis.atlassian.net/browse/OLMIS-2466#icft=OLMIS-2466 I've noticed that removing requested quantity from one of the non full supply items results in a lot of errors in the browser console.
openlmis.js:9 TypeError: Cannot read property 'push' of undefined at Object.calculateAverageConsumption [as averageConsumption] (https://test.openlmis.org/openlmis.js:56:8077) at getColumnValue (https://test.openlmis.org/openlmis.js:56:9683) at Object.calculateMaximumStockQuantity [as maximumStockQuantity] (https://test.openlmis.org/openlmis.js:56:9054) at getColumnValue (https://test.openlmis.org/openlmis.js:56:9683) at calculateOrderQuantity (https://test.openlmis.org/openlmis.js:56:9453) at getOrderQuantity (https://test.openlmis.org/openlmis.js:56:8807) at Object.calculatePacksToShip [as packsToShip] (https://test.openlmis.org/openlmis.js:56:6774) at Object.calculateTotalCost [as totalCost] (https://test.openlmis.org/openlmis.js:56:7250) at https://test.openlmis.org/openlmis.js:57:10446 at Array.forEach (native)
Acceptance criteria
No more errors in browser console when emptying requested quantity on one of the non full supply products.
Calculations related to the requested quantity work as they should.