1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 00:06:14 +01:00

Movimento di carico in fase di aggiunta rapida articolo

This commit is contained in:
Beppe 2020-10-15 12:24:22 +02:00
parent f3519d75a8
commit c38e1738ce
2 changed files with 11 additions and 2 deletions

View File

@ -55,6 +55,11 @@ switch (post('op')) {
$articolo->setPrezzoVendita(post('prezzo_vendita'), post('idiva_vendita'));
$articolo->save();
if( !empty(post('qta')) ){
$data_movimento = new Carbon();
$articolo->movimenta(post('qta'), tr('Carico manuale'), $data_movimento->format('Y-m-d'), true);
}
$id_record = $articolo->id;
if (isAjaxRequest()) {

View File

@ -58,11 +58,15 @@ include_once __DIR__.'/../../core.php';
</div>
<div class="box-body">
<div class="row">
<div class="col-md-6">
<div class="col-md-4">
{[ "type": "number", "label": "<?php echo tr('Prezzo di acquisto'); ?>", "name": "prezzo_acquisto", "icon-after": "<?php echo currency(); ?>" ]}
</div>
<div class="col-md-6">
<div class="col-md-4">
{[ "type": "number", "label": "<?php echo tr('Quantità iniziale'); ?>", "name": "qta", "decimals": "qta" ]}
</div>
<div class="col-md-4">
{[ "type": "number", "label": "<?php echo tr('Soglia minima quantità'); ?>", "name": "threshold_qta", "decimals": "qta", "min-value": "undefined" ]}
</div>
</div>