Miglioramenti compilazione automatica import FE
This commit is contained in:
parent
7ace1d6bdd
commit
c5f2ee82f8
|
@ -67,13 +67,15 @@ function compile(btn) {
|
|||
|
||||
$("select[name^=iva]").each(function(){
|
||||
var aliquota = $(this).closest("tr").find("[id^=aliquota]").text();
|
||||
if (response.iva[aliquota] !== undefined){
|
||||
if (response.iva[aliquota] !== undefined && !$(this).val()){
|
||||
$(this).selectSet(response.iva[aliquota].id);
|
||||
}
|
||||
});
|
||||
|
||||
$("select[name^=conto]").each(function(){
|
||||
if (!$(this).val()){
|
||||
$(this).selectSetNew(response.conto.id, response.conto.descrizione);
|
||||
}
|
||||
});
|
||||
},
|
||||
error: function(data) {
|
||||
|
|
Loading…
Reference in New Issue