mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-22 22:37:37 +01:00
Aggiunta settaggio informazioni aggiuntive per tutte le righe
This commit is contained in:
parent
7ac68d1b72
commit
ea0be05548
@ -134,9 +134,17 @@ if (in_array($module['name'], ['Ordini cliente', 'Ordini fornitore'])) {
|
||||
<div class="col-md-4">
|
||||
{[ "type": "date", "label": "'.tr('Data prevista evasione').'", "name": "data_evasione", "value": "'.$result['data_evasione'].'" ]}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{[ "type": "checkbox", "label": "'.tr('Applica a tutte le righe').'", "name": "data_evasione_all", "value": "" ]}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
{[ "type": "checkbox", "label": "'.tr('Articolo confermato').'", "name": "confermato", "value": "'.$confermato.'" ]}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{[ "type": "checkbox", "label": "'.tr('Applica a tutte le righe').'", "name": "confermato_all", "value": "" ]}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
|
@ -186,6 +186,25 @@ switch (post('op')) {
|
||||
}
|
||||
|
||||
$articolo->save();
|
||||
|
||||
// Impostare data evasione su tutte le righe
|
||||
if(post('data_evasione_all') == 1){
|
||||
$righe = $ordine->getRighe();
|
||||
|
||||
foreach($righe as $riga){
|
||||
$riga->data_evasione = post('data_evasione') ?: null;
|
||||
$riga->save();
|
||||
}
|
||||
}
|
||||
// Impostare confermato su tutte le righe
|
||||
if(post('confermato_all') == 1){
|
||||
$righe = $ordine->getRighe();
|
||||
|
||||
foreach($righe as $riga){
|
||||
$riga->confermato = post('confermato') ?: 0;
|
||||
$riga->save();
|
||||
}
|
||||
}
|
||||
|
||||
if (post('idriga') != null) {
|
||||
flash()->info(tr('Articolo modificato!'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user