$SQL = "INSERT INTO banktrans (
transno,
type,
bankact,
ref,
exrate,
functionalexrate,
transdate,
banktranstype,
amount,
currcode,
chequeno
) VALUES ('" .
$ReceiptTransNo . "',
2,'" .
$PaymentItem->GLCode . "','" .
'@' . $TransNo . ' ' . _('Act Transfer From') .' '. $_SESSION['PaymentDetail'.$identifier]->Account . ' - ' . $PaymentItem->Narrative . "','" .
$ExRate . "','" .
$TrfToBankExRate . "','" .
FormatDateForSQL($_SESSION['PaymentDetail'.$identifier]->DatePaid) . "','" .
$_SESSION['PaymentDetail'.$identifier]->Paymenttype . "','" .
$PaymentItem->Amount . "','" .
$_SESSION['PaymentDetail'.$identifier]->Currency . "','" .
$PaymentItem->Cheque .
"')";