Hi
I have some problems with crediting invoices with Credit_Invoice.php
I am a little bit twisted in my head right now trying to find out why.
SQL error message:
Code:
Database SQL Failure : The following SQL to insert the debtor transaction taxes record was used
INSERT INTO debtortranstaxes( debtortransid, taxauthid, taxamount) VALUES('135', '', '-162.085')
This is how $_SESSION['CreditItems' . $identifier]->LineItems[0]->Taxes object looks like before Line 238 which i suspects mess up $TaxLineTotal (adds a stdClass Object)
Code:
Array
(
[1] => Tax Object
(
[TaxCalculationOrder] => 0
[TaxAuthID] => 13
[TaxAuthDescription] => UK VAT
[TaxRate] => 0.08
[TaxOnTax] => 0
[TaxGLCode] => 2300
)
and after:
Code:
Array
(
[1] => Tax Object
(
[TaxCalculationOrder] => 0
[TaxAuthID] => 13
[TaxAuthDescription] => UK VAT
[TaxRate] => 0.08
[TaxOnTax] => 0
[TaxGLCode] => 2300
)
[0] => stdClass Object
(
[TaxRate] => 0
)
)
..or is it me that havent set up Taxes correct?
Jan