mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
dfacbe277d
@ -58,9 +58,7 @@ switch (post('op')) {
|
||||
|
||||
$id_record = $fattura->id;
|
||||
|
||||
flash()->info(tr('Aggiunta fattura numero _NUM_!', [
|
||||
'_NUM_' => $fattura->numero,
|
||||
]));
|
||||
flash()->info(tr('Fattura aggiunta correttamente!'));
|
||||
|
||||
break;
|
||||
|
||||
|
@ -138,9 +138,7 @@ switch (filter('op')) {
|
||||
|
||||
case 'oauth2':
|
||||
$oauth2 = $account->oauth2;
|
||||
|
||||
$redirect = base_path().'/oauth2.php?id='.$oauth2->id;
|
||||
redirect($redirect);
|
||||
redirect(base_path().'/oauth2.php?id='.$oauth2->id);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -196,6 +196,10 @@ switch ($operazione) {
|
||||
$pianificazione->fattura()->associate($fattura);
|
||||
$pianificazione->save();
|
||||
|
||||
flash()->info(tr('Rata fatturata correttamente!'));
|
||||
database()->commitTransaction();
|
||||
redirect(base_path().'/controller.php?id_module='.Modules::get('Fatture di vendita')['id'].'&id_record='.$fattura->id);
|
||||
exit();
|
||||
break;
|
||||
|
||||
case 'add_fattura_multipla':
|
||||
@ -250,8 +254,11 @@ switch ($operazione) {
|
||||
}
|
||||
|
||||
flash()->info(tr('Rate fatturate correttamente!'));
|
||||
database()->commitTransaction();
|
||||
redirect(base_path().'/controller.php?id_module='.Modules::get('Fatture di vendita')['id']);
|
||||
exit();
|
||||
break;
|
||||
|
||||
redirect(base_path().'/controller.php?id_module=14');
|
||||
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
'07' => 'Luglio',
|
||||
'08' => 'Agosto',
|
||||
'09' => 'Settembre',
|
||||
'11' => 'Ottobre',
|
||||
'10' => 'Ottobre',
|
||||
'11' => 'Novembre',
|
||||
'12' => 'Dicembre',
|
||||
];
|
||||
|
@ -44,10 +44,7 @@ $pianificazioni = Pianificazione::doesntHave('fattura')
|
||||
->where('is_fatturabile', 1)
|
||||
->where('descrizione', '<>', 'Concluso');
|
||||
});
|
||||
})
|
||||
->whereYear('co_fatturazione_contratti.data_scadenza', date('Y'))
|
||||
->whereMonth('co_fatturazione_contratti.data_scadenza', date('m'))
|
||||
->get();
|
||||
})->get();
|
||||
|
||||
|
||||
if ($pianificazioni->isEmpty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user