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;
|
$id_record = $fattura->id;
|
||||||
|
|
||||||
flash()->info(tr('Aggiunta fattura numero _NUM_!', [
|
flash()->info(tr('Fattura aggiunta correttamente!'));
|
||||||
'_NUM_' => $fattura->numero,
|
|
||||||
]));
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -138,9 +138,7 @@ switch (filter('op')) {
|
||||||
|
|
||||||
case 'oauth2':
|
case 'oauth2':
|
||||||
$oauth2 = $account->oauth2;
|
$oauth2 = $account->oauth2;
|
||||||
|
redirect(base_path().'/oauth2.php?id='.$oauth2->id);
|
||||||
$redirect = base_path().'/oauth2.php?id='.$oauth2->id;
|
|
||||||
redirect($redirect);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,15 @@ foreach ($fields as $key => $field) {
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -196,6 +196,10 @@ switch ($operazione) {
|
||||||
$pianificazione->fattura()->associate($fattura);
|
$pianificazione->fattura()->associate($fattura);
|
||||||
$pianificazione->save();
|
$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;
|
break;
|
||||||
|
|
||||||
case 'add_fattura_multipla':
|
case 'add_fattura_multipla':
|
||||||
|
@ -250,8 +254,11 @@ switch ($operazione) {
|
||||||
}
|
}
|
||||||
|
|
||||||
flash()->info(tr('Rate fatturate correttamente!'));
|
flash()->info(tr('Rate fatturate correttamente!'));
|
||||||
|
database()->commitTransaction();
|
||||||
|
redirect(base_path().'/controller.php?id_module='.Modules::get('Fatture di vendita')['id']);
|
||||||
|
exit();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
redirect(base_path().'/controller.php?id_module=14');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,6 @@ echo
|
||||||
</div>
|
</div>
|
||||||
</div>';
|
</div>';
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
'<div class="row">
|
'<div class="row">
|
||||||
<div class="col-md-12 text-right">
|
<div class="col-md-12 text-right">
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
'07' => 'Luglio',
|
'07' => 'Luglio',
|
||||||
'08' => 'Agosto',
|
'08' => 'Agosto',
|
||||||
'09' => 'Settembre',
|
'09' => 'Settembre',
|
||||||
'11' => 'Ottobre',
|
'10' => 'Ottobre',
|
||||||
'11' => 'Novembre',
|
'11' => 'Novembre',
|
||||||
'12' => 'Dicembre',
|
'12' => 'Dicembre',
|
||||||
];
|
];
|
||||||
|
|
|
@ -37,17 +37,13 @@ $mesi = [
|
||||||
];
|
];
|
||||||
|
|
||||||
$pianificazioni = Pianificazione::doesntHave('fattura')
|
$pianificazioni = Pianificazione::doesntHave('fattura')
|
||||||
->orderBy('data_scadenza', 'asc')
|
|
||||||
->whereHas('contratto', function ($q) {
|
->whereHas('contratto', function ($q) {
|
||||||
$q->whereHas('stato', function ($q) {
|
$q->whereHas('stato', function ($q) {
|
||||||
$q
|
$q
|
||||||
->where('is_fatturabile', 1)
|
->where('is_fatturabile', 1)
|
||||||
->where('descrizione', '<>', 'Concluso');
|
->where('descrizione', '<>', 'Concluso');
|
||||||
});
|
});
|
||||||
})
|
})->get();
|
||||||
->whereYear('co_fatturazione_contratti.data_scadenza', date('Y'))
|
|
||||||
->whereMonth('co_fatturazione_contratti.data_scadenza', date('m'))
|
|
||||||
->get();
|
|
||||||
|
|
||||||
|
|
||||||
if ($pianificazioni->isEmpty()) {
|
if ($pianificazioni->isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue