Skip to content
Snippets Groups Projects
Commit 350dad74 authored by Satish's avatar Satish
Browse files

#291 - Into Products and Services multi-currencies is not loaded and dropped on save

parent 52b4af29
No related branches found
No related tags found
No related merge requests found
......@@ -926,6 +926,8 @@ function getPriceDetailsForProduct($productid, $unit_price, $available='availabl
if ($currency_id == $product_currency_id) {
$is_basecurrency = true;
}
$price_details[$i]['check_value'] = true;
if ($cur_value == null || $cur_value == '') {
$price_details[$i]['check_value'] = false;
if ($unit_price != null) {
......@@ -933,9 +935,8 @@ function getPriceDetailsForProduct($productid, $unit_price, $available='availabl
} else {
$cur_value = '0';
}
} else if($is_basecurrency){
$price_details[$i]['check_value'] = true;
}
$price_details[$i]['curvalue'] = CurrencyField::convertToUserFormat($cur_value, null, true);
$price_details[$i]['conversionrate'] = $actual_conversion_rate;
$price_details[$i]['is_basecurrency'] = $is_basecurrency;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment