Skip to content

Commit e96e4c6

Browse files
committed
fix: lettura cartella allegati fe
1 parent 86a7896 commit e96e4c6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plugins/exportFE/src/FatturaElettronica.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,8 +1713,9 @@ protected static function getAllegati($fattura)
17131713
$attachments = [];
17141714

17151715
// Informazioni sul modulo
1716-
$id_module = Module::where('name', 'Fatture di vendita')->first()->id;
1717-
$directory = \Uploads::getDirectory($id_module);
1716+
$module = Module::where('name', 'Fatture di vendita')->first();
1717+
$id_module = $module->id;
1718+
$directory = 'files/'.$module->attachments_directory;
17181719

17191720
// Allegati
17201721
$allegati = \Uploads::get([

0 commit comments

Comments
 (0)