Compare commits
No commits in common. "f66a9bd6795e6641b4aa2db58e7343d805cac9b2" and "c80fff2291ea60d29510fd92e12ff02b32cd489a" have entirely different histories.
f66a9bd679
...
c80fff2291
|
@ -58,7 +58,9 @@ switch (post('op')) {
|
||||||
|
|
||||||
$id_record = $fattura->id;
|
$id_record = $fattura->id;
|
||||||
|
|
||||||
flash()->info(tr('Fattura aggiunta correttamente!'));
|
flash()->info(tr('Aggiunta fattura numero _NUM_!', [
|
||||||
|
'_NUM_' => $fattura->numero,
|
||||||
|
]));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,9 @@ 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,15 +67,7 @@ foreach ($fields as $key => $field) {
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
'.input([
|
{[ "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!').'" ]}
|
||||||
'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,10 +196,6 @@ 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':
|
||||||
|
@ -254,11 +250,8 @@ 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,6 +93,7 @@ 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">
|
||||||
|
@ -105,4 +106,4 @@ echo
|
||||||
echo
|
echo
|
||||||
'<script>
|
'<script>
|
||||||
$(document).ready(init)
|
$(document).ready(init)
|
||||||
</script>';
|
</script>';
|
|
@ -14,7 +14,7 @@
|
||||||
'07' => 'Luglio',
|
'07' => 'Luglio',
|
||||||
'08' => 'Agosto',
|
'08' => 'Agosto',
|
||||||
'09' => 'Settembre',
|
'09' => 'Settembre',
|
||||||
'10' => 'Ottobre',
|
'11' => 'Ottobre',
|
||||||
'11' => 'Novembre',
|
'11' => 'Novembre',
|
||||||
'12' => 'Dicembre',
|
'12' => 'Dicembre',
|
||||||
];
|
];
|
||||||
|
|
|
@ -37,13 +37,17 @@ $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()) {
|
||||||
|
@ -377,4 +381,4 @@ var mesi = {
|
||||||
};
|
};
|
||||||
|
|
||||||
init();
|
init();
|
||||||
</script>';
|
</script>';
|
Loading…
Reference in New Issue