summaryrefslogtreecommitdiff
path: root/data/settings.lua
diff options
context:
space:
mode:
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,
+}