summaryrefslogtreecommitdiff
path: root/data/settings.lua
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2017-04-11 19:13:40 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2017-04-11 19:13:40 +0300
commit28f3ffb36f26c502f173338c2b3a7c8b2abb7d4f (patch)
tree4ddaebd32a0e025fc622739bee8b8e0a2afba646 /data/settings.lua
parent95ce3fc3f5a157a648b29a39c845a75be2a908b1 (diff)
downloadlaskuri-28f3ffb36f26c502f173338c2b3a7c8b2abb7d4f.tar.gz
laskuri-28f3ffb36f26c502f173338c2b3a7c8b2abb7d4f.zip
Convert input data to internal form before creating the invoices
Diffstat (limited to 'data/settings.lua')
-rw-r--r--data/settings.lua31
1 files changed, 31 insertions, 0 deletions
diff --git a/data/settings.lua b/data/settings.lua
index 0bd91ee..b62b0c9 100644
--- a/data/settings.lua
+++ b/data/settings.lua
@@ -5,4 +5,35 @@ business_id = ""
www_address = ""
iban = ""
bic_swift = ""
+
+-- How to format dates. See
+--
+-- http://www.lua.org/manual/5.3/manual.html#pdf-os.date
+--
+-- and
+--
+-- http://strftime.net
+--
+-- for documentation.
date_fmt = "%d.%m.%Y"
+
+-- Maps column names in your CSV to laskuri internal names. Substitute the
+-- values in double quotes with your own column names.
+columns = {
+ InvoiceNr = "InvoiceNr",
+ ReferenceNr = "ReferenceNr",
+ Price = "Price",
+ Amount = "Amount",
+ Unit = "Unit",
+ Customer = "Customer",
+ Product = "Product",
+ Vat = "Vat",
+}
+
+-- Defaults for columns.
+defaults = {
+ Price = 0,
+ Amount = 1,
+ Unit = "kpl",
+ Vat = 0,
+}