1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-27 08:47:39 +01:00

Fix allegati ricorsivi per FE

This commit is contained in:
Thomas Zilio 2019-07-12 16:08:15 +02:00
parent 2d2685d428
commit d43d9f19b3
2 changed files with 2 additions and 2 deletions

View File

@ -623,7 +623,7 @@ if ($dir == 'uscita' && $fattura->isFE()) {
<?php <?php
if ($dir == 'entrata') { if ($dir == 'entrata') {
echo ' echo '
<div class="alert alert-info text-center">'.tr('Per allegare un documento alla fattura elettronica caricare il file PDF specificando come categoria "Fattura Elettronica"').'.</div>'; <div class="alert alert-info text-center">'.tr('Per allegare un documento alla fattura elettronica caricare il file PDF specificando come categoria "Allegati Fattura Elettronica"').'.</div>';
} }
echo ' echo '

View File

@ -1169,7 +1169,7 @@ class FatturaElettronica
// Inclusione // Inclusione
foreach ($allegati as $allegato) { foreach ($allegati as $allegato) {
if ($allegato['category'] == 'Fattura Elettronica' && $allegato['name'] != 'Stampa allegata') { if ($allegato['category'] == 'Allegati Fattura Elettronica') {
$file = DOCROOT.'/'.$directory.'/'.$allegato['filename']; $file = DOCROOT.'/'.$directory.'/'.$allegato['filename'];
$attachments[] = [ $attachments[] = [