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