Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
kkhelifa-opendsi committed Mar 20, 2023
1 parent 55c33a7 commit b049e27
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2940,6 +2940,7 @@ public function updateRemoteStockProduct($remote_id, $product)

$stock_by_location = array();
foreach ($remote_warehouses as $remote_code => $info) {
if (!$info['warehouse_id'] > 0) continue;
$stock = isset($product->stock_warehouse[$info['warehouse_id']]->real) ? $product->stock_warehouse[$info['warehouse_id']]->real : 0;
$total_stock += $stock;
$stock_by_location[$info['remote_id']] = [
Expand Down

0 comments on commit b049e27

Please sign in to comment.