2.9. Invoices

It's possible to issue invoices in either automatic or manual way. Manual invoices creation is possible in 'New Invoice' module from 'Finances' menu. Automatic issue might be helpful while you have legal contracts with your users. In this case invoices are created by lms-payments script or almsd daemon.

For proper work of printouts you need to setup custom options in [invoices] section of lms.ini:

Generated invoices can be viewed in two ways: by clicking on printer icon, in balance sheet page or by clicking 'Invoices List' in 'Finances' menu. In second case, is also possible to filter invoices for printing.

2.9.1. HTML

Invoices are printed in html format by default using provided template. In [invoices] section you can also configure:

Generated invoice in HTML format consist of originals and copies, which are separated by CSS page-break markups, so every modern browser that supports CSS should print many-page invoices correctly. This behavior was tested on Microsoft Internet Explorer 6.0, Opera 7.02 and Mozilla 1.3.

Note

Almost every internet browser has printing configuration, where functions like header and footer or URL printing can be disabled.

2.9.2. PDF

It's possible to create invoices as PDF files. Setting option type in [invoices] section to 'pdf' will force invoice being created in PDF instead of html. Option template_file has the same meaning, with one difference, that it might take predefined values: 'standard' - basic invoice (invoice.html equivalent) and 'FT-0100' - invoice adjusted for printing on FT-0100 paper including payment form. You can set template_file option for php file name, but this feature is meant for advanced users as it requires you to create more complicated php file than the one used with html invoices Smarty template.

Data for payment form printouts is stored in [finances] section of lms.ini file. That is:
name - seller name
shortname - short seller name
address - seller address
zip - seller postal code
city - seller city
account - banking account number