Unify material supplier and balance controls

This commit is contained in:
Cauê Faleiros
2026-08-24 16:43:03 -03:00
parent 7e18772a8a
commit 11443a9202
5 changed files with 230 additions and 5 deletions

View File

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