- Aggiornamento dal DB di GM al DB Locale

This commit is contained in:
Surya Paolo
2025-04-16 23:28:29 +02:00
parent 8e8a3204a7
commit fba2ebd710
9 changed files with 1409 additions and 743 deletions

View File

@@ -99,7 +99,7 @@ CatalogSchema.statics.executeQueryTable = function (idapp, params, user) {
return tools.executeQueryTable(this, idapp, params, user);
};
CatalogSchema.statics.OLD_findAllIdApp = async function (idapp) {
/*CatalogSchema.statics.OLD_findAllIdApp = async function (idapp) {
const Catalog = this;
const arrrec = await Catalog.aggregate([
@@ -122,7 +122,7 @@ CatalogSchema.statics.OLD_findAllIdApp = async function (idapp) {
]);
return arrrec;
};
};*/
CatalogSchema.statics.findAllIdApp = async function (idapp) {
const Catalog = this;

View File

@@ -50,6 +50,9 @@ const productInfoSchema = new Schema({
},
idCatProds: [{ type: Schema.Types.ObjectId, ref: 'CatProd' }],
idSubCatProds: [{ type: Schema.Types.ObjectId, ref: 'SubCatProd' }],
idStatoProdotto: {
type: Number
},
color: {
type: String
},
@@ -148,6 +151,7 @@ const productInfoSchema = new Schema({
totFat: Number,
vLast3M: Number,
fatLast3M: Number,
fatLast6M: Number,
vLast6M: Number,
vLastY: Number,
vLast2Y: Number,