- Categorie

- ProductInfo
This commit is contained in:
Surya Paolo
2023-12-27 02:58:15 +01:00
parent f0495d93b3
commit 15d831eecc
16 changed files with 516 additions and 230 deletions

View File

@@ -56,6 +56,7 @@ const { Permission } = require('../models/permission');
const { MsgTemplate } = require('../models/msg_template');
const { Graduatoria } = require('../models/graduatoria');
const Product = require('../models/product');
const ProductInfo = require('../models/productinfo');
const Producer = require('../models/producer');
const Cart = require('../models/cart');
const OrdersCart = require('../models/orderscart');
@@ -64,6 +65,7 @@ const Provider = require('../models/provider');
const Gasordine = require('../models/gasordine');
const Scontistica = require('../models/scontistica');
const Department = require('../models/department');
const CatProd = require('../models/catprod');
const { Category } = require('../models/category');
const ShareWithUs = require('../models/sharewithus');
const Site = require('../models/site');
@@ -105,6 +107,8 @@ module.exports = {
mytable = Operator;
else if (tablename === 'products')
mytable = Product;
else if (tablename === 'productinfos')
mytable = ProductInfo;
else if (tablename === 'storehouses')
mytable = Storehouse;
else if (tablename === 'providers')
@@ -117,6 +121,8 @@ module.exports = {
mytable = Department;
else if (tablename === 'categorys')
mytable = Category;
else if (tablename === 'catprods')
mytable = CatProd;
else if (tablename === 'sharewithus')
mytable = ShareWithUs;
else if (tablename === 'sites')