feat(schema): replace manifestarticle article_id FK with sku, rename articlesupplier sku/stock fields

This commit is contained in:
seb
2026-09-15 09:24:43 +02:00
parent e56f725bd9
commit 00bbd2e764
18 changed files with 1720 additions and 1877 deletions

View File

@@ -37,7 +37,7 @@ export default function create(pool) {
: null;
const lines = normalizeLines(body.lines ?? []);
const { companyId, rootCategoryId } = await access(googleAuthId);
const { companyId } = await access(googleAuthId);
const tx = pool.transaction();
await tx.begin();
@@ -63,7 +63,6 @@ export default function create(pool) {
await insertLines(pool, tx, {
manifestId,
rootCategoryId,
lines,
ensureTax,
});