From 59ba64b34154de9e9de01b1046dad0c9566a6208 Mon Sep 17 00:00:00 2001 From: AbleKSaju <126228406+AbleKSaju@users.noreply.github.com> Date: Tue, 31 Dec 2024 15:45:42 +0530 Subject: [PATCH] fix: set default quantity increment to 1 for barcode --- src/components/Controls/Barcode.vue | 1 - src/pages/POS/POS.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Controls/Barcode.vue b/src/components/Controls/Barcode.vue index 4dfd06ab..fc2e0ff4 100644 --- a/src/components/Controls/Barcode.vue +++ b/src/components/Controls/Barcode.vue @@ -87,7 +87,6 @@ export default defineComponent({ })) as { name: string }[]; const name = items?.[0]?.name; - console.log(name, 'name'); if (!name) { return this.error(this.t`Item with barcode ${barcode} not found.`); diff --git a/src/pages/POS/POS.vue b/src/pages/POS/POS.vue index a6e04c95..6bd2c8eb 100644 --- a/src/pages/POS/POS.vue +++ b/src/pages/POS/POS.vue @@ -554,7 +554,7 @@ export default defineComponent({ await this.sinvDoc.append('items', { rate: item.rate as Money, item: item.name, - quantity: quantity ? quantity : 0, + quantity: quantity ? quantity : 1, }); if (this.sinvDoc.priceList) {