Files
AI_Pharmacy_Api/scratch/test_inventory_endpoints.ts
T

16 lines
462 B
TypeScript

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);