From 681262c33edda1d6b20b5ce4da896f68f1194762 Mon Sep 17 00:00:00 2001 From: Gloomy Date: Fri, 22 Aug 2025 09:08:47 +0000 Subject: [PATCH] update for Warranty plugin --- .../src/components/widgets/BarcodeScanner.vue | 328 ++++++++++-------- webUI/src/views/acc/storeroom/io/sell.vue | 4 + 2 files changed, 184 insertions(+), 148 deletions(-) diff --git a/webUI/src/components/widgets/BarcodeScanner.vue b/webUI/src/components/widgets/BarcodeScanner.vue index 15fe254..29a6171 100644 --- a/webUI/src/components/widgets/BarcodeScanner.vue +++ b/webUI/src/components/widgets/BarcodeScanner.vue @@ -1,83 +1,77 @@ - - - - \ No newline at end of file +} + \ No newline at end of file diff --git a/webUI/src/views/acc/storeroom/io/sell.vue b/webUI/src/views/acc/storeroom/io/sell.vue index 4c80f6f..5d4c45e 100755 --- a/webUI/src/views/acc/storeroom/io/sell.vue +++ b/webUI/src/views/acc/storeroom/io/sell.vue @@ -343,6 +343,10 @@ const submit = async () => { const errors: string[] = [] let totalCount = 0 + items.value.forEach((row) => { + totalCount += Number(row.ticketCount || 0) + }) + if (totalCount === 0) errors.push('هیچ کالایی برای خروج انتخاب نشده است') if (errors.length) {