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:
parent
2d2685d428
commit
d43d9f19b3
@ -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 '
|
||||||
|
@ -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[] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user