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 b049e27 commit 082ea31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2940,7 +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;
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 082ea31

Please sign in to comment.