kts-component-invoice-operate 3.2.42 → 3.2.43

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
@@ -1792,25 +1792,28 @@ function _mergeDetails() {
1792
1792
  return state.goodsListState.selectedGoodIndex.indexOf(e.$index) < 0;
1793
1793
  });
1794
1794
  state.goodsListState.goodsList.splice(p, 0, sum);
1795
+ state.goodsListState.goodsList = state.goodsListState.goodsList.filter(function (e) {
1796
+ return e.lineAmountExcludeTax !== 0;
1797
+ });
1795
1798
  state.goodsListState.goodsMap = new Map();
1796
1799
  state.goodsListState.goodsList.forEach(function (e) {
1797
1800
  state.goodsListState.goodsMap.set(e.$index, e);
1798
1801
  });
1799
1802
  state.goodsListState.selectedGoodIndex = [];
1800
- _context.next = 39;
1803
+ _context.next = 40;
1801
1804
  break;
1802
1805
 
1803
- case 36:
1804
- _context.prev = 36;
1806
+ case 37:
1807
+ _context.prev = 37;
1805
1808
  _context.t0 = _context["catch"](5);
1806
1809
  showError(_context.t0);
1807
1810
 
1808
- case 39:
1811
+ case 40:
1809
1812
  case "end":
1810
1813
  return _context.stop();
1811
1814
  }
1812
1815
  }
1813
- }, _callee, null, [[5, 36]]);
1816
+ }, _callee, null, [[5, 37]]);
1814
1817
  }));
1815
1818
  return _mergeDetails.apply(this, arguments);
1816
1819
  }
package/dist/index.js CHANGED
@@ -1802,25 +1802,28 @@ function _mergeDetails() {
1802
1802
  return state.goodsListState.selectedGoodIndex.indexOf(e.$index) < 0;
1803
1803
  });
1804
1804
  state.goodsListState.goodsList.splice(p, 0, sum);
1805
+ state.goodsListState.goodsList = state.goodsListState.goodsList.filter(function (e) {
1806
+ return e.lineAmountExcludeTax !== 0;
1807
+ });
1805
1808
  state.goodsListState.goodsMap = new Map();
1806
1809
  state.goodsListState.goodsList.forEach(function (e) {
1807
1810
  state.goodsListState.goodsMap.set(e.$index, e);
1808
1811
  });
1809
1812
  state.goodsListState.selectedGoodIndex = [];
1810
- _context.next = 39;
1813
+ _context.next = 40;
1811
1814
  break;
1812
1815
 
1813
- case 36:
1814
- _context.prev = 36;
1816
+ case 37:
1817
+ _context.prev = 37;
1815
1818
  _context.t0 = _context["catch"](5);
1816
1819
  showError(_context.t0);
1817
1820
 
1818
- case 39:
1821
+ case 40:
1819
1822
  case "end":
1820
1823
  return _context.stop();
1821
1824
  }
1822
1825
  }
1823
- }, _callee, null, [[5, 36]]);
1826
+ }, _callee, null, [[5, 37]]);
1824
1827
  }));
1825
1828
  return _mergeDetails.apply(this, arguments);
1826
1829
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.42",
3
+ "version": "3.2.43",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -43,6 +43,7 @@ export default async function mergeDetails(state: InvoiceControllerState) {
43
43
  const p = state.goodsListState.goodsList.indexOf(goodsList[0]);
44
44
  state.goodsListState.goodsList = state.goodsListState.goodsList.filter(e => state.goodsListState.selectedGoodIndex.indexOf(e.$index) < 0);
45
45
  state.goodsListState.goodsList.splice(p, 0, sum);
46
+ state.goodsListState.goodsList = state.goodsListState.goodsList.filter(e => e.lineAmountExcludeTax !== 0);
46
47
  state.goodsListState.goodsMap = new Map();
47
48
  state.goodsListState.goodsList.forEach(e => { state.goodsListState.goodsMap.set(e.$index, e) });
48
49
  state.goodsListState.selectedGoodIndex = [];