From a5cd854f363b65d3a42ff9556b8fd6a742230535 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 13 Dec 2024 12:38:07 +0100 Subject: [PATCH] Add special handling for 2025-01-01: 2 hours are free of charge. --- etc/psa_tariff/tariff01.json | 83 +++++++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/etc/psa_tariff/tariff01.json b/etc/psa_tariff/tariff01.json index 27f4277..7e1df49 100644 --- a/etc/psa_tariff/tariff01.json +++ b/etc/psa_tariff/tariff01.json @@ -1,6 +1,6 @@ { "Project" : "Kleipeda", - "Version" : "2.0.0-2024-10-01T09:32:12+02:00", + "Version" : "2.1.0-2024-12-13T12:36:12+02:00", "Info" : "Red Zone (center)", "Currency": [ { @@ -2314,6 +2314,87 @@ } }], "Wednesday" : [{ + "2025-01-01" : { + "payment_settings" : [ + { + "min_time" : 12, + "max_time" : 840, + "max_price": 2100, + "min_price": 30 + } + ], + "prepaid_settings" : [ + { + "prepaid_ranges" : [ + { + "prepaid_id" : 1, + "prepaid_duration": 480, + "prepaid_start" : "00:00:00", + "prepaid_end": "08:00:00" + }, + { + "prepaid_id" : 2, + "prepaid_duration": 120, + "prepaid_start" : "12:00:00", + "prepaid_end": "14:00:00" + }, + { + "prepaid_id" : 3, + "prepaid_duration": 240, + "prepaid_start" : "20:00:00", + "prepaid_end": "24:00:00" + } + ] + } + ], + "carry_over_settings" : [ + { + "carry_over_ranges" : [ + { + "carry_over_id" : 1, + "carry_over_if": "always", + "carry_over_duration": 480, + "carry_over_start" : "00:00:00", + "carry_over_end": "08:00:00" + }, + { + "carry_over_id" : 2, + "carry_over_if": "always", + "carry_over_duration": 120, + "carry_over_start" : "12:00:00", + "carry_over_end": "14:00:00" + }, + { + "carry_over_id" : 3, + "carry_over_if": "always", + "carry_over_duration": 240, + "carry_over_start" : "20:00:00", + "carry_over_end": "24:00:00" + } + ] + } + ], + "service_settings" : [ + { + "service_ranges" : [ + { + "service_id" : 1, + "service_duration": 240, + "service_start" : "08:00:00", + "service_end": "12:00:00" + }, + { + "service_id" : 2, + "service_duration": 360, + "service_start" : "14:00:00", + "service_end": "20:00:00" + } + ] + } + ], + "out_of_service_settings" : [ + ] + }, "default" : { "payment_settings" : [ {