forked from phillmv/thymer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_config.yaml
50 lines (40 loc) · 1.64 KB
/
sample_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# The URI to your ical calendar; filenames or gcalendar private https urls
:calendar_uri: https://www.google.com/calendar/ical/etc
# Your info:
:name: "Phillip Mendonça-Vieira"
:contact: "(416) 555-5555 • [email protected] • 42 Adams Ave, M1A1A1 Toronto, ON"
# Your client's info:
:client_name: Awesome Client
:client_contact: 192 Foobar Avenue, Suite 404, M1A1A1 Toronto, ON
# How many dollars per hour do you charge?
:unit_rate: 25
# Are you paid a retainer? How many hrs/billing cycle?
# If you think that this is something that could be handled better then
# you are correct! Comment these out if they don't apply to you.
# WARN: Now discouraged.
:discount_unit_rate: 20
:discount_hours: 60
# Do you charge a sales tax like HST or VAT?
:vat_rate: 0.13
:vat_name: HST
# template file that is going to be used
:template: template/template.haml
# soon to disappear
:template_suffix: xml
# the included freshbooks XML template uses this:
:client_id: 1234
:first_name: Foo
:last_name: Bar
:p_street1: 1234 Foobar
:p_city: Toronto
:p_state: Ontario
:p_country: Canada
:p_code: M1A1A1
# hahahaha oh MAN this is gross. This is a lambda for generating 6 digit
# SHA1s to serve as an unique invoice number. Change at your peril.
# Used to make more sense back when this was a Ruby Hash named @variables
:invoice_number: lambda { SHA1.new("#{@variables[:name]}-#{@variables[:client_name]}:#{@variables[:start_date]}-#{@variables[:end_date]}").to_s[0..6] }
# Here is an example of yet another ridiculous, yet perhaps more useful
# lambda { `ls output|grep html|wc -l`.to_i + 1 }
# Which increments a number depending on the number of invoices
# previously generated.