mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Bugfix connessione importFE
This commit is contained in:
parent
82405ba64c
commit
b48bdddab0
@ -48,14 +48,6 @@ switch (filter('op')) {
|
||||
case 'generate':
|
||||
$filename = post('filename');
|
||||
|
||||
//Processo il file ricevuto
|
||||
$process_result = Interaction::processXML($filename);
|
||||
if ($process_result != '') {
|
||||
flash()->error($process_result);
|
||||
redirect(ROOTDIR.'/controller.php?id_module='.$id_module);
|
||||
exit;
|
||||
}
|
||||
|
||||
$fattura_pa = new FatturaElettronica($filename);
|
||||
|
||||
$id_record = $fattura_pa->saveFattura(post('pagamento'), post('id_segment'), post('id_tipo'));
|
||||
@ -76,6 +68,16 @@ switch (filter('op')) {
|
||||
|
||||
$fattura_pa->delete();
|
||||
|
||||
// Processo il file ricevuto
|
||||
if (Interaction::isEnabled()) {
|
||||
$process_result = Interaction::processXML($filename);
|
||||
if ($process_result != '') {
|
||||
flash()->error($process_result);
|
||||
redirect(ROOTDIR.'/controller.php?id_module='.$id_module);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
redirect(ROOTDIR.'/editor.php?id_module='.$id_module.'&id_record='.$id_record);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user