From 28f3ffb36f26c502f173338c2b3a7c8b2abb7d4f Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Tue, 11 Apr 2017 19:13:40 +0300 Subject: Convert input data to internal form before creating the invoices --- data/settings.lua | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'data') 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, +} -- cgit v1.2.3