Hello
You've all realized now how I loved billing !
Couple of issues that I've spotted.... context: postpaid billing, start with a fresh/new postpaid customer account, credit limit high enough. Make a few calls. run the a2billing_batch_billing script. Customer credit should oscillate between 0 and a negative value, at which point a billing is run, the invoice is paid, and the credit returns to 0, and it starts all over again.
I1) a receipt is generated for the calls, as well as as an invoice. However, the invoice value is based on the negative credit outstanding, while the receipt sums the calls since last billing - retrieved from cc_billing_customer that includes hh:mm:ss, to current day, AT 00:00, ie no hh:mm:ss included. So, the calls between cc_billing_customer.date at 00:00 and cc_billing_customer.date actual hh:mm:ss are ignored
-> this should have minimal impact, as you would run your billing batch early morning, but still !
-> I still havent figured out the use of receipts in the postpaid billing, so impact is not so important I guess
I2) Rounding on display
When displaying the invoice (A2B_invoice_view.php), the item line is displayed with rounding, using PHP round function. However, the subtotal excl vat, and the total incl. vat use the CEIL function... .therefore, there is often a 1c difference between the two lines. Its not much, but it is just enough to shed doubt in the customer's mind !
any reason to use these different calculations ?
many thanks for your views on this,
jean