diff --git a/include/utils/InventoryUtils.php b/include/utils/InventoryUtils.php index b3b6216b772917cca86a6a603f140e645f7c9651..64040ee9353e2df99316200e619b7ea0c647e9f5 100644 --- a/include/utils/InventoryUtils.php +++ b/include/utils/InventoryUtils.php @@ -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;