From 4a0a746ab205b42ddf3fe854dd679d9af94d7d20 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Wed, 8 Sep 2021 10:40:18 +0200 Subject: [PATCH] Fix ajax pagamenti --- modules/pagamenti/ajax/select.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/pagamenti/ajax/select.php b/modules/pagamenti/ajax/select.php index 669c630cc..ce6edb5b3 100755 --- a/modules/pagamenti/ajax/select.php +++ b/modules/pagamenti/ajax/select.php @@ -40,6 +40,8 @@ switch ($resource) { $id_azienda = setting('Azienda predefinita'); $where[] = 'banca_vendite.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) { $filter[] = 'co_pagamenti.id = '.prepare($element);