From fbff519ac904cb9d551a67015873d99fbc4c1788 Mon Sep 17 00:00:00 2001 From: dxc Date: Fri, 27 Feb 2026 16:06:18 +0800 Subject: [PATCH] fix: remove duplicate updatePrices function Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) --- inventory-web/src/views/stock/inbound/buy.vue | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/inventory-web/src/views/stock/inbound/buy.vue b/inventory-web/src/views/stock/inbound/buy.vue index 48a0648..5747666 100644 --- a/inventory-web/src/views/stock/inbound/buy.vue +++ b/inventory-web/src/views/stock/inbound/buy.vue @@ -1057,18 +1057,6 @@ watch(() => [form.in_quantity, form.unit_price], () => { form.post_tax_unit_price = Number((form.unit_price * taxMultiplier).toFixed(4)); }) -const updatePrices = (source) => { - const taxMultiplier = 1 + (form.tax_rate || 0) / 100; - if (source === 'pre') { - form.post_tax_unit_price = Number((form.unit_price * taxMultiplier).toFixed(4)); - } else if (source === 'post') { - form.unit_price = Number((form.post_tax_unit_price / taxMultiplier).toFixed(4)); - } else if (source === 'tax') { - form.post_tax_unit_price = Number((form.unit_price * taxMultiplier).toFixed(4)); - } - form.total_price = Number((form.in_quantity * form.unit_price).toFixed(4)); -} - const fetchData = async () => { loading.value = true try {