Skip to content

Commit

Permalink
fix: importazione ricevute FE
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Jan 14, 2025
1 parent b105886 commit ca2b161
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/receiptFE/src/Ricevuta.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function saveAllegato($codice)
$module = $fattura->getModule();
$upload_esistente = $module
->files($fattura->id)
->where('original_name', $filename)
->where('original_name', $filename.'.xml')
->first();
if (!empty($upload_esistente)) {
return $upload_esistente;
Expand All @@ -171,7 +171,7 @@ public function saveAllegato($codice)
$upload = Upload::build($this->file, [
'id_module' => $module->id,
'id_record' => $fattura->id,
'original' => $filename,
'original' => $filename.'.xml',
], tr('Ricevuta _TYPE_', [
'_TYPE_' => $codice,
]), tr('Fattura Elettronica'));
Expand Down
6 changes: 5 additions & 1 deletion update/2_6_2.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
-- RIpristino tipo text alla descrizione articolo
ALTER TABLE `mg_articoli_lang` CHANGE `title` `title` TEXT NOT NULL;
ALTER TABLE `mg_articoli_lang` CHANGE `title` `title` TEXT NOT NULL;

-- Correzione per file senza estensione
UPDATE zz_files SET filename = CONCAT(filename, 'xml') WHERE filename LIKE '%.';
UPDATE `zz_files` SET name = 'Ricevuta RC' WHERE `name` LIKE 'Ricevuta R';

0 comments on commit ca2b161

Please sign in to comment.