generated from PenaSide/GolangTemplate
fix: add workaround for custom prices handling
This commit is contained in:
parent
dedfe552a5
commit
721ed64fdc
@ -14,11 +14,11 @@ func TariffsToProductInformations(tarrifs []models.Tariff) []*discount.ProductIn
|
|||||||
productInformations = append(productInformations, PrivilegeToProductInformation(privilege))
|
productInformations = append(productInformations, PrivilegeToProductInformation(privilege))
|
||||||
}
|
}
|
||||||
|
|
||||||
if tariff.Price != 0 {
|
if tariff.Price != 0 {
|
||||||
for i := range productInformations {
|
for i := range productInformations {
|
||||||
productInformations[i].Price = tariff.Price
|
productInformations[i].Price = tariff.Price
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return productInformations
|
return productInformations
|
||||||
|
Loading…
Reference in New Issue
Block a user