kts-component-invoice-operate 3.2.111 → 3.2.112

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() || undefined, calculatingDigits));
2145
+ return _context7.abrupt("return", format15(sum.done().toNumber() || 0, calculatingDigits));
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() || undefined, calculatingDigits));
2155
+ return _context7.abrupt("return", format15(sum.done().toNumber() || 0, calculatingDigits));
2156
2156
 
2157
2157
  case 3:
2158
2158
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.111",
3
+ "version": "3.2.112",
4
4
  "scripts": {
5
5
  "dev": "dumi dev",
6
6
  "start": "dumi dev",
@@ -128,8 +128,8 @@ async function mergeQuantity(goodsList: IGood[], calculatingDigits?: number) {
128
128
  goodsList.forEach(e => {
129
129
  sum = sum.add(bignumber(e.quantity || 0))
130
130
  })
131
-
132
- return format15(sum.done().toNumber() || undefined, calculatingDigits) as any;
131
+
132
+ return format15(sum.done().toNumber() || 0, calculatingDigits) as any;
133
133
  }
134
134
 
135
135
  /** 填充行明细信息 */