From b469716bb4c82932e4b6263bbe963fa3200e72b2 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Sat, 16 Nov 2024 12:37:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/accessory/child/inventory_count_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/accessory/child/inventory_count_form.js b/js/accessory/child/inventory_count_form.js index cf268a3..00ce52a 100644 --- a/js/accessory/child/inventory_count_form.js +++ b/js/accessory/child/inventory_count_form.js @@ -309,7 +309,7 @@ function setNumAndPrice(list) { if (list && list.length > 0) { let addNum = 0, subNum = 0, addPrice = 0; subPrice = 0; $.each(list, function (index, item) { - let price = item.price ? 2 : 2; + let price = item.price ? item.price : 2; addNum += parseInt(item.addNum); subNum += parseInt(item.subNum); addPrice += parseInt(item.addNum) * parseFloat(price);