add_trans_tax_details(ST_SALESINVOICE, $invoice_no, $taxitem['tax_type_id'],
$taxitem['rate'], $invoice->tax_included, $prepaid_factor*$taxitem['Value'],
$taxitem['Net'], $ex_rate, $date_, $invoice->reference, TR_OUTPUT);
add_trans_tax_details(ST_SALESINVOICE, $invoice_no, $taxitem['tax_type_id'],
$taxitem['rate'], $invoice->tax_included, $prepaid_factor*$taxitem['Value'],
$taxitem['Net'], $ex_rate, $date_, $invoice->reference, TR_OUTPUT);