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) {