Fix ajax ordini cliente

This commit is contained in:
MatteoPistorello 2022-01-11 16:32:55 +01:00
parent 3804208470
commit 1aaf3f2ded
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ switch ($resource) {
if (empty($elements)) {
$where[] = 'an_anagrafiche.idanagrafica='.prepare($superselect['idanagrafica']);
$stato = !empty($superselect['stato']) ? $superselect['stato'] : 'completato';
$stato = !empty($superselect['stato']) ? $superselect['stato'] : 'is_fatturabile';
$where[] = 'idstatoordine IN (SELECT `id` FROM `or_statiordine` WHERE '.$stato.' = 1)';
}
}