kts-component-invoice-operate 3.2.112 → 3.2.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -2142,7 +2142,7 @@ function _mergeQuantity() {
|
|
|
2142
2142
|
goodsList.forEach(function (e) {
|
|
2143
2143
|
sum = sum.add(bignumber(e.quantity || 0));
|
|
2144
2144
|
});
|
|
2145
|
-
return _context7.abrupt("return", format15(sum.done().toNumber() || 0, calculatingDigits));
|
|
2145
|
+
return _context7.abrupt("return", sum.done().toNumber() ? format15(sum.done().toNumber() || 0, calculatingDigits) : undefined);
|
|
2146
2146
|
|
|
2147
2147
|
case 3:
|
|
2148
2148
|
case "end":
|
package/dist/index.js
CHANGED
|
@@ -2152,7 +2152,7 @@ function _mergeQuantity() {
|
|
|
2152
2152
|
goodsList.forEach(function (e) {
|
|
2153
2153
|
sum = sum.add(mathjs.bignumber(e.quantity || 0));
|
|
2154
2154
|
});
|
|
2155
|
-
return _context7.abrupt("return", format15(sum.done().toNumber() || 0, calculatingDigits));
|
|
2155
|
+
return _context7.abrupt("return", sum.done().toNumber() ? format15(sum.done().toNumber() || 0, calculatingDigits) : undefined);
|
|
2156
2156
|
|
|
2157
2157
|
case 3:
|
|
2158
2158
|
case "end":
|
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@ export default async function mergeDetails(state: InvoiceControllerState, select
|
|
|
41
41
|
/** 合并 */
|
|
42
42
|
async function merge(goodsList: IGood[]) {
|
|
43
43
|
if (goodsList.length < 2) return;
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
const selectedGoodIndex = goodsList.map(e => e.$index);
|
|
46
46
|
try {
|
|
47
47
|
// 创建合并后的商品对象
|
|
@@ -129,7 +129,9 @@ async function mergeQuantity(goodsList: IGood[], calculatingDigits?: number) {
|
|
|
129
129
|
sum = sum.add(bignumber(e.quantity || 0))
|
|
130
130
|
})
|
|
131
131
|
|
|
132
|
-
return
|
|
132
|
+
return sum.done().toNumber()
|
|
133
|
+
? format15(sum.done().toNumber() || 0, calculatingDigits) as any
|
|
134
|
+
: undefined
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
/** 填充行明细信息 */
|