Miglioramenti minori
This commit is contained in:
parent
38d5fc0c87
commit
2f441fe415
|
@ -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>';
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue