From: <rc...@us...> - 2015-02-21 14:48:07
|
Revision: 7165 http://sourceforge.net/p/web-erp/reponame/7165 Author: rchacon Date: 2015-02-21 14:47:59 +0000 (Sat, 21 Feb 2015) Log Message: ----------- Add headings, page-title and centre-align styles to print.css. Improve page title to use with print.css and add code documentation in GLBalanceSheet.php. Modified Paths: -------------- trunk/GLBalanceSheet.php trunk/css/print.css trunk/doc/Change.log trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po Modified: trunk/GLBalanceSheet.php =================================================================== --- trunk/GLBalanceSheet.php 2015-02-21 04:04:27 UTC (rev 7164) +++ trunk/GLBalanceSheet.php 2015-02-21 14:47:59 UTC (rev 7165) @@ -1,25 +1,28 @@ <?php - /* $Id$*/ +/* This script shows the balance sheet for the company as at a specified date. */ /*Through deviousness and cunning, this system allows shows the balance sheets as at the end of any period selected - so first off need to show the input of criteria screen while the user is selecting the period end of the balance date meanwhile the system is posting any unposted transactions */ include ('includes/session.inc'); -$Title = _('Balance Sheet'); +$Title = _('Balance Sheet');// Screen identification. +$ViewTopic = 'GeneralLedger';// Filename's id in ManualContents.php's TOC. +$BookMark = 'BalanceSheet';// Anchor's id in the manual's html document. include('includes/SQL_CommonFunctions.inc'); include('includes/AccountSectionsDef.inc'); // This loads the $Sections variable -$ViewTopic= 'GeneralLedger'; -$BookMark = 'BalanceSheet'; - if (! isset($_POST['BalancePeriodEnd']) or isset($_POST['SelectADifferentPeriod'])){ /*Show a form to allow input of criteria for TB to show */ include('includes/header.inc'); - echo '<div class="centre"><p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/printer.png" title="' - . _('Print') . '" alt="" />' . ' ' . _('Balance Sheet') . '</p></div>'; + echo '<p class="page_title_text"><img alt="" class="noprint" src="'.$RootPath.'/css/'.$Theme. + '/images/printer.png" title="' .// Icon image. + _('Print Statement of Financial Position') . '" /> ' .// Icon title. + _('Balance Sheet') . '</p>';// Page title. +// _('Print Statement of Financial Position') . '</p>';// Page title. + echo '<div class="page_help_text">' . _('Balance Sheet (or statement of financial position) is a summary of balances. Assets, liabilities and ownership equity are listed as of a specific date, such as the end of its financial year. Of the four basic financial statements, the balance sheet is the only statement which applies to a single point in time.') . '<br />' . _('The balance sheet has three parts: assets, liabilities and ownership equity. The main categories of assets are listed first and are followed by the liabilities. The difference between the assets and the liabilities is known as equity or the net assets or the net worth or capital of the company and according to the accounting equation, net worth must equal assets minus liabilities.') . '<br />' @@ -384,17 +387,20 @@ chartdetails.accountcode"; $AccountsResult = DB_query($SQL,_('No general ledger accounts were returned by the SQL because')); - echo '<p class="page_title_text noprint"><img src="'.$RootPath.'/css/'.$Theme.'/images/preview.gif" title="' . _('Search') . '" alt="" /> ' . _('HTML View') . '</p>'; + // Page title as IAS1 numerals 10 and 51: + include_once('includes/CurrenciesArray.php');// Array to retrieve currency name. + echo '<p class="page_title_text"><img alt="" class="noprint" src="'.$RootPath.'/css/'.$Theme. + '/images/gl.png" title="' .// Icon image. + _('Statement of Financial Position') . '" /> ' .// Icon title. + _('Balance Sheet') . '<br />' .// Page title, reporting statement. +// _('Statement of Financial Position') . '<br />' .// Page title, reporting statement. + stripslashes($_SESSION['CompanyRecord']['coyname']) . '<br />' .// Page title, reporting entity. + _('as at') . ' ' . $BalanceDate . '<br />' .// Page title, reporting period. + _('All amounts stated in').': '. _($CurrencyName[$_SESSION['CompanyRecord']['currencydefault']]).'</p>';// Page title, reporting presentation currency and level of rounding used. + echo '<div class="invoice"> - <table class="selection"> - <tr> - <th colspan="6"> - <div class="centre"><h1>' . - _('Balance Sheet as at') . ' ' . $BalanceDate . '</h1> - </div> - </th> - </tr>'; + <table class="selection">'; if ($_POST['Detail']=='Detailed'){ $TableHeader = '<tr> @@ -577,9 +583,9 @@ echo '<tr class="EvenTableRows">'; $k++; } - + $ActEnquiryURL = '<a href="' . $RootPath . '/GLAccountInquiry.php?Period=' . $_POST['BalancePeriodEnd'] . '&Account=' . $myrow['accountcode'] . '">' . $myrow['accountcode'] . '</a>'; - + printf('<td>%s</td> <td>%s</td> <td class="number">%s</td> @@ -706,4 +712,4 @@ } include('includes/footer.inc'); -?> \ No newline at end of file +?> Modified: trunk/css/print.css =================================================================== --- trunk/css/print.css 2015-02-21 04:04:27 UTC (rev 7164) +++ trunk/css/print.css 2015-02-21 14:47:59 UTC (rev 7165) @@ -1,74 +1,103 @@ /* $Id: print.css 7158 2015-02-19 23:25:13Z vvs2012 $*/ /* Print style sheet. */ -@media print { - -#HeaderDiv {display:none;} -#FooterDiv {display:none;} -#MainMenuDiv {display:none;} -.noprint {display:none;} - -#content p { - color: black; -} - -#content img { - display:block; - page-break-after: avoid; - page-break-inside: avoid; -} - -#content ul, li { - display:block; - page-break-inside:avoid; -} - -hr { - color: black; -} - -a { - color:navy; - text-decoration:none; -} - -.number{ - text-align:right; -} - -#CanvasDiv, body { - font-family: Arial, Verdana, Helvetica, sans-serif; - font-size:11pt; - background: white; - background-image: none; - margin: 0; - border: none; - border-radius: 0; - padding: 0; - box-shadow: none; -} - -#BodyDiv { - background: white; - background-image: none; - width: 100%; - margin: 0; - float: none; - border: none; - border-radius: 0; - padding: 0; - box-shadow: none; -} - -#BodyDiv table{ - background: white; - border: none; - padding: 0; - box-shadow: none; - border-radius:0; -} - -.site-description {display:none;} -.site-title {display:none;} - -} +@media print { + +#FooterDiv, #HeaderDiv, #MainMenuDiv, .noprint, .site-description, .site-title { + display:none; + /* Remove unwanted elements. */ +} + +h1 { + font-size: 173%; + font-weight:bold; + /* Heading 1. */ +} + +h2 { + font-size: 144%; + font-weight:bold; + /* Heading 2. */ +} + +h3 { + font-size: 120%; + font-weight:bold; + /* Heading 3. */ +} + +#content p { + color:black; +} + +#content img { + display:block; + page-break-after:avoid; + page-break-inside:avoid; +} + +#content ul, li { + display:block; + page-break-inside:avoid; +} + +hr { + color:black; +} + +a { + color:navy; + text-decoration:none; +} + +.centre { + text-align:center; + /* centre class (general). */ +} + +.number { + text-align:right; + /* number class (general). */ +} + +.page_title_text { + font-weight:bold; + font-size: 207%; + text-align:center; + /* Page title class. */ +} + +body, #CanvasDiv { + background-image:none; + background:white; + border:none; + border-radius:0; + box-shadow:none; + font-family:Arial, Verdana, Helvetica, sans-serif; + font-size:11pt; + margin:0; + padding:0; +} + +#BodyDiv { + background-image:none; + background:white; + border:none; + border-radius:0; + box-shadow:none; + float:none; + margin:0; + padding:0; + width:100%; + /* BodyDiv id */ +} + +#BodyDiv table { + background:white; + border:none; + border-radius:0; + box-shadow:none; + padding:0; +} + +} Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2015-02-21 04:04:27 UTC (rev 7164) +++ trunk/doc/Change.log 2015-02-21 14:47:59 UTC (rev 7165) @@ -1,5 +1,6 @@ webERP Change Log +21/2/15 RChacon: Add headings, page-title and centre-align styles to print.css. Improve page title to use with print.css and add code documentation in GLBalanceSheet.php. 20/2/15 RChacon: Fix heading 2 html-tags inside paragraph html-tags. Add code documentation. 19/2/15 RChacon: Fix AddTextWrap split behaviour (thanks Andrew Galuski). Add code documentation. 19/2/15 Tim: Align numbers to the right in print.css Modified: trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2015-02-21 04:04:27 UTC (rev 7164) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2015-02-21 14:47:59 UTC (rev 7165) @@ -8,7 +8,7 @@ "Project-Id-Version: webERP 4.12.2\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-02-06 19:17+1300\n" -"PO-Revision-Date: 2015-02-17 12:27-0600\n" +"PO-Revision-Date: 2015-02-21 08:31-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -37861,7 +37861,7 @@ #: UserLocations.php:203 #, php-format msgid "Are you sure you wish to un-authorise this location?" -msgstr "" +msgstr "¿Está seguro que desea desautorizar esta ubicación?" #: UserSettings.php:6 UserSettings.php:10 msgid "User Settings" @@ -45029,7 +45029,7 @@ #: includes/MainMenuLinksArray.php:109 msgid "Debtor Balances At A Prior Month End" -msgstr "Saldos de Deudores a Fin de Mes Previo" +msgstr "Saldos de clientes al final del mes previo" #: includes/MainMenuLinksArray.php:110 msgid "Customer Listing By Area/Salesperson" @@ -45057,7 +45057,7 @@ #: includes/MainMenuLinksArray.php:149 msgid "Supplier Balances At A Prior Month End" -msgstr "Balances de proveedores a Fin de Mes Previo" +msgstr "Saldos de proveedores al final del mes previo" #: includes/MainMenuLinksArray.php:151 msgid "Supplier Transaction Inquiries" @@ -46137,7 +46137,7 @@ #: includes/PDFDebtorBalsPageHeader.inc:17 #: includes/PDFSupplierBalsPageHeader.inc:17 msgid "as at" -msgstr "según en" +msgstr "al" #: includes/PDFDebtorBalsPageHeader.inc:32 #: includes/PDFSupplierBalsPageHeader.inc:35 |