Skip to content

Commit

Permalink
finish fix (Dolibarr#31203)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-Ngr committed Oct 18, 2024
1 parent 9fa0894 commit 4c941e8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions htdocs/product/stock/replenish.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,9 @@
// TODO Get desc in language of thirdparty
}

// If we use multicurrency
if (isModEnabled('multicurrency') && !empty($productsupplier->fourn_multicurrency_code) && $productsupplier->fourn_multicurrency_code != $conf->currency) {
$line->multicurrency_code = $productsupplier->fourn_multicurrency_code;
$line->fk_multicurrency = $productsupplier->fourn_multicurrency_id;
$line->multicurrency_subprice = $productsupplier->fourn_multicurrency_unitprice;
}

$line->tva_tx = $productsupplier->vatrate_supplier;
$tva = $line->tva_tx / 100;

// BEGIN EASYA urgent change
// If we use multicurrency
if (isModEnabled('multicurrency') && !empty($productsupplier->fourn_multicurrency_code) && $productsupplier->fourn_multicurrency_code != $conf->currency) {
$line->multicurrency_code = $productsupplier->fourn_multicurrency_code;
Expand All @@ -216,7 +208,6 @@
$line->multicurrency_total_tva = $line->multicurrency_total_ht * $tva;
$line->multicurrency_total_ttc = $line->multicurrency_total_ht + $line->multicurrency_total_tva;
}
// END EASYA urgent change

$line->subprice = $productsupplier->fourn_pu;
$line->total_ht = $productsupplier->fourn_pu * $qty;
Expand Down

0 comments on commit 4c941e8

Please sign in to comment.