| Invoicing Account |
//var_dump($account_record)?>
| Date |
Amount |
Ex. Rate |
Currency |
In JPY |
Transaction Type |
Payment ID |
Reference |
if($account_record)
{
$total = 0;
foreach ($account_record as $account)
{
{
if($account[TAccounts::TRANSACTION_TYPE] == TAccounts_Transaction_Type::DRAW)
{
$total -= $account[TAccounts::AMOUNT] * $account[TAccounts::EXCHANGE_RATE];
}
else
{
$total += $account[TAccounts::AMOUNT] * $account[TAccounts::EXCHANGE_RATE];
}
?>
| =$account[TAccounts::TRANSACTION_DATE]?> |
=$account[TAccounts::AMOUNT]?> |
=$account[TAccounts::EXCHANGE_RATE]?> |
=$account[TAccounts::CURRENCY]?> |
=$account[TAccounts::AMOUNT] * $account[TAccounts::EXCHANGE_RATE]?> |
=$account[TAccounts::TRANSACTION_TYPE]?> |
=$account[TAccounts::PAYPAL_ID]?> |
=$account[TAccounts::REFERENCE]?> |
}
}
}
?>
| |
|
|
|
=$total?> |
|
|
|
| |
$account_balance = round(($total / $xrate),2);
?>
=number_format($account_balance,2)." $currency"?>
|
|
|
| |
|
|
| |
}
?>