This commit is contained in:
seb
2026-07-31 05:46:33 +02:00
parent a57e81fe30
commit b99c3a9ec7
4 changed files with 14 additions and 26 deletions

View File

@@ -45,9 +45,9 @@ SELECT
id,
root_category_id,
default_language_id AS language_id,
taxrate,
reducedtaxrate,
taxfreerate
taxrate AS taxrate_id,
reducedtaxrate AS reducedtaxrate_id,
taxfreerate AS taxfreerate_id
FROM company
`;

View File

@@ -48,9 +48,9 @@ export default function create(pool) {
id: result.recordset[0].id,
root_category_id: rootCategoryId,
language_id: languageId,
taxrate: taxrateId,
reducedtaxrate: reducedtaxrateId,
taxfreerate: taxfreerateId,
taxrate_id: taxrateId,
reducedtaxrate_id: reducedtaxrateId,
taxfreerate_id: taxfreerateId,
};
} catch (err) {
try {

View File

@@ -47,9 +47,9 @@ export default function update(pool) {
id,
root_category_id: company.root_category_id,
language_id: languageId,
taxrate: taxrateId,
reducedtaxrate: reducedtaxrateId,
taxfreerate: company.taxfreerate,
taxrate_id: taxrateId,
reducedtaxrate_id: reducedtaxrateId,
taxfreerate_id: company.taxfreerate,
};
} catch (err) {
try {