mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-08 23:38:09 +01:00
Fix selezione anagrafica per agente
This commit is contained in:
parent
a2f26fef36
commit
f50c2964b2
@ -71,11 +71,13 @@ switch ($resource) {
|
|||||||
$where[] = "an_tipianagrafiche.descrizione='Cliente'";
|
$where[] = "an_tipianagrafiche.descrizione='Cliente'";
|
||||||
if (empty($filter)) {
|
if (empty($filter)) {
|
||||||
$where[] = 'an_anagrafiche.deleted_at IS NULL';
|
$where[] = 'an_anagrafiche.deleted_at IS NULL';
|
||||||
|
|
||||||
|
if (!empty($filter_agente)) {
|
||||||
|
$where[] = 'idagente = '.Auth::user()['idanagrafica'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty(!$filter_agente)) {
|
|
||||||
$where[] = 'idagente = '.Auth::user()['idanagrafica'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($search)) {
|
if (!empty($search)) {
|
||||||
$search_fields[] = 'ragione_sociale LIKE '.prepare('%'.$search.'%');
|
$search_fields[] = 'ragione_sociale LIKE '.prepare('%'.$search.'%');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user