Formating of invoices were not displaying properly. In addition, legal requirements for invoicing were not present. DID billing SQL select did not work properly
** Note ** No data was harmed in this exercise (it's all display work)
Changes
Added a function in Misc.php to format totals to two decimal places
Added new section [invoice] in Defines.php to allow entry of invoice company name, address, vat number etc (these should be in the DB, but I don't have the skills to write forms)
New section of a2billing.conf
[invoice]
;Information to be displayed on Invoices emailed to customers
my_company_name = My Company
my_company_reg =
my_company_vat_num = VAT: 999 996 3760 88
my_company_add1 = Line 1
my_company_add2 = Line 2
my_company_add3 = Line 3
my_company_add4 = Line 4
Files affected
/A2Billing_UI/lib/invoice.php
/A2Billing_UI/lib/Misc.php
/A2Billing_UI/lib/defines.php
/A2Billing_UI/Public/A2B_entity_invoice_detail.php
regards