Miglioramenti minori

This commit is contained in:
Thomas Zilio 2019-09-16 11:59:26 +02:00
parent 38d5fc0c87
commit 2f441fe415
2 changed files with 6 additions and 5 deletions

View File

@ -80,21 +80,21 @@ if (!empty($list)) {
<td class="text-right">'.moneyFormat($element['amount']).'</td>
<td class="text-center">
<button type="button" class="btn btn-info" onclick="process_fe(this, \''.$name.'\')">
<button type="button" class="btn btn-info tip" onclick="process_fe(this, \''.$name.'\')" title="'.tr('Segna la fattura come processata').'">
<i class="fa fa-upload"></i>
</button>';
}
if (file_exists($directory.'/'.$name)) {
echo '
<button type="button" class="btn btn-primary" onclick="download_fe(this, \''.$element['id'].'\')">
<button type="button" class="btn btn-primary tip" onclick="download_fe(this, \''.$element['id'].'\')" title="'.tr('Scarica la fattura').'">
<i class="fa fa-download"></i>
</button>';
}
echo '
<button type="button" class="btn btn-warning" '.((!extension_loaded('openssl') && substr(strtolower($name), -4) == '.p7m') ? 'disabled' : '').' onclick="import_fe(this, \''.$name.'\', \''.$data.'\')">
<button type="button" class="btn btn-warning tip" '.((!extension_loaded('openssl') && substr(strtolower($name), -4) == '.p7m') ? 'disabled' : '').' onclick="import_fe(this, \''.$name.'\', \''.$data.'\')" title="'.tr('Importa la fattura nel gestionale').'">
<i class="fa fa-cloud-download"></i> '.tr('Importa').'
</button>
</td>
@ -213,4 +213,5 @@ function download_fe(button, file_id) {
}
start_local_datatables();
init();
</script>';

View File

@ -85,8 +85,8 @@ class Interaction extends Services
public static function processInvoice($filename)
{
$response = static::request('POST', 'fattura_xml_salvata', [
'filename' => $filename,
]);
'filename' => $filename,
]);
$body = static::responseBody($response);