Seleziona l'ordine GAS e compare sulla email

This commit is contained in:
Surya Paolo
2023-12-24 00:55:49 +01:00
parent 0eb287db06
commit f0495d93b3
5 changed files with 72 additions and 7 deletions

View File

@@ -178,6 +178,11 @@ module.exports.findAllIdApp = async function (idapp) {
as: 'gasordine'
}
},
{
$match: {
'gasordine.active': true
}
},
{
$lookup: {
from: 'scontisticas',
@@ -369,6 +374,11 @@ module.exports.getTotalOrderById = async function (id) {
as: 'gasordine'
}
},
{
$match: {
'gasordine.active': true
}
},
{
$lookup: {
from: 'scontisticas',