1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-01 16:36:45 +01:00

Stile del codice

This commit is contained in:
Dasc3er 2021-03-01 16:01:19 +01:00
parent ed4502ed10
commit 290fd56847
6 changed files with 9 additions and 9 deletions

View File

@ -108,7 +108,7 @@ echo '
<div class="col-md-6">';
$idcontratto_riga = $dbo->fetchOne('SELECT id FROM co_promemoria WHERE idintervento='.prepare($id_record))['id'];
if (!empty($record['idordine'])) {
echo '
'.Modules::link('Ordini cliente', $record['idordine'], null, null, 'class="pull-right"');

View File

@ -45,4 +45,4 @@ switch ($resource) {
}
break;
}
}

View File

@ -285,4 +285,4 @@ if ($diff > 0) {
echo '
<div class="text-center">
'.Prints::getLink('Consuntivo ordine', $id_record, 'btn-primary', tr('Stampa consuntivo')).'
</div>';
</div>';

View File

@ -23,10 +23,10 @@ use Common\Components\Component;
use Common\Document;
use Modules\Anagrafiche\Anagrafica;
use Modules\DDT\DDT;
use Modules\Interventi\Intervento;
use Traits\RecordTrait;
use Traits\ReferenceTrait;
use Util\Generator;
use Modules\Interventi\Intervento;
class Ordine extends Document
{

View File

@ -108,7 +108,7 @@ foreach ($id_scadenze as $id_scadenza) {
}
// Fatture
$numeri = [];
$numeri_fatture = [];
$counter = 0;
$is_ultimo_importo_avere = false;
@ -131,7 +131,7 @@ foreach ($id_documenti as $id_documento) {
$id_anagrafica_movimenti = null;
}
$numeri[] = !empty($fattura['numero_esterno']) ? $fattura['numero_esterno'] : $fattura['numero'];
$numeri_fatture[] = !empty($fattura['numero_esterno']) ? $fattura['numero_esterno'] : $fattura['numero'];
$is_nota_credito = $tipo->reversed;
$is_importo_avere = ($dir == 'entrata' && !$is_nota_credito && !$is_insoluto) || ($dir == 'uscita' && ($is_nota_credito || $is_insoluto));
@ -203,12 +203,12 @@ if ($numero_documenti + $numero_scadenze > 1) {
$descrizione = $is_ultimo_importo_avere ? tr('Inc. fatture _NAME_ num. _LIST_') : tr('Pag. fatture _NAME_ num. _LIST_');
$descrizione = replace($descrizione, [
'_NAME_' => $anagrafica_movimenti->ragione_sociale,
'_LIST_' => implode(', ', $numeri),
'_LIST_' => implode(', ', $numeri_fatture),
]);
} else {
$descrizione = $is_ultimo_importo_avere ? tr('Inc. fatture num. _LIST_') : tr('Pag. fatture _NAME_ num. _LIST_');
$descrizione = replace($descrizione, [
'_LIST_' => implode(', ', $numeri),
'_LIST_' => implode(', ', $numeri_fatture),
]);
}
} elseif ($numero_documenti == 1) {

View File

@ -25,7 +25,7 @@ echo '
<div class="text-center">
<h4 class="text-bold">'.tr('Consuntivo', [], ['upper' => true]).'</h4>
<b>'.tr('Ordine num. _NUM_ del _DATE_', [
'_NUM_' => (!empty($documento['numero_esterno'])?$documento['numero_esterno']:$documento['numero']),
'_NUM_' => (!empty($documento['numero_esterno']) ? $documento['numero_esterno'] : $documento['numero']),
'_DATE_' => Translator::dateToLocale($documento['data']),
], ['upper' => true]).'</b>
</div>