diff --git a/src/services/stocks-mixin.js b/src/services/stocks-mixin.js index c8badc5..009c85d 100644 --- a/src/services/stocks-mixin.js +++ b/src/services/stocks-mixin.js @@ -140,7 +140,7 @@ export default { const areas = [] Object.entries(inventory.values[productId] || {}).forEach(([areaId, areaVal]) => { if (areaVal.value !== undefined && areaVal.value !== null) { - const value = convertToUnit(areaVal.value, areaVal.unit, product) + const value = (areaVal.unit === 'piece' && product.unit === 'piece') ? areaVal.value : convertToUnit(areaVal.value, areaVal.unit, product); productVal ||= 0 productVal += value const area = this.$root.getCategory(areaId) diff --git a/src/views/sessions/SessionInventory.vue b/src/views/sessions/SessionInventory.vue index 10e48e4..ec68cfd 100644 --- a/src/views/sessions/SessionInventory.vue +++ b/src/views/sessions/SessionInventory.vue @@ -65,7 +65,7 @@

{{ currentProduct.name }}

-