Dear all,
Thanks for a very nice and professional looking application.
Over the last year or so, i have made a few modifications to
accomodate for wishes from a user for which i setup simpleinvoices.
First i made the default template for printing invoices match a
standard form used for invoices in norway. It looks like the form in
the image on this page:
http://code.google.com/p/finfaktura/wiki/PythonF60
Then there was a request to have independent invoice numbers for each
of the operators. I implemented this on rare occations when i had time
available over the last year and finished it now during christmas. It
is probably done in a not so elegant way, but it seems to work. I
guess there might be much simpler ways to achieve the same thing and
in that case i would be very happe to be informed.
The way i implemented it.. i added a new table: si_biller_index,
similar in function to si_index, just with one index per operator. I
had this index updated in much the same way as for si_index when a new
invoice is created and i added a new column, invoice_number, to
si_invoices where this per operator index was inserted.
I then made sure that the invoice_number was shown in the manage view
of the invoices module and also that it was used in the default
template for printing.
I post this here in the hope to get feedback about better ways to do
this and in case there are other people that would like to do similar
things.
Im not sure how to best post patches, so i put it on pastebin for now:
http://pastebin.com/jJMSSz5M
Best regards,
Oystein S. Haaland