mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-28 08:40:41 +01:00
Fix esportazione xml FE
This commit is contained in:
parent
8e721ae142
commit
f62946ddfa
@ -201,15 +201,15 @@ switch (post('op')) {
|
||||
$failed[] = $fattura->numero_esterno;
|
||||
} else {
|
||||
if ($r['dir'] == 'entrata') {
|
||||
$src = $fe->getFilename();
|
||||
$dst = $src;
|
||||
$dst = $fe->getFilename();
|
||||
$src = $dbo->selectOne('zz_files', 'filename', ['original' => $dst])['filename'];
|
||||
} else {
|
||||
$src = basename($fattura->uploads()->where('name', 'Fattura Elettronica')->first()->filepath);
|
||||
$dst = basename($fattura->uploads()->where('name', 'Fattura Elettronica')->first()->original_name);
|
||||
}
|
||||
|
||||
$file = slashes($module->upload_directory.'/'.$src);
|
||||
$dest = slashes($dir.'/tmp/'.$dst);
|
||||
$dest = slashes($dir.'tmp/'.$dst);
|
||||
|
||||
$result = copy($file, $dest);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user