import dati prodotti + fornitore + produttore

This commit is contained in:
Surya Paolo
2023-12-15 00:57:24 +01:00
parent b4af36d01c
commit 6a1a1fb249
50 changed files with 177 additions and 26 deletions

View File

@@ -429,6 +429,19 @@ export const colTableStorehouse = [
AddCol(DuplicateRec),
]
export const colTableProviders = [
AddCol({ name: 'name', label_trans: 'store.name' }),
AddCol({ name: 'description', label_trans: 'store.description' }),
AddCol({ name: 'referent', label_trans: 'store.referent' }),
AddCol({ name: 'address', label_trans: 'store.address' }),
AddCol({ name: 'city', label_trans: 'store.city' }),
AddCol({ name: 'region', label_trans: 'store.region' }),
AddCol({ name: 'img', label_trans: 'store.img' }),
AddCol({ name: 'website', label_trans: 'reg.website' }),
AddCol(DeleteRec),
AddCol(DuplicateRec),
]
export const colAdType = [
AddCol({ name: '_id', label_trans: 'index', fieldtype: costanti.FieldType.number }),
AddCol({ name: 'descr', label_trans: 'store.description' }),
@@ -1939,6 +1952,12 @@ export const colTableProducts = [
fieldtype: costanti.FieldType.multiselect,
jointable: 'storehouses',
}),
AddCol({
name: 'idProvider',
label_trans: 'provider.name',
fieldtype: costanti.FieldType.select,
jointable: 'providers',
}),
AddCol({
name: 'department',
label_trans: 'products.department',
@@ -3518,6 +3537,13 @@ export const fieldsTable = {
colkey: '_id',
collabel: (rec: any) => `${rec.name} (${rec.city})`,
},
{
value: 'providers',
label: 'Fornitori',
columns: colTableProviders,
colkey: '_id',
collabel: 'name',
},
{
value: 'sharewithus',
label: 'Condividi con Noi',