Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
517
Issue boards
Milestones
Wiki
Code
Merge requests
84
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
vtiger
vtigercrm
Merge requests
!1188
Fixes
#853
: Changed PHP_ROUND_HALF_DOWN to PHP_ROUND_HALF_UP
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixes
#853
: Changed PHP_ROUND_HALF_DOWN to PHP_ROUND_HALF_UP
yogeshwar/vtigercrm:292821
into
master
Overview
0
Commits
1
Changes
1
Merged
yogeshwar
requested to merge
yogeshwar/vtigercrm:292821
into
master
10 months ago
Overview
0
Commits
1
Changes
1
Expand
👍
0
👎
0
Merge request reports
Viewing commit
a037d164
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
a037d164
Fixes: Changed PHP_ROUND_HALF_DOWN to PHP_ROUND_HALF_UP
· a037d164
yogeshwar
authored
10 months ago
include/utils/EditViewUtils.php
+
1
−
1
Options
@@ -470,7 +470,7 @@ function getAssociatedProducts($module, $focus, $seid = '', $refModuleName = fal
$taxamount
=
(
$subTotal
-
$finalDiscount
)
*
$tax_percent
/
100
;
list
(
$before_dot
,
$after_dot
)
=
explode
(
'.'
,
$taxamount
);
if
(
$after_dot
[
$no_of_decimal_places
]
==
5
)
{
$taxamount
=
round
(
$taxamount
,
$no_of_decimal_places
,
PHP_ROUND_HALF_
DOWN
);
$taxamount
=
round
(
$taxamount
,
$no_of_decimal_places
,
PHP_ROUND_HALF_
UP
);
}
else
{
$taxamount
=
number_format
(
$taxamount
,
$no_of_decimal_places
,
'.'
,
''
);
}
Loading