mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 08:56:48 +01:00
Fix minore stampa registri iva
This commit is contained in:
parent
dc513dc29a
commit
7ee71b8fde
@ -48,7 +48,7 @@ FROM co_movimenti
|
||||
INNER JOIN an_anagrafiche ON an_anagrafiche.idanagrafica = co_documenti.idanagrafica
|
||||
WHERE dir = '.prepare($dir).' AND idstatodocumento NOT IN (SELECT id FROM co_statidocumento WHERE descrizione="Bozza" OR descrizione="Annullata") AND is_descrizione = 0 AND co_documenti.data_competenza >= '.prepare($date_start).' AND co_documenti.data_competenza <= '.prepare($date_end).' AND '.((!empty($id_sezionale)) ? 'co_documenti.id_segment = '.prepare($id_sezionale).'' : '1=1').'
|
||||
GROUP BY co_documenti.id, co_righe_documenti.idiva
|
||||
ORDER BY CAST(co_documenti.numero AS UNSIGNED), co_documenti.numero_esterno';
|
||||
ORDER BY CAST(co_documenti.numero_esterno AS UNSIGNED)';
|
||||
$records = $dbo->fetchArray($query);
|
||||
|
||||
if (empty(get('notdefinitiva'))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user