Add a config option to map tax rates to GnuCash tax table names

This commit is contained in:
Paul van Tilburg 2016-03-06 14:57:10 +01:00
parent f87954b73d
commit fad9076913
2 changed files with 10 additions and 6 deletions

View File

@ -13,6 +13,9 @@
# The VAT rate
#vat_rate: 21.0
# VAT rate to Gnucash tax table name mapping
#gnucash_vat_table: {}
# The invoice ID format (see strftime(3) and %N for the sequence number)
#invoice_id: %Y%N

View File

@ -162,12 +162,13 @@ module StopTime::Models
# The default configuration. Note that the configuration of the root
# will be merged with this configuration.
DefaultConfig = { "invoice_id" => "%Y%N",
"invoice_template" => "invoice",
"hourly_rate" => 20.0,
"time_resolution" => 1,
"date_new_entry" => "today",
"vat_rate" => 21.0 }
DefaultConfig = { "gnucash_vat_table" => {},
"invoice_id" => "%Y%N",
"invoice_template" => "invoice",
"hourly_rate" => 20.0,
"time_resolution" => 1,
"date_new_entry" => "today",
"vat_rate" => 21.0 }
# Creates a new configuration object and loads the configuation.
# by reading the file +config.yaml+ on disk (see {ConfigFile}, parsing