From b182711f390936b9c79328fc3a228180f2f15e6c Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 25 Oct 2014 21:35:53 +0200 Subject: [PATCH] Add configuration for time resolution rounding --- config.yaml.example | 3 +++ stoptime.rb | 1 + 2 files changed, 4 insertions(+) diff --git a/config.yaml.example b/config.yaml.example index e2311be..53557af 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -1,5 +1,8 @@ # Default configuration for Stop… Camping Time! +# Time resolution in minutes +#time_resolution: 1 + # The default hourly rate #hourly_rate: 20.0 diff --git a/stoptime.rb b/stoptime.rb index e8c1444..845e770 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -144,6 +144,7 @@ module StopTime::Models DefaultConfig = { "invoice_id" => "%Y%N", "invoice_template" => "invoice", "hourly_rate" => 20.0, + "time_resolution" => 1, "vat_rate" => 21.0 } # Creates a new configuration object and loads the configuation.