Parsing of Customer in tariff-file.
This commit is contained in:
parent
8aa9aa497a
commit
e1ab060dc3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user