Skip to content

Commit 59b4a98

Browse files
committed
fix: generazione FE con riferimenti
1 parent b79aada commit 59b4a98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/exportFE/src/FatturaElettronica.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ protected static function getDatiBeniServizi($fattura)
14341434
// Aggiunta dei riferimenti ai documenti
14351435
if (setting('Riferimento dei documenti in Fattura Elettronica') == 0) {
14361436
$pos = strpos((string) $descrizione, 'Rif.');
1437-
if ($pos !== false) {
1437+
if ($pos !== false && $pos > 0) {
14381438
$descrizione = substr((string) $descrizione, 0, $pos);
14391439
}
14401440
}

0 commit comments

Comments
 (0)