generated from PenaSide/GolangTemplate
fix: add workaround for custom prices handling
This commit is contained in:
parent
780f614aa4
commit
dedfe552a5
@ -13,6 +13,12 @@ func TariffsToProductInformations(tarrifs []models.Tariff) []*discount.ProductIn
|
||||
for _, privilege := range tariff.Privileges {
|
||||
productInformations = append(productInformations, PrivilegeToProductInformation(privilege))
|
||||
}
|
||||
|
||||
if tariff.Price != 0 {
|
||||
for i := range productInformations {
|
||||
productInformations[i].Price = tariff.Price
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return productInformations
|
||||
|
BIN
main
Executable file
BIN
main
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user