kts-component-invoice-operate 3.0.12 → 3.0.13

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.
@@ -46,4 +46,6 @@ export default interface IGood {
46
46
  favouredPolicyMark?: number;
47
47
  /** 优惠政策类型 */
48
48
  favouredPolicyName?: string;
49
+ /** 零税率标识 */
50
+ zeroTaxRateFlag?: string;
49
51
  }
package/dist/index.esm.js CHANGED
@@ -1375,6 +1375,7 @@ var addGoodDiscount = /*#__PURE__*/(function () {
1375
1375
  itemNameSelf: good.itemNameSelf,
1376
1376
  favouredPolicyMark: good.favouredPolicyMark,
1377
1377
  favouredPolicyName: good.favouredPolicyName,
1378
+ zeroTaxRateFlag: good.zeroTaxRateFlag,
1378
1379
  discountGroup: discountGroup,
1379
1380
  lineAmountIncludeTax: lineAmountIncludeTax,
1380
1381
  lineAmountExcludeTax: lineAmountExcludeTax,
package/dist/index.js CHANGED
@@ -1385,6 +1385,7 @@ var addGoodDiscount = /*#__PURE__*/(function () {
1385
1385
  itemNameSelf: good.itemNameSelf,
1386
1386
  favouredPolicyMark: good.favouredPolicyMark,
1387
1387
  favouredPolicyName: good.favouredPolicyName,
1388
+ zeroTaxRateFlag: good.zeroTaxRateFlag,
1388
1389
  discountGroup: discountGroup,
1389
1390
  lineAmountIncludeTax: lineAmountIncludeTax,
1390
1391
  lineAmountExcludeTax: lineAmountExcludeTax,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.0.12",
3
+ "version": "3.0.13",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -69,4 +69,7 @@ export default interface IGood {
69
69
 
70
70
  /** 优惠政策类型 */
71
71
  favouredPolicyName?: string;
72
+
73
+ /** 零税率标识 */
74
+ zeroTaxRateFlag?: string;
72
75
  }
@@ -30,7 +30,7 @@ export interface IOptions {
30
30
  */
31
31
  export default async (state: InvoiceControllerState, options?: IOptions) => {
32
32
  if (!options) return;
33
-
33
+
34
34
  const { indexList = [] } = options;
35
35
  const discount = chain(bignumber(options.discount || 0)).dotDivide(bignumber(100)).done();
36
36
  const goodsMap = state.goodsListState.goodsMap;
@@ -94,7 +94,7 @@ export default async (state: InvoiceControllerState, options?: IOptions) => {
94
94
  .multiply(chain(bignumber(1)).add(taxRate).done())
95
95
  .done().toNumber()) as number
96
96
  }
97
-
97
+
98
98
  /** 税额 */
99
99
  const taxAmount = chain(bignumber(lineAmountIncludeTax))
100
100
  .subtract(bignumber(lineAmountExcludeTax))
@@ -108,10 +108,11 @@ export default async (state: InvoiceControllerState, options?: IOptions) => {
108
108
  lineAttribute: LineAttributeType.折扣行,
109
109
  taxClassificationCode: good.taxClassificationCode,
110
110
  taxRate: good.taxRate,
111
- itemName:good.itemName,
112
- itemNameSelf:good.itemNameSelf,
111
+ itemName: good.itemName,
112
+ itemNameSelf: good.itemNameSelf,
113
113
  favouredPolicyMark: good.favouredPolicyMark,
114
114
  favouredPolicyName: good.favouredPolicyName,
115
+ zeroTaxRateFlag: good.zeroTaxRateFlag,
115
116
  discountGroup,
116
117
  lineAmountIncludeTax,
117
118
  lineAmountExcludeTax,