Skip to content

Commit

Permalink
Fixed bug changing business document's warehouse.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoRazorX committed May 14, 2020
1 parent 84d48a8 commit a2566cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Core/Model/Base/BusinessDocumentLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ public function transfer($fromCodalmacen, $toCodalmacen)
if ($fromStock->loadFromCode('', $where)) {
$this->applyStockChanges($this->previousData['actualizastock'], $this->previousData['cantidad'] * -1, $fromStock);
$fromStock->save();
} else {
/// no need to transfer
return;
}

/// find the new stock
Expand Down

0 comments on commit a2566cc

Please sign in to comment.