Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoPistorello committed Dec 13, 2021
2 parents 469e0ac + fc5b2d0 commit d5025d0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/articoli/src/Import/CSV.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,13 @@ public function import($record)
$id_sede = $sede->id;
}

$qta_movimento = $qta_registrata - $giacenze[$id_sede][0];
if( isset($record['qta']) ) {
$qta_movimento = $qta_registrata - $giacenze[$id_sede][0];

$articolo->movimenta($qta_movimento, tr('Movimento da importazione'), new Carbon(), false, [
'idsede' => $id_sede,
]);
$articolo->movimenta($qta_movimento, tr('Movimento da importazione'), new Carbon(), false, [
'idsede' => $id_sede,
]);
}

//Gestione immagine
if (!empty($url)) {
Expand Down

0 comments on commit d5025d0

Please sign in to comment.