kts-component-invoice-operate 3.2.200 → 3.2.201

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
@@ -1661,7 +1661,7 @@ function countPrice(amount, quantity, calculatingDigits) {
1661
1661
  function countPriceNoLimit(amount, quantity, calculatingDigits) {
1662
1662
  if (!amount && amount !== 0) return undefined;
1663
1663
  if (!quantity && quantity !== 0) return undefined;
1664
- return chain$1(bignumber(amount)).divide(bignumber(quantity)).done().toString();
1664
+ return chain$1(bignumber(amount)).divide(bignumber(quantity)).done().toString().substr(0, 25);
1665
1665
  }
1666
1666
  /**
1667
1667
  * 数量 = 金额/单价
package/dist/index.js CHANGED
@@ -1671,7 +1671,7 @@ function countPrice(amount, quantity, calculatingDigits) {
1671
1671
  function countPriceNoLimit(amount, quantity, calculatingDigits) {
1672
1672
  if (!amount && amount !== 0) return undefined;
1673
1673
  if (!quantity && quantity !== 0) return undefined;
1674
- return mathjs.chain(mathjs.bignumber(amount)).divide(mathjs.bignumber(quantity)).done().toString();
1674
+ return mathjs.chain(mathjs.bignumber(amount)).divide(mathjs.bignumber(quantity)).done().toString().substr(0, 25);
1675
1675
  }
1676
1676
  /**
1677
1677
  * 数量 = 金额/单价
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.200",
3
+ "version": "3.2.201",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -101,7 +101,7 @@ export function countPriceNoLimit(amount: string | number, quantity: string | nu
101
101
  if (!quantity && quantity !== 0) return undefined;
102
102
  return chain(bignumber(amount)).divide(bignumber(quantity))
103
103
  .done()
104
- .toString()
104
+ .toString().substr(0,25)
105
105
  }
106
106
 
107
107
  /**