From: <rc...@us...> - 2016-04-28 02:53:17
|
Revision: 7499 http://sourceforge.net/p/web-erp/reponame/7499 Author: rchacon Date: 2016-04-28 02:53:14 +0000 (Thu, 28 Apr 2016) Log Message: ----------- Code improvement: Replace with cal_days_in_month(). Modified Paths: -------------- trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/reportwriter/WriteReport.inc 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 2016-04-26 16:24:36 UTC (rev 7498) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2016-04-28 02:53:14 UTC (rev 7499) @@ -8,7 +8,7 @@ "Project-Id-Version: webERP 4.12.2\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-04-26 09:51-0600\n" -"PO-Revision-Date: 2016-04-26 10:00-0600\n" +"PO-Revision-Date: 2016-04-26 10:53-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -15568,7 +15568,7 @@ #: GoodsReceived.php:107 msgid "Supplier's Reference" -msgstr "" +msgstr "Referencia del proveedor" #: GoodsReceived.php:115 PO_Items.php:721 msgid "Supplier Units" @@ -22863,7 +22863,7 @@ #: Payments.php:976 msgid "Narrative in general ledger transactions" -msgstr "" +msgstr "Descripción en las transacciones del libro mayor" #: Payments.php:993 msgid "General Ledger Payment Analysis Entry" @@ -22915,32 +22915,38 @@ #: Payments.php:1187 msgid "Supplier Narrative" -msgstr "" +msgstr "Descripción de proveedores" #: Payments.php:1188 msgid "" "Supplier narrative in general ledger transactions. If blank, it uses the " "bank narrative." msgstr "" +"Descripción de proveedores en las transacciones del libro mayor. Si está en " +"blanco, se usa la descripción de bancos." #: Payments.php:1195 msgid "Supplier Reference" -msgstr "" +msgstr "Referencia de proveedores" #: Payments.php:1196 msgid "" "Supplier reference in supplier transactions. If blank, it uses the payment " "type." msgstr "" +"Referencia de proveedores en las transacciones con los proveedores. Si está " +"en blanco, se usa el tipo de pago." #: Payments.php:1203 msgid "Transaction Text" -msgstr "" +msgstr "Texto de la transacción" #: Payments.php:1204 msgid "" "Transaction text in supplier transactions. If blank, it uses the narrative." msgstr "" +"Texto de la transacción en las transacciones con los proveedores. Si está en " +"blanco, se usa la descripción de bancos." #: Payments.php:1209 msgid "Amount of Payment" @@ -26255,7 +26261,7 @@ #: ReverseGRN.php:398 msgid "Supplier' Ref" -msgstr "" +msgstr "Referencia del proveedor" #: ReverseGRN.php:404 msgid "Quantity To" @@ -33672,7 +33678,7 @@ #: SuppInvGRNs.php:120 SuppInvGRNs.php:261 includes/PDFGrnHeader.inc:21 msgid "Supplier's Ref" -msgstr "" +msgstr "Referencia del proveedor" #: SuppInvGRNs.php:123 msgid "Quantity Yet To Inv" @@ -35085,7 +35091,7 @@ #: SupplierInvoice.php:666 msgid "Supplier Ref" -msgstr "" +msgstr "Referencia de proveedores" #: SupplierInvoice.php:669 msgid "Quantity Charged" @@ -51600,7 +51606,7 @@ #: reportwriter/languages/en_US/reports.php:215 msgid "Name to Display" -msgstr "" +msgstr "Nombre a mostrar" #: reportwriter/languages/en_US/reports.php:217 msgid "Report Filter Description" Modified: trunk/reportwriter/WriteReport.inc =================================================================== --- trunk/reportwriter/WriteReport.inc 2016-04-26 16:24:36 UTC (rev 7498) +++ trunk/reportwriter/WriteReport.inc 2016-04-28 02:53:14 UTC (rev 7499) @@ -1,4 +1,6 @@ <?php +/* $Id$*/ + require_once($PathPrefix .'/includes/class.pdf.php'); class PDF extends Cpdf { @@ -303,7 +305,7 @@ $ThisMonth = mb_substr($Today,5,2); $ThisYear = mb_substr($Today,0,4); // find total number of days in this month - if ($ThisMonth == '04' or $ThisMonth == '06' or $ThisMonth == '09' or $ThisMonth == '11') { +/* if ($ThisMonth == '04' or $ThisMonth == '06' or $ThisMonth == '09' or $ThisMonth == '11') { $TotalDays=30; } elseif ($ThisMonth=='02' AND date('L', $t)) { // Leap year $TotalDays=29; @@ -311,7 +313,8 @@ $TotalDays=28; } else { $TotalDays=31; - } + }//********** To replace. */ + $TotalDays = cal_days_in_month(CAL_GREGORIAN, $ThisMonth, $ThisYear);//********** To test ! // Calculate date range $DateArray=explode(':',$Prefs['DateListings']['params']); switch ($DateArray[0]) { // based on the date choice selected |