Fill from excel added

This commit is contained in:
alfredojl
2020-09-25 19:13:47 -05:00
parent 7e99f242c4
commit cc1f7770fd
11 changed files with 482 additions and 42 deletions
+4 -1
View File
@@ -5,11 +5,14 @@ const { QueryTypes } = require('sequelize');
const get = async(req, res) => {
await sequelize.query(`
SELECT I.noInventario, T.tipo, P.modelo, M.marca, P.noSerie, P. descripcion
SELECT I.noInventario, T.tipo, P.modelo, M.marca, P.noSerie, P. descripcion, I.noResguardo, UR.uResponsable, UR.nombreResponsable, Ub.ubicacion, U.uso
FROM inventario I
INNER JOIN printers P ON P.noInventario = I.noInventario
INNER JOIN marca M ON M.idMarca = P.idMarca
INNER JOIN tipo T ON T.idTipo = P.idTipo
INNER JOIN uResponsable UR ON UR.idUnidadResponsable = I.idUnidadResponsable
INNER JOIN ubicacion Ub ON Ub.idUbicacion = I.idUbicacion
INNER JOIN uso U ON U.idUso = I.idUso
ORDER BY P.createdAt DESC
`, { type: QueryTypes.SELECT })
.then(printers => {