mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
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(){
|
||||
$(this).selectSetNew(response.conto.id, response.conto.descrizione);
|
||||
if (!$(this).val()){
|
||||
$(this).selectSetNew(response.conto.id, response.conto.descrizione);
|
||||
}
|
||||
});
|
||||
},
|
||||
error: function(data) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user