Add a config option to map tax rates to GnuCash tax table names
This commit is contained in:
parent
f87954b73d
commit
fad9076913
2 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
13
stoptime.rb
13
stoptime.rb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue