Parsing of Customer in tariff-file.

This commit is contained in:
Gerhard Hoffmann 2024-01-30 10:44:58 +01:00
parent 8aa9aa497a
commit e1ab060dc3

View File

@ -267,6 +267,11 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
}
break;
case MemberType::CustomerType:
if (QString(inner_obj_name) == QString("cust_id")) {
if (k->value.IsInt()) {
Customer.cust_id = k->value.GetInt();
}
} else
if (QString(inner_obj_name) == QString("cust_type")) {
if (k->value.IsInt()) {
int cust_type = k->value.GetInt();