import products dinamically

This commit is contained in:
Surya Paolo
2024-02-06 20:12:54 +01:00
parent 9fe81713e5
commit 64bd3cebb3
13 changed files with 577 additions and 32 deletions

View File

@@ -246,8 +246,8 @@ module.exports = {
{ table: 'sectors', key: 'descr' },
{ table: 'skills', key: 'descr' },
{ table: 'statusSkills', key: 'descr' },
// { table: 'catais', key: 'descr' },
// { table: 'queryais', key: 'descr' },
// { table: 'catais', key: 'descr' },
// { table: 'queryais', key: 'descr' },
],
@@ -293,6 +293,7 @@ module.exports = {
CAT_NO_SPAZI: 5,
CAT_GOODS_TXT: 10,
PRODUCTS: 20,
PRODUCTS_V2: 22,
INVENTARIO: 30,
},
@@ -383,7 +384,7 @@ module.exports = {
},
{
label: 'Chili (kg)',
short: 'Kg',
short: 'kg',
value: 2,
},
{
@@ -955,4 +956,62 @@ module.exports = {
NEXT_10: 1,
},
CAMPI_PRODUCTINFO_CONVERT: [
'weight_and_unit',
'weight_and_unit_lordo',
],
PRODUCTINFO: {
CAMPI_FIRST_UPPERCASE: [
'name',
],
},
CAMPI_PRODUCTINFO: [
'name',
'code',
'description',
'link_scheda',
'idCatProds',
'idSubCatProds',
'weight',
'weight_lordo',
'unit',
'unit_lordo',
'size',
'vegan',
'img',
'link',
'ingredienti',
'valori_nutrizionali',
'note',
],
CAMPI_PRODUCT: [
'active',
'price',
'stockQty',
'perc_iva',
'price_acquistato',
'minBuyQty',
'minStepQty',
'cat_name',
'subcat_name',
'producer_name',
'provider_name',
'magazzino_name',
'qtyToReachForGas',
'maxbookableGASQty',
'gas_name',
'sconto1',
'sconto2',
],
CAMPI_EURO: [
'price',
'price_acquistato',
],
MAX_QTA_PREORD: 5000,
};