From: <rc...@us...> - 2013-12-14 13:50:25
|
Revision: 6499 http://sourceforge.net/p/web-erp/reponame/6499 Author: rchacon Date: 2013-12-14 13:50:20 +0000 (Sat, 14 Dec 2013) Log Message: ----------- Completes the construction of the table (missing table-datacells). Modified Paths: -------------- trunk/GLAccountInquiry.php Modified: trunk/GLAccountInquiry.php =================================================================== --- trunk/GLAccountInquiry.php 2013-12-14 13:39:51 UTC (rev 6498) +++ trunk/GLAccountInquiry.php 2013-12-14 13:50:20 UTC (rev 6499) @@ -197,18 +197,18 @@ $ChartDetailRow = DB_fetch_array($ChartDetailsResult); $RunningTotal =$ChartDetailRow['bfwd']; + echo '<tr> + <td colspan="3"><b>' . _('Brought Forward Balance') . '</b></td>'; if ($RunningTotal < 0 ){ //its a credit balance b/fwd - echo '<tr> - <td colspan="3"><b>' . _('Brought Forward Balance') . '</b></td> + echo ' <td></td> <td class="number"><b>' . locale_number_format(-$RunningTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> - <td></td> + <td colspan="3"> </td> </tr>'; } else { //its a debit balance b/fwd - echo '<tr> - <td colspan="3"><b>' . _('Brought Forward Balance') . '</b></td> + echo ' <td class="number"><b>' . locale_number_format($RunningTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> - <td colspan="2"></td> + <td colspan="4"> </td> </tr>'; } } @@ -242,15 +242,15 @@ } echo '<td></td> <td class="number"><b>' . locale_number_format(-$PeriodTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> - <td></td> - </tr>'; + <td colspan="3"> </td> + </tr>'; } else { //its a debit balance b/fwd if ($PandLAccount==True) { $RunningTotal = 0; } echo '<td class="number"><b>' . locale_number_format($PeriodTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> - <td colspan="2"></td> - </tr>'; + <td colspan="4"> </td> + </tr>'; } $IntegrityReport .= '<br />' . _('Period') . ': ' . $PeriodNo . _('Account movement per transaction') . ': ' . locale_number_format($PeriodTotal,$_SESSION['CompanyRecord']['decimalplaces']) . ' ' . _('Movement per ChartDetails record') . ': ' . locale_number_format($ChartDetailRow['actual'],$_SESSION['CompanyRecord']['decimalplaces']) . ' ' . _('Period difference') . ': ' . locale_number_format($PeriodTotal -$ChartDetailRow['actual'],3); |