Handling for pop_carry_over_traget.

This commit is contained in:
Gerhard Hoffmann 2024-05-07 14:59:00 +02:00
parent de6f263817
commit 4d5583df2d
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ public:
pop_min_price = 0;
pop_max_price = 0;
pop_carry_over = -1;
pop_carry_over_target = false;
pop_carry_over_time_range_id = -1;
pop_carry_over_start_time_range = -1;
pop_carry_over_end_time_range = -1;
@ -43,6 +44,7 @@ public:
double pop_min_price;
double pop_max_price;
int pop_carry_over;
bool pop_carry_over_target;
int pop_carry_over_time_range_id;
int pop_carry_over_start_time_range;
int pop_carry_over_end_time_range;

View File

@ -486,6 +486,11 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
}
}
}
} else if (strcmp(inner_obj_name, "pop_carry_over_target") == 0) {
if (k->value.IsBool()) {
bool const v = k->value.GetBool();
this->currentPaymentOptions.last().pop_carry_over_target = v;
}
}
break;
case MemberType::DurationType: