Compare commits
9 Commits
c80fff2291
...
f66a9bd679
Author | SHA1 | Date |
---|---|---|
Pek5892 | f66a9bd679 | |
Pek5892 | 96d35e6e4f | |
Pek5892 | e4372c5f5d | |
MatteoPistorello | dfacbe277d | |
MatteoPistorello | 353e1fae9a | |
Pek5892 | 76d3642def | |
Pek5892 | 2b4943ac84 | |
Michel Oliverio | 55f440b312 | |
Michel Oliverio | dd56baaf6b |
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,15 @@ foreach ($fields as $key => $field) {
|
|||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{[ "type": "textarea", "label": "'.tr('Query prevista').'", "name": "query['.$key.']", "value": "'.prepareToField($field['query']).'", "readonly": "'.(!$editable).'", "required": "1", "help": "'.tr('Nome effettivo del campo sulla tabella oppure subquery che permette di ottenere il valore del campo').'.<br>'.tr('ATTENZIONE: utilizza sempre i caratteri < o > seguiti da spazio!').'" ]}
|
||||
'.input([
|
||||
'type' => 'textarea',
|
||||
'label' => tr('Query prevista'),
|
||||
'name' => 'query['.$key.']',
|
||||
'required' => 1,
|
||||
'readonly' => ''.(!$editable).'',
|
||||
'value' => prepareToField($field['query']),
|
||||
'help' => tr("Nome effettivo del campo sulla tabella oppure subquery che permette di ottenere il valore del campo').'.<br>'.tr('ATTENZIONE: utilizza sempre i caratteri < o > seguiti da spazio!"),
|
||||
]).'
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -93,7 +93,6 @@ echo
|
|||
</div>
|
||||
</div>';
|
||||
|
||||
|
||||
echo
|
||||
'<div class="row">
|
||||
<div class="col-md-12 text-right">
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
'07' => 'Luglio',
|
||||
'08' => 'Agosto',
|
||||
'09' => 'Settembre',
|
||||
'11' => 'Ottobre',
|
||||
'10' => 'Ottobre',
|
||||
'11' => 'Novembre',
|
||||
'12' => 'Dicembre',
|
||||
];
|
||||
|
|
|
@ -37,17 +37,13 @@ $mesi = [
|
|||
];
|
||||
|
||||
$pianificazioni = Pianificazione::doesntHave('fattura')
|
||||
->orderBy('data_scadenza', 'asc')
|
||||
->whereHas('contratto', function ($q) {
|
||||
$q->whereHas('stato', function ($q) {
|
||||
$q
|
||||
->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…
Reference in New Issue