Skip to content

Commit 0a7ae1e

Browse files
MatteoPistorelloPek5892
authored andcommitted
fix: blocco campi numero e data per fatture elettroniche importate
1 parent e5adb16 commit 0a7ae1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/fatture/edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,11 @@
373373
?>
374374

375375
<div class="col-md-2">
376-
{[ "type": "text", "label": "<?php echo $label; ?>", "required": "<?php echo ($dir == 'uscita') ? 1 : 0; ?>", "name": "numero_esterno", "class": "text-center", "value": "$numero_esterno$", "help": "<?php echo (empty($record['numero_esterno']) and $dir == 'entrata') ? tr('Il numero della fattura sarà generato automaticamente in fase di emissione.') : ''; ?>" ]}
376+
{[ "type": "text", "label": "<?php echo $label; ?>", "required": "<?php echo ($dir == 'uscita') ? 1 : 0; ?>", "name": "numero_esterno", "class": "text-center", "value": "$numero_esterno$", "help": "<?php echo (empty($record['numero_esterno']) and $dir == 'entrata') ? tr('Il numero della fattura sarà generato automaticamente in fase di emissione.') : ''; ?>", "disabled": "<?php echo ($dir == 'uscita' && $fattura->progressivo_invio ? 1 : 0); ?>" ]}
377377
</div>
378378

379379
<div class="col-md-2">
380-
{[ "type": "date", "label": "<?php echo tr('Data emissione'); ?>", "name": "data", "required": 1, "value": "$data$" ]}
380+
{[ "type": "date", "label": "<?php echo tr('Data emissione'); ?>", "name": "data", "required": 1, "value": "$data$", "disabled": "<?php echo ($dir == 'uscita' && $fattura->progressivo_invio ? 1 : 0); ?>" ]}
381381
</div>
382382

383383
<div class="col-md-2" <?php echo ($dir == 'entrata') ? 'hidden' : ''; ?>>

0 commit comments

Comments
 (0)