Skip to content

Commit

Permalink
fix the loading of inventories during a stock entry from purchase
Browse files Browse the repository at this point in the history
  • Loading branch information
mbayopanda committed Dec 27, 2022
1 parent 42407eb commit b287a6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/modules/stock/entry/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ function StockEntryController(
*/
function loadInventories() {
setupStock();
return Inventory.read(null, { consumable_or_asset : 1, skipTags : true })
return Inventory.read(null, { skipTags : true })
.then((inventories) => {
vm.inventories = inventories;
inventoryStore = new Store({ identifier : 'uuid', data : inventories });
Expand Down Expand Up @@ -507,7 +507,6 @@ function StockEntryController(

vm.stockForm.store.data.forEach((item, index) => {
const inventory = inventoryStore.get(items[index].inventory_uuid);

item.code = inventory.code;
item.inventory_uuid = inventory.uuid;
item.label = inventory.label;
Expand Down

0 comments on commit b287a6e

Please sign in to comment.