[Weberp-svn] SF.net SVN: weberp:[8264] trunk/DailyBankTransactions.php
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-10-08 19:57:10
|
Revision: 8264 http://weberp.svn.sourceforge.net/weberp/?rev=8264&view=rev Author: tim_schofield Date: 2011-10-08 19:57:04 +0000 (Sat, 08 Oct 2011) Log Message: ----------- Show numbers in correct formatting for the users locale Modified Paths: -------------- trunk/DailyBankTransactions.php Modified: trunk/DailyBankTransactions.php =================================================================== --- trunk/DailyBankTransactions.php 2011-10-08 19:56:53 UTC (rev 8263) +++ trunk/DailyBankTransactions.php 2011-10-08 19:57:04 UTC (rev 8264) @@ -67,6 +67,7 @@ banktrans.exrate, banktrans.banktranstype, banktrans.transdate, + banktrans.ref, bankaccounts.bankaccountname, systypes.typename, systypes.typeid @@ -86,7 +87,7 @@ $BankDetailRow = DB_fetch_array($BankResult); echo '<table class="selection"> <tr> - <th colspan="7"><font size="3" color="blue">' . _('Account Transactions For').' '.$BankDetailRow['bankaccountname'].' '._('Between').' '.$_POST['FromTransDate'] . ' ' . _('and') . ' ' . $_POST['ToTransDate'] . '</font></th> + <th colspan="8"><font size="3" color="blue">' . _('Account Transactions For').' '.$BankDetailRow['bankaccountname'].' '._('Between').' '.$_POST['FromTransDate'] . ' ' . _('and') . ' ' . $_POST['ToTransDate'] . '</font></th> </tr>'; echo '<tr> <th>' . _('Date') . '</th> @@ -112,10 +113,10 @@ <td>'.$myrow['typename'].'</td> <td>'.$myrow['banktranstype'].'</td> <td>'.$myrow['ref'].'</td> - <td class="number">'.number_format($myrow['amount'],2).'</td> - <td class="number">'.number_format($AccountCurrTotal,2).'</td> - <td class="number">'.number_format($myrow['amount']/$myrow['functionalexrate']/$myrow['exrate'],2).'</td> - <td class="number">'.number_format($LocalCurrTotal,2).'</td> + <td class="number">'.locale_money_format($myrow['amount'],$myrow['currcode']).'</td> + <td class="number">'.locale_money_format($AccountCurrTotal,$myrow['currcode']).'</td> + <td class="number">'.locale_money_format($myrow['amount']/$myrow['functionalexrate']/$myrow['exrate'],$_SESSION['CompanyRecord']['currencydefault']).'</td> + <td class="number">'.locale_money_format($LocalCurrTotal,$_SESSION['CompanyRecord']['currencydefault']).'</td> </tr>'; } echo '</table>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |