Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
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
Madhuk
vtigercrm
Commits
94b3227d
Commit
94b3227d
authored
2 years ago
by
Prasad
Browse files
Options
Downloads
Patches
Plain Diff
Fixed: String * String disallowed in PHP 8.1
parent
6d354896
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/fields/CurrencyField.php
+3
-3
3 additions, 3 deletions
include/fields/CurrencyField.php
with
3 additions
and
3 deletions
include/fields/CurrencyField.php
+
3
−
3
View file @
94b3227d
...
...
@@ -415,7 +415,7 @@ class CurrencyField {
public
static
function
convertFromDollar
(
$amount
,
$conversionRate
)
{
$currencyField
=
new
CurrencyField
(
$amount
);
return
round
(
$amount
*
$conversionRate
,
$currencyField
->
maxNumberOfDecimals
);
return
round
(
(
float
)
$amount
*
(
float
)
$conversionRate
,
$currencyField
->
maxNumberOfDecimals
);
}
/** This function returns the amount converted from master currency.
...
...
@@ -423,7 +423,7 @@ class CurrencyField {
* param $crate - conversion rate.
*/
public
static
function
convertFromMasterCurrency
(
$amount
,
$conversionRate
)
{
return
$amount
*
$conversionRate
;
return
(
float
)
$amount
*
(
float
)
$conversionRate
;
}
function
currencyDecimalFormat
(
$value
,
$user
=
null
){
...
...
@@ -464,4 +464,4 @@ class CurrencyField {
}
}
}
?>
\ No newline at end of file
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment