.
This commit is contained in:
@@ -112,7 +112,7 @@ const post = async(req, res) => {
|
||||
.then(async() => {
|
||||
await Equipo.create({
|
||||
noInventario: equipo.noInventario,
|
||||
idActivoFijo: equipo.activoFijo,
|
||||
idActivoFijo: equipo.idActivoFijo,
|
||||
idMarca: equipo.marca,
|
||||
idOS: equipo.osname,
|
||||
modelo: equipo.modelo,
|
||||
|
||||
@@ -85,7 +85,7 @@ const post = async(req, res) => {
|
||||
await Inventario.create({
|
||||
noInventario: printer.noInventario,
|
||||
noResguardo: printer.noResguardo,
|
||||
idActivoFijo: 6,
|
||||
idActivoFijo: printer.idActivoFijo,
|
||||
idUnidadResponsable: printer.idUnidadResponsable,
|
||||
idUbicacion: printer.idUbicacion,
|
||||
idUso: printer.idUso
|
||||
@@ -98,7 +98,7 @@ const post = async(req, res) => {
|
||||
noSerie: printer.noSerie,
|
||||
idTipo: printer.idTipo,
|
||||
descripcion: printer.descripcion,
|
||||
idActivoFijo: 6
|
||||
idActivoFijo: printer.idActivoFijo
|
||||
})
|
||||
.catch(async(err) => {
|
||||
await Inventario.destroy({
|
||||
|
||||
@@ -18,7 +18,7 @@ const get = async(req, res) => {
|
||||
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 E.createdAt DESC`, { type: QueryTypes.SELECT })
|
||||
ORDER BY E.noInventario ASC`, { type: QueryTypes.SELECT })
|
||||
.then(equipo => res.json({
|
||||
equipo
|
||||
}))
|
||||
|
||||
@@ -13,7 +13,7 @@ const get = async(req, res) => {
|
||||
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
|
||||
ORDER BY P.noInventario ASC
|
||||
`, { type: QueryTypes.SELECT })
|
||||
.then(printers => {
|
||||
return res.json({
|
||||
|
||||
Reference in New Issue
Block a user