1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Aggiornamento API invio/ricezione FE

This commit is contained in:
Fabio Lovato
2019-01-22 08:59:11 +01:00
parent 858a3060bf
commit c29847d43f
5 changed files with 34 additions and 18 deletions

View File

@@ -176,12 +176,12 @@ echo '
data = JSON.parse(data);
buttonRestore(btn, restore);
if (data.sent) {
swal("'.tr('Fattura inviata!').'", "'.tr('Fattura inoltrata con successo').'", "success");
if (data.code == "200") {
swal("'.tr('Fattura inviata!').'", data.message, "success");
$(btn).attr("disabled", true).addClass("disabled");
} else {
swal("'.tr('Invio fallito').'", "'.tr("L'invio della fattura è fallito").'", "error");
swal("'.tr('Invio fallito').'", data.code + " - " + data.message, "error");
}
},
error: function(data) {