Unify material supplier and balance controls
This commit is contained in:
@@ -10,6 +10,7 @@ const {
|
||||
deleteReceipt,
|
||||
getSupplySummary,
|
||||
listFabricPlans,
|
||||
listKnownSuppliers,
|
||||
saveMaterialDetails,
|
||||
listLots,
|
||||
listMovements,
|
||||
@@ -27,6 +28,14 @@ router.get('/supply', verifyToken, async (req, res, next) => {
|
||||
}
|
||||
});
|
||||
|
||||
router.get('/supply/suppliers', verifyToken, async (req, res, next) => {
|
||||
try {
|
||||
res.json(await listKnownSuppliers());
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
});
|
||||
|
||||
router.get('/supply/receipts', verifyToken, async (req, res, next) => {
|
||||
try {
|
||||
res.json(await listReceipts());
|
||||
|
||||
Reference in New Issue
Block a user