Manage: TMS city configuration
Developers have created organization configurations with developer environments.
- Create new template-file
_template.json. Look for examples in https://github.com/Attracs/tms-booking/tree/master/server/data/config_org/
{
"home_towns": [
"091"
],
"towns_configs": [
{
"id": "091",
"town": "Helsinki"
}
]
}
2. Run 'generate-towns
"towns": [
{
"id": "091",
"name": {
"fi": "Helsinki",
"se": "Helsingfors"
},
"is_home_town": true,
"is_municipality": true,
"municipality_id": "091",
"areas": [
{
3. Add and edit name, uuid, settings, booking and billing settings to generated .json file. For example 1dfccc44-09c1-4e69-8554-3000cd2743f3.json:
{
"name": "(Organization name)",
"org_uuid": "(Organization UUID",
"booking": {
"booking_immediately_min": 60,
"pole_taxis_per_month": 4,
"transport_account_types": [
50,
51,
52,
53,
54,
55,
56,
3,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68
],
"transport_account_types_no_copay_global": [
2,
3,
58,
59,
67,
68
]
},
"billing": {
"trip_start_paid_max_kilometers": 30,
"booking_wait_paid_max_minutes": 15,
"customer_billing_types": [
{
"name": "vpl",
"cost_center": "200234251",
"account_number": "442004"
},
{
"name": "ehl",
"cost_center": "200234250",
"account_number": "442000"
},
{
"name": "shl",
"cost_center": "200221150",
"account_number": "442003"
},
{
"name": "shl_war_veteran",
"cost_center": "200221160",
"account_number": "442003"
},
{
"name": "shl_war_invalid",
"cost_center": "200221160",
"account_number": "442003"
}
]
4. Commit and push changes to github 5. Restart servers