This commit is contained in:
seb
2026-10-04 19:38:12 +02:00
parent 067ddc088c
commit c80bfee8e8
7 changed files with 59 additions and 3 deletions

View File

@@ -25,6 +25,9 @@ export default function queryCategoryArticles(provider) {
return {
...rest,
track_stock: Boolean(rest.track_stock ?? 1),
// MSSQL returns BIT as boolean, SQLite as 0/1 integer. Normalize so both
// dialects expose isFather as a real boolean, matching article/getBySku.
isFather: Boolean(rest.isFather),
brand: brandName
? {
id: brandId ?? null,