Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Extras
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
mashplace
backend
Extras
Commits
a789be5f
Commit
a789be5f
authored
2 years ago
by
geroge
Browse files
Options
Downloads
Patches
Plain Diff
HF: fix serviceCalculateRentGuaranteeInsurance
parent
17423322
Branches
release/v0.37
Tags
b0.37.5
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
internal/service/render.go
+2
-2
2 additions, 2 deletions
internal/service/render.go
with
2 additions
and
2 deletions
internal/service/render.go
+
2
−
2
View file @
a789be5f
...
...
@@ -320,11 +320,11 @@ func (srv *serviceImpl) serviceCalculateDeposit(prop *extras.Property, m *model.
}
func
(
srv
*
serviceImpl
)
serviceCalculateRentGuaranteeInsurance
(
prop
*
extras
.
Property
,
m
*
model
.
Service
)
error
{
if
prop
.
Get
Rental
()
==
nil
{
if
prop
.
Get
Conditions
()
==
nil
{
return
nil
}
price
:=
prop
.
Get
Rental
()
.
GetRentalPrice
()
.
GetValu
e
()
price
:=
prop
.
Get
Conditions
()
.
GetPric
e
()
switch
{
case
price
>=
1
&&
price
<=
500
:
...
...
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