diff --git a/services/item/common/models/intrastat.json b/services/item/common/models/intrastat.json index 0ef5c5876..615c16a1e 100644 --- a/services/item/common/models/intrastat.json +++ b/services/item/common/models/intrastat.json @@ -18,10 +18,10 @@ } }, "relations": { - "taxClass": { + "taxGroup": { "type": "belongsTo", - "model": "TaxClass", - "foreignKey": "taxClassFk" + "model": "TaxGroup", + "foreignKey": "taxGroupFk" }, "taxCode": { "type": "belongsTo", diff --git a/services/item/common/models/tax-class.json b/services/item/common/models/tax-group.json similarity index 86% rename from services/item/common/models/tax-class.json rename to services/item/common/models/tax-group.json index c107f3391..e2fdd5a3b 100644 --- a/services/item/common/models/tax-class.json +++ b/services/item/common/models/tax-group.json @@ -1,9 +1,9 @@ { - "name": "TaxClass", + "name": "TaxGroup", "base": "VnModel", "options": { "mysql": { - "table": "taxClass", + "table": "taxGroup", "database": "vn" } }, diff --git a/services/item/server/model-config.json b/services/item/server/model-config.json index 43c9a80fe..9258f7f1c 100644 --- a/services/item/server/model-config.json +++ b/services/item/server/model-config.json @@ -42,7 +42,7 @@ "Intrastat": { "dataSource": "vn" }, - "TaxClass": { + "TaxGroup": { "dataSource": "vn" }, "TaxCode": {