1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-30 15:35:09 +01:00

fix: importazione ricevute FE

This commit is contained in:
valentina 2025-01-14 14:44:50 +01:00
parent b10588669d
commit ca2b16103b
2 changed files with 7 additions and 3 deletions

View File

@ -161,7 +161,7 @@ class Ricevuta
$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;
@ -171,7 +171,7 @@ class Ricevuta
$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'));

View File

@ -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';