detlles de items terminados
This commit is contained in:
@@ -244,6 +244,7 @@ controlador.cat_json = (req, res) => {
|
||||
controlador.item_xCat = (req, res) => {
|
||||
const catg = req.params;
|
||||
console.log(catg);
|
||||
try{
|
||||
req.getConnection((err, conn) => {
|
||||
conn.query('select * from ver_inventario_precios_app where categoria = ? and grupo_precio = ?', [catg.cat,catg.gpp], (err, rows) => {
|
||||
rows.map(
|
||||
@@ -253,9 +254,11 @@ controlador.item_xCat = (req, res) => {
|
||||
)
|
||||
res.json(rows);
|
||||
console.log(err);
|
||||
//res.render('clientesV',{ data:rows });
|
||||
});
|
||||
});
|
||||
});}catch(err){
|
||||
res.json(err);
|
||||
next(err);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user