fix: add workaround for custom prices handling

This commit is contained in:
skeris 2023-11-16 01:40:48 +03:00
parent 780f614aa4
commit dedfe552a5
2 changed files with 6 additions and 0 deletions

@ -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

Binary file not shown.