Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix typo

Marcin Gębala759477b63de6
diff --git a/saleor/core/__init__.py b/saleor/core/__init__.py
index f223ee86fb..20d5791a47 100644
--- a/saleor/core/__init__.py
+++ b/saleor/core/__init__.py
@@ -24,7 +24,7 @@ def check_session_caching(app_configs, **kwargs): # pragma: no cover
class TaxRateType:
- ACCOMODATION = 'accomodation'
+ ACCOMMODATION = 'accommodation'
ADMISSION_TO_CULTURAL_EVENTS = 'admission to cultural events'
ADMISSION_TO_ENTERTAINMENT_EVENTS = 'admission to entertainment events'
ADMISSION_TO_SPORTING_EVENTS = 'admission to sporting events'
@@ -51,7 +51,7 @@ class TaxRateType:
WINE = 'wine'
CHOICES = (
- (ACCOMODATION, pgettext_lazy('VAT rate type', 'accommodation')),
+ (ACCOMMODATION, pgettext_lazy('VAT rate type', 'accommodation')),
(ADMISSION_TO_CULTURAL_EVENTS, pgettext_lazy(
'VAT rate type', 'admission to cultural events')),
(ADMISSION_TO_ENTERTAINMENT_EVENTS, pgettext_lazy(
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 86434e92be..e646032d85 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -1522,7 +1522,7 @@ type StaffUpdate {
}
enum TaxRateType {
- ACCOMODATION
+ ACCOMMODATION
ADMISSION_TO_CULTURAL_EVENTS
ADMISSION_TO_ENTERTAINMENT_EVENTS
ADMISSION_TO_SPORTING_EVENTS
diff --git a/saleor/product/migrations/0069_auto_20180912_0326.py b/saleor/product/migrations/0069_auto_20180912_0326.py
index 47a1a00000..a282866707 100644
--- a/saleor/product/migrations/0069_auto_20180912_0326.py
+++ b/saleor/product/migrations/0069_auto_20180912_0326.py
@@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='producttype',
name='tax_rate',
- field=models.CharField(blank=True, choices=[('accomodation', 'accommodation'), ('admission to cultural events', 'admission to cultural events'), ('admission to entertainment events', 'admission to entertainment events'), ('admission to sporting events', 'admission to sporting events'), ('advertising', 'advertising'), ('agricultural supplies', 'agricultural supplies'), ('baby foodstuffs', 'baby foodstuffs'), ('bikes', 'bikes'), ('books', 'books'), ('childrens clothing', 'childrens clothing'), ('domestic fuel', 'domestic fuel'), ('domestic services', 'domestic services'), ('e-books', 'e-books'), ('foodstuffs', 'foodstuffs'), ('hotels', 'hotels'), ('medical', 'medical'), ('newspapers', 'newspapers'), ('passenger transport', 'passenger transport'), ('pharmaceuticals', 'pharmaceuticals'), ('property renovations', 'property renovations'), ('restaurants', 'restaurants'), ('social housing', 'social housing'), ('standard', 'standard'), ('water', 'water')], default='standard', max_length=128),
+ field=models.CharField(blank=True, choices=[('accommodation', 'accommodation'), ('admission to cultural events', 'admission to cultural events'), ('admission to entertainment events', 'admission to entertainment events'), ('admission to sporting events', 'admission to sporting events'), ('advertising', 'advertising'), ('agricultural supplies', 'agricultural supplies'), ('baby foodstuffs', 'baby foodstuffs'), ('bikes', 'bikes'), ('books', 'books'), ('childrens clothing', 'childrens clothing'), ('domestic fuel', 'domestic fuel'), ('domestic services', 'domestic services'), ('e-books', 'e-books'), ('foodstuffs', 'foodstuffs'), ('hotels', 'hotels'), ('medical', 'medical'), ('newspapers', 'newspapers'), ('passenger transport', 'passenger transport'), ('pharmaceuticals', 'pharmaceuticals'), ('property renovations', 'property renovations'), ('restaurants', 'restaurants'), ('social housing', 'social housing'), ('standard', 'standard'), ('water', 'water')], default='standard', max_length=128),
),
]
diff --git a/saleor/static/dashboard-next/misc.ts b/saleor/static/dashboard-next/misc.ts
index ba9cce7480..4a39d57224 100644
--- a/saleor/static/dashboard-next/misc.ts
+++ b/saleor/static/dashboard-next/misc.ts
@@ -113,7 +113,7 @@ export const removeDoubleSlashes = (url: string) =>
url.replace(/([^:]\/)\/+/g, "$1");
export const translatedTaxRates = () => ({
- [TaxRateType.ACCOMODATION]: i18n.t("Accomodation"),
+ [TaxRateType.ACCOMMODATION]: i18n.t("Accommodation"),
[TaxRateType.ADMISSION_TO_CULTURAL_EVENTS]: i18n.t(
"Admission to cultural events"
),
diff --git a/saleor/static/dashboard-next/productTypes/fixtures.ts b/saleor/static/dashboard-next/productTypes/fixtures.ts
index c6a98bb4c4..e80344a9f7 100644
--- a/saleor/static/dashboard-next/productTypes/fixtures.ts
+++ b/saleor/static/dashboard-next/productTypes/fixtures.ts
@@ -886,7 +886,7 @@ export const productType = {
...attribute,
__typename: "Attribute" as "Attribute"
})),
- taxRate: TaxRateType.ACCOMODATION,
+ taxRate: TaxRateType.ACCOMMODATION,
variantAttributes: [
{
id: "pta24175",
diff --git a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
index 1d55ca0d64..56addce43b 100644
--- a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
@@ -29470,12 +29470,12 @@ exports[`Storyshots Views / Product types / Product type details default 1`] = `
role="button"
tabindex="0"
>
- Accomodation
+ Accommodation
</div>
<input
name="taxRate"
type="hidden"
- value="ACCOMODATION"
+ value="ACCOMMODATION"
/>
<svg
aria-hidden="true"
@@ -37876,7 +37876,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- XAG 274.99
+ XAG274.99
</td>
</tr>
<tr
@@ -37916,7 +37916,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- ZWL 432.30
+ ZWL432.30
</td>
</tr>
<tr
@@ -37956,7 +37956,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- XDR 688.35
+ XDR688.35
</td>
</tr>
<tr
@@ -37996,7 +37996,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- SLL 540
+ SLL540
</td>
</tr>
<tr
@@ -38036,7 +38036,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- AMD 4
+ AMD4
</td>
</tr>
<tr
@@ -38076,7 +38076,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- GMD 538.10
+ GMD538.10
</td>
</tr>
<tr
@@ -38116,7 +38116,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- CVE 56.91
+ CVE56.91
</td>
</tr>
<tr
@@ -38156,7 +38156,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- XAG 981.06
+ XAG981.06
</td>
</tr>
<tr
@@ -38196,7 +38196,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- WST 449.93
+ WST449.93
</td>
</tr>
<tr
@@ -38236,7 +38236,7 @@ exports[`Storyshots Views / Products / Product list default 1`] = `
<td
class="MuiTableCell-root-id MuiTableCell-body-id Component-textRight-id"
>
- MGA 591
+ MGA591
</td>
</tr>
</tbody>
@@ -43252,7 +43252,7 @@ exports[`Storyshots Views / Vouchers / Voucher list default 1`] = `
<p
class="MuiTypography-root-id MuiTypography-body1-id Component-tableCellFont-id"
>
- CHF 20.00
+ CHF20.00
</p>
</td>
</tr>
@@ -43340,7 +43340,7 @@ exports[`Storyshots Views / Vouchers / Voucher list default 1`] = `
<p
class="MuiTypography-root-id MuiTypography-body1-id Component-tableCellFont-id"
>
- EEK 0.00
+ EEK0.00
</p>
</td>
</tr>
@@ -43475,7 +43475,7 @@ exports[`Storyshots Views / Vouchers / Voucher list default 1`] = `
<p
class="MuiTypography-root-id MuiTypography-body1-id Component-tableCellFont-id"
>
- XTS 0.00
+ XTS0.00
</p>
</td>
</tr>
@@ -43610,7 +43610,7 @@ exports[`Storyshots Views / Vouchers / Voucher list default 1`] = `
<p
class="MuiTypography-root-id MuiTypography-body1-id Component-tableCellFont-id"
>
- CFA 70
+ CFA70
</p>
</td>
</tr>
@@ -43661,7 +43661,7 @@ exports[`Storyshots Views / Vouchers / Voucher list default 1`] = `
<p
class="MuiTypography-root-id MuiTypography-body1-id Component-tableCellFont-id"
>
- PKR 70
+ PKR70
</p>
</td>
</tr>
@@ -43895,7 +43895,7 @@ exports[`Storyshots Views / Vouchers / Voucher list default 1`] = `
<p
class="MuiTypography-root-id MuiTypography-body1-id Component-tableCellFont-id"
>
- GTQ 90.00
+ GTQ90.00
</p>
</td>
</tr>
diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.ts
index adae9128d8..0359ef18df 100644
--- a/saleor/static/dashboard-next/types/globalTypes.ts
+++ b/saleor/static/dashboard-next/types/globalTypes.ts
@@ -56,7 +56,7 @@ export enum PaymentStatusEnum {
}
export enum TaxRateType {
- ACCOMODATION = "ACCOMODATION",
+ ACCOMMODATION = "ACCOMMODATION",
ADMISSION_TO_CULTURAL_EVENTS = "ADMISSION_TO_CULTURAL_EVENTS",
ADMISSION_TO_ENTERTAINMENT_EVENTS = "ADMISSION_TO_ENTERTAINMENT_EVENTS",
ADMISSION_TO_SPORTING_EVENTS = "ADMISSION_TO_SPORTING_EVENTS",