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

@@ -56,7 +56,7 @@ export default function update(pool) {
normalizedLines = normalizeLines(patch.lines);
}
const { companyId, rootCategoryId } = await access(googleAuthId);
const { companyId } = await access(googleAuthId);
const tx = pool.transaction();
await tx.begin();
@@ -125,7 +125,6 @@ export default function update(pool) {
await insertLines(pool, tx, {
manifestId: id,
rootCategoryId,
lines: normalizedLines,
ensureTax,
});