chunkSplit a 1000 caratteri per descrizione righe FE e replicazione del nodo DettaglioLinee
This commit is contained in:
parent
d71eeb2f1c
commit
e1e9d5a9a3
|
@ -38,10 +38,14 @@ function initCharCounter(input) {
|
|||
postText: '',
|
||||
showMaxLength: true,
|
||||
placement: 'bottom-right-inside',
|
||||
utf8: true,
|
||||
utf8: false,
|
||||
appendToParent: true,
|
||||
alwaysShow: false,
|
||||
threshold: 150
|
||||
alwaysShow: true,
|
||||
//threshold: 150,
|
||||
warningClass: "small form-text text-muted",
|
||||
limitReachedClass: "small form-text text-warning",
|
||||
limitExceededClass: "small form-text text-danger",
|
||||
|
||||
});
|
||||
|
||||
} else {
|
||||
|
@ -52,12 +56,16 @@ function initCharCounter(input) {
|
|||
limitReachedClass: "help-block text-danger",
|
||||
showMaxLength: false,
|
||||
placement: 'bottom-right-inside',
|
||||
utf8: true,
|
||||
utf8: false,
|
||||
appendToParent: true,
|
||||
alwaysShow: true
|
||||
});
|
||||
}
|
||||
|
||||
$input.on('autosize:resized', function() {
|
||||
$(this).trigger('maxlength.reposition');
|
||||
});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -1337,6 +1337,12 @@ class FatturaElettronica
|
|||
})->aliquota;
|
||||
|
||||
foreach ($righe as $idx => $riga) {
|
||||
|
||||
// Righe - Descrizione della causale del documento (2.2.1.4)
|
||||
$descrizioni = self::chunkSplit($riga['descrizione'], 1000);
|
||||
|
||||
foreach ($descrizioni as $descrizione) {
|
||||
|
||||
$dati_aggiuntivi = $riga->dati_aggiuntivi_fe;
|
||||
|
||||
$dettaglio = [
|
||||
|
@ -1360,8 +1366,7 @@ class FatturaElettronica
|
|||
}
|
||||
}
|
||||
|
||||
// Non ammesso ’
|
||||
$descrizione = $riga['descrizione'];
|
||||
//$descrizione = $riga['descrizione'];
|
||||
|
||||
// Aggiunta dei riferimenti ai documenti
|
||||
if (setting('Riferimento dei documenti in Fattura Elettronica') && $riga->hasOriginalComponent()) {
|
||||
|
@ -1495,6 +1500,7 @@ class FatturaElettronica
|
|||
'DettaglioLinee' => $dettaglio,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
// Riepiloghi per IVA per percentuale
|
||||
$riepiloghi_percentuale = $righe->filter(function ($item, $key) {
|
||||
|
|
Loading…
Reference in New Issue