1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-15 08:56:20 +01:00

Fix ajax pagamenti

This commit is contained in:
MatteoPistorello 2021-09-08 10:40:18 +02:00
parent e2ef356f7c
commit 4a0a746ab2

View File

@ -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);