- corretto la gestione degli Sconti

- Duplicare un Catalogo
This commit is contained in:
Surya Paolo
2025-06-11 01:05:25 +02:00
parent d1d4b73da0
commit 25377090c1
6 changed files with 242 additions and 106 deletions

View File

@@ -16,6 +16,9 @@ const scontisticaSchema = new Schema({
idapp: {
type: String,
},
attivo: {
type: Boolean,
},
code: {
type: String,
},
@@ -55,7 +58,7 @@ module.exports.executeQueryTable = function (idapp, params) {
};
module.exports.findAllIdApp = async function (idapp) {
const myfind = { idapp };
const myfind = { idapp, attivo: true };
return await Scontistica.find(myfind);
};