1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-16 19:40:44 +01:00

Correzione su importazione ricevuta

This commit is contained in:
Dasc3er 2020-10-30 15:30:24 +01:00
parent 9686fb3d5d
commit 05445f6fcd
2 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ switch (filter('op')) {
$type = filter('type');
$cambia_stato = $type != 'download';
$fattura = Ricevuta::process($name, false);
$fattura = Ricevuta::process($name, $cambia_stato);
$numero_esterno = $fattura ? $fattura->numero_esterno : null;

View File

@ -130,12 +130,12 @@ function gestioneRicevuta(button, name, type) {
if (response.fattura) {
swal({
title: "'.tr('Importazione completata!').'",
title: type === "download" ? "'.tr('Ricevuta scaricata!').'" : "'.tr('Importazione della ricevuta completata!').'",
type: "success",
});
} else {
swal({
title: "'.tr('Importazione fallita!').'",
title: "'.tr('Operazione fallita!').'",
type: "error",
});
}