fix data error

This commit is contained in:
jusax23 2023-04-05 19:28:41 +02:00
parent c46f9c8752
commit 10760e77f2
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -634,7 +634,7 @@ export const addItem: Act = {
data.listCatID != null ? data.listCatID : null, data.listCatID != null ? data.listCatID : null,
data.unit, data.unit,
data.value, data.value,
data.listProdID != null ? data.parent : null, data.listProdID != null ? data.listProdID : null,
).query(db); ).query(db);
if (req.affectedRows > 0) aws("ok", { if (req.affectedRows > 0) aws("ok", {
listItemID: Number(req.insertId) listItemID: Number(req.insertId)