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:
@@ -170,6 +170,12 @@ switch (filter('op')) {
|
||||
break;
|
||||
|
||||
case 'compile':
|
||||
if (empty($anagrafica)) {
|
||||
echo json_encode([]);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$fatture = $anagrafica->fattureAcquisto()
|
||||
->contabile()
|
||||
->orderByDesc('created_at')
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user