generated from PenaSide/GolangTemplate
fix(dirty): сделал костыль, чтобы передавать цену за кастомные тарифы
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user