feat: add inventoryId to SalesInvoice and related models; implement createOrder functionality in POS service

This commit is contained in:
2025-12-16 10:03:49 +03:30
parent 687c89c3e1
commit d514267f58
16 changed files with 776 additions and 38 deletions
+2
View File
@@ -18,6 +18,8 @@ async function main() {
console.log('📌 Fetching triggers...')
const [triggers] = (await conn.execute('SHOW TRIGGERS')) as [Array<any>, any]
console.log(triggers.length)
if (triggers.length === 0) {
console.log('⚠️ No triggers found in the database.')
return