compute_product_price(): add handling for FOOD_STAMP

This commit is contained in:
Gerhard Hoffmann 2024-02-28 12:06:02 +01:00
parent df16bd7f9c
commit a744a1ebb3

View File

@ -85,6 +85,8 @@ int CALCULATE_LIBRARY_API compute_product_price(Configuration const *cfg, PERMIT
// [[fallthrough]]; // [[fallthrough]];
case PERMIT_TYPE::DAY_TICKET_TEEN: case PERMIT_TYPE::DAY_TICKET_TEEN:
// [[fallthrough]]; // [[fallthrough]];
case PERMIT_TYPE::FOOD_STAMP:
// [[fallthrough]];
case PERMIT_TYPE::DAY_TICKET_ADULT: { case PERMIT_TYPE::DAY_TICKET_ADULT: {
std::optional<QVector<ATBTariffProduct>> products = cfg->getTariffProductForProductId(permitType); std::optional<QVector<ATBTariffProduct>> products = cfg->getTariffProductForProductId(permitType);
if (products) { if (products) {