[Weberp-svn] SF.net SVN: weberp:[8263] trunk/DailySalesInquiry.php
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-10-08 19:56:59
|
Revision: 8263 http://weberp.svn.sourceforge.net/weberp/?rev=8263&view=rev Author: tim_schofield Date: 2011-10-08 19:56:53 +0000 (Sat, 08 Oct 2011) Log Message: ----------- Show numbers in correct formatting for the users locale Modified Paths: -------------- trunk/DailySalesInquiry.php Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2011-10-08 19:56:42 UTC (rev 8262) +++ trunk/DailySalesInquiry.php 2011-10-08 19:56:53 UTC (rev 8263) @@ -142,9 +142,9 @@ for ($i=1;$i<=$LastDayOfMonth;$i++){ $ColumnCounter++; if(isset($DaySalesArray[$i])) { - echo '<td class="number" style="outline: 1px solid gray;">' . number_format($DaySalesArray[$i]->Sales,0) . '<br />' . number_format($DaySalesArray[$i]->GPPercent*100,1) . '%</td>'; + echo '<td class="number" style="outline: 1px solid gray;">' . locale_money_format($DaySalesArray[$i]->Sales,$_SESSION['CompanyRecord']['currencydefault']) . '<br />' . locale_number_format($DaySalesArray[$i]->GPPercent*100,1) . '%</td>'; } else { - echo '<td class="number" style="outline: 1px solid gray;">' . number_format(0,0) . '<br />' . number_format(0,1) . '%</td>'; + echo '<td class="number" style="outline: 1px solid gray;">' . locale_money_format(0,$_SESSION['CompanyRecord']['currencydefault']) . '<br />' . locale_number_format(0,1) . '%</td>'; } if ($ColumnCounter==7){ echo '</tr><tr>'; @@ -173,7 +173,7 @@ $AverageDailySales = 0; } -echo '<th colspan="7">' . _('Total Sales for month') . ': ' . number_format($CumulativeTotalSales,0) . ' ' . _('GP%') . ': ' . number_format($AverageGPPercent,1) . '% ' . _('Avg Daily Sales') . ': ' . number_format($AverageDailySales,0) . '</th></tr>'; +echo '<th colspan="7">' . _('Total Sales for month') . ': ' . locale_money_format($CumulativeTotalSales,$_SESSION['CompanyRecord']['currencydefault']) . ' ' . _('GP%') . ': ' . locale_number_format($AverageGPPercent,1) . '% ' . _('Avg Daily Sales') . ': ' . locale_money_format($AverageDailySales,$_SESSION['CompanyRecord']['currencydefault']) . '</th></tr>'; echo '</table>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |