1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00
This commit is contained in:
Thomas Zilio
2018-07-04 17:56:51 +02:00
parent ebfa9a743b
commit 50f5bb9d59
5 changed files with 23 additions and 14 deletions

View File

@@ -139,7 +139,7 @@ if ($dir == 'entrata') {
<div class="row">
<div class="col-md-3">
{[ "type": "select", "label": "<?php echo tr('Tipo fattura'); ?>", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, descrizione FROM co_tipidocumento WHERE dir='<?php echo $dir; ?>'", "value": "$idtipodocumento$" ]}
{[ "type": "select", "label": "<?php echo tr('Tipo fattura'); ?>", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, descrizione FROM co_tipidocumento WHERE dir='<?php echo $dir; ?>' AND (reversed = 0 OR id = <?php echo $records[0]['idtipodocumento']; ?>)", "value": "$idtipodocumento$", "readonly": <?php echo intval($records[0]['stato'] != 'Bozza' && $records[0]['stato'] != 'Annullata'); ?> ]}
</div>
<div class="col-md-3">
@@ -382,10 +382,10 @@ include $docroot.'/modules/fatture/row-list.php';
<?php
if(!empty($note_accredito)){
if (!empty($note_accredito)) {
echo '
<div class="alert alert-info text-center">'.tr('Note di accredito collegate').':';
foreach($note_accredito as $nota){
foreach ($note_accredito as $nota) {
$text = tr('Rif. fattura _NUM_ del _DATE_', [
'_NUM_' => $nota['numero'],
'_DATE_' => Translator::dateToLocale($nota['data']),