From 59636a786950b890c713994d007aa55dcba726ae Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 8 May 2024 16:36:21 +0200 Subject: [PATCH] Add TimeRange --- etc/psa_tariff/tariff01.json | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/etc/psa_tariff/tariff01.json b/etc/psa_tariff/tariff01.json index 06cf80a..0af367c 100644 --- a/etc/psa_tariff/tariff01.json +++ b/etc/psa_tariff/tariff01.json @@ -32,6 +32,23 @@ "pme_label": "steps" } ], + "TimeRange" : [ + { + "time_range_id": 1, + "time_range_from": "18:00:00", + "time_range_to": "08:00:00" + }, + { + "time_range_id": 2, + "time_range_from": "08:00:00", + "time_range_to": "18:00:00" + }, + { + "time_range_id": 3, + "time_range_from": "08:00:00", + "time_range_to": "18:00:00" + } + ], "PaymentOption": [ { "pop_id": 1049, @@ -45,10 +62,12 @@ "pop_max_price": 500, "pop_min_price": 0, "pop_carry_over": 1, + "pop_carry_over_time_range": 1, + "pop_carry_over_start_time_range": 2, + "pop_carry_over_end_time_range": 3, "pop_daily_card_price": 500, - "pop_business_hours": 128, - "pop_business_hours_new": 163584, - "comment_1": "163584 = 0x27F00 = 10|0111|1111|0000|0000 -> all days with restricted hours == 128" + "pop_business_hours": 163584, + "comment_1": "163584 = 0x27F00 = 10|0111|1111|0000|0000 -> all days with restricted hours" } ], "PaymentRate": [