Skip to content
Snippets Groups Projects
Commit a789be5f authored by geroge's avatar geroge
Browse files

HF: fix serviceCalculateRentGuaranteeInsurance

parent 17423322
Branches release/v0.37
Tags b0.37.5
No related merge requests found
......@@ -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.GetRental() == nil {
if prop.GetConditions() == nil {
return nil
}
price := prop.GetRental().GetRentalPrice().GetValue()
price := prop.GetConditions().GetPrice()
switch {
case price >= 1 && price <= 500:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment