import dati prodotti + fornitore + produttore

This commit is contained in:
Surya Paolo
2023-12-15 00:57:14 +01:00
parent ea2b7095c9
commit 05ec283882
8 changed files with 223 additions and 33 deletions

View File

@@ -60,6 +60,7 @@ const Producer = require('../models/producer');
const Cart = require('../models/cart');
const OrdersCart = require('../models/orderscart');
const Storehouse = require('../models/storehouse');
const Provider = require('../models/provider');
const Department = require('../models/department');
const { Category } = require('../models/category');
const ShareWithUs = require('../models/sharewithus');
@@ -104,6 +105,8 @@ module.exports = {
mytable = Product;
else if (tablename === 'storehouses')
mytable = Storehouse;
else if (tablename === 'providers')
mytable = Provider;
else if (tablename === 'departments')
mytable = Department;
else if (tablename === 'categorys')