Done Category, Product Catalogue, Customer, Vendor, Purchase Invoice Module

This commit is contained in:
2026-08-28 11:30:18 +05:30
parent 0d13833679
commit 189f49ed07
118 changed files with 12624 additions and 4004 deletions

22
test_api.js Normal file
View File

@@ -0,0 +1,22 @@
const items = [
{
"productId": 1,
"quantity": 2,
"unitPrice": 100,
"total": 200
}
];
const po = {
"poNumber": "TEST-001",
"issueDate": "2026-08-27T00:00:00Z",
"items": items
};
fetch('http://localhost:8080/api/purchase-orders', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer test'
},
body: JSON.stringify(po)
}).then(r => r.text()).then(console.log).catch(console.error);