fix(dirty): сделал костыль, чтобы передавать цену за кастомные тарифы

This commit is contained in:
skeris 2024-03-12 21:26:45 +03:00
parent 84b6119ae7
commit 1aedb13c06

@ -15,9 +15,8 @@ func TariffsToProductInformations(tarrifs []models.Tariff) []*discount.ProductIn
}
if tariff.Price != 0 {
for i := range productInformations {
productInformations[i].Price = tariff.Price
}
price := tariff.Price
productInformations[len(productInformations) - 1].Usage = &price
}
}