mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-03 17:27:29 +01:00
Fix dichiarazione intento su data fattura
This commit is contained in:
parent
eb801d0fde
commit
1f1721db61
@ -342,8 +342,10 @@ switch ($resource) {
|
|||||||
$filter[] = 'id='.prepare($element);
|
$filter[] = 'id='.prepare($element);
|
||||||
}
|
}
|
||||||
|
|
||||||
$where[] = 'data_inizio < NOW()';
|
$where[] = '( '.prepare($superselect['data']).' BETWEEN data_inizio AND data_fine)';
|
||||||
$where[] = 'data_fine > NOW()';
|
|
||||||
|
//$where[] = 'data_inizio < NOW()';
|
||||||
|
//$where[] = 'data_fine > NOW()';
|
||||||
if (empty($filter)) {
|
if (empty($filter)) {
|
||||||
$where[] = 'deleted_at IS NULL';
|
$where[] = 'deleted_at IS NULL';
|
||||||
}
|
}
|
||||||
|
@ -353,7 +353,7 @@ elseif ($record['stato'] == 'Bozza') {
|
|||||||
if ($dir == 'entrata') {
|
if ($dir == 'entrata') {
|
||||||
echo '
|
echo '
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
{[ "type": "select", "label": "'.tr("Dichiarazione d'intento").'", "name": "id_dichiarazione_intento", "ajax-source": "dichiarazioni_intento", "select-options": {"idanagrafica": '.$record['idanagrafica'].'}, "value": "$id_dichiarazione_intento$" ]}
|
{[ "type": "select", "label": "'.tr("Dichiarazione d'intento").'", "name": "id_dichiarazione_intento", "ajax-source": "dichiarazioni_intento", "select-options": {"idanagrafica": '.$record['idanagrafica'].', "data": "'.$record['data'].'"},"value": "$id_dichiarazione_intento$" ]}
|
||||||
</div>';
|
</div>';
|
||||||
}
|
}
|
||||||
echo '
|
echo '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user