Skip to content

Commit 9e7fd9c

Browse files
feat: input data inventario
1 parent 7789380 commit 9e7fd9c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

modules/movimenti/actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
case 'salva_inventario':
6666
$idsede = post('idsede');
67-
$data = post('data') ?: date('Y-m-d');
67+
$data = post('data');
6868
$righe = post('righe');
6969

7070
if (empty($righe) || !is_array($righe)) {

modules/movimenti/modals/inventario.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
<div class="col-md-5">
3030
{[ "type": "select", "label": "<?php echo tr('Sede'); ?>", "name": "idsede", "ajax-source": "sedi_azienda", "value": "0", "required": 1, "id": "sede-inventario" ]}
3131
</div>
32+
33+
<div class="col-md-5">
34+
{[ "type": "text", "label": "<?php echo tr('Data'); ?>", "name": "data", "value": "-now-", "required": 1 ]}
35+
</div>
3236
</div>
3337

3438
<div class="row">

0 commit comments

Comments
 (0)