This commit is contained in:
seb
2026-07-31 05:43:41 +02:00
parent 09c7a8bc74
commit a57e81fe30
9 changed files with 204 additions and 122 deletions

View File

@@ -42,6 +42,15 @@ export default function update(pool) {
.query(UPDATE);
await tx.commit();
return {
id,
root_category_id: company.root_category_id,
language_id: languageId,
taxrate: taxrateId,
reducedtaxrate: reducedtaxrateId,
taxfreerate: company.taxfreerate,
};
} catch (err) {
try {
await tx.rollback();