From bfa0d110750028af4ed6a9e86cb3657382557335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Thu, 12 Jan 2012 18:10:52 +0100 Subject: [PATCH] Simplified invoice template. --- lib/invoice/db/invoices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/invoice/db/invoices.py b/lib/invoice/db/invoices.py index 5c55f92..0a43bf9 100644 --- a/lib/invoice/db/invoices.py +++ b/lib/invoice/db/invoices.py @@ -13,12 +13,12 @@ class Invoices(List): When editing data files, you can use the following directives: - Item -- price, followed by ':' and description + Item -- price, followed by ':', optional whitespace and item description Due -- Due date YYYY-MM-DD Note -- a note at the and of the invoice """ data_template = """\ -Item: 0000: Item summary +Item: """ _directory = "income" _regex = re.compile("^(?P[0-9]{8})-(?P[0-9]{3})-(?P[a-z0-9-]+)$")