mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Fix selezione articoli senza movimenti
This commit is contained in:
parent
2d15bafe65
commit
af1535f784
@ -84,7 +84,7 @@ switch ($resource) {
|
||||
|
||||
// Filtro articolo solo per documenti di vendita
|
||||
if ($superselect['dir'] == 'entrata' && isset($superselect['idsede_partenza'])) {
|
||||
$where[] = '(idsede_azienda IS NULL AND idsede_controparte IS NULL) OR (idsede_azienda='.prepare($superselect['idsede_partenza']).' OR idsede_controparte='.prepare($superselect['idsede_partenza']).')';
|
||||
$where[] = '((idsede_azienda='.prepare($superselect['idsede_partenza']).' OR idsede_azienda IS NULL) OR (idsede_controparte='.prepare($superselect['idsede_partenza']).' OR idsede_controparte IS NULL))';
|
||||
}
|
||||
|
||||
if (!empty($search)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user