feat: add core backend modules, inventory services, and patch scripts for AI Pharmacy API

This commit is contained in:
2026-09-15 11:15:15 +05:30
parent 22a03043ea
commit 1f9378d96c
41 changed files with 1413 additions and 130 deletions
+15
View File
@@ -0,0 +1,15 @@
import { InventoryService } from '../src/modules/inventory/service';
import { pool } from '../src/db/pool';
async function testInventory() {
const service = new InventoryService();
const testTenant = 'act_admin';
const items = await service.getAllStockBatches(500, testTenant);
console.log(`Inventory Items count for ${testTenant}:`, items.length);
console.log('Sample item:', items[0]);
await pool.end();
}
testInventory().catch(console.error);