2018-09-18 15:57:55 +02:00
|
|
|
<?php
|
2020-09-07 15:04:06 +02:00
|
|
|
/*
|
|
|
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
|
|
|
* Copyright (C) DevCode s.n.c.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2018-09-18 15:57:55 +02:00
|
|
|
|
2018-12-07 15:30:08 +01:00
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
|
2018-11-30 15:33:25 +01:00
|
|
|
use Plugins\ExportFE\FatturaElettronica;
|
2018-11-22 15:34:44 +01:00
|
|
|
|
2018-09-18 15:57:55 +02:00
|
|
|
try {
|
2018-11-22 15:34:44 +01:00
|
|
|
$fattura_pa = new FatturaElettronica($id_record);
|
2018-09-18 15:57:55 +02:00
|
|
|
} catch (UnexpectedValueException $e) {
|
|
|
|
}
|
|
|
|
|
2020-09-23 13:36:37 +02:00
|
|
|
$upload_dir = base_dir().'/'.FatturaElettronica::getDirectory();
|