mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-11 00:50:37 +01:00
22 lines
447 B
PHP
22 lines
447 B
PHP
|
<?php
|
||
|
|
||
|
include_once __DIR__.'/../../core.php';
|
||
|
|
||
|
use Plugins\ImportFE\FatturaElettronica;
|
||
|
use Plugins\ImportFE\Interaction;
|
||
|
|
||
|
if (isset($id_record)) {
|
||
|
$files = Interaction::fileToImport();
|
||
|
$file = $files[$id_record - 1];
|
||
|
|
||
|
$filename = $file['name'];
|
||
|
|
||
|
try {
|
||
|
$fattura_pa = FatturaElettronica::manage($filename);
|
||
|
$anagrafica = $fattura_pa->findAnagrafica();
|
||
|
|
||
|
$record = $file;
|
||
|
} catch (Exception $e) {
|
||
|
}
|
||
|
}
|