dates1967 / simpleinvoices

Automatically exported from code.google.com/p/simpleinvoices
GNU General Public License v3.0
0 stars 0 forks source link

Allow template selection with biller #222

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.this is an enhancement
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

I personally need two completely different templates for invoicing. One for 
customers (with tax etc.) and one to claim refund of expenses, since I am 
actively engaged in voluntary work. What I did is create two billers for myself 
and use custom_field1 to define the template. This is then used in export.php 
around line 220:
$template = $defaults['template'];
(strlen($biller['custom_field1'])==0) ? $templatePath = 
"./templates/invoices/${template}/template.tpl" : $templatePath = 
"./templates/invoices/${template}/".$biller['custom_field1'];

I think it would make sense to introduce an extra field "tempate" in biller.

Original issue reported on code.google.com by its.we...@googlemail.com on 16 Feb 2012 at 5:43