diff --git a/modules/segmenti/actions.php b/modules/segmenti/actions.php index c82feef9b..ab180613a 100755 --- a/modules/segmenti/actions.php +++ b/modules/segmenti/actions.php @@ -56,6 +56,7 @@ switch (post('op')) { 'predefined_accredito' => $predefined_accredito, 'predefined_addebito' => $predefined_addebito, 'autofatture' => post('autofatture'), + 'for_fe' => post('for_fe'), ], ['id' => $id_record]); // Aggiornamento dei permessi relativi diff --git a/modules/segmenti/ajax/select.php b/modules/segmenti/ajax/select.php index 860b1fb24..39983416f 100644 --- a/modules/segmenti/ajax/select.php +++ b/modules/segmenti/ajax/select.php @@ -25,6 +25,7 @@ switch ($resource) { $id_module = $superselect['id_module']; $is_fiscale = $superselect['is_fiscale']; $is_sezionale = $superselect['is_sezionale']; + $for_fe = $superselect['for_fe']; $escludi_id = $superselect['escludi_id']; if (isset($id_module)) { @@ -40,6 +41,10 @@ switch ($resource) { if ($is_sezionale != null) { $where[] = 'zz_segments.is_sezionale = '.prepare($is_sezionale); } + + if ($for_fe != null) { + $where[] = 'zz_segments.for_fe = '.prepare($for_fe); + } if ($escludi_id != null) { $where[] = 'zz_segments.id != '.prepare($escludi_id); diff --git a/modules/segmenti/edit.php b/modules/segmenti/edit.php index cdfd61c56..2914948ad 100755 --- a/modules/segmenti/edit.php +++ b/modules/segmenti/edit.php @@ -131,16 +131,20 @@ if ($record['is_sezionale']) {