Fix ajax pagamenti

This commit is contained in:
MatteoPistorello 2021-09-08 10:40:18 +02:00
parent e2ef356f7c
commit 4a0a746ab2
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ switch ($resource) {
$id_azienda = setting('Azienda predefinita'); $id_azienda = setting('Azienda predefinita');
$where[] = 'banca_vendite.id_anagrafica = '.prepare($id_azienda); $where[] = 'banca_vendite.id_anagrafica = '.prepare($id_azienda);
$where[] = 'banca_acquisti.id_anagrafica = '.prepare($id_azienda); $where[] = 'banca_acquisti.id_anagrafica = '.prepare($id_azienda);
$where[] = 'banca_acquisti.deleted_at IS NULL';
$where[] = 'banca_vendite.deleted_at IS NULL';
foreach ($elements as $element) { foreach ($elements as $element) {
$filter[] = 'co_pagamenti.id = '.prepare($element); $filter[] = 'co_pagamenti.id = '.prepare($element);