Przeglądaj źródła

Assign type 'float' to taxRate of defaultShippingCalculator (#3438)

Florian Wild 7 miesięcy temu
rodzic
commit
b900ff32a0

+ 1 - 1
packages/core/e2e/shipping-method.e2e-spec.ts

@@ -136,7 +136,7 @@ describe('ShippingMethod resolver', () => {
                         description: null,
                         label: 'Tax rate',
                         name: 'taxRate',
-                        type: 'int',
+                        type: 'float',
                     },
                 ],
                 code: 'default-shipping-calculator',

+ 1 - 1
packages/core/src/config/shipping-method/default-shipping-calculator.ts

@@ -43,7 +43,7 @@ export const defaultShippingCalculator = new ShippingCalculator({
             label: [{ languageCode: LanguageCode.en, value: 'Price includes tax' }],
         },
         taxRate: {
-            type: 'int',
+            type: 'float',
             defaultValue: 0,
             ui: { component: 'number-form-input', suffix: '%' },
             label: [{ languageCode: LanguageCode.en, value: 'Tax rate' }],