01-10-2014, 10:58 PM
I create a Purchase order but its total amount shows wrong. it should be Rs. 102600.00 but it shows Rs. 12600.00 file attached please help us.
thank you!
thank you!
function locale_number_format($Number, $DecimalPlaces=0) {
global $DecimalPoint;
global $ThousandsSeparator;
if ($_SESSION['Language']=='hi_IN.utf8' OR $_SESSION['Language']=='en_IN.utf8'){
return indian_number_format(floatval($Number),$DecimalPlaces);
} else {
if (!is_numeric($DecimalPlaces) AND $DecimalPlaces == 'Variable'){
$DecimalPlaces = mb_strlen($Number) - mb_strlen(intval($Number));
if ($DecimalPlaces > 0){
$DecimalPlaces--;
}
}
return number_format(floatval($Number),$DecimalPlaces,$DecimalPoint,$ThousandsSeparator);
}
}
function locale_number_format($Number, $DecimalPlaces=0) {
global $DecimalPoint;
global $ThousandsSeparator;
if (!is_numeric($DecimalPlaces) AND $DecimalPlaces == 'Variable'){
$DecimalPlaces = mb_strlen($Number) - mb_strlen(intval($Number));
if ($DecimalPlaces > 0){
$DecimalPlaces--;
}
}
return number_format(floatval($Number),$DecimalPlaces,$DecimalPoint,$ThousandsSeparator);
}