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

Bugfix autocompilazione FE

This commit is contained in:
Thomas Zilio
2020-03-13 10:27:20 +01:00
parent 5fbf9cc7e5
commit 71cf1bf993
3 changed files with 15 additions and 7 deletions

View File

@@ -29,7 +29,9 @@ function compile(btn) {
},
success: function(response) {
var data = JSON.parse(response);
console.log(data);
if (data.length == 0){
return;
}
$("#id_tipo").selectSet(data.id_tipo);
$("#pagamento").selectSetNew(data.pagamento.id, data.pagamento.descrizione);