implemented poi and mvi

This commit is contained in:
2024-04-01 18:37:15 +02:00
parent 3c063fddca
commit 423ff7e48b
35 changed files with 2111 additions and 497 deletions

View File

@ -5,6 +5,7 @@ import {
getProductionOrderTodosByAsset,
updateProductionOrderTodoById,
deleteProductionOrderTodosChecklistID,
getProductionOrderTodosByTemplate,
} from "../models/productionOrdersTodosModel.js";
//create new production order todo
@ -41,6 +42,18 @@ export const showProductionOrderTodosByAsset = (req, res) => {
});
};
//get production order todos by template
export const showProductionOrderTodosByTemplate = (req, res) => {
getProductionOrderTodosByTemplate(req.params.id, (err, results) => {
if (err) {
res.send(err);
} else {
res.json(results);
}
});
};
// Update production order todo
export const updateProductionOrderTodo = (req, res) => {
const data = req.body;