fix: add workaround for custom prices handling

This commit is contained in:
skeris 2023-11-16 01:46:13 +03:00
parent dedfe552a5
commit 721ed64fdc

@ -14,11 +14,11 @@ func TariffsToProductInformations(tarrifs []models.Tariff) []*discount.ProductIn
productInformations = append(productInformations, PrivilegeToProductInformation(privilege))
}
if tariff.Price != 0 {
for i := range productInformations {
productInformations[i].Price = tariff.Price
}
}
if tariff.Price != 0 {
for i := range productInformations {
productInformations[i].Price = tariff.Price
}
}
}
return productInformations