From: <dai...@us...> - 2013-12-07 07:38:55
|
Revision: 6482 http://sourceforge.net/p/web-erp/reponame/6482 Author: daintree Date: 2013-12-07 07:38:51 +0000 (Sat, 07 Dec 2013) Log Message: ----------- Stock counts entered by category Modified Paths: -------------- trunk/StockCounts.php trunk/doc/Change.log Modified: trunk/StockCounts.php =================================================================== --- trunk/StockCounts.php 2013-12-07 05:39:13 UTC (rev 6481) +++ trunk/StockCounts.php 2013-12-07 07:38:51 UTC (rev 6482) @@ -1,29 +1,27 @@ <?php /* $Id$*/ -//$PageSecurity = 2; - include('includes/session.inc'); $Title = _('Stock Check Sheets Entry'); include('includes/header.inc'); -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; +echo '<form name="EnterCountsForm" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/inventory.png" title="' . _('Inventory Adjustment') . '" alt="" />' . ' ' . $Title . '</p>'; -if (!isset($_POST['Action']) and !isset($_GET['Action'])) { +if (!isset($_POST['Action']) AND !isset($_GET['Action'])) { $_GET['Action'] = 'Enter'; } if (isset($_POST['Action'])) { $_GET['Action'] = $_POST['Action']; } -if ($_GET['Action']!='View' and $_GET['Action']!='Enter'){ +if ($_GET['Action']!='View' AND $_GET['Action']!='Enter'){ $_GET['Action'] = 'Enter'; } @@ -63,7 +61,6 @@ if (mb_strlen($_POST[$StockID])>0){ if (!is_numeric($_POST[$Quantity])){ - prnMsg(_('The quantity entered for line') . ' ' . $i . ' ' . _('is not numeric') . ' - ' . _('this line was for the part code') . ' ' . $_POST[$StockID] . '. ' . _('This line will have to be re-entered'),'warn'); $InputError=True; } $SQL = "SELECT stockid FROM stockcheckfreeze WHERE stockid='" . $_POST[$StockID] . "'"; @@ -93,45 +90,105 @@ unset($_POST['EnterCounts']); } // end of if enter counts button hit + $CatsResult = DB_query("SELECT DISTINCT stockcategory.categoryid, + categorydescription + FROM stockcategory INNER JOIN stockmaster + ON stockcategory.categoryid=stockmaster.categoryid + INNER JOIN stockcheckfreeze + ON stockmaster.stockid=stockcheckfreeze.stockid + WHERE stocktype='F'",$db); - echo '<table cellpadding="2" class="selection">'; - echo '<tr><th colspan="3">' ._('Stock Check Counts at Location') . ':<select name="Location">'; - $sql = 'SELECT loccode, locationname FROM locations'; - $result = DB_query($sql,$db); + if (DB_num_rows($CatsResult) ==0) { + prnMsg(_('The stock check sheets must be run first to create the stock check. Only once these are created can the stock counts be entered. Currently there is no stock check to enter counts for'),'error'); + echo '<div class="center"><a href="/' . $RootPath . '/StockCheck.php">' . _('Create New Stock Check') . '</a></div>'; + } else { + echo '<table cellpadding="2" class="selection">'; + echo '<tr> + <th colspan="3">' ._('Stock Check Counts at Location') . ':<select name="Location">'; + $sql = 'SELECT loccode, locationname FROM locations'; + $result = DB_query($sql,$db); + + while ($myrow=DB_fetch_array($result)){ + + if (isset($_POST['Location']) AND $myrow['loccode']==$_POST['Location']){ + echo '<option selected="selected" value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; + } else { + echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; + } + } + echo '</select> <input type="submit" name="EnterByCat" value="' . _('Enter By Category') . '" /><select name="StkCat" onChange="ReloadForm(EnterCountsForm.EnterByCat)" >'; - while ($myrow=DB_fetch_array($result)){ - - if (isset($_POST['Location']) and $myrow['loccode']==$_POST['Location']){ - echo '<option selected="selected" value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; + echo '<option value="">' . _('Not Yet Selected') . '</option>'; + + while ($myrow=DB_fetch_array($CatsResult)){ + if ($_POST['StkCat']==$myrow['categoryid']) { + echo '<option selected="selected" value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; + } else { + echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; + } + } + echo '</select></th></tr>'; + + + + if (isset($_POST['EnterByCat'])){ + + $StkCatResult = DB_query("SELECT categorydescription FROM stockcategory WHERE categoryid='" . $_POST['StkCat'] . "'",$db); + $StkCatRow = DB_fetch_row($StkCatResult); + + echo '<tr> + <th colspan="4">' . _('Entering Counts For Stock Category') . ': ' . $StkCatRow[0] . '</th> + </tr> + <tr> + <th>' . _('Stock Code') . '</th> + <th>' . _('Description') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Reference') . '</th> + </tr>'; + $StkItemsResult = DB_query("SELECT stockcheckfreeze.stockid, + description + FROM stockcheckfreeze INNER JOIN stockmaster + ON stockcheckfreeze.stockid=stockmaster.stockid + WHERE categoryid='" . $_POST['StkCat'] . "' + ORDER BY stockcheckfreeze.stockid",$db); + + $i=1; + while ($StkRow = DB_fetch_array($StkItemsResult)) { + echo '<tr> + <td><input type="hidden" name="StockID_' . $i . '" value="' . $StkRow['stockid'] . '" />' . $StkRow['stockid'] . '</td> + <td>' . $StkRow['description'] . '</td> + <td><input type="text" name="Qty_' . $i . '" maxlength="10" size="10" /></td> + <td><input type="text" name="Ref_' . $i . '" maxlength="20" size="20" /></td> + </tr>'; + $i++; + } + } else { - echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; + echo '<tr> + <th>' . _('Bar Code') . '</th> + <th>' . _('Stock Code') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Reference') . '</th> + </tr>'; + + for ($i=1;$i<=10;$i++){ + + echo '<tr> + <td><input type="text" name="BarCode_' . $i . '" maxlength="20" size="20" /></td> + <td><input type="text" name="StockID_' . $i . '" maxlength="20" size="20" /></td> + <td><input type="text" name="Qty_' . $i . '" maxlength="10" size="10" /></td> + <td><input type="text" name="Ref_' . $i . '" maxlength="20" size="20" /></td> + </tr>'; + + } } - } - echo '</select></th></tr>'; - echo '<tr> - <th>' . _('Bar Code') . '</th> - <th>' . _('Stock Code') . '</th> - <th>' . _('Quantity') . '</th> - <th>' . _('Reference') . '</th> - </tr>'; - - for ($i=1;$i<=10;$i++){ - - echo '<tr> - <td><input type="text" name="BarCode_' . $i . '" maxlength="20" size="20" /></td> - <td><input type="text" name="StockID_' . $i . '" maxlength="20" size="20" /></td> - <td><input type="text" name="Qty_' . $i . '" maxlength="10" size="10" /></td> - <td><input type="text" name="Ref_' . $i . '" maxlength="20" size="20" /></td> - </tr>'; - - } - - echo '</table> - <br /> - <div class="centre"> - <input type="submit" name="EnterCounts" value="' . _('Enter Above Counts') . '" /> - </div>'; - + + echo '</table> + <br /> + <div class="centre"> + <input type="submit" name="EnterCounts" value="' . _('Enter Above Counts') . '" /> + </div>'; + } // there is a stock check to enter counts for //END OF action=ENTER } elseif ($_GET['Action']=='View'){ @@ -151,19 +208,19 @@ $result = DB_query($SQL, $db); echo '<input type="hidden" name="Action" value="View" />'; echo '<table cellpadding="2" class="selection">'; - echo "<tr> - <th>" . _('Stock Code') . "</th> - <th>" . _('Location') . "</th> - <th>" . _('Qty Counted') . "</th> - <th>" . _('Reference') . "</th> - <th>" . _('Delete?') . '</th></tr>'; + echo '<tr> + <th>' . _('Stock Code') . '</th> + <th>' . _('Location') . '</th> + <th>' . _('Qty Counted') . '</th> + <th>' . _('Reference') . '</th> + <th>' . _('Delete?') . '</th></tr>'; while ($myrow=DB_fetch_array($result)){ - echo "<tr> - <td>".$myrow['stockid']."</td> - <td>".$myrow['loccode']."</td> - <td>".$myrow['qtycounted']."</td> - <td>".$myrow['reference']."</td> - <td>"; + echo '<tr> + <td>'.$myrow['stockid'].'</td> + <td>'.$myrow['loccode'].'</td> + <td>'.$myrow['qtycounted'].'</td> + <td>'.$myrow['reference'].'</td> + <td>'; echo '<input type="checkbox" name="DEL[' . $myrow['id'] . ']" maxlength="20" size="20" /></td></tr>'; } @@ -176,4 +233,4 @@ </form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2013-12-07 05:39:13 UTC (rev 6481) +++ trunk/doc/Change.log 2013-12-07 07:38:51 UTC (rev 6482) @@ -1,5 +1,6 @@ webERP Change Log +7/12/13 Phil: Allow entry of stock counts by stock category 7/12/13 Phil: Fixed htmlMimeEmail.inc following Tim's submission - removed & value by reference errors 4/12/13 Exson: Alter table stockmoves reference to varchar(100) to make it can meet mysql strict mode requirements when data is more than original 40. 2/12/13 Exson: Fixed the typo in WWW_Users.php. Reported by Thumb. |
From: <rc...@us...> - 2013-12-09 19:26:45
|
Revision: 6487 http://sourceforge.net/p/web-erp/reponame/6487 Author: rchacon Date: 2013-12-09 19:26:42 +0000 (Mon, 09 Dec 2013) Log Message: ----------- Allows translate currency name. Spanish translation improvements. Modified Paths: -------------- trunk/Customers.php trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2013-12-09 04:08:08 UTC (rev 6486) +++ trunk/Customers.php 2013-12-09 19:26:42 UTC (rev 6487) @@ -988,19 +988,19 @@ $result=DB_query("SELECT currency FROM currencies WHERE currabrev='".$_POST['CurrCode']."'",$db); $myrow=DB_fetch_array($result); echo '<tr> - <td>' . _('Customers Currency') . ':</td> - <td>' . $myrow['currency'] . '</td></tr>'; + <td>' . _('Customer Currency') . ':</td> + <td>' . _($myrow['currency']) . '</td></tr>'; // Translates from currencies.currency *** } else { $result=DB_query("SELECT currency, currabrev FROM currencies",$db); echo '<tr> - <td>' . _('Customers Currency') . ':</td> + <td>' . _('Customer Currency') . ':</td> <td><select name="CurrCode" required="required">'; while ($myrow = DB_fetch_array($result)) { + echo '<option'; if ($_POST['CurrCode']==$myrow['currabrev']){ - echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; - } else { - echo '<option value="'. $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; + echo ' selected="selected"'; } + echo ' value="'. $myrow['currabrev'] . '">' . _($myrow['currency']) . '</option>'; // Translates from currencies.currency *** } //end while loop DB_data_seek($result,0); echo '</select></td> 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 2013-12-09 04:08:08 UTC (rev 6486) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2013-12-09 19:26:42 UTC (rev 6487) @@ -8,7 +8,7 @@ "Project-Id-Version: WebERP 4.081\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-12-06 09:56-0600\n" +"PO-Revision-Date: 2013-12-09 12:52-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -9507,7 +9507,7 @@ #: Customers.php:605 msgid "Customer Currency" -msgstr "Moneda Cliente" +msgstr "Moneda del cliente" #: Customers.php:639 msgid "Customer PO Line on SO" @@ -9517,7 +9517,7 @@ #: Customers.php:647 Customers.php:1050 Customers.php:1055 Customers.php:1061 msgid "Invoice Addressing" -msgstr "Dirección Facturación" +msgstr "Dirección de facturación" #: Customers.php:649 Customers.php:1051 Customers.php:1064 Customers.php:1067 msgid "Address to HO" @@ -9529,7 +9529,7 @@ #: Customers.php:660 Customers.php:1171 msgid "Add New Customer" -msgstr "Registrar el Nuevo Cliente" +msgstr "Agregar nuevo cliente" #: Customers.php:750 msgid "" @@ -9538,7 +9538,7 @@ #: Customers.php:991 Customers.php:996 msgid "Customers Currency" -msgstr "Moneda a Utilizar" +msgstr "Moneda del cliente" #: Customers.php:1027 msgid "Require Customer PO Line on SO" |
From: <dai...@us...> - 2013-12-10 09:38:49
|
Revision: 6488 http://sourceforge.net/p/web-erp/reponame/6488 Author: daintree Date: 2013-12-10 09:38:45 +0000 (Tue, 10 Dec 2013) Log Message: ----------- use currencies array for currency name translations Modified Paths: -------------- trunk/Customers.php trunk/includes/LanguageSetup.php Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2013-12-09 19:26:42 UTC (rev 6487) +++ trunk/Customers.php 2013-12-10 09:38:45 UTC (rev 6488) @@ -3,6 +3,7 @@ /* $Id$ */ include('includes/session.inc'); +include('includes/CurrenciesArray.php'); if (isset($_POST['Edit']) or isset($_GET['Edit']) or isset($_GET['DebtorNo'])) { $ViewTopic = 'AccountsReceivable'; @@ -985,11 +986,9 @@ } if (isset($_GET['Modify'])) { - $result=DB_query("SELECT currency FROM currencies WHERE currabrev='".$_POST['CurrCode']."'",$db); - $myrow=DB_fetch_array($result); echo '<tr> <td>' . _('Customer Currency') . ':</td> - <td>' . _($myrow['currency']) . '</td></tr>'; // Translates from currencies.currency *** + <td>' . $CurrenciesArray[$_POST['CurrCode']]['Currency'] . '</td></tr>'; // Translates from currencies.currency *** } else { $result=DB_query("SELECT currency, currabrev FROM currencies",$db); echo '<tr> @@ -1000,7 +999,7 @@ if ($_POST['CurrCode']==$myrow['currabrev']){ echo ' selected="selected"'; } - echo ' value="'. $myrow['currabrev'] . '">' . _($myrow['currency']) . '</option>'; // Translates from currencies.currency *** + echo ' value="'. $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; // Translates from currencies.currency *** } //end while loop DB_data_seek($result,0); echo '</select></td> Modified: trunk/includes/LanguageSetup.php =================================================================== --- trunk/includes/LanguageSetup.php 2013-12-09 19:26:42 UTC (rev 6487) +++ trunk/includes/LanguageSetup.php 2013-12-10 09:38:45 UTC (rev 6488) @@ -24,7 +24,7 @@ $Language = $_SESSION['Language']; } //Check users' locale format via their language -//Then pass this information to the js for validation purpose +//Then pass this information to the js for number validation purpose $Collect = array('US'=> array('en_US.utf8','en_GB.utf8','ja_JP.utf8','hi_IN.utf8','sw_KE.utf8','tr_TR.utf8','vi_VN.utf8','zh_CN.utf8','zh_HK.utf8','zh_TW.utf8'), 'IN'=>array('en_IN.utf8'), @@ -40,6 +40,7 @@ } + /*Since LanguagesArray requires the function _() to translate the language names - we must provide a substitute if it doesn't exist aready before we include includes/LanguagesArray.php * */ if (!function_exists('gettext')) { |
From: <ex...@us...> - 2013-12-11 07:27:10
|
Revision: 6490 http://sourceforge.net/p/web-erp/reponame/6490 Author: exsonqu Date: 2013-12-11 07:27:08 +0000 (Wed, 11 Dec 2013) Log Message: ----------- 11/12/13 Thumb: fixed bug that using limit without offsetting in PO_Items.php,WorkOrderEntry.php and make users' DisplayRecordsMax effective in SelectOrderItems.php.And fixed typo in SelectCreditItems.php. Modified Paths: -------------- trunk/PO_Items.php trunk/SelectCreditItems.php trunk/SelectOrderItems.php trunk/WorkOrderEntry.php Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2013-12-10 19:40:50 UTC (rev 6489) +++ trunk/PO_Items.php 2013-12-11 07:27:08 UTC (rev 6490) @@ -851,7 +851,7 @@ } /* Now show the stock item selection search stuff below */ -if (isset($_POST['Search'])){ /*ie seach for stock items */ +if (isset($_POST['Search'])||isset($_POST['Prev'])||isset($_POST['Next'])){ /*ie seach for stock items */ if ($_POST['Keywords'] AND $_POST['StockCode']) { prnMsg( _('Stock description keywords have been used in preference to the Stock code extract entered'), 'info' ); @@ -877,7 +877,7 @@ AND purchdata.supplierno='" . $_SESSION['PO'.$identifier]->SupplierID . "' AND stockmaster.description " . LIKE . " '" . $SearchString ."' ORDER BY stockmaster.stockid - LIMIT " .$_SESSION['DefaultDisplayRecordsMax']; + "; } else { // not just supplier purchdata items $sql = "SELECT stockmaster.stockid, @@ -892,7 +892,7 @@ AND stockmaster.discontinued<>1 AND stockmaster.description " . LIKE . " '" . $SearchString ."' ORDER BY stockmaster.stockid - LIMIT " .$_SESSION['DefaultDisplayRecordsMax']; + "; } } else { //for a specific stock category if ($_POST['SupplierItemsOnly']=='on'){ @@ -912,7 +912,7 @@ AND stockmaster.description " . LIKE . " '". $SearchString ."' AND stockmaster.categoryid='" . $_POST['StockCat'] . "' ORDER BY stockmaster.stockid - LIMIT ".$_SESSION['DefaultDisplayRecordsMax']; + "; } else { $sql = "SELECT stockmaster.stockid, stockmaster.description, @@ -927,7 +927,7 @@ AND stockmaster.description " . LIKE . " '". $SearchString ."' AND stockmaster.categoryid='" . $_POST['StockCat'] . "' ORDER BY stockmaster.stockid - LIMIT ".$_SESSION['DefaultDisplayRecordsMax']; + "; } } @@ -952,7 +952,7 @@ AND stockmaster.discontinued<>1 AND stockmaster.stockid " . LIKE . " '" . $_POST['StockCode'] . "' ORDER BY stockmaster.stockid - LIMIT ".$_SESSION['DefaultDisplayRecordsMax']; + "; } else { $sql = "SELECT stockmaster.stockid, stockmaster.description, @@ -966,7 +966,7 @@ AND stockmaster.discontinued<>1 AND stockmaster.stockid " . LIKE . " '" . $_POST['StockCode'] . "' ORDER BY stockmaster.stockid - LIMIT ".$_SESSION['DefaultDisplayRecordsMax']; + "; } } else { //for a specific stock category and LIKE stock code if ($_POST['SupplierItemsOnly']=='on'){ @@ -986,7 +986,7 @@ AND stockmaster.stockid " . LIKE . " '" . $_POST['StockCode'] . "' AND stockmaster.categoryid='" . $_POST['StockCat'] . "' ORDER BY stockmaster.stockid - LIMIT ".$_SESSION['DefaultDisplayRecordsMax']; + "; } else { $sql = "SELECT stockmaster.stockid, stockmaster.description, @@ -1001,7 +1001,7 @@ AND stockmaster.stockid " . LIKE . " '" . $_POST['StockCode'] . "' AND stockmaster.categoryid='" . $_POST['StockCat'] . "' ORDER BY stockmaster.stockid - LIMIT ".$_SESSION['DefaultDisplayRecordsMax']; + "; } } @@ -1022,7 +1022,7 @@ AND purchdata.supplierno='" . $_SESSION['PO'.$identifier]->SupplierID . "' AND stockmaster.discontinued<>1 ORDER BY stockmaster.stockid - LIMIT " . $_SESSION['DefaultDisplayRecordsMax']; + "; } else { $sql = "SELECT stockmaster.stockid, stockmaster.description, @@ -1035,7 +1035,7 @@ AND stockmaster.mbflag<>'G' AND stockmaster.discontinued<>1 ORDER BY stockmaster.stockid - LIMIT " . $_SESSION['DefaultDisplayRecordsMax']; + "; } } else { // for a specific stock category if ($_POST['SupplierItemsOnly']=='on'){ @@ -1054,7 +1054,7 @@ AND stockmaster.discontinued<>1 AND stockmaster.categoryid='" . $_POST['StockCat'] . "' ORDER BY stockmaster.stockid - LIMIT " . $_SESSION['DefaultDisplayRecordsMax']; + "; } else { $sql = "SELECT stockmaster.stockid, stockmaster.description, @@ -1068,11 +1068,37 @@ AND stockmaster.discontinued<>1 AND stockmaster.categoryid='" . $_POST['StockCat'] . "' ORDER BY stockmaster.stockid - LIMIT " . $_SESSION['DefaultDisplayRecordsMax']; + "; } } } + + $sqlcount = substr($sql,strpos($sql, "FROM")); + $sqlcount = substr($sqlcount,0, strpos($sqlcount, "ORDER")); + $sqlcount = 'SELECT COUNT(*) '.$sqlcount; + $SearchResult = DB_query($sqlcount,$db,$ErrMsg,$DbgMsg); + $myrow=DB_fetch_array($SearchResult); + DB_free_result($SearchResult); + unset($SearchResult); + $ListCount = $myrow[0]; + $ListPageMax = ceil($ListCount / $_SESSION['DisplayRecordsMax'])-1; + + if (isset($_POST['Next'])) { + $Offset = $_POST['currpage']+1; + } + if (isset($_POST['Prev'])) { + $Offset = $_POST['currpage']-1; + } + if (!isset($Offset)) { + $Offset=0; + } + if($Offset<0)$Offset=0; + if($Offset>$ListPageMax)$Offset=$ListPageMax; + + $sql = $sql . "LIMIT " . $_SESSION['DisplayRecordsMax']." OFFSET " . strval($_SESSION['DisplayRecordsMax']*$Offset); + + $ErrMsg = _('There is a problem selecting the part records to display because'); $DbgMsg = _('The SQL statement that failed was'); $SearchResult = DB_query($sql,$db,$ErrMsg,$DbgMsg); @@ -1152,9 +1178,22 @@ } if (isset($SearchResult)) { + $PageBar = '<tr><td><input type="hidden" name="currpage" value="'.$Offset.'">'; + if($Offset>0) + $PageBar .= '<input type="submit" name="Prev" value="'._('Prev').'" />'; + else + $PageBar .= '<input type="submit" name="Prev" value="'._('Prev').'" disabled="disabled"/>'; + $PageBar .= '</td><td style="text-align:center" colspan="4"><input type="submit" value="'._('Order some').'" name="NewItem"/></td><td>'; + if($Offset<$ListPageMax) + $PageBar .= '<input type="submit" name="Next" value="'._('Next').'" />'; + else + $PageBar .= '<input type="submit" name="Next" value="'._('Next').'" disabled="disabled"/>'; + $PageBar .= '</td></tr>'; + + echo '<table cellpadding="1" class="selection">'; - + echo $PageBar; $TableHeader = '<tr> <th class="ascending">' . _('Code') . '</th> <th class="ascending">' . _('Description') . '</th> @@ -1215,6 +1254,7 @@ $PartsDisplayed++; #end of page full new headings if } + echo $PageBar; #end of while loop echo '</table>'; echo '<input type="hidden" name="PO_ItemsResubmitFormValue" value="' . $_SESSION['PO_ItemsResubmitForm' . $identifier] . '" />'; Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2013-12-10 19:40:50 UTC (rev 6489) +++ trunk/SelectCreditItems.php 2013-12-11 07:27:08 UTC (rev 6490) @@ -1488,7 +1488,7 @@ '" . $AssParts['quantity'] * $CreditLine->Quantity . "', '" . $AssParts['standard'] . "', 0, - '" . $QtyOnHandPrior + ($AssParts['quantity'] * $CreditLine->Quantity) . "' + '" . ($QtyOnHandPrior + ($AssParts['quantity'] * $CreditLine->Quantity)) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Stock movement records for the assembly components of') . ' ' . $CreditLine->StockID . ' ' . _('could not be inserted because'); Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2013-12-10 19:40:50 UTC (rev 6489) +++ trunk/SelectOrderItems.php 2013-12-11 07:27:08 UTC (rev 6490) @@ -855,8 +855,9 @@ if (!isset($Offset) OR $Offset < 0) { $Offset=0; } - $SQL = $SQL . " LIMIT " . $_SESSION['DefaultDisplayRecordsMax'] . " OFFSET " . strval($_SESSION['DefaultDisplayRecordsMax'] * $Offset); + $SQL = $SQL . " LIMIT " . $_SESSION['DisplayRecordsMax'] . " OFFSET " . strval($_SESSION['DisplayRecordsMax'] * $Offset); + $ErrMsg = _('There is a problem selecting the part records to display because'); $DbgMsg = _('The SQL used to get the part selection was'); Modified: trunk/WorkOrderEntry.php =================================================================== --- trunk/WorkOrderEntry.php 2013-12-10 19:40:50 UTC (rev 6489) +++ trunk/WorkOrderEntry.php 2013-12-11 07:27:08 UTC (rev 6490) @@ -80,7 +80,7 @@ } -if (isset($_POST['Search'])){ +if (isset($_POST['Search']) OR isset($_POST['Prev']) OR isset($_POST['Next'])){ If ($_POST['Keywords'] AND $_POST['StockCode']) { prnMsg(_('Stock description keywords have been used in preference to the Stock code extract entered'),'warn'); @@ -175,9 +175,35 @@ ORDER BY stockmaster.stockid"; } } + $sql=$SQL; + + $sqlcount = substr($sql,strpos($sql, "FROM")); + $sqlcount = substr($sqlcount,0, strpos($sqlcount, "ORDER")); + $sqlcount = 'SELECT COUNT(*) '.$sqlcount; + $SearchResult = DB_query($sqlcount,$db,$ErrMsg,$DbgMsg); + $myrow=DB_fetch_array($SearchResult); + DB_free_result($SearchResult); + unset($SearchResult); + $ListCount = $myrow[0]; + $ListPageMax = ceil($ListCount / $_SESSION['DisplayRecordsMax'])-1; + + if (isset($_POST['Next'])) { + $Offset = $_POST['currpage']+1; + } + if (isset($_POST['Prev'])) { + $Offset = $_POST['currpage']-1; + } + if (!isset($Offset)) { + $Offset=0; + } + if($Offset<0)$Offset=0; + if($Offset>$ListPageMax)$Offset=$ListPageMax; + $sql = $sql . ' LIMIT ' . $_SESSION['DisplayRecordsMax'].' OFFSET ' . strval($_SESSION['DisplayRecordsMax']*$Offset); - $SQL = $SQL . ' LIMIT ' . $_SESSION['DisplayRecordsMax']; + $SQL=$sql; + + $ErrMsg = _('There is a problem selecting the part records to display because'); $DbgMsg = _('The SQL used to get the part selection was'); $SearchResult = DB_query($SQL,$db,$ErrMsg, $DbgMsg); @@ -642,8 +668,21 @@ if (DB_num_rows($SearchResult)>1){ - echo '<br /><table cellpadding="2" class="selection"> - <tr> + $PageBar = '<tr><td><input type="hidden" name="currpage" value="'.$Offset.'">'; + if($Offset>0) + $PageBar .= '<input type="submit" name="Prev" value="'._('Prev').'" />'; + else + $PageBar .= '<input type="submit" name="Prev" value="'._('Prev').'" disabled="disabled"/>'; + $PageBar .= '</td><td>'; + if($Offset<$ListPageMax) + $PageBar .= '<input type="submit" name="Next" value="'._('Next').'" />'; + else + $PageBar .= '<input type="submit" name="Next" value="'._('Next').'" disabled="disabled"/>'; + $PageBar .= '</td></tr>'; + + echo '<br /><table cellpadding="2" class="selection">'; + echo $PageBar; + echo '<tr> <th class="ascending">' . _('Code') . '</th> <th class="ascending">' . _('Description') . '</th> <th>' . _('Units') . '</th></tr>'; |
From: <ex...@us...> - 2013-12-11 08:45:20
|
Revision: 6492 http://sourceforge.net/p/web-erp/reponame/6492 Author: exsonqu Date: 2013-12-11 08:45:14 +0000 (Wed, 11 Dec 2013) Log Message: ----------- 11/12/13: Thumb fixed bug that calculated the wrong StandardCost of assembly parts in Credit_Invoice.php and SelectCreditItems.php. Bug confirmed by Phil. Modified Paths: -------------- trunk/Credit_Invoice.php trunk/SelectCreditItems.php Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2013-12-11 07:28:08 UTC (rev 6491) +++ trunk/Credit_Invoice.php 2013-12-11 08:45:14 UTC (rev 6492) @@ -725,7 +725,7 @@ while ($AssParts = DB_fetch_array($AssResult,$db)){ - $StandardCost += $AssParts['standard']; + $StandardCost += $AssParts['standard'] * $AssParts['quantity']; /*Determine the type of stock item being credited */ $SQL = "SELECT mbflag FROM stockmaster Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2013-12-11 07:28:08 UTC (rev 6491) +++ trunk/SelectCreditItems.php 2013-12-11 08:45:14 UTC (rev 6492) @@ -1444,7 +1444,7 @@ while ($AssParts = DB_fetch_array($AssResult,$db)){ - $StandardCost += $AssParts['standard']; + $StandardCost += $AssParts['standard'] * $AssParts['quantity']; /*Need to get the current location quantity will need it later for the stock movement */ $SQL="SELECT locstock.quantity |
From: <rc...@us...> - 2013-12-11 20:33:50
|
Revision: 6494 http://sourceforge.net/p/web-erp/reponame/6494 Author: rchacon Date: 2013-12-11 20:33:46 +0000 (Wed, 11 Dec 2013) Log Message: ----------- Reduces currencies array from two dimensions (currency-name and currency-numeric-code) to one dimension (currency-name). Modified Paths: -------------- trunk/CompanyPreferences.php trunk/Currencies.php trunk/CustomerInquiry.php trunk/CustomerReceipt.php trunk/Customers.php trunk/Payments.php trunk/Prices.php trunk/SupplierInquiry.php trunk/includes/CurrenciesArray.php trunk/includes/PDFQuotationPageHeader.inc trunk/includes/PDFTransPageHeader.inc trunk/includes/PDFTransPageHeaderPortrait.inc trunk/includes/PO_PDFOrderPageHeader.inc Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/CompanyPreferences.php 2013-12-11 20:33:46 UTC (rev 6494) @@ -231,7 +231,7 @@ $result=DB_query("SELECT currabrev, currency FROM currencies",$db); -include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name. +include('includes/CurrenciesArray.php'); // To get the currency name from the currency code. echo '<tr> <td>' . _('Home Currency') . ':</td> @@ -239,9 +239,9 @@ while ($myrow = DB_fetch_array($result)) { if ($_POST['CurrencyDefault']==$myrow['currabrev']){ - echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; + echo '<option selected="selected" value="'. $myrow['currabrev'] . '">' . $CurrencyName[$myrow['currabrev']] . '</option>'; } else { - echo '<option value="' . $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; + echo '<option value="' . $myrow['currabrev'] . '">' . $CurrencyName[$myrow['currabrev']] . '</option>'; } } //end while loop Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/Currencies.php 2013-12-11 20:33:46 UTC (rev 6494) @@ -7,7 +7,7 @@ $ViewTopic= 'Currencies'; $BookMark = 'Currencies'; include('includes/header.inc'); -include('includes/CurrenciesArray.php'); +include('includes/CurrenciesArray.php'); // To get the currency name from the currency code. include('includes/SQL_CommonFunctions.inc'); if (isset($_GET['SelectedCurrency'])){ @@ -124,7 +124,7 @@ decimalplaces, rate, webcart) - VALUES ('" . $CurrenciesArray[$_POST['Abbreviation']]['Currency'] . "', + VALUES ('" . $CurrencyName[$_POST['Abbreviation']] . "', '" . $_POST['Abbreviation'] . "', '" . $_POST['Country'] . "', '" . $_POST['HundredsName'] . "', @@ -291,7 +291,7 @@ echo '<table class="selection">'; echo '<tr> - <td></td> + <th> </th> <th>' . _('ISO4217 Code') . '</th> <th>' . _('Currency Name') . '</th> <th>' . _('Country') . '</th> @@ -301,6 +301,7 @@ <th>' . _('Exchange Rate') . '</th> <th>' . _('1 / Ex Rate') . '</th> <th>' . _('Ex Rate - ECB') . '</th> + <th colspan="3">' . _('Maintenance') . '</th> </tr>'; $k=0; //row colour counter @@ -340,7 +341,7 @@ <td>%s</td> <td>%s</td> <td class="number">%s</td> - <td>%s</td> + <td class="centre">%s</td> <td class="number">%s</td> <td class="number">%s</td> <td class="number">%s</td> @@ -350,7 +351,7 @@ </tr>', $ImageFile, $myrow['currabrev'], - $CurrenciesArray[$myrow['currabrev']]['Currency'], // To get the currency name from the Currencies Array. + $CurrencyName[$myrow['currabrev']], $myrow['country'], $myrow['hundredsname'], locale_number_format($myrow['decimalplaces'],0), @@ -373,17 +374,20 @@ <td>%s</td> <td>%s</td> <td class="number">%s</td> - <td>%s</td> - <td colspan="5">%s</td> + <td class="centre">%s</td> + <td class="number">%s</td> + <td class="number">%s</td> + <td class="centre" colspan="4">%s</td> </tr>', $ImageFile, $myrow['currabrev'], - $CurrenciesArray[$myrow['currabrev']]['Currency'], // To get the currency name from the Currencies Array. + $CurrencyName[$myrow['currabrev']], $myrow['country'], $myrow['hundredsname'], locale_number_format($myrow['decimalplaces'],0), $ShowInWebText, - 1, + locale_number_format(1,8), + locale_number_format(1,2), _('Functional Currency')); } @@ -444,8 +448,8 @@ <tr> <td>' ._('Currency') . ':</td> <td><select name="Abbreviation">'; - foreach ($CurrenciesArray as $CurrencyAbbreviation => $CurrencyArray) { - echo '<option value="' . $CurrencyAbbreviation . '">' . $CurrencyAbbreviation . '-' . $CurrencyArray['Currency'] . '</option>'; + foreach ($CurrencyName as $CurrencyCode => $CurrencyNameTxt) { + echo '<option value="' . $CurrencyCode . '">' . $CurrencyCode . ' - ' . $CurrencyNameTxt . '</option>'; } echo '</select></td> Modified: trunk/CustomerInquiry.php =================================================================== --- trunk/CustomerInquiry.php 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/CustomerInquiry.php 2013-12-11 20:33:46 UTC (rev 6494) @@ -126,13 +126,13 @@ $CustomerRecord['overdue1']=0; $CustomerRecord['overdue2']=0; } -include('includes/CurrenciesArray.php'); // To get the currency name. +include('includes/CurrenciesArray.php'); // To get the currency name from the currency code. echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/customer.png" title="' . _('Customer') . '" alt="" /> ' . _('Customer') . ': ' . $CustomerID . ' - ' . $CustomerRecord['name'] . '<br />' . _('All amounts stated in') . ': ' . $CustomerRecord['currency'] . '<br />' . // To be replaced by: -/* $CustomerRecord['currcode'] . ' - ' . $CurrenciesArray[$CustomerRecord['currcode']]['Currency'] . '<br />' . // <-- Replacement */ +/* $CustomerRecord['currcode'] . ' - ' . $CurrencyName[$CustomerRecord['currcode']] . '<br />' . // <-- Replacement */ _('Terms') . ': ' . $CustomerRecord['terms'] . '<br />' . _('Credit Limit') . ': ' . Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/CustomerReceipt.php 2013-12-11 20:33:46 UTC (rev 6494) @@ -817,12 +817,12 @@ prnMsg(_('No currencies are defined yet') . '. ' . _('Receipts cannot be entered until a currency is defined'),'warn'); } else { - include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name. + include('includes/CurrenciesArray.php'); // To get the currency name from the currency code. while ($myrow=DB_fetch_array($result)){ if ($_SESSION['ReceiptBatch']->Currency==$myrow['currabrev']){ - echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $CurrencyName[$myrow['currabrev']] . '</option>'; } else { - echo '<option value="' . $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; + echo '<option value="' . $myrow['currabrev'] . '">' . $CurrencyName[$myrow['currabrev']] . '</option>'; } } echo '</select></td> Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/Customers.php 2013-12-11 20:33:46 UTC (rev 6494) @@ -3,7 +3,7 @@ /* $Id$ */ include('includes/session.inc'); -include('includes/CurrenciesArray.php'); +include('includes/CurrenciesArray.php'); // To get the currency name from the currency code. if (isset($_POST['Edit']) or isset($_GET['Edit']) or isset($_GET['DebtorNo'])) { $ViewTopic = 'AccountsReceivable'; @@ -988,7 +988,7 @@ if (isset($_GET['Modify'])) { echo '<tr> <td>' . _('Customer Currency') . ':</td> - <td>' . $CurrenciesArray[$_POST['CurrCode']]['Currency'] . '</td></tr>'; // Translates from currencies.currency *** + <td>' . $CurrencyName[$_POST['CurrCode']] . '</td></tr>'; // Translates from currencies.currency *** } else { $result=DB_query("SELECT currency, currabrev FROM currencies",$db); echo '<tr> @@ -999,7 +999,7 @@ if ($_POST['CurrCode']==$myrow['currabrev']){ echo ' selected="selected"'; } - echo ' value="'. $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; // Translates from currencies.currency *** + echo ' value="'. $myrow['currabrev'] . '">' . $CurrencyName[$myrow['currabrev']] . '</option>'; } //end while loop DB_data_seek($result,0); echo '</select></td> Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/Payments.php 2013-12-11 20:33:46 UTC (rev 6494) @@ -829,12 +829,12 @@ </tr>'; prnMsg( _('No currencies are defined yet. Payments cannot be entered until a currency is defined'),'error'); } else { - include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name. + include('includes/CurrenciesArray.php'); // To get the currency name from the currency code. while ($myrow=DB_fetch_array($result)){ if ($_SESSION['PaymentDetail' . $identifier]->Currency==$myrow['currabrev']){ - echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; + echo '<option selected="selected" value="' . $myrow['currabrev'] . '">' . $CurrencyName[$myrow['currabrev']] . '</option>'; } else { - echo '<option value="' . $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; + echo '<option value="' . $myrow['currabrev'] . '">' . $CurrencyName[$myrow['currabrev']] . '</option>'; } } echo '</select></td> Modified: trunk/Prices.php =================================================================== --- trunk/Prices.php 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/Prices.php 2013-12-11 20:33:46 UTC (rev 6494) @@ -229,8 +229,7 @@ echo '</tr>'; $k=0; //row colour counter - - include('includes/CurrenciesArray.php'); // To get the currency name. + include('includes/CurrenciesArray.php'); // To get the currency name from the currency code. while ($myrow = DB_fetch_array($result)) { if ($k==1){ echo '<tr class="EvenTableRows">'; @@ -245,7 +244,7 @@ $EndDateDisplay = ConvertSQLDate($myrow['enddate']); } - echo '<td>' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</td> + echo '<td>' . $CurrencyName[$myrow['currabrev']] . '</td> <td>' . $myrow['sales_type'] . '</td> <td class="number">' . locale_number_format($myrow['price'], $myrow['currdecimalplaces']+2) . '</td> <td>' . ConvertSQLDate($myrow['startdate']) . '</td> @@ -299,7 +298,7 @@ if ($myrow['currabrev']==$_POST['CurrAbrev']) { echo ' selected="selected"'; } - echo ' value="' . $myrow['currabrev'] . '">' . $CurrenciesArray[$myrow['currabrev']]['Currency'] . '</option>'; + echo ' value="' . $myrow['currabrev'] . '">' . $CurrencyName[$myrow['currabrev']] . '</option>'; } // End while loop DB_free_result($result); Modified: trunk/SupplierInquiry.php =================================================================== --- trunk/SupplierInquiry.php 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/SupplierInquiry.php 2013-12-11 20:33:46 UTC (rev 6494) @@ -112,12 +112,12 @@ $SupplierRecord['overdue1'] = 0; $SupplierRecord['overdue2'] = 0; } -include('includes/CurrenciesArray.php'); // To get the currency name. +include('includes/CurrenciesArray.php'); // To get the currency name from the currency code. echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/supplier.png" title="' . _('Supplier') . '" alt="" /> ' . _('Supplier') . ': ' . $SupplierID . ' - ' . $SupplierRecord['suppname'] . '<br />' . _('All amounts stated in') . ': ' . - $SupplierRecord['currcode'] . ' - ' . $CurrenciesArray[$SupplierRecord['currcode']]['Currency'] . '<br />' . + $SupplierRecord['currcode'] . ' - ' . $CurrencyName[$SupplierRecord['currcode']] . '<br />' . _('Terms') . ': ' . $SupplierRecord['terms'] . '</p>'; Modified: trunk/includes/CurrenciesArray.php =================================================================== --- trunk/includes/CurrenciesArray.php 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/includes/CurrenciesArray.php 2013-12-11 20:33:46 UTC (rev 6494) @@ -2,190 +2,190 @@ /* $Id: CurrenciesArray.php 2 2013-05-23 18:10:36Z chacon $*/ /* Currency codes based on the three-letter alphabetic code from ISO 4217:2008 Codes for the representation of currencies and funds. - This program is under the GNU General Public License version 3.*/ + This program is under the GNU General Public License version 3. */ -$CurrenciesArray = array(); +$CurrencyName = array(); -/* BEGIN AlphabeticCode and CurrencyName data */ -$CurrenciesArray['AED']['Currency'] = _('United Arab Emirates dirham'); -$CurrenciesArray['AFN']['Currency'] = _('Afghan afghani'); -$CurrenciesArray['ALL']['Currency'] = _('Albanian lek'); -$CurrenciesArray['AMD']['Currency'] = _('Armenian dram'); -$CurrenciesArray['ANG']['Currency'] = _('Netherlands Antillean guilder'); -$CurrenciesArray['AOA']['Currency'] = _('Angolan kwanza'); -$CurrenciesArray['ARS']['Currency'] = _('Argentine peso'); -$CurrenciesArray['AUD']['Currency'] = _('Australian dollar'); -$CurrenciesArray['AWG']['Currency'] = _('Aruban florin'); -$CurrenciesArray['AZN']['Currency'] = _('Azerbaijani manat'); -$CurrenciesArray['BAM']['Currency'] = _('Bosnia and Herzegovina convertible mark'); -$CurrenciesArray['BBD']['Currency'] = _('Barbados dollar'); -$CurrenciesArray['BDT']['Currency'] = _('Bangladeshi taka'); -$CurrenciesArray['BGN']['Currency'] = _('Bulgarian lev'); -$CurrenciesArray['BHD']['Currency'] = _('Bahraini dinar'); -$CurrenciesArray['BIF']['Currency'] = _('Burundian franc'); -$CurrenciesArray['BMD']['Currency'] = _('Bermudian dollar'); -$CurrenciesArray['BND']['Currency'] = _('Brunei dollar'); -$CurrenciesArray['BOB']['Currency'] = _('Bolivian Boliviano'); -$CurrenciesArray['BOV']['Currency'] = _('Bolivian Mvdol (funds code)'); -$CurrenciesArray['BRL']['Currency'] = _('Brazilian real'); -$CurrenciesArray['BSD']['Currency'] = _('Bahamian dollar'); -$CurrenciesArray['BTN']['Currency'] = _('Bhutanese ngultrum'); -$CurrenciesArray['BWP']['Currency'] = _('Botswana pula'); -$CurrenciesArray['BYR']['Currency'] = _('Belarusian ruble'); -$CurrenciesArray['BZD']['Currency'] = _('Belize dollar'); -$CurrenciesArray['CAD']['Currency'] = _('Canadian dollar'); -$CurrenciesArray['CDF']['Currency'] = _('Congolese franc'); -$CurrenciesArray['CHE']['Currency'] = _('Swiss WIR Euro (complementary currency)'); -$CurrenciesArray['CHF']['Currency'] = _('Swiss franc'); -$CurrenciesArray['CHW']['Currency'] = _('Swiss WIR Franc (complementary currency)'); -$CurrenciesArray['CLF']['Currency'] = _('Chilean Unidad de Fomento (funds code)'); -$CurrenciesArray['CLP']['Currency'] = _('Chilean peso'); -$CurrenciesArray['CNY']['Currency'] = _('Chinese yuan'); -$CurrenciesArray['COP']['Currency'] = _('Colombian peso'); -$CurrenciesArray['COU']['Currency'] = _('Colombian Unidad de Valor Real'); -$CurrenciesArray['CRC']['Currency'] = _('Costa Rican colon'); -$CurrenciesArray['CUC']['Currency'] = _('Cuban peso convertible'); -$CurrenciesArray['CUP']['Currency'] = _('Cuban peso'); -$CurrenciesArray['CVE']['Currency'] = _('Cape Verde escudo'); -$CurrenciesArray['CZK']['Currency'] = _('Czech koruna'); -$CurrenciesArray['DJF']['Currency'] = _('Djiboutian franc'); -$CurrenciesArray['DKK']['Currency'] = _('Danish krone'); -$CurrenciesArray['DOP']['Currency'] = _('Dominican peso'); -$CurrenciesArray['DZD']['Currency'] = _('Algerian dinar'); -$CurrenciesArray['EGP']['Currency'] = _('Egyptian pound'); -$CurrenciesArray['ERN']['Currency'] = _('Eritrean nakfa'); -$CurrenciesArray['ETB']['Currency'] = _('Ethiopian birr'); -$CurrenciesArray['EUR']['Currency'] = _('European Union euro'); -$CurrenciesArray['FJD']['Currency'] = _('Fiji dollar'); -$CurrenciesArray['FKP']['Currency'] = _('Falkland Islands pound'); -$CurrenciesArray['GBP']['Currency'] = _('United Kingdom pound sterling'); -$CurrenciesArray['GEL']['Currency'] = _('Georgian lari'); -$CurrenciesArray['GHS']['Currency'] = _('Ghanaian cedi'); -$CurrenciesArray['GIP']['Currency'] = _('Gibraltar pound'); -$CurrenciesArray['GMD']['Currency'] = _('Gambian dalasi'); -$CurrenciesArray['GNF']['Currency'] = _('Guinean franc'); -$CurrenciesArray['GTQ']['Currency'] = _('Guatemalan quetzal'); -$CurrenciesArray['GYD']['Currency'] = _('Guyanese dollar'); -$CurrenciesArray['HKD']['Currency'] = _('Hong Kong dollar'); -$CurrenciesArray['HNL']['Currency'] = _('Honduran lempira'); -$CurrenciesArray['HRK']['Currency'] = _('Croatian kuna'); -$CurrenciesArray['HTG']['Currency'] = _('Haitian gourde'); -$CurrenciesArray['HUF']['Currency'] = _('Hungarian forint'); -$CurrenciesArray['IDR']['Currency'] = _('Indonesian rupiah'); -$CurrenciesArray['ILS']['Currency'] = _('Israeli new shekel'); -$CurrenciesArray['INR']['Currency'] = _('Indian rupee'); -$CurrenciesArray['IQD']['Currency'] = _('Iraqi dinar'); -$CurrenciesArray['IRR']['Currency'] = _('Iranian rial'); -$CurrenciesArray['ISK']['Currency'] = _('Icelandic króna'); -$CurrenciesArray['JMD']['Currency'] = _('Jamaican dollar'); -$CurrenciesArray['JOD']['Currency'] = _('Jordanian dinar'); -$CurrenciesArray['JPY']['Currency'] = _('Japanese yen'); -$CurrenciesArray['KES']['Currency'] = _('Kenyan shilling'); -$CurrenciesArray['KGS']['Currency'] = _('Kyrgyzstani som'); -$CurrenciesArray['KHR']['Currency'] = _('Cambodian riel'); -$CurrenciesArray['KMF']['Currency'] = _('Comoro franc'); -$CurrenciesArray['KPW']['Currency'] = _('North Korean won'); -$CurrenciesArray['KRW']['Currency'] = _('South Korean won'); -$CurrenciesArray['KWD']['Currency'] = _('Kuwaiti dinar'); -$CurrenciesArray['KYD']['Currency'] = _('Cayman Islands dollar'); -$CurrenciesArray['KZT']['Currency'] = _('Kazakhstani tenge'); -$CurrenciesArray['LAK']['Currency'] = _('Lao kip'); -$CurrenciesArray['LBP']['Currency'] = _('Lebanese pound'); -$CurrenciesArray['LKR']['Currency'] = _('Sri Lankan rupee'); -$CurrenciesArray['LRD']['Currency'] = _('Liberian dollar'); -$CurrenciesArray['LSL']['Currency'] = _('Lesotho loti'); -$CurrenciesArray['LTL']['Currency'] = _('Lithuanian litas'); -$CurrenciesArray['LVL']['Currency'] = _('Latvian lats'); -$CurrenciesArray['LYD']['Currency'] = _('Libyan dinar'); -$CurrenciesArray['MAD']['Currency'] = _('Moroccan dirham'); -$CurrenciesArray['MDL']['Currency'] = _('Moldovan leu'); -$CurrenciesArray['MGA']['Currency'] = _('Malagasy ariary'); -$CurrenciesArray['MKD']['Currency'] = _('Macedonian denar'); -$CurrenciesArray['MMK']['Currency'] = _('Myanmar kyat'); -$CurrenciesArray['MNT']['Currency'] = _('Mongolian tugrik'); -$CurrenciesArray['MOP']['Currency'] = _('Macanese pataca'); -$CurrenciesArray['MRO']['Currency'] = _('Mauritanian ouguiya'); -$CurrenciesArray['MUR']['Currency'] = _('Mauritian rupee'); -$CurrenciesArray['MVR']['Currency'] = _('Maldivian rufiyaa'); -$CurrenciesArray['MWK']['Currency'] = _('Malawian kwacha'); -$CurrenciesArray['MXN']['Currency'] = _('Mexican peso'); -$CurrenciesArray['MXV']['Currency'] = _('Mexican Unidad de Inversion (funds code)'); -$CurrenciesArray['MYR']['Currency'] = _('Malaysian ringgit'); -$CurrenciesArray['MZN']['Currency'] = _('Mozambican metical'); -$CurrenciesArray['NAD']['Currency'] = _('Namibian dollar'); -$CurrenciesArray['NGN']['Currency'] = _('Nigerian naira'); -$CurrenciesArray['NIO']['Currency'] = _('Nicaraguan córdoba'); -$CurrenciesArray['NOK']['Currency'] = _('Norwegian krone'); -$CurrenciesArray['NPR']['Currency'] = _('Nepalese rupee'); -$CurrenciesArray['NZD']['Currency'] = _('New Zealand dollar'); -$CurrenciesArray['OMR']['Currency'] = _('Omani rial'); -$CurrenciesArray['PAB']['Currency'] = _('Panamanian balboa'); -$CurrenciesArray['PEN']['Currency'] = _('Peruvian nuevo sol'); -$CurrenciesArray['PGK']['Currency'] = _('Papua New Guinean kina'); -$CurrenciesArray['PHP']['Currency'] = _('Philippine peso'); -$CurrenciesArray['PKR']['Currency'] = _('Pakistani rupee'); -$CurrenciesArray['PLN']['Currency'] = _('Polish złoty'); -$CurrenciesArray['PYG']['Currency'] = _('Paraguayan guaraní'); -$CurrenciesArray['QAR']['Currency'] = _('Qatari riyal'); -$CurrenciesArray['RON']['Currency'] = _('Romanian new leu'); -$CurrenciesArray['RSD']['Currency'] = _('Serbian dinar'); -$CurrenciesArray['RUB']['Currency'] = _('Russian rouble'); -$CurrenciesArray['RWF']['Currency'] = _('Rwandan franc'); -$CurrenciesArray['SAR']['Currency'] = _('Saudi riyal'); -$CurrenciesArray['SBD']['Currency'] = _('Solomon Islands dollar'); -$CurrenciesArray['SCR']['Currency'] = _('Seychelles rupee'); -$CurrenciesArray['SDG']['Currency'] = _('Sudanese pound'); -$CurrenciesArray['SEK']['Currency'] = _('Swedish krona'); -$CurrenciesArray['SGD']['Currency'] = _('Singapore dollar'); -$CurrenciesArray['SHP']['Currency'] = _('Saint Helena pound'); -$CurrenciesArray['SLL']['Currency'] = _('Sierra Leonean leone'); -$CurrenciesArray['SOS']['Currency'] = _('Somali shilling'); -$CurrenciesArray['SRD']['Currency'] = _('Surinamese dollar'); -$CurrenciesArray['SSP']['Currency'] = _('South Sudanese pound'); -$CurrenciesArray['STD']['Currency'] = _('São Tomé and Príncipe dobra'); -$CurrenciesArray['SYP']['Currency'] = _('Syrian pound'); -$CurrenciesArray['SZL']['Currency'] = _('Swazi lilangeni'); -$CurrenciesArray['THB']['Currency'] = _('Thai baht'); -$CurrenciesArray['TJS']['Currency'] = _('Tajikistani somoni'); -$CurrenciesArray['TMT']['Currency'] = _('Turkmenistani manat'); -$CurrenciesArray['TND']['Currency'] = _('Tunisian dinar'); -$CurrenciesArray['TOP']['Currency'] = _('Tongan paʻanga'); -$CurrenciesArray['TRY']['Currency'] = _('Turkish lira'); -$CurrenciesArray['TTD']['Currency'] = _('Trinidad and Tobago dollar'); -$CurrenciesArray['TWD']['Currency'] = _('Taiwan new dollar'); -$CurrenciesArray['TZS']['Currency'] = _('Tanzanian shilling'); -$CurrenciesArray['UAH']['Currency'] = _('Ukrainian hryvnia'); -$CurrenciesArray['UGX']['Currency'] = _('Ugandan shilling'); -$CurrenciesArray['USD']['Currency'] = _('United States dollar'); -$CurrenciesArray['USN']['Currency'] = _('United States dollar next day (funds code)'); -$CurrenciesArray['USS']['Currency'] = _('United States dollar same day (funds code)'); -$CurrenciesArray['UYI']['Currency'] = _('Uruguayan unidad indexada (funds code)'); -$CurrenciesArray['UYU']['Currency'] = _('Uruguayan peso'); -$CurrenciesArray['UZS']['Currency'] = _('Uzbekistan som'); -$CurrenciesArray['VEF']['Currency'] = _('Venezuelan bolívar fuerte'); -$CurrenciesArray['VND']['Currency'] = _('Vietnamese dong'); -$CurrenciesArray['VUV']['Currency'] = _('Vanuatu vatu'); -$CurrenciesArray['WST']['Currency'] = _('Samoan tala'); -$CurrenciesArray['XAF']['Currency'] = _('CFA franc BEAC'); -$CurrenciesArray['XAG']['Currency'] = _('Silver (one troy ounce)'); -$CurrenciesArray['XAU']['Currency'] = _('Gold (one troy ounce)'); -$CurrenciesArray['XBA']['Currency'] = _('European Composite Unit'); -$CurrenciesArray['XBB']['Currency'] = _('European Monetary Unit'); -$CurrenciesArray['XBC']['Currency'] = _('European Unit of Account 9'); -$CurrenciesArray['XBD']['Currency'] = _('European Unit of Account 17'); -$CurrenciesArray['XCD']['Currency'] = _('East Caribbean dollar'); -$CurrenciesArray['XDR']['Currency'] = _('Special drawing rights'); -$CurrenciesArray['XFU']['Currency'] = _('UIC franc (special settlement currency)'); -$CurrenciesArray['XOF']['Currency'] = _('CFA franc BCEAO'); -$CurrenciesArray['XPD']['Currency'] = _('Palladium (one troy ounce)'); -$CurrenciesArray['XPF']['Currency'] = _('CFP franc'); -$CurrenciesArray['XPT']['Currency'] = _('Platinum (one troy ounce)'); -$CurrenciesArray['XTS']['Currency'] = _('Code reserved for testing purposes'); -$CurrenciesArray['XXX']['Currency'] = _('No currency'); -$CurrenciesArray['YER']['Currency'] = _('Yemeni rial'); -$CurrenciesArray['ZAR']['Currency'] = _('South African rand'); -$CurrenciesArray['ZMW']['Currency'] = _('Zambian kwacha'); -/* END AlphabeticCode and CurrencyName data */ +// BEGIN: AlphabeticCode and CurrencyName data. +$CurrencyName['AED'] = _('United Arab Emirates dirham'); +$CurrencyName['AFN'] = _('Afghan afghani'); +$CurrencyName['ALL'] = _('Albanian lek'); +$CurrencyName['AMD'] = _('Armenian dram'); +$CurrencyName['ANG'] = _('Netherlands Antillean guilder'); +$CurrencyName['AOA'] = _('Angolan kwanza'); +$CurrencyName['ARS'] = _('Argentine peso'); +$CurrencyName['AUD'] = _('Australian dollar'); +$CurrencyName['AWG'] = _('Aruban florin'); +$CurrencyName['AZN'] = _('Azerbaijani manat'); +$CurrencyName['BAM'] = _('Bosnia and Herzegovina convertible mark'); +$CurrencyName['BBD'] = _('Barbados dollar'); +$CurrencyName['BDT'] = _('Bangladeshi taka'); +$CurrencyName['BGN'] = _('Bulgarian lev'); +$CurrencyName['BHD'] = _('Bahraini dinar'); +$CurrencyName['BIF'] = _('Burundian franc'); +$CurrencyName['BMD'] = _('Bermudian dollar'); +$CurrencyName['BND'] = _('Brunei dollar'); +$CurrencyName['BOB'] = _('Bolivian Boliviano'); +$CurrencyName['BOV'] = _('Bolivian Mvdol (funds code)'); +$CurrencyName['BRL'] = _('Brazilian real'); +$CurrencyName['BSD'] = _('Bahamian dollar'); +$CurrencyName['BTN'] = _('Bhutanese ngultrum'); +$CurrencyName['BWP'] = _('Botswana pula'); +$CurrencyName['BYR'] = _('Belarusian ruble'); +$CurrencyName['BZD'] = _('Belize dollar'); +$CurrencyName['CAD'] = _('Canadian dollar'); +$CurrencyName['CDF'] = _('Congolese franc'); +$CurrencyName['CHE'] = _('Swiss WIR Euro (complementary currency)'); +$CurrencyName['CHF'] = _('Swiss franc'); +$CurrencyName['CHW'] = _('Swiss WIR Franc (complementary currency)'); +$CurrencyName['CLF'] = _('Chilean Unidad de Fomento (funds code)'); +$CurrencyName['CLP'] = _('Chilean peso'); +$CurrencyName['CNY'] = _('Chinese yuan'); +$CurrencyName['COP'] = _('Colombian peso'); +$CurrencyName['COU'] = _('Colombian Unidad de Valor Real'); +$CurrencyName['CRC'] = _('Costa Rican colon'); +$CurrencyName['CUC'] = _('Cuban peso convertible'); +$CurrencyName['CUP'] = _('Cuban peso'); +$CurrencyName['CVE'] = _('Cape Verde escudo'); +$CurrencyName['CZK'] = _('Czech koruna'); +$CurrencyName['DJF'] = _('Djiboutian franc'); +$CurrencyName['DKK'] = _('Danish krone'); +$CurrencyName['DOP'] = _('Dominican peso'); +$CurrencyName['DZD'] = _('Algerian dinar'); +$CurrencyName['EGP'] = _('Egyptian pound'); +$CurrencyName['ERN'] = _('Eritrean nakfa'); +$CurrencyName['ETB'] = _('Ethiopian birr'); +$CurrencyName['EUR'] = _('European Union euro'); +$CurrencyName['FJD'] = _('Fiji dollar'); +$CurrencyName['FKP'] = _('Falkland Islands pound'); +$CurrencyName['GBP'] = _('United Kingdom pound sterling'); +$CurrencyName['GEL'] = _('Georgian lari'); +$CurrencyName['GHS'] = _('Ghanaian cedi'); +$CurrencyName['GIP'] = _('Gibraltar pound'); +$CurrencyName['GMD'] = _('Gambian dalasi'); +$CurrencyName['GNF'] = _('Guinean franc'); +$CurrencyName['GTQ'] = _('Guatemalan quetzal'); +$CurrencyName['GYD'] = _('Guyanese dollar'); +$CurrencyName['HKD'] = _('Hong Kong dollar'); +$CurrencyName['HNL'] = _('Honduran lempira'); +$CurrencyName['HRK'] = _('Croatian kuna'); +$CurrencyName['HTG'] = _('Haitian gourde'); +$CurrencyName['HUF'] = _('Hungarian forint'); +$CurrencyName['IDR'] = _('Indonesian rupiah'); +$CurrencyName['ILS'] = _('Israeli new shekel'); +$CurrencyName['INR'] = _('Indian rupee'); +$CurrencyName['IQD'] = _('Iraqi dinar'); +$CurrencyName['IRR'] = _('Iranian rial'); +$CurrencyName['ISK'] = _('Icelandic króna'); +$CurrencyName['JMD'] = _('Jamaican dollar'); +$CurrencyName['JOD'] = _('Jordanian dinar'); +$CurrencyName['JPY'] = _('Japanese yen'); +$CurrencyName['KES'] = _('Kenyan shilling'); +$CurrencyName['KGS'] = _('Kyrgyzstani som'); +$CurrencyName['KHR'] = _('Cambodian riel'); +$CurrencyName['KMF'] = _('Comoro franc'); +$CurrencyName['KPW'] = _('North Korean won'); +$CurrencyName['KRW'] = _('South Korean won'); +$CurrencyName['KWD'] = _('Kuwaiti dinar'); +$CurrencyName['KYD'] = _('Cayman Islands dollar'); +$CurrencyName['KZT'] = _('Kazakhstani tenge'); +$CurrencyName['LAK'] = _('Lao kip'); +$CurrencyName['LBP'] = _('Lebanese pound'); +$CurrencyName['LKR'] = _('Sri Lankan rupee'); +$CurrencyName['LRD'] = _('Liberian dollar'); +$CurrencyName['LSL'] = _('Lesotho loti'); +$CurrencyName['LTL'] = _('Lithuanian litas'); +$CurrencyName['LVL'] = _('Latvian lats'); +$CurrencyName['LYD'] = _('Libyan dinar'); +$CurrencyName['MAD'] = _('Moroccan dirham'); +$CurrencyName['MDL'] = _('Moldovan leu'); +$CurrencyName['MGA'] = _('Malagasy ariary'); +$CurrencyName['MKD'] = _('Macedonian denar'); +$CurrencyName['MMK'] = _('Myanmar kyat'); +$CurrencyName['MNT'] = _('Mongolian tugrik'); +$CurrencyName['MOP'] = _('Macanese pataca'); +$CurrencyName['MRO'] = _('Mauritanian ouguiya'); +$CurrencyName['MUR'] = _('Mauritian rupee'); +$CurrencyName['MVR'] = _('Maldivian rufiyaa'); +$CurrencyName['MWK'] = _('Malawian kwacha'); +$CurrencyName['MXN'] = _('Mexican peso'); +$CurrencyName['MXV'] = _('Mexican Unidad de Inversion (funds code)'); +$CurrencyName['MYR'] = _('Malaysian ringgit'); +$CurrencyName['MZN'] = _('Mozambican metical'); +$CurrencyName['NAD'] = _('Namibian dollar'); +$CurrencyName['NGN'] = _('Nigerian naira'); +$CurrencyName['NIO'] = _('Nicaraguan córdoba'); +$CurrencyName['NOK'] = _('Norwegian krone'); +$CurrencyName['NPR'] = _('Nepalese rupee'); +$CurrencyName['NZD'] = _('New Zealand dollar'); +$CurrencyName['OMR'] = _('Omani rial'); +$CurrencyName['PAB'] = _('Panamanian balboa'); +$CurrencyName['PEN'] = _('Peruvian nuevo sol'); +$CurrencyName['PGK'] = _('Papua New Guinean kina'); +$CurrencyName['PHP'] = _('Philippine peso'); +$CurrencyName['PKR'] = _('Pakistani rupee'); +$CurrencyName['PLN'] = _('Polish złoty'); +$CurrencyName['PYG'] = _('Paraguayan guaraní'); +$CurrencyName['QAR'] = _('Qatari riyal'); +$CurrencyName['RON'] = _('Romanian new leu'); +$CurrencyName['RSD'] = _('Serbian dinar'); +$CurrencyName['RUB'] = _('Russian rouble'); +$CurrencyName['RWF'] = _('Rwandan franc'); +$CurrencyName['SAR'] = _('Saudi riyal'); +$CurrencyName['SBD'] = _('Solomon Islands dollar'); +$CurrencyName['SCR'] = _('Seychelles rupee'); +$CurrencyName['SDG'] = _('Sudanese pound'); +$CurrencyName['SEK'] = _('Swedish krona'); +$CurrencyName['SGD'] = _('Singapore dollar'); +$CurrencyName['SHP'] = _('Saint Helena pound'); +$CurrencyName['SLL'] = _('Sierra Leonean leone'); +$CurrencyName['SOS'] = _('Somali shilling'); +$CurrencyName['SRD'] = _('Surinamese dollar'); +$CurrencyName['SSP'] = _('South Sudanese pound'); +$CurrencyName['STD'] = _('São Tomé and Príncipe dobra'); +$CurrencyName['SYP'] = _('Syrian pound'); +$CurrencyName['SZL'] = _('Swazi lilangeni'); +$CurrencyName['THB'] = _('Thai baht'); +$CurrencyName['TJS'] = _('Tajikistani somoni'); +$CurrencyName['TMT'] = _('Turkmenistani manat'); +$CurrencyName['TND'] = _('Tunisian dinar'); +$CurrencyName['TOP'] = _('Tongan paʻanga'); +$CurrencyName['TRY'] = _('Turkish lira'); +$CurrencyName['TTD'] = _('Trinidad and Tobago dollar'); +$CurrencyName['TWD'] = _('Taiwan new dollar'); +$CurrencyName['TZS'] = _('Tanzanian shilling'); +$CurrencyName['UAH'] = _('Ukrainian hryvnia'); +$CurrencyName['UGX'] = _('Ugandan shilling'); +$CurrencyName['USD'] = _('United States dollar'); +$CurrencyName['USN'] = _('United States dollar next day (funds code)'); +$CurrencyName['USS'] = _('United States dollar same day (funds code)'); +$CurrencyName['UYI'] = _('Uruguayan unidad indexada (funds code)'); +$CurrencyName['UYU'] = _('Uruguayan peso'); +$CurrencyName['UZS'] = _('Uzbekistan som'); +$CurrencyName['VEF'] = _('Venezuelan bolívar fuerte'); +$CurrencyName['VND'] = _('Vietnamese dong'); +$CurrencyName['VUV'] = _('Vanuatu vatu'); +$CurrencyName['WST'] = _('Samoan tala'); +$CurrencyName['XAF'] = _('CFA franc BEAC'); +$CurrencyName['XAG'] = _('Silver (one troy ounce)'); +$CurrencyName['XAU'] = _('Gold (one troy ounce)'); +$CurrencyName['XBA'] = _('European Composite Unit'); +$CurrencyName['XBB'] = _('European Monetary Unit'); +$CurrencyName['XBC'] = _('European Unit of Account 9'); +$CurrencyName['XBD'] = _('European Unit of Account 17'); +$CurrencyName['XCD'] = _('East Caribbean dollar'); +$CurrencyName['XDR'] = _('Special drawing rights'); +$CurrencyName['XFU'] = _('UIC franc (special settlement currency)'); +$CurrencyName['XOF'] = _('CFA franc BCEAO'); +$CurrencyName['XPD'] = _('Palladium (one troy ounce)'); +$CurrencyName['XPF'] = _('CFP franc'); +$CurrencyName['XPT'] = _('Platinum (one troy ounce)'); +$CurrencyName['XTS'] = _('Code reserved for testing purposes'); +$CurrencyName['XXX'] = _('No currency'); +$CurrencyName['YER'] = _('Yemeni rial'); +$CurrencyName['ZAR'] = _('South African rand'); +$CurrencyName['ZMW'] = _('Zambian kwacha'); +// END: AlphabeticCode and CurrencyName data. -asort($CurrenciesArray); +asort($CurrencyName); ?> Modified: trunk/includes/PDFQuotationPageHeader.inc =================================================================== --- trunk/includes/PDFQuotationPageHeader.inc 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/includes/PDFQuotationPageHeader.inc 2013-12-11 20:33:46 UTC (rev 6494) @@ -89,8 +89,8 @@ $pdf->addTextWrap($Page_Width-$Right_Margin-200, $Page_Height-$Top_Margin-$FontSize*3, 200, $FontSize, _('Date'). ': '.ConvertSQLDate($myrow['orddate']), 'right'); $pdf->addTextWrap($Page_Width-$Right_Margin-200, $Page_Height-$Top_Margin-$FontSize*4, 200, $FontSize, _('Page').': '.$PageNumber, 'right'); -include($PathPrefix . 'includes/CurrenciesArray.php'); /* To get the currency name */ -$pdf->addText($Page_Width/2-60, $YPos-5, $FontSize, _('All amounts stated in') . ' - ' . $myrow['currcode'] . ' ' . $CurrenciesArray[$myrow['currcode']]['Currency']); +include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name from the currency code. +$pdf->addText($Page_Width/2-60, $YPos-5, $FontSize, _('All amounts stated in') . ' - ' . $myrow['currcode'] . ' ' . $CurrencyName[$myrow['currcode']]); $YPos -= 37; $XPos = 40; Modified: trunk/includes/PDFTransPageHeader.inc =================================================================== --- trunk/includes/PDFTransPageHeader.inc 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/includes/PDFTransPageHeader.inc 2013-12-11 20:33:46 UTC (rev 6494) @@ -155,8 +155,8 @@ $XPos = $Left_Margin; $YPos -= ($line_height*2); -include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name -$pdf->addText($Left_Margin, $YPos-8, $FontSize, _('All amounts stated in') . ': ' . $myrow['currcode'] . ' ' . $CurrenciesArray[$myrow['currcode']]['Currency']); +include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name from the currency code. +$pdf->addText($Left_Margin, $YPos-8, $FontSize, _('All amounts stated in') . ': ' . $myrow['currcode'] . ' ' . $CurrencyName[$myrow['currcode']]); /*draw a box with nice round corner for entering line items */ /*90 degree arc at top right of box 0 degrees starts a bottom */ @@ -219,4 +219,4 @@ $YPos -= ($line_height); -?> \ No newline at end of file +?> Modified: trunk/includes/PDFTransPageHeaderPortrait.inc =================================================================== --- trunk/includes/PDFTransPageHeaderPortrait.inc 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/includes/PDFTransPageHeaderPortrait.inc 2013-12-11 20:33:46 UTC (rev 6494) @@ -208,8 +208,8 @@ $XPos = $Left_Margin; $FontSize = 8; -include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name -$pdf->addText($Left_Margin, $YPos-8, $FontSize, _('All amounts stated in') . ': ' . $myrow['currcode'] . ' ' . $CurrenciesArray[$myrow['currcode']]['Currency']); +include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name from the currency code. +$pdf->addText($Left_Margin, $YPos-8, $FontSize, _('All amounts stated in') . ': ' . $myrow['currcode'] . ' ' . $CurrencyName[$myrow['currcode']]); $BoxHeight = $Page_Height-282; Modified: trunk/includes/PO_PDFOrderPageHeader.inc =================================================================== --- trunk/includes/PO_PDFOrderPageHeader.inc 2013-12-11 08:45:52 UTC (rev 6493) +++ trunk/includes/PO_PDFOrderPageHeader.inc 2013-12-11 20:33:46 UTC (rev 6494) @@ -67,8 +67,8 @@ $LeftOvers = $pdf->addTextWrap($FormDesign->Comments->x, $Page_Height - $FormDesign->Comments->y-$line_height,$FormDesign->Comments->Length,$FormDesign->Comments->FontSize,$LeftOvers, 'left'); } /*Now the currency the order is in */ -include($PathPrefix . 'includes/CurrenciesArray.php'); /* To get the currency name */ -$pdf->addText($FormDesign->Currency->x,$Page_Height - $FormDesign->Currency->y,$FormDesign->Currency->FontSize, _('All amounts stated in').' - ' . $POHeader['currcode'] . ' ' . $CurrenciesArray[$POHeader['currcode']]['Currency']); +include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name from the currency code. +$pdf->addText($FormDesign->Currency->x,$Page_Height - $FormDesign->Currency->y,$FormDesign->Currency->FontSize, _('All amounts stated in').' - ' . $POHeader['currcode'] . ' ' . $CurrencyName[$POHeader['currcode']]); /*draw a square grid for entering line headings */ $pdf->Rectangle($FormDesign->HeaderRectangle->x, $Page_Height - $FormDesign->HeaderRectangle->y, $FormDesign->HeaderRectangle->width,$FormDesign->HeaderRectangle->height); /*Set up headings */ |
From: <rc...@us...> - 2013-12-11 23:05:33
|
Revision: 6495 http://sourceforge.net/p/web-erp/reponame/6495 Author: rchacon Date: 2013-12-11 23:05:30 +0000 (Wed, 11 Dec 2013) Log Message: ----------- Translation adjustments. Modified Paths: -------------- trunk/SystemParameters.php trunk/TopItems.php trunk/UnitsOfMeasure.php trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2013-12-11 20:33:46 UTC (rev 6494) +++ trunk/SystemParameters.php 2013-12-11 23:05:30 UTC (rev 6495) @@ -787,7 +787,7 @@ $_SESSION['NumberOfMonthMustBeShown'] = $row['confvalue']; echo '<tr style="outline: 1px solid"><td>' . _('Number Of Month Must Be Shown') . ':</td> - <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]+" required="required" title="'._('input must be positive integer').'" placeholder="'._('postive integer').'" name="X_NumberOfMonthMustBeShown" size="4" maxlength="3" value="' . $_SESSION['NumberOfMonthMustBeShown'] . '" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]+" required="required" title="'._('input must be positive integer').'" placeholder="'._('positive integer').'" name="X_NumberOfMonthMustBeShown" size="4" maxlength="3" value="' . $_SESSION['NumberOfMonthMustBeShown'] . '" /></td> <td>' . _('Number of month must be shown on report can be changed with this parameters ex: in CustomerInquiry.php ') . '</td> </tr>'; Modified: trunk/TopItems.php =================================================================== --- trunk/TopItems.php 2013-12-11 20:33:46 UTC (rev 6494) +++ trunk/TopItems.php 2013-12-11 23:05:30 UTC (rev 6495) @@ -91,18 +91,18 @@ echo '<tr> <td>' . _('Number Of Days') . ' </td> <td>:</td> - <td><input class="integer" required="required" pattern="(?!^0*$)(\d+)" title="'._('The input must be positive integer').'" tabindex="3" type="text" name="NumberOfDays" size="8" maxlength="8" value="30" /></td> + <td><input class="integer" required="required" pattern="(?!^0*$)(\d+)" title="'._('The input must be positive integer').'" tabindex="3" type="text" name="NumberOfDays" size="8" maxlength="8" value="30" /></td> </tr>'; //Stock in days less than echo '<tr> <td>' . _('With less than') . ' </td><td>:</td> - <td><input class="integer" required="required" pattern="(?!^0*$)(\d+)" title="'._('The input must be postive integer').'" tabindex="4" type="text" name="MaxDaysOfStock" size="8" maxlength="8" value="99999" /></td> + <td><input class="integer" required="required" pattern="(?!^0*$)(\d+)" title="'._('The input must be positive integer').'" tabindex="4" type="text" name="MaxDaysOfStock" size="8" maxlength="8" value="99999" /></td> <td>' . ' ' . _('Days of Stock (QOH + QOO) Available') . ' </td> </tr>'; //view number of NumberOfTopItems items echo '<tr> <td>' . _('Number Of Top Items') . ' </td><td>:</td> - <td><input class="integer" required="required" pattern="(?!^0*$)(\d+)" title="'._('The input must be positive integer').'" tabindex="4" type="text" name="NumberOfTopItems" size="8" maxlength="8" value="100" /></td> + <td><input class="integer" required="required" pattern="(?!^0*$)(\d+)" title="'._('The input must be positive integer').'" tabindex="4" type="text" name="NumberOfTopItems" size="8" maxlength="8" value="100" /></td> </tr> <tr> <td></td> Modified: trunk/UnitsOfMeasure.php =================================================================== --- trunk/UnitsOfMeasure.php 2013-12-11 20:33:46 UTC (rev 6494) +++ trunk/UnitsOfMeasure.php 2013-12-11 23:05:30 UTC (rev 6495) @@ -233,7 +233,7 @@ } echo '<tr> <td>' . _('Unit of Measure') . ':' . '</td> - <td><input required="required" pattern="(?!^ *$)[^+<>-]{1,}" type="text" name="MeasureName" title="'._('Cannot be blank or contains illegal characters').'" placeholder="'._('More than one characters').'" size="30" maxlength="30" value="' . $_POST['MeasureName'] . '" /></td> + <td><input required="required" pattern="(?!^ *$)[^+<>-]{1,}" type="text" name="MeasureName" title="'._('Cannot be blank or contains illegal characters').'" placeholder="'._('More than one character').'" size="30" maxlength="30" value="' . $_POST['MeasureName'] . '" /></td> </tr>'; echo '</table>'; 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 2013-12-11 20:33:46 UTC (rev 6494) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2013-12-11 23:05:30 UTC (rev 6495) @@ -8,7 +8,7 @@ "Project-Id-Version: WebERP 4.081\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-12-09 12:52-0600\n" +"PO-Revision-Date: 2013-12-11 17:03-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -16414,24 +16414,20 @@ msgstr "Grupo de correo actual" #: MailingGroupMaintenance.php:212 -#, fuzzy msgid "View All Groups" -msgstr "Revisar grupos contables" +msgstr "Ver todos los grupos" #: MailingGroupMaintenance.php:216 -#, fuzzy msgid "Assigned Users" -msgstr "Asignador" +msgstr "Usuarios asignados" #: MailingGroupMaintenance.php:217 -#, fuzzy msgid "Available Users" -msgstr "Impuestos Disponibles" +msgstr "Usuarios disponibles" #: MailingGroupMaintenance.php:238 -#, fuzzy msgid "Are you sure you wish to remove this user from this mail group?" -msgstr "¿Confirma que desea eliminar esta autoridad fiscal del grupo?" +msgstr "¿Está seguro que desea eliminar este usuario de este grupo de correo?" #: MailingGroupMaintenance.php:238 SalesCategories.php:536 #: StockAdjustments.php:469 SupplierTenders.php:354 TaxGroups.php:380 @@ -16566,9 +16562,8 @@ msgstr "No Completado" #: MaintenanceTasks.php:97 MaintenanceUserSchedule.php:53 -#, fuzzy msgid "Person" -msgstr "Versión" +msgstr "Persona" #: MaintenanceTasks.php:98 MaintenanceTasks.php:212 #: MaintenanceUserSchedule.php:54 @@ -16712,9 +16707,8 @@ msgstr "No existen transacciones a desplegar desde" #: Manufacturers.php:188 -#, fuzzy msgid "Manufacturers" -msgstr "Fabricado" +msgstr "Fabricantes" #: Manufacturers.php:192 #, fuzzy @@ -18329,9 +18323,8 @@ "bancaria a través de SQL" #: Payments.php:647 -#, fuzzy msgid "Allocate this payment" -msgstr "No se puede localizar el Envío" +msgstr "Asignar este pago" #: Payments.php:648 msgid "Enter another Payment for" @@ -18430,12 +18423,10 @@ msgstr "Introduzca manualmente la cuenta contable" #: Payments.php:982 Payments.php:987 -#, fuzzy msgid "The account code" -msgstr "Código de cuenta contable" +msgstr "El código de cuenta" #: Payments.php:982 Payments.php:987 -#, fuzzy msgid "doesnt exist" msgstr "No existe" @@ -21444,9 +21435,8 @@ msgstr "c/u" #: PO_Items.php:849 -#, fuzzy msgid "Enter Item" -msgstr "Introducir Costo del Artículo" +msgstr "Introducir artículo" #: PO_Items.php:1108 msgid "Item Category" @@ -23215,9 +23205,8 @@ msgstr "Para proveedor" #: PurchaseByPrefSupplier.php:362 -#, fuzzy msgid "Show Items" -msgstr "Artículo de Existencias" +msgstr "Mostrar artículos" #: PurchaseByPrefSupplier.php:399 #, fuzzy @@ -23241,24 +23230,21 @@ msgstr "Ords. Expir." #: PurchaseByPrefSupplier.php:419 PurchaseByPrefSupplier.php:422 -#, fuzzy msgid "Last" -msgstr "Cant. ultimo envio" +msgstr "Último" #: PurchaseByPrefSupplier.php:420 PurchaseByPrefSupplier.php:421 #: PurchaseByPrefSupplier.php:422 -#, fuzzy msgid "Week" -msgstr "Semanal" +msgstr "Semana" #: PurchaseByPrefSupplier.php:420 -#, fuzzy msgid "3" -msgstr "A3" +msgstr "3" #: PurchaseByPrefSupplier.php:421 msgid "2" -msgstr "" +msgstr "2" #: PurchaseByPrefSupplier.php:447 PurchaseByPrefSupplier.php:471 #: PurchaseByPrefSupplier.php:500 PurchaseByPrefSupplier.php:531 @@ -23517,9 +23503,8 @@ msgstr "Factor de Conversión (a nuestra Unidad de Medida) " #: PurchData.php:275 -#, fuzzy msgid "Cost Per Our Unit" -msgstr "Costo Unitario" +msgstr "Costo por nuestra unidad" #: PurchData.php:277 PurchData.php:702 SellThroughSupport.php:266 #: SupplierPriceList.php:540 @@ -25123,14 +25108,13 @@ msgstr "Sub Categoría" #: SalesCategories.php:244 -#, fuzzy msgid "Active?" -msgstr "Acción" +msgstr "¡Activo?" #: SalesCategories.php:273 -#, fuzzy, php-format +#, php-format msgid "Are you sure you wish to delete this sales category?" -msgstr "¿Seguro que desea eliminar esta categoría de impuestos?" +msgstr "¡Está seguro que desea eliminar esta categoría de ventas?" #: SalesCategories.php:325 msgid "Edit Sub Category" @@ -27333,7 +27317,7 @@ #: SelectSupplier.php:289 Suppliers.php:738 Suppliers.php:958 msgid "URL" -msgstr "" +msgstr "URL" #: SelectSupplier.php:347 msgid "Mapping is enabled, but no Mapping data to display for this Supplier." @@ -28104,9 +28088,8 @@ msgstr "FEA" #: ShopParameters.php:7 ShopParameters.php:11 -#, fuzzy msgid "Shop Configuration" -msgstr "Parámetros ERP de la Compañía" +msgstr "Configuración de la tienda" #: ShopParameters.php:168 #, fuzzy @@ -28148,9 +28131,8 @@ msgstr "" #: ShopParameters.php:219 -#, fuzzy msgid "Shop Name" -msgstr "Nombre del Transportista" +msgstr "Nombre de la tienda" #: ShopParameters.php:221 #, fuzzy @@ -28159,9 +28141,8 @@ msgstr "Entre el nombre de la plantilla a ser creada" #: ShopParameters.php:226 -#, fuzzy msgid "Shop Title" -msgstr "Título del Informe" +msgstr "Título de la tienda" #: ShopParameters.php:228 #, fuzzy @@ -28287,9 +28268,8 @@ msgstr "La columna" #: ShopParameters.php:304 ShopParameters.php:306 -#, fuzzy msgid "Hide" -msgstr "Hindi" +msgstr "Ocultar" #: ShopParameters.php:310 msgid "" @@ -28298,9 +28278,8 @@ msgstr "" #: ShopParameters.php:319 -#, fuzzy msgid "Stock Locations" -msgstr "Ubicación de existencia" +msgstr "Ubicaciones de inventarios" #: ShopParameters.php:330 msgid "" @@ -28345,9 +28324,8 @@ msgstr "Regresar a la Pantalla de Transferencia" #: ShopParameters.php:388 -#, fuzzy msgid "Allow Bank Transfer Payment" -msgstr "No / Cancelar Pago" +msgstr "Permitir pagos con transferencias bancarias." #: ShopParameters.php:398 msgid "Allow bank transfers to be used for payments." @@ -28453,7 +28431,7 @@ #: ShopParameters.php:492 msgid "Allow Credit Card Payments" -msgstr "" +msgstr "Permitir pagos con tarjeta de crédito" #: ShopParameters.php:502 msgid "" @@ -32853,9 +32831,8 @@ msgstr "El período final debe ser numérico" #: SupplierInvoice.php:878 SupplierInvoice.php:881 SystemParameters.php:496 -#, fuzzy msgid "Manually" -msgstr "Manual" +msgstr "Manualmente" #: SupplierInvoice.php:943 msgid "Invoice Total" @@ -33067,9 +33044,8 @@ msgstr "Introduzca otra Factura para este Proveedor" #: SupplierInvoice.php:1884 -#, fuzzy msgid "Enter payment" -msgstr "Introduzca una parte de ..." +msgstr "Introduzca pago" #: SupplierPriceList.php:398 msgid "Search for a supplier" @@ -33365,14 +33341,12 @@ msgstr "el número entrado debe ser menor que 361 días" #: Suppliers.php:693 Suppliers.php:697 Suppliers.php:701 Suppliers.php:709 -#, fuzzy msgid "Less than 40 characters" -msgstr "(80 caracteres máximo)" +msgstr "Menos de 40 caracteres" #: Suppliers.php:705 -#, fuzzy msgid "Less than 50 characters" -msgstr "(80 caracteres máximo)" +msgstr "Menos de 50 caracteres" #: Suppliers.php:727 Suppliers.php:731 msgid "only number + - ( and ) allowed" @@ -35091,9 +35065,8 @@ msgstr "El límite de crédito debe ser un número positivo" #: SystemParameters.php:792 -#, fuzzy msgid "postive integer" -msgstr "interfaz de registros contables" +msgstr "entero positivo" #: SystemParameters.php:793 msgid "" @@ -36227,18 +36200,16 @@ msgstr "Valor de Ventas" #: TopItems.php:94 TopItems.php:105 -#, fuzzy msgid "The input must be positive integer" -msgstr "El límite de crédito debe ser un número positivo" +msgstr "La entrada debe ser un número entero positivo" #: TopItems.php:98 msgid "With less than" msgstr "Con menos de" #: TopItems.php:99 -#, fuzzy msgid "The input must be postive integer" -msgstr "El límite de crédito debe ser un número positivo" +msgstr "La entrada debe ser un número entero positivo" #: TopItems.php:100 msgid "Days of Stock (QOH + QOO) Available" @@ -36351,9 +36322,8 @@ msgstr "La forma de pago no puede contener caracteres prohibidos" #: UnitsOfMeasure.php:236 -#, fuzzy msgid "More than one characters" -msgstr "o el caracter" +msgstr "Más de un caracter" #: UpgradeDatabase.php:7 msgid "Upgrade webERP Database" @@ -37954,9 +37924,8 @@ msgstr "Código usuario" #: WWW_Users.php:423 -#, fuzzy msgid "At least 4 characters" -msgstr "(80 caracteres máximo)" +msgstr "Por lo menos 4 caracteres" #: WWW_Users.php:423 #, fuzzy @@ -37966,9 +37935,8 @@ msgstr "La forma de pago no puede contener caracteres prohibidos" #: WWW_Users.php:455 -#, fuzzy msgid "At least 5 characters" -msgstr "(80 caracteres máximo)" +msgstr "Por lo menos 5 caracteres" #: WWW_Users.php:455 msgid "" @@ -38347,9 +38315,8 @@ msgstr "PÁGINA DE HERRAMIENTAS Cambiar un Código de Localidad" #: Z_ChangeGLAccountCode.php:19 -#, fuzzy msgid "The GL account code" -msgstr "Código de cuenta contable" +msgstr "El código de cuenta contable" #: Z_ChangeGLAccountCode.php:19 #, fuzzy @@ -38429,7 +38396,6 @@ msgstr "Falló el SQL para eliminar el antiguo registro maestro de existencia" #: Z_ChangeGLAccountCode.php:124 -#, fuzzy msgid "GL account Code" msgstr "Código de cuenta contable" |
From: <rc...@us...> - 2013-12-12 02:48:19
|
Revision: 6496 http://sourceforge.net/p/web-erp/reponame/6496 Author: rchacon Date: 2013-12-12 02:48:15 +0000 (Thu, 12 Dec 2013) Log Message: ----------- Minor translation adjustements. Modified Paths: -------------- trunk/Currencies.php trunk/SystemParameters.php trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2013-12-11 23:05:30 UTC (rev 6495) +++ trunk/Currencies.php 2013-12-12 02:48:15 UTC (rev 6496) @@ -279,8 +279,7 @@ links to delete or edit each. These will call the same page again and allow update/input or deletion of the records*/ - $sql = "SELECT currency, - currabrev, + $sql = "SELECT currabrev, country, hundredsname, rate, @@ -297,7 +296,7 @@ <th>' . _('Country') . '</th> <th>' . _('Hundredths Name') . '</th> <th>' . _('Decimal Places') . '</th> - <th>' . _('Use in webSHOP') . '</th> + <th>' . _('Show in webSHOP') . '</th> <th>' . _('Exchange Rate') . '</th> <th>' . _('1 / Ex Rate') . '</th> <th>' . _('Ex Rate - ECB') . '</th> @@ -412,13 +411,12 @@ if (isset($SelectedCurrency) AND $SelectedCurrency!='') { //editing an existing currency - $sql = "SELECT currency, - currabrev, - country, - hundredsname, - decimalplaces, - rate, - webcart + $sql = "SELECT currabrev, + country, + hundredsname, + decimalplaces, + rate, + webcart FROM currencies WHERE currabrev='" . $SelectedCurrency . "'"; @@ -494,7 +492,7 @@ } echo '<tr> - <td>' . _('Show in webSHOP?') . ':</td> + <td>' . _('Show in webSHOP') . ':</td> <td><select name="webcart">'; if ($_POST['webcart']==1){ @@ -508,7 +506,6 @@ echo '<option value="0">' . _('No') . '</option>'; } - echo '</table>'; echo '<br /> Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2013-12-11 23:05:30 UTC (rev 6495) +++ trunk/SystemParameters.php 2013-12-12 02:48:15 UTC (rev 6496) @@ -749,7 +749,7 @@ //PageLength echo '<tr style="outline: 1px solid"><td>' . _('Report Page Length') . ':</td> - <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" title="'._('The input should be between 1~999').'" placeholder="'._(' 1 to 999').'" name="X_PageLength" size="4" maxlength="6" value="' . $_SESSION['PageLength'] . '" /></td><td> </td> + <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" title="'._('The input should be between 1~999').'" placeholder="'._('1 to 999').'" name="X_PageLength" size="4" maxlength="6" value="' . $_SESSION['PageLength'] . '" /></td><td> </td> </tr>'; //DefaultDisplayRecordsMax @@ -773,7 +773,7 @@ //MaxImageSize echo '<tr style="outline: 1px solid"> <td>' . _('Maximum Size in KB of uploaded images') . ':</td> - <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" required="required" title="'._('The input should be between 1 to 999').'" placeholder="'._('1 t0 999').'" name="X_MaxImageSize" size="4" maxlength="3" value="' . $_SESSION['MaxImageSize'] . '" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" required="required" title="'._('The input should be between 1 to 999').'" placeholder="'._('1 to 999').'" name="X_MaxImageSize" size="4" maxlength="3" value="' . $_SESSION['MaxImageSize'] . '" /></td> <td>' . _('Picture files of items can be uploaded to the server. The system will check that files uploaded are less than this size (in KB) before they will be allowed to be uploaded. Large pictures will make the system slow and will be difficult to view in the stock maintenance screen.') . '</td> </tr>'; //NumberOfMonthMustBeShown 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 2013-12-11 23:05:30 UTC (rev 6495) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2013-12-12 02:48:15 UTC (rev 6496) @@ -8,7 +8,7 @@ "Project-Id-Version: WebERP 4.081\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-12-11 17:03-0600\n" +"PO-Revision-Date: 2013-12-11 20:46-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -7612,9 +7612,8 @@ msgstr "Lugares Decimales" #: Currencies.php:300 -#, fuzzy msgid "Use in webSHOP" -msgstr "¿Mostrar en webSHOP?" +msgstr "Usar en webSHOP" #: Currencies.php:302 msgid "1 / Ex Rate" @@ -7656,7 +7655,6 @@ msgstr "Decimales al mostrar" #: Currencies.php:493 -#, fuzzy msgid "Show in webSHOP?" msgstr "¿Mostrar en webSHOP?" @@ -8437,9 +8435,8 @@ msgstr "" #: CustomerBranches.php:608 Customers.php:443 -#, fuzzy msgid "alpha-numeric" -msgstr "ser numérico" +msgstr "alfanumérico" #: CustomerBranches.php:619 SalesInquiry.php:830 SalesInquiry.php:849 #: SpecialOrder.php:150 @@ -10484,9 +10481,8 @@ msgstr "No se pudo encontrar el departamento seleccionado" #: Departments.php:239 -#, fuzzy msgid "The department name is required" -msgstr "El departamento no se pudo insertar" +msgstr "Se requiere el nombre del departamento" #: DiscountCategories.php:7 msgid "Discount Categories Maintenance" @@ -14825,9 +14821,8 @@ msgstr "El SQL usado para obtener los detalles de la cuenta bancaria fue" #: ImportBankTrans.php:162 -#, fuzzy msgid "The account" -msgstr "La columna" +msgstr "La cuenta" #: ImportBankTrans.php:162 msgid "" @@ -31117,7 +31112,7 @@ #: Stocks.php:877 msgid "alpha-numeric only" -msgstr "" +msgstr "solo alfanumerico" #: Stocks.php:977 msgid "" @@ -31185,7 +31180,7 @@ #: StockStatus.php:62 msgid "Alpha-numeric only" -msgstr "" +msgstr "Solo alfanumerico" #: StockStatus.php:96 msgid "In Transit" @@ -31754,7 +31749,7 @@ #: SuppFixedAssetChgs.php:123 msgid "Postive integer" -msgstr "" +msgstr "Entero positivo" #: SuppFixedAssetChgs.php:126 msgid "Select from list" @@ -34993,7 +34988,7 @@ #: SystemParameters.php:754 msgid " 1 to 999" -msgstr "" +msgstr "1 a 999" #: SystemParameters.php:759 msgid "Default Maximum Number of Records to Show" @@ -35036,7 +35031,7 @@ #: SystemParameters.php:778 msgid "1 t0 999" -msgstr "" +msgstr "1 a 999" #: SystemParameters.php:779 msgid "" |
From: <dai...@us...> - 2013-12-14 00:41:50
|
Revision: 6497 http://sourceforge.net/p/web-erp/reponame/6497 Author: daintree Date: 2013-12-14 00:41:44 +0000 (Sat, 14 Dec 2013) Log Message: ----------- As per Gilberto dos santos alves - Extended smtp user name to varchar(50) as sometimes a full email address is required Modified Paths: -------------- trunk/FixedAssetItems.php trunk/SMTPServer.php trunk/doc/Change.log trunk/sql/mysql/upgrade4.11-4.12.sql Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2013-12-12 02:48:15 UTC (rev 6496) +++ trunk/FixedAssetItems.php 2013-12-14 00:41:44 UTC (rev 6497) @@ -450,7 +450,8 @@ </tr>'; echo '<tr><td><input type="hidden" name="AssetID" value="' . $AssetID . '"/></td></tr>'; } -if ($AssetRow['disposaldate'] != '0000-00-00'){ + +if (isset($AssetRow['disposaldate']) AND $AssetRow['disposaldate'] !='0000-00-00'){ echo '<tr> <td>' . _('Asset Already disposed on') . ':</td> <td>' . ConvertSQLDate($AssetRow['disposaldate']) . '</td> @@ -661,4 +662,4 @@ </div> </form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> Modified: trunk/SMTPServer.php =================================================================== --- trunk/SMTPServer.php 2013-12-12 02:48:15 UTC (rev 6496) +++ trunk/SMTPServer.php 2013-12-14 00:41:44 UTC (rev 6497) @@ -18,6 +18,7 @@ username='".$_POST['UserName']."', password='".$_POST['Password']."', auth='".$_POST['Auth']."'"; + $ErrMsg = _('The email setting information failed to update'); $DbgMsg = _('The SQL failed to update is '); $result1=DB_query($sql, $db, $ErrMsg, $DbgMsg); @@ -32,13 +33,12 @@ username, password, auth) - VALUES ( - '".$_POST['Host']."', - '".$_POST['Port']."', - '".$_POST['HeloAddress']."', - '".$_POST['UserName']."', - '".$_POST['Password']."', - '".$_POST['Auth']."')"; + VALUES ('".$_POST['Host']."', + '".$_POST['Port']."', + '".$_POST['HeloAddress']."', + '".$_POST['UserName']."', + '".$_POST['Password']."', + '".$_POST['Auth']."')"; $ErrMsg = _('The email settings failed to be inserted'); $DbgMsg = _('The SQL failed to insert the email information is'); $result2 = DB_query($sql,$db); @@ -77,19 +77,26 @@ } -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; -echo '<div>'; -echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input type="hidden" name="MailServerSetting" value="' . $MailServerSetting . '" />'; -echo '<table class="selection">'; -echo '<tr><td>' . _('Server Host Name') . '</td> - <td><input type="text" name="Host" value="'.$myrow['host'].'" /></td></tr>'; -echo '<tr><td>' . _('SMTP port') . '</td> - <td><input type="text" name="Port" size="4" class="number" value="'.$myrow['port'].'" /></td></tr>'; -echo '<tr><td>' . _('Helo Command') . '</td> - <td><input type="text" name="HeloAddress" value="'.$myrow['heloaddress'].'" /></td></tr>'; -echo '<tr><td>' . _('Authorisation Required') . '</td><td>'; -echo '<select name="Auth">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '"> + <div> + <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> + <input type="hidden" name="MailServerSetting" value="' . $MailServerSetting . '" /> + <table class="selection"> + <tr> + <td>' . _('Server Host Name') . '</td> + <td><input type="text" name="Host" required="required" value="' . $myrow['host'] . '" /></td> + </tr> + <tr> + <td>' . _('SMTP port') . '</td> + <td><input type="text" name="Port" required="required" size="4" class="number" value="' . $myrow['port'].'" /></td> + </tr> + <tr> + <td>' . _('Helo Command') . '</td> + <td><input type="text" name="HeloAddress" value="' . $myrow['heloaddress'] . '" /></td> + </tr> + <tr> + <td>' . _('Authorisation Required') . '</td> + <td><select name="Auth">'; if ($myrow['auth']==1) { echo '<option selected="selected" value="1">' . _('True') . '</option>'; echo '<option value="0">' . _('False') . '</option>'; @@ -97,17 +104,26 @@ echo '<option value="1">' . _('True') . '</option>'; echo '<option selected="selected" value="0">' . _('False') . '</option>'; } -echo '</select></td></tr>'; -echo '<tr><td>' . _('User Name') . '</td> - <td><input type="text" name="UserName" value="'.$myrow['username'].'" /></td></tr>'; -echo '<tr><td>' . _('Password') . '</td> - <td><input type="password" name="Password" value="'.$myrow['password'].'" /></td></tr>'; -echo '<tr><td>' . _('Timeout (seconds)') . '</td> - <td><input type="text" size="5" name="Timeout" class="number" value="'.$myrow['timeout'].'" /></td></tr>'; -echo '<tr><td colspan="2"><div class="centre"><input type="submit" name="submit" value="' . _('Update') . '" /></div></td></tr>'; -echo '</table> - </div> - </form>'; +echo '</select></td> + </tr> + <tr> + <td>' . _('User Name') . '</td> + <td><input type="text" required="required" name="UserName" size="50" maxlength="50" value="' . $myrow['username'] .'" /></td> + </tr> + <tr> + <td>' . _('Password') . '</td> + <td><input type="password" required="required" name="Password" value="' . $myrow['password'] . '" /></td> + </tr> + <tr> + <td>' . _('Timeout (seconds)') . '</td> + <td><input type="text" size="5" name="Timeout" class="number" value="' . $myrow['timeout'] . '" /></td> + </tr> + <tr> + <td colspan="2"><div class="centre"><input type="submit" name="submit" value="' . _('Update') . '" /></div></td> + </tr> + </table> + </div> + </form>'; include('includes/footer.inc'); Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2013-12-12 02:48:15 UTC (rev 6496) +++ trunk/doc/Change.log 2013-12-14 00:41:44 UTC (rev 6497) @@ -1,5 +1,7 @@ webERP Change Log -11/12/13: Thumb fixed bug that calculated the wrong StandardCost of assembly parts in Credit_Invoice.php and SelectCreditItems.php. Bug confirmed by Phil. + +14/12/12: Phil: As per Gilberto dos santos alves - Extended smtp user name to varchar(50) as sometimes a full email address is required - tidied the script a bit too. +11/12/13: Thumb: fixed bug that calculated the wrong StandardCost of assembly parts in Credit_Invoice.php and SelectCreditItems.php. Bug confirmed by Phil. 11/12/13 Thumb: fixed bug that using limit without offsetting in PO_Items.php,WorkOrderEntry.php and make users' DisplayRecordsMax effective in SelectOrderItems.php.And fixed typo in SelectCreditItems.php. 9/12/13 Exson Fixed the typo of sql in DiscountCategories.php. Report by tangjun 7/12/13 Phil: Allow entry of stock counts by stock category Modified: trunk/sql/mysql/upgrade4.11-4.12.sql =================================================================== --- trunk/sql/mysql/upgrade4.11-4.12.sql 2013-12-12 02:48:15 UTC (rev 6496) +++ trunk/sql/mysql/upgrade4.11-4.12.sql 2013-12-14 00:41:44 UTC (rev 6497) @@ -1 +1,2 @@ +ALTER TABLE `emailsettings` CHANGE `username` `username` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL UPDATE config SET confvalue='4.12' WHERE confname='VersionNumber'; |
From: <rc...@us...> - 2013-12-14 13:39:58
|
Revision: 6498 http://sourceforge.net/p/web-erp/reponame/6498 Author: rchacon Date: 2013-12-14 13:39:51 +0000 (Sat, 14 Dec 2013) Log Message: ----------- Tim Schofield: Standardize to "between 1 and 999". Modified Paths: -------------- trunk/SystemParameters.php trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/fr_CA.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_CA.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2013-12-14 00:41:44 UTC (rev 6497) +++ trunk/SystemParameters.php 2013-12-14 13:39:51 UTC (rev 6498) @@ -701,12 +701,12 @@ // OverChargeProportion echo '<tr style="outline: 1px solid"><td>' . _('Allowed Over Charge Proportion') . ':</td> - <td><input type="text" class="integer" pattern="(?!^0\d+$)[\d]{1,2}|(100)" required="required" title="'._('The input must between 0~100').'" name="X_OverChargeProportion" size="4" maxlength="3" value="' . $_SESSION['OverChargeProportion'] . '" placeholder="'._('integer between 0-100').'" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d+$)[\d]{1,2}|(100)" required="required" title="'._('The input must between 0 and 100').'" name="X_OverChargeProportion" size="4" maxlength="3" value="' . $_SESSION['OverChargeProportion'] . '" placeholder="'._('integer between 0 and 100').'" /></td> <td>' . _('If check price charges vs Order price is set to yes then this proportion determines the percentage by which invoices can be overcharged with respect to price') . '</td></tr>'; // OverReceiveProportion echo '<tr style="outline: 1px solid"><td>' . _('Allowed Over Receive Proportion') . ':</td> - <td><input type="text" class="integer" pattern="(?!^0\d+$)[\d]{1,2}|(100)" required="required" title="'._('The input must between 0~100').'" name="X_OverReceiveProportion" size="4" maxlength="3" value="' . $_SESSION['OverReceiveProportion'] . '" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d+$)[\d]{1,2}|(100)" required="required" title="'._('The input must between 0 and 100').'" name="X_OverReceiveProportion" size="4" maxlength="3" value="' . $_SESSION['OverReceiveProportion'] . '" /></td> <td>' . _('If check quantity charged vs delivery quantity is set to yes then this proportion determines the percentage by which invoices can be overcharged with respect to delivery') . '</td></tr>'; // PO_AllowSameItemMultipleTimes @@ -749,7 +749,7 @@ //PageLength echo '<tr style="outline: 1px solid"><td>' . _('Report Page Length') . ':</td> - <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" title="'._('The input should be between 1~999').'" placeholder="'._('1 to 999').'" name="X_PageLength" size="4" maxlength="6" value="' . $_SESSION['PageLength'] . '" /></td><td> </td> + <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" title="'._('The input should be between 1 and 999').'" placeholder="'._('1 to 999').'" name="X_PageLength" size="4" maxlength="6" value="' . $_SESSION['PageLength'] . '" /></td><td> </td> </tr>'; //DefaultDisplayRecordsMax @@ -773,7 +773,7 @@ //MaxImageSize echo '<tr style="outline: 1px solid"> <td>' . _('Maximum Size in KB of uploaded images') . ':</td> - <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" required="required" title="'._('The input should be between 1 to 999').'" placeholder="'._('1 to 999').'" name="X_MaxImageSize" size="4" maxlength="3" value="' . $_SESSION['MaxImageSize'] . '" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" required="required" title="'._('The input should be between 1 and 999').'" placeholder="'._('1 to 999').'" name="X_MaxImageSize" size="4" maxlength="3" value="' . $_SESSION['MaxImageSize'] . '" /></td> <td>' . _('Picture files of items can be uploaded to the server. The system will check that files uploaded are less than this size (in KB) before they will be allowed to be uploaded. Large pictures will make the system slow and will be difficult to view in the stock maintenance screen.') . '</td> </tr>'; //NumberOfMonthMustBeShown Modified: trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot =================================================================== --- trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2013-12-14 00:41:44 UTC (rev 6497) +++ trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2013-12-14 13:39:51 UTC (rev 6498) @@ -30200,11 +30200,11 @@ msgstr "" #: SystemParameters.php:706 SystemParameters.php:711 -msgid "The input must between 0~100" +msgid "The input must between 0 and 100" msgstr "" #: SystemParameters.php:706 -msgid "integer between 0-100" +msgid "integer between 0 and 100" msgstr "" #: SystemParameters.php:707 @@ -30296,7 +30296,7 @@ msgstr "" #: SystemParameters.php:754 -msgid "The input should be between 1~999" +msgid "The input should be between 1 and 999" msgstr "" #: SystemParameters.php:754 Modified: trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/en_US.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/en_US.utf8/LC_MESSAGES/messages.po 2013-12-14 00:41:44 UTC (rev 6497) +++ trunk/locale/en_US.utf8/LC_MESSAGES/messages.po 2013-12-14 13:39:51 UTC (rev 6498) @@ -9,7 +9,7 @@ "Project-Id-Version: WebERP 4.10.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-11-24 10:23-0600\n" +"PO-Revision-Date: 2013-12-14 07:34-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: WebERP Translation Team <web-erp-translation@lists." "sourceforge.net>\n" @@ -32962,8 +32962,8 @@ #: SystemParameters.php:478 msgid "" -"Select all the languages for which item description translations are to be " -"maintained." +"Select the languages in which translations of the item description will be " +"maintained. The default language is excluded." msgstr "" #: SystemParameters.php:484 @@ -33259,12 +33259,13 @@ #: SystemParameters.php:706 SystemParameters.php:711 #, fuzzy -msgid "The input must between 0~100" +msgid "The input must between 0 and 100" msgstr "The Amount must be greater than 0" #: SystemParameters.php:706 -msgid "integer between 0-100" -msgstr "" +#, fuzzy +msgid "integer between 0 and 100" +msgstr "The Amount must be greater than 0" #: SystemParameters.php:707 msgid "" @@ -33368,8 +33369,9 @@ msgstr "" #: SystemParameters.php:754 -msgid "The input should be between 1~999" -msgstr "" +#, fuzzy +msgid "The input should be between 1 and 999" +msgstr "The Shipping cost entered is expected to be numeric" #: SystemParameters.php:754 msgid " 1 to 999" 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 2013-12-14 00:41:44 UTC (rev 6497) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2013-12-14 13:39:51 UTC (rev 6498) @@ -8,7 +8,7 @@ "Project-Id-Version: WebERP 4.081\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-12-11 20:46-0600\n" +"PO-Revision-Date: 2013-12-14 07:31-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -34858,11 +34858,13 @@ msgstr "Proporción de Sobre Cargo Permitida" #: SystemParameters.php:706 SystemParameters.php:711 -msgid "The input must between 0~100" +#, fuzzy +msgid "The input must between 0 and 100" msgstr "La entrada debe estar entre 0 y 100" #: SystemParameters.php:706 -msgid "integer between 0-100" +#, fuzzy +msgid "integer between 0 and 100" msgstr "número entero entre 0-100" #: SystemParameters.php:707 @@ -34983,8 +34985,9 @@ msgstr "Longitud de la Página del Informe" #: SystemParameters.php:754 -msgid "The input should be between 1~999" -msgstr "La entrada debe estar entre 1 y 999" +#, fuzzy +msgid "The input should be between 1 and 999" +msgstr "El valor de la propiedad debe entre" #: SystemParameters.php:754 msgid " 1 to 999" @@ -49756,6 +49759,9 @@ msgid "Bank Transfer" msgstr "Transferencia" +#~ msgid "The input should be between 1~999" +#~ msgstr "La entrada debe estar entre 1 y 999" + #~ msgid "Form Design" #~ msgstr "Diseño del formulario" Modified: trunk/locale/fr_CA.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/fr_CA.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/fr_CA.utf8/LC_MESSAGES/messages.po 2013-12-14 00:41:44 UTC (rev 6497) +++ trunk/locale/fr_CA.utf8/LC_MESSAGES/messages.po 2013-12-14 13:39:51 UTC (rev 6498) @@ -10,7 +10,7 @@ "Project-Id-Version: WebERP 4.10.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-11-24 11:35-0600\n" +"PO-Revision-Date: 2013-12-14 07:33-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: french <none>\n" "Language: fr\n" @@ -34693,8 +34693,8 @@ #: SystemParameters.php:478 #, fuzzy msgid "" -"Select all the languages for which item description translations are to be " -"maintained." +"Select the languages in which translations of the item description will be " +"maintained. The default language is excluded." msgstr "Entrez la date à laquelle les opérations doivent être inscrites" #: SystemParameters.php:484 @@ -35035,12 +35035,13 @@ #: SystemParameters.php:706 SystemParameters.php:711 #, fuzzy -msgid "The input must between 0~100" +msgid "The input must between 0 and 100" msgstr "Le montant doit être supérieur à 0" #: SystemParameters.php:706 -msgid "integer between 0-100" -msgstr "" +#, fuzzy +msgid "integer between 0 and 100" +msgstr "Un nombre entre 1 et 10 devrait" #: SystemParameters.php:707 msgid "" @@ -35161,7 +35162,7 @@ #: SystemParameters.php:754 #, fuzzy -msgid "The input should be between 1~999" +msgid "The input should be between 1 and 999" msgstr "La valeur vert. pos. serait positive" #: SystemParameters.php:754 @@ -50126,6 +50127,10 @@ msgid "Bank Transfer" msgstr "Transfert" +#, fuzzy +#~ msgid "The input should be between 1~999" +#~ msgstr "La valeur vert. pos. serait positive" + #~ msgid "Form Design" #~ msgstr "Création de formulaire" Modified: trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po 2013-12-14 00:41:44 UTC (rev 6497) +++ trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po 2013-12-14 13:39:51 UTC (rev 6498) @@ -9,7 +9,7 @@ "Project-Id-Version: weberp 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-11-24 19:50-0600\n" +"PO-Revision-Date: 2013-12-14 07:32-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: French <none>\n" "Language: fr_FR\n" @@ -35214,8 +35214,8 @@ #: SystemParameters.php:478 #, fuzzy msgid "" -"Select all the languages for which item description translations are to be " -"maintained." +"Select the languages in which translations of the item description will be " +"maintained. The default language is excluded." msgstr "Saisir la date à laquelle les opérations seront listées" # JDN @@ -35570,12 +35570,13 @@ #: SystemParameters.php:706 SystemParameters.php:711 #, fuzzy -msgid "The input must between 0~100" +msgid "The input must between 0 and 100" msgstr "Le montant doit être supérieur à 0" #: SystemParameters.php:706 -msgid "integer between 0-100" -msgstr "" +#, fuzzy +msgid "integer between 0 and 100" +msgstr "Le chiffre doit être compris entre 1 et 10" # JDN (à vérifier) #: SystemParameters.php:707 @@ -35698,7 +35699,7 @@ #: SystemParameters.php:754 #, fuzzy -msgid "The input should be between 1~999" +msgid "The input should be between 1 and 999" msgstr "La valeur vert. pos. serait positive" #: SystemParameters.php:754 @@ -50694,6 +50695,10 @@ msgid "Bank Transfer" msgstr "Transfert" +#, fuzzy +#~ msgid "The input should be between 1~999" +#~ msgstr "La valeur vert. pos. serait positive" + # JDN #~ msgid "Form Design" #~ msgstr "Éditeur de formulaire" |
From: <ex...@us...> - 2013-12-19 16:16:44
|
Revision: 6503 http://sourceforge.net/p/web-erp/reponame/6503 Author: exsonqu Date: 2013-12-19 16:16:41 +0000 (Thu, 19 Dec 2013) Log Message: ----------- 20/12/13 Thumb: Salesman can only review his own customer's data Modified Paths: -------------- trunk/AgedDebtors.php trunk/CounterSales.php trunk/Credit_Invoice.php trunk/CustomerAllocations.php trunk/CustomerBranches.php trunk/CustomerInquiry.php trunk/CustomerPurchases.php trunk/CustomerReceipt.php trunk/includes/ConstructSQLForUserDefinedSalesReport.inc Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2013-12-18 08:10:33 UTC (rev 6502) +++ trunk/AgedDebtors.php 2013-12-19 16:16:41 UTC (rev 6503) @@ -18,6 +18,9 @@ $line_height = 12; /*Now figure out the aged analysis for the customer range under review */ + if ($_SESSION['SalesmanLogin'] != '') { + $_POST['Salesman'] = $_SESSION['SalesmanLogin']; + } if (trim($_POST['Salesman'])!=''){ $SalesLimit = " AND debtorsmaster.debtorno IN (SELECT DISTINCT debtorno FROM custbranch WHERE salesman = '".$_POST['Salesman']."') "; } else { @@ -357,6 +360,9 @@ AND debtortrans.debtorno = '" . $AgedAnalysis['debtorno'] . "' AND ABS(debtortrans.ovamount + debtortrans.ovgst + debtortrans.ovfreight + debtortrans.ovdiscount - debtortrans.alloc)>0.004"; + if ($_SESSION['SalesmanLogin'] != '') { + $sql .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; + } $DetailResult = DB_query($sql,$db,'','',False,False); /*Dont trap errors */ if (DB_error_no($db) !=0) { @@ -473,18 +479,24 @@ </td> </tr> <tr> - <td>' . _('Only Show Customers Of') . ':' . '</td> - <td><select tabindex="4" name="Salesman">'; + <td>' . _('Only Show Customers Of') . ':' . '</td>'; + if ($_SESSION['SalesmanLogin'] != '') { + echo '<td>'; + echo $_SESSION['UsersRealName']; + echo '</td>'; + }else{ + echo '<td><select tabindex="4" name="Salesman">'; - $sql = "SELECT salesmancode, salesmanname FROM salesman"; + $sql = "SELECT salesmancode, salesmanname FROM salesman"; - $result=DB_query($sql,$db); - echo '<option value="">' . _('All Sales people') . '</option>'; - while ($myrow=DB_fetch_array($result)){ - echo '<option value="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; + $result=DB_query($sql,$db); + echo '<option value="">' . _('All Sales people') . '</option>'; + while ($myrow=DB_fetch_array($result)){ + echo '<option value="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; + } + echo '</select></td>'; } - echo '</select></td> - </tr> + echo '</tr> <tr> <td>' . _('Only show customers trading in') . ':' . '</td> <td><select tabindex="5" name="Currency">'; @@ -519,4 +531,4 @@ } include('includes/footer.inc'); } /*end of else not PrintPDF */ -?> \ No newline at end of file +?> Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2013-12-18 08:10:33 UTC (rev 6502) +++ trunk/CounterSales.php 2013-12-19 16:16:41 UTC (rev 6503) @@ -32,7 +32,11 @@ $_SESSION['Items'.$identifier]->DeliverTo = $_POST['DeliverTo']; $_SESSION['Items'.$identifier]->PhoneNo = $_POST['PhoneNo']; $_SESSION['Items'.$identifier]->Email = $_POST['Email']; - $_SESSION['Items'.$identifier]->SalesPerson = $_POST['SalesPerson']; + if ($_SESSION['SalesmanLogin'] != '') { + $_SESSION['Items' . $identifier]->SalesPerson = $_SESSION['SalesmanLogin']; + }else{ + $_SESSION['Items' . $identifier]->SalesPerson = $_POST['SalesPerson']; + } } if (isset($_POST['QuickEntry'])){ @@ -877,23 +881,30 @@ </tr>'; echo '<tr> - <td>' . _('Sales person'). ':</td> - <td><select name="SalesPerson">'; - $SalesPeopleResult = DB_query("SELECT salesmancode, salesmanname FROM salesman WHERE current=1",$db); - if (!isset($_POST['SalesPerson']) AND $_SESSION['SalesmanLogin']!=NULL ){ - $_SESSION['Items'.$identifier]->SalesPerson = $_SESSION['SalesmanLogin']; - } + <td>' . _('Sales person'). ':</td>'; - while ($SalesPersonRow = DB_fetch_array($SalesPeopleResult)){ - if ($SalesPersonRow['salesmancode']==$_SESSION['Items'.$identifier]->SalesPerson){ - echo '<option selected="selected" value="' . $SalesPersonRow['salesmancode'] . '">' . $SalesPersonRow['salesmanname'] . '</option>'; - } else { - echo '<option value="' . $SalesPersonRow['salesmancode'] . '">' . $SalesPersonRow['salesmanname'] . '</option>'; + if ($_SESSION['SalesmanLogin'] != '') { + echo '<td>'; + echo $_SESSION['UsersRealName']; + echo '</td>'; + }else{ + echo '<td><select name="SalesPerson">'; + $SalesPeopleResult = DB_query("SELECT salesmancode, salesmanname FROM salesman WHERE current=1",$db); + if (!isset($_POST['SalesPerson']) AND $_SESSION['SalesmanLogin']!=NULL ){ + $_SESSION['Items'.$identifier]->SalesPerson = $_SESSION['SalesmanLogin']; } + + while ($SalesPersonRow = DB_fetch_array($SalesPeopleResult)){ + if ($SalesPersonRow['salesmancode']==$_SESSION['Items'.$identifier]->SalesPerson){ + echo '<option selected="selected" value="' . $SalesPersonRow['salesmancode'] . '">' . $SalesPersonRow['salesmanname'] . '</option>'; + } else { + echo '<option value="' . $SalesPersonRow['salesmancode'] . '">' . $SalesPersonRow['salesmanname'] . '</option>'; + } + } + + echo '</select></td>'; } - - echo '</select></td> - </tr>'; + echo '</tr>'; echo '<tr> <td>' . _('Comments') .':</td> <td><textarea name="Comments" cols="23" rows="5">' . stripcslashes($_SESSION['Items'.$identifier]->Comments) . '</textarea></td> @@ -1992,7 +2003,8 @@ ovamount, alloc, invtext, - settled) + settled, + salesperson) VALUES ('" . $ReceiptNumber . "', 12, '" . $_SESSION['Items'.$identifier]->DebtorNo . "', @@ -2004,7 +2016,8 @@ '" . -filter_number_format($_POST['AmountPaid']) . "', '" . -filter_number_format($_POST['AmountPaid']) . "', '" . $_SESSION['Items'.$identifier]->LocationName . ' ' . _('Counter Sale') ."', - '1')"; + '1', + '" . $_SESSION['Items'.$identifier]->SalesPerson . "')"; $DbgMsg = _('The SQL that failed to insert the customer receipt transaction was'); $ErrMsg = _('Cannot insert a receipt transaction against the customer because') ; Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2013-12-18 08:10:33 UTC (rev 6502) +++ trunk/Credit_Invoice.php 2013-12-19 16:16:41 UTC (rev 6503) @@ -74,6 +74,9 @@ WHERE debtortrans.transno = '" . intval($_GET['InvoiceNumber']) . "' AND stockmoves.type=10"; + if ($_SESSION['SalesmanLogin'] != '') { + $sql .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; + } $ErrMsg = _('A credit cannot be produced for the selected invoice') . '. ' . _('The invoice details cannot be retrieved because'); $DbgMsg = _('The SQL used to retrieve the invoice details was'); $GetInvHdrResult = DB_query($InvoiceHeaderSQL,$db,$ErrMsg,$DbgMsg); @@ -224,11 +227,11 @@ if (isset($_POST['ChargeFreightCost'])){ $_SESSION['CreditItems' . $identifier]->FreightCost = filter_number_format($_POST['ChargeFreightCost']); } - -if (isset($_POST['SalesPerson'])){ - $_SESSION['CreditItems' . $identifier]->SalesPerson = $_POST['SalesPerson']; +if ($_SESSION['SalesmanLogin'] != '') {}else{ + if (isset($_POST['SalesPerson'])){ + $_SESSION['CreditItems' . $identifier]->SalesPerson = $_POST['SalesPerson']; + } } - foreach ($_SESSION['CreditItems' . $identifier]->FreightTaxes as $FreightTaxLine) { if (isset($_POST['FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder])){ $_SESSION['CreditItems' . $identifier]->FreightTaxes[$FreightTaxLine->TaxCalculationOrder]->TaxRate = filter_number_format($_POST['FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder])/100; @@ -1539,20 +1542,27 @@ $j++; echo '<tr> - <td>' . _('Sales person'). ':</td> - <td><select tabindex="' . $j . '" name="SalesPerson">'; - $SalesPeopleResult = DB_query("SELECT salesmancode, salesmanname FROM salesman WHERE current=1",$db); - /* SalesPerson will be set because it is an invoice being credited and the order salesperson would/should have been retrieved */ - while ($SalesPersonRow = DB_fetch_array($SalesPeopleResult)){ - if ($SalesPersonRow['salesmancode']==$_SESSION['CreditItems'.$identifier]->SalesPerson){ - echo '<option selected="selected" value="' . $SalesPersonRow['salesmancode'] . '">' . $SalesPersonRow['salesmanname'] . '</option>'; - } else { - echo '<option value="' . $SalesPersonRow['salesmancode'] . '">' . $SalesPersonRow['salesmanname'] . '</option>'; + <td>' . _('Sales person'). ':</td>'; + + if ($_SESSION['SalesmanLogin'] != '') { + echo '<td>'; + echo $_SESSION['UsersRealName']; + echo '</td>'; + }else{ + echo '<td><select tabindex="' . $j . '" name="SalesPerson">'; + $SalesPeopleResult = DB_query("SELECT salesmancode, salesmanname FROM salesman WHERE current=1",$db); + /* SalesPerson will be set because it is an invoice being credited and the order salesperson would/should have been retrieved */ + while ($SalesPersonRow = DB_fetch_array($SalesPeopleResult)){ + if ($SalesPersonRow['salesmancode']==$_SESSION['CreditItems'.$identifier]->SalesPerson){ + echo '<option selected="selected" value="' . $SalesPersonRow['salesmancode'] . '">' . $SalesPersonRow['salesmanname'] . '</option>'; + } else { + echo '<option value="' . $SalesPersonRow['salesmancode'] . '">' . $SalesPersonRow['salesmanname'] . '</option>'; + } } + + echo '</select></td>'; } - - echo '</select></td> - </tr>'; + echo '</tr>'; echo '<tr> <td>' . _('Credit note text') . '</td> <td><textarea tabindex="' . $j . '" name="CreditText" cols="31" rows="5">' . $_POST['CreditText'] . '</textarea></td> Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2013-12-18 08:10:33 UTC (rev 6502) +++ trunk/CustomerAllocations.php 2013-12-19 16:16:41 UTC (rev 6503) @@ -237,6 +237,11 @@ INNER JOIN currencies ON debtorsmaster.currcode=currencies.currabrev WHERE debtortrans.id='" . $_POST['AllocTrans'] . "'"; + + if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; + } + $Result = DB_query($SQL,$db); $myrow = DB_fetch_array($Result); @@ -264,8 +269,14 @@ FROM debtortrans INNER JOIN systypes ON debtortrans.type = systypes.typeid WHERE debtortrans.settled=0 - AND debtorno='" . $_SESSION['Alloc']->DebtorNo . "' - ORDER BY debtortrans.trandate"; + AND debtorno='" . $_SESSION['Alloc']->DebtorNo . "'"; + + if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; + } + + $SQL .= " ORDER BY debtortrans.trandate"; + $Result = DB_query($SQL,$db); while ($myrow=DB_fetch_array($Result)) { @@ -299,9 +310,14 @@ INNER JOIN custallocns ON debtortrans.id=custallocns.transid_allocto WHERE custallocns.transid_allocfrom='" . $_POST['AllocTrans'] . "' - AND debtorno='" . $_SESSION['Alloc']->DebtorNo . "' - ORDER BY debtortrans.trandate"; + AND debtorno='" . $_SESSION['Alloc']->DebtorNo . "'"; + if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; + } + + $SQL .= " ORDER BY debtortrans.trandate"; + $Result=DB_query($SQL,$db); while ($myrow=DB_fetch_array($Result)) { @@ -464,8 +480,14 @@ ON debtorsmaster.currcode=currencies.currabrev WHERE debtortrans.debtorno='" . $_GET['DebtorNo'] . "' AND (debtortrans.type=12 OR debtortrans.type=11) - AND debtortrans.settled=0 - ORDER BY debtortrans.id"; + AND debtortrans.settled=0"; + + if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; + } + + $SQL .= " ORDER BY debtortrans.id"; + $result = DB_query($SQL,$db); if (DB_num_rows($result)==0) { @@ -522,8 +544,14 @@ ON debtorsmaster.currcode=currencies.currabrev WHERE (debtortrans.type=12 OR debtortrans.type=11) AND debtortrans.settled=0 - AND debtortrans.ovamount<0 - ORDER BY debtorsmaster.name"; + AND debtortrans.ovamount<0"; + + if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; + } + + $SQL .= " ORDER BY debtorsmaster.name"; + $result = DB_query($SQL,$db); $NoOfUnallocatedTrans = DB_num_rows($result); $CurrentTransaction = 1; Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2013-12-18 08:10:33 UTC (rev 6502) +++ trunk/CustomerBranches.php 2013-12-19 16:16:41 UTC (rev 6503) @@ -50,6 +50,9 @@ $_POST['BranchCode'] = mb_strtoupper($_POST['BranchCode']); + if ($_SESSION['SalesmanLogin'] != '') { + $_POST['Salesman'] = $_SESSION['SalesmanLogin']; + } if (ContainsIllegalCharacters($_POST['BranchCode']) OR mb_strstr($_POST['BranchCode'],' ') OR mb_strstr($_POST['BranchCode'],'-')) { $InputError = 1; prnMsg(_('The Branch code cannot contain any of the following characters')." - & \' < >",'error'); @@ -169,6 +172,10 @@ deliverblind='" . $_POST['DeliverBlind'] . "' WHERE branchcode = '".$SelectedBranch."' AND debtorno='".$DebtorNo."'"; + if ($_SESSION['SalesmanLogin'] != '') { + $sql .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; + } + $msg = $_POST['BrName'] . ' '._('branch has been updated.'); } else if ($InputError !=1) { @@ -286,6 +293,7 @@ // PREVENT DELETES IF DEPENDENT RECORDS IN 'DebtorTrans' $sql= "SELECT COUNT(*) FROM debtortrans WHERE debtortrans.branchcode='".$SelectedBranch."' AND debtorno = '".$DebtorNo."'"; + $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0]>0) { @@ -333,6 +341,9 @@ echo '<br />' . _('There are').' ' . $myrow[0] . ' '._('contracts referring to this branch/customer'); } else { $sql="DELETE FROM custbranch WHERE branchcode='" . $SelectedBranch . "' AND debtorno='" . $DebtorNo . "'"; + if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; + } $ErrMsg = _('The branch record could not be deleted') . ' - ' . _('the SQL server returned the following message'); $result = DB_query($sql,$db,$ErrMsg); if (DB_error_no($db)==0){ @@ -369,6 +380,10 @@ INNER JOIN taxgroups ON custbranch.taxgroupid=taxgroups.taxgroupid WHERE custbranch.debtorno = '".$DebtorNo."'"; + + if ($_SESSION['SalesmanLogin'] != '') { + $sql .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; + } $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); @@ -516,6 +531,10 @@ FROM custbranch WHERE branchcode='".$SelectedBranch."' AND debtorno='".$DebtorNo."'"; + + if ($_SESSION['SalesmanLogin'] != '') { + $sql .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; + } $result = DB_query($sql, $db); $myrow = DB_fetch_array($result); @@ -605,7 +624,7 @@ echo '<table class="selection"> <tr> <td>' . _('Branch Code'). ':</td> - <td><input data-type="no-illegal-chars" ' . (in_array('BranchCode',$Errors) ? 'class="inputerror"' : '' ) . '" tabindex="1" type="text" name="BranchCode" required="required" title ="'._('Up to 10 characters for the branch code. The following characters are prohibited:') . ' \' " + . & \\ > <" placeholder="'._('alpha-numeric').'" size="12" maxlength="10" value="' . $_POST['BranchCode'] . '" /></td> + <td><input data-type="no-illegal-chars" ' . (in_array('BranchCode',$Errors) ? 'class="inputerror"' : '' ) . ' tabindex="1" type="text" name="BranchCode" required="required" title ="'._('Up to 10 characters for the branch code. The following characters are prohibited:') . ' \' " + . & \\ > <" placeholder="'._('alpha-numeric').'" size="12" maxlength="10" value="' . $_POST['BranchCode'] . '" /></td> </tr>'; $_POST['DeliverBlind'] = $_SESSION['DefaultBlindPackNote']; } @@ -619,14 +638,13 @@ echo _('Branch Name').':</td>'; if (!isset($_POST['BrName'])) {$_POST['BrName']='';} echo '<td><input tabindex="2" type="text" autofocus="autofocus" required="required" name="BrName" title="' . _('The branch name should identify the particular delivery address of the customer and must be entered') . '" minlength="5" size="41" maxlength="40" value="'. $_POST['BrName'].'" /></td> - </tr> - <tr> + </tr>'; + echo '<tr> <td>' . _('Branch Contact').':</td>'; if (!isset($_POST['ContactName'])) {$_POST['ContactName']='';} echo '<td><input tabindex="3" type="text" name="ContactName" required="required" size="41" maxlength="40" value="'. $_POST['ContactName'].'" /></td> - </tr> - <tr> - <td>' . _('Street Address 1 (Street)').':</td>'; + </tr>'; + echo '<tr><td>' . _('Street Address 1 (Street)').':</td>'; if (!isset($_POST['BrAddress1'])) { $_POST['BrAddress1']=''; } @@ -700,42 +718,49 @@ echo '<td><input ' .(in_array('FwdDate',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="12" class="integer" name="FwdDate" size="4" maxlength="2" value="'. $_POST['FwdDate'].'" /></td> </tr>'; + if ($_SESSION['SalesmanLogin'] != '') { + echo '<tr> + <td>' . _('Salesperson').':</td><td>'; + echo $_SESSION['UsersRealName']; + echo '</td> + </tr>'; + }else{ - //SQL to poulate account selection boxes - $sql = "SELECT salesmanname, - salesmancode - FROM salesman - WHERE current = 1"; + //SQL to poulate account selection boxes + $sql = "SELECT salesmanname, + salesmancode + FROM salesman + WHERE current = 1"; - $result = DB_query($sql,$db); + $result = DB_query($sql,$db); - if (DB_num_rows($result)==0){ - echo '</table>'; - prnMsg(_('There are no sales people defined as yet') . ' - ' . _('customer branches must be allocated to a sales person') . '. ' . _('Please use the link below to define at least one sales person'),'error'); - echo '<p align="center"><a href="' . $RootPath . '/SalesPeople.php">' . _('Define Sales People') . '</a>'; - include('includes/footer.inc'); - exit; - } + if (DB_num_rows($result)==0){ + echo '</table>'; + prnMsg(_('There are no sales people defined as yet') . ' - ' . _('customer branches must be allocated to a sales person') . '. ' . _('Please use the link below to define at least one sales person'),'error'); + echo '<p align="center"><a href="' . $RootPath . '/SalesPeople.php">' . _('Define Sales People') . '</a>'; + include('includes/footer.inc'); + exit; + } - echo '<tr> - <td>' . _('Salesperson').':</td> - <td><select tabindex="13" name="Salesman">'; + echo '<tr> + <td>' . _('Salesperson').':</td> + <td><select tabindex="13" name="Salesman">'; - while ($myrow = DB_fetch_array($result)) { - if (isset($_POST['Salesman']) AND $myrow['salesmancode']==$_POST['Salesman']) { - echo '<option selected="selected" value="'; - } else { - echo '<option value="'; - } - echo $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; + while ($myrow = DB_fetch_array($result)) { + if (isset($_POST['Salesman']) AND $myrow['salesmancode']==$_POST['Salesman']) { + echo '<option selected="selected" value="'; + } else { + echo '<option value="'; + } + echo $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; - } //end while loop + } //end while loop - echo '</select></td> - </tr>'; + echo '</select></td> + </tr>'; - DB_data_seek($result,0); - + // DB_data_seek($result,0); //by thumb + } $sql = "SELECT areacode, areadescription FROM areas"; $result = DB_query($sql,$db); if (DB_num_rows($result)==0){ @@ -797,8 +822,9 @@ $_POST['PhoneNo']=''; } echo '<td><input tabindex="16" type="tel" name="PhoneNo" pattern="[0-9+()\s-]*" size="22" maxlength="20" value="'. $_POST['PhoneNo'].'" /></td> - </tr> - <tr> + </tr>'; + + echo '<tr> <td>' . _('Fax Number').':</td>'; if (!isset($_POST['FaxNo'])) { $_POST['FaxNo']=''; @@ -855,6 +881,8 @@ echo ' </select></td> </tr>'; + + $SQL = "SELECT shipper_id, shippername FROM shippers"; $ShipperResults = DB_query($SQL,$db); Modified: trunk/CustomerInquiry.php =================================================================== --- trunk/CustomerInquiry.php 2013-12-18 08:10:33 UTC (rev 6502) +++ trunk/CustomerInquiry.php 2013-12-19 16:16:41 UTC (rev 6503) @@ -76,8 +76,13 @@ AND debtorsmaster.currcode = currencies.currabrev AND debtorsmaster.holdreason = holdreasons.reasoncode AND debtorsmaster.debtorno = '" . $CustomerID . "' - AND debtorsmaster.debtorno = debtortrans.debtorno - GROUP BY debtorsmaster.name, + AND debtorsmaster.debtorno = debtortrans.debtorno"; + +if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; +} + +$SQL .= " GROUP BY debtorsmaster.name, currencies.currency, paymentterms.terms, paymentterms.daysbeforedue, @@ -95,7 +100,7 @@ $NIL_BALANCE = True; - $SQL = "SELECT debtorsmaster.name, + $SQL = "SELECT debtorsmaster.name, debtorsmaster.currcode, currencies.currency, currencies.decimalplaces, @@ -105,10 +110,10 @@ holdreasons.reasondescription FROM debtorsmaster INNER JOIN paymentterms ON debtorsmaster.paymentterms = paymentterms.termsindicator + INNER JOIN holdreasons + ON debtorsmaster.holdreason = holdreasons.reasoncode INNER JOIN currencies ON debtorsmaster.currcode = currencies.currabrev - INNER JOIN holdreasons - ON debtorsmaster.holdreason = holdreasons.reasoncode WHERE debtorsmaster.debtorno = '" . $CustomerID . "'"; $ErrMsg =_('The customer details could not be retrieved by the SQL because'); @@ -190,9 +195,14 @@ FROM debtortrans INNER JOIN systypes ON debtortrans.type = systypes.typeid WHERE debtortrans.debtorno = '" . $CustomerID . "' - AND debtortrans.trandate >= '" . $DateAfterCriteria . "' - ORDER BY debtortrans.id"; + AND debtortrans.trandate >= '" . $DateAfterCriteria . "'"; +if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; +} + +$SQL .= " ORDER BY debtortrans.id"; + $ErrMsg = _('No transactions were returned by the SQL because'); $TransResult = DB_query($SQL,$db,$ErrMsg); Modified: trunk/CustomerPurchases.php =================================================================== --- trunk/CustomerPurchases.php 2013-12-18 08:10:33 UTC (rev 6502) +++ trunk/CustomerPurchases.php 2013-12-19 16:16:41 UTC (rev 6503) @@ -1,5 +1,4 @@ <?php - include('includes/session.inc'); $Title = _('Customer Purchases'); include('includes/header.inc'); @@ -32,25 +31,34 @@ </p>'; $SQL = "SELECT stockmoves.stockid, - stockmaster.description, - systypes.typename, - transno, - locations.locationname, - trandate, - branchcode, - price, - reference, - qty, - narrative - FROM stockmoves - INNER JOIN stockmaster - ON stockmaster.stockid=stockmoves.stockid - INNER JOIN systypes - ON stockmoves.type=systypes.typeid - INNER JOIN locations - ON stockmoves.loccode=locations.loccode - WHERE debtorno='" . $DebtorNo . "' - ORDER BY trandate DESC"; + stockmaster.description, + systypes.typename, + transno, + locations.locationname, + trandate, + stockmoves.branchcode, + price, + reference, + qty, + narrative + FROM stockmoves + INNER JOIN stockmaster + ON stockmaster.stockid=stockmoves.stockid + INNER JOIN systypes + ON stockmoves.type=systypes.typeid + INNER JOIN locations + ON stockmoves.loccode=locations.loccode"; + +$SQLWhere=" WHERE stockmoves.debtorno='" . $DebtorNo . "'"; + +if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " INNER JOIN custbranch + ON stockmoves.branchcode=custbranch.branchcode"; + $SQLWhere .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; +} + +$SQL .= $SQLWhere . " ORDER BY trandate DESC"; + $ErrMsg = _('The stock movement details could not be retrieved by the SQL because'); $StockMovesResult = DB_query($SQL, $db, $ErrMsg); @@ -100,4 +108,4 @@ echo '<br /><div class="centre"><a href="SelectCustomer.php">' . _('Return to customer selection screen') . '</a></div><br />'; include('includes/footer.inc'); -?> \ No newline at end of file +?> Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2013-12-18 08:10:33 UTC (rev 6502) +++ trunk/CustomerReceipt.php 2013-12-19 16:16:41 UTC (rev 6503) @@ -410,7 +410,8 @@ rate, ovamount, ovdiscount, - invtext) + invtext, + salesperson) VALUES ( '" . $_SESSION['ReceiptBatch']->BatchNo . "', 12, @@ -424,7 +425,8 @@ '" . ($_SESSION['ReceiptBatch']->FunctionalExRate*$_SESSION['ReceiptBatch']->ExRate) . "', '" . -$ReceiptItem->Amount . "', '" . -$ReceiptItem->Discount . "', - '" . $ReceiptItem->Narrative. "' + '" . $ReceiptItem->Narrative. "', + '" . $_SESSION['SalesmanLogin']. "' )"; $DbgMsg = _('The SQL that failed to insert the customer receipt transaction was'); $ErrMsg = _('Cannot insert a receipt transaction against the customer because') ; @@ -604,6 +606,14 @@ WHERE debtortrans.transno " . LIKE . " '%" . $_POST['CustInvNo'] . "%' AND debtorsmaster.currcode= '" . $_SESSION['ReceiptBatch']->Currency . "'"; } + + if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND EXISTS ( + SELECT * + FROM custbranch + WHERE custbranch.debtorno = debtorsmaster.debtorno + AND custbranch.salesperson='" . $_SESSION['SalesmanLogin'] . "')"; + } $CustomerSearchResult = DB_query($SQL,$db,'','',false,false); if (DB_error_no($db) !=0) { @@ -674,8 +684,11 @@ ON debtorsmaster.currcode = currencies.currabrev INNER JOIN debtortrans ON debtorsmaster.debtorno = debtortrans.debtorno - WHERE debtorsmaster.debtorno = '" . $_POST['CustomerID'] . "' - GROUP BY debtorsmaster.name, + WHERE debtorsmaster.debtorno = '" . $_POST['CustomerID'] . "'"; + if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND debtortrans.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; + } + $SQL .= " GROUP BY debtorsmaster.name, debtorsmaster.pymtdiscount, debtorsmaster.currcode, currencies.currency, @@ -754,7 +767,7 @@ INNER JOIN bankaccountusers ON bankaccounts.accountcode=bankaccountusers.accountcode WHERE bankaccountusers.userid = '" . $_SESSION['UserID'] ."' -ORDER BY bankaccountname"; + ORDER BY bankaccountname"; $ErrMsg = _('The bank accounts could not be retrieved because'); $DbgMsg = _('The SQL used to retrieve the bank accounts was'); Modified: trunk/includes/ConstructSQLForUserDefinedSalesReport.inc =================================================================== --- trunk/includes/ConstructSQLForUserDefinedSalesReport.inc 2013-12-18 08:10:33 UTC (rev 6502) +++ trunk/includes/ConstructSQLForUserDefinedSalesReport.inc 2013-12-19 16:16:41 UTC (rev 6503) @@ -320,6 +320,9 @@ } /* end of loop through defined columns */ +if ($_SESSION['SalesmanLogin'] != '') { + $SQLWhereCls .= " AND salesanalysis.salesperson='" . $_SESSION['SalesmanLogin'] . "'"; +} $SQLTheLot = $SQLSelectCls . ' ' . $SQLFromCls . ' ' . $SQLWhereCls . ' ' . $SQLGroupCls ; /*For the purposes of debugging */ |
From: <ex...@us...> - 2013-12-21 09:44:29
|
Revision: 6505 http://sourceforge.net/p/web-erp/reponame/6505 Author: exsonqu Date: 2013-12-21 09:44:25 +0000 (Sat, 21 Dec 2013) Log Message: ----------- 21/12/13 Exson: Add price matrix features. Modified MainMenuLinksArray.php, GetPrice.inc and add pricematrix table and PriceMatrix.php Modified Paths: -------------- trunk/includes/GetPrice.inc trunk/includes/MainMenuLinksArray.php trunk/sql/mysql/upgrade4.11-4.12.sql Added Paths: ----------- trunk/PriceMatrix.php Added: trunk/PriceMatrix.php =================================================================== --- trunk/PriceMatrix.php (rev 0) +++ trunk/PriceMatrix.php 2013-12-21 09:44:25 UTC (rev 6505) @@ -0,0 +1,192 @@ +<?php + +//The scripts used to provide a Price break matrix for those users who like selling product in quantity break at different constant price. + +include('includes/session.inc'); +$Title = _('Price break matrix Maintenance'); +include('includes/header.inc'); + +if (isset($Errors)) { + unset($Errors); +} + +$Errors = array(); +$i=1; + +echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title . '</p><br />'; + +if (isset($_POST['submit'])) { + + //initialise no input errors assumed initially before we test + $InputError = 0; + + if (!is_numeric(filter_number_format($_POST['QuantityBreak']))){ + prnMsg( _('The quantity break must be entered as a positive number'),'error'); + $InputError =1; + $Errors[$i] = 'QuantityBreak'; + $i++; + } + + if (filter_number_format($_POST['QuantityBreak'])<=0){ + prnMsg( _('The quantity of all items on an order in the discount category') . ' ' . $_POST['StockID'] . ' ' . _('at which the price will apply is 0 or less than 0') . '. ' . _('Positive numbers are expected for this entry'),'warn'); + $InputError =1; + $Errors[$i] = 'QuantityBreak'; + $i++; + } + if (!is_numeric(filter_number_format($_POST['Price']))){ + prnMsg( _('The price must be entered as a positive number'),'warn'); + $InputError =1; + $Errors[$i] = 'Price'; + $i++; + } + + /* actions to take once the user has clicked the submit button + ie the page has called itself with some user input */ + + if ($InputError !=1) { + + $sql = "INSERT INTO pricematrix (salestype, + stockid, + quantitybreak, + price) + VALUES('" . $_POST['SalesType'] . "', + '" . $_POST['StockID'] . "', + '" . filter_number_format($_POST['QuantityBreak']) . "', + '" . filter_number_format($_POST['Price']) . "')"; + + $result = DB_query($sql,$db); + prnMsg( _('The price matrix record has been added'),'success'); + echo '<br />'; + unset($_POST['StockID']); + unset($_POST['SalesType']); + unset($_POST['QuantityBreak']); + unset($_POST['Price']); + } +} elseif (isset($_GET['Delete']) and $_GET['Delete']=='yes') { +/*the link to delete a selected record was clicked instead of the submit button */ + + $sql="DELETE FROM pricematrix + WHERE stockid='" .$_GET['StockID'] . "' + AND salestype='" . $_GET['SalesType'] . "' + AND quantitybreak='" . $_GET['QuantityBreak']."'"; + + $result = DB_query($sql,$db); + prnMsg( _('The price matrix record has been deleted'),'success'); + echo '<br />'; +} + +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; +echo '<div>'; +echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + + +echo '<table class="selection">'; + +$sql = "SELECT typeabbrev, + sales_type + FROM salestypes"; + +$result = DB_query($sql, $db); + +echo '<tr><td>' . _('Customer Price List') . ' (' . _('Sales Type') . '):</td><td>'; + +echo '<select tabindex="1" name="SalesType">'; + +while ($myrow = DB_fetch_array($result)){ + if (isset($_POST['SalesType']) and $myrow['typeabbrev']==$_POST['SalesType']){ + echo '<option selected="selected" value="' . $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; + } else { + echo '<option value="' . $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; + } +} + +echo '</select></td></tr>'; + + +$sql = "SELECT stockid FROM stockmaster WHERE stockid <>''"; +$result = DB_query($sql, $db); +if (DB_num_rows($result) > 0) { + echo '<tr> + <td>' . _('Stock Code') .': </td> + <td><select name="StockID">'; + + while ($myrow = DB_fetch_array($result)){ + if ($myrow['stockid']==$_POST['DiscCat']){ + echo '<option selected="selected" value="' . $myrow['stockid'] . '">' . $myrow['stockid'] . '</option>'; + } else { + echo '<option value="' . $myrow['stockid'] . '">' . $myrow['stockid'] . '</option>'; + } + } + echo '</select></td></tr>'; +} else { + echo '<tr><td><input type="hidden" name="StockID" value="" /></td></tr>'; +} + +echo '<tr> + <td>' . _('Quantity Break') . '</td> + <td><input class="integer' . (in_array('QuantityBreak',$Errors) ? ' inputerror' : '') . '" tabindex="3" required="required" type="number" name="QuantityBreak" size="10" maxlength="10" /></td> + </tr> + <tr> + <td>' . _('Price') . ' :</td> + <td><input class="number' . (in_array('Price',$Errors) ? ' inputerror' : '') . '" tabindex="4" type="text" required="required" name="Price" title="' . _('The price to apply to orders where the quantity exceeds the specified quantity') . '" size="5" maxlength="5" /></td> + </tr> + </table> + <br /> + <div class="centre"> + <input tabindex="5" type="submit" name="submit" value="' . _('Enter Information') . '" /> + </div> + <br />'; + +$sql = "SELECT sales_type, + salestype, + stockid, + quantitybreak, + price + FROM pricematrix INNER JOIN salestypes + ON pricematrix.salestype=salestypes.typeabbrev + ORDER BY salestype, + stockid, + quantitybreak"; + +$result = DB_query($sql,$db); + +echo '<table class="selection">'; +echo '<tr> + <th>' . _('Sales Type') . '</th> + <th>' . _('Price Matrix Category') . '</th> + <th>' . _('Quantity Break') . '</th> + <th>' . _('Sell Price') . ' %' . '</th> + </tr>'; + +$k=0; //row colour counter + +while ($myrow = DB_fetch_array($result)) { + if ($k==1){ + echo '<tr class="EvenTableRows">'; + $k=0; + } else { + echo '<tr class="OddTableRows">'; + $k=1; + } + $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=yes&SalesType=' . $myrow['salestype'] . '&StockID=' . $myrow['stockid'] . '&QuantityBreak=' . $myrow['quantitybreak']; + + printf('<td>%s</td> + <td>%s</td> + <td class="number">%s</td> + <td class="number">%s</td> + <td><a href="%s" onclick="return confirm(\'' . _('Are you sure you wish to delete this discount matrix record?') . '\');">' . _('Delete') . '</a></td> + </tr>', + $myrow['sales_type'], + $myrow['stockid'], + $myrow['quantitybreak'], + $myrow['price'] , + $DeleteURL); + +} + +echo '</table> + </div> + </form>'; + +include('includes/footer.inc'); +?> Modified: trunk/includes/GetPrice.inc =================================================================== --- trunk/includes/GetPrice.inc 2013-12-19 16:17:10 UTC (rev 6504) +++ trunk/includes/GetPrice.inc 2013-12-21 09:44:25 UTC (rev 6505) @@ -3,21 +3,31 @@ function GetPrice ($StockID, $DebtorNo, $BranchCode, $db, $ReportZeroPrice=1){ $Price = 0; - /*Search by branch and customer for a date specified price */ - $sql="SELECT prices.price - FROM prices, - debtorsmaster - WHERE debtorsmaster.salestype=prices.typeabbrev - AND debtorsmaster.debtorno='" . $DebtorNo . "' - AND prices.stockid = '" . $StockID . "' - AND prices.currabrev = debtorsmaster.currcode - AND prices.debtorno=debtorsmaster.debtorno - AND prices.branchcode='" . $BranchCode . "' - AND prices.startdate <='" . Date('Y-m-d') . "' - AND prices.enddate >='" . Date('Y-m-d') . "'"; + //get the price from price matrix + $sql = "SELECT pricematrix.price FROM pricematrix,debtorsmaster + WHERE debtorsmaster.salestype=pricematrix.salestype + AND debtorsmaster.debtorno = '".$DebtorNo."' + AND pricematrix.stockid = '".$StockID."'"; + $ErrorMsg = _('Failed to retrieve price from price matrix'); + $result = DB_query($sql,$db,$ErrMsg); + if (DB_num_rows($result) == 0){ - $ErrMsg = _('There is a problem in retrieving the pricing information for part') . ' ' . $StockID . ' ' . _('and for Customer') . ' ' . $DebtorNo . ' ' . _('the error message returned by the SQL server was'); - $result = DB_query($sql, $db,$ErrMsg); + /*Search by branch and customer for a date specified price */ + $sql="SELECT prices.price + FROM prices, + debtorsmaster + WHERE debtorsmaster.salestype=prices.typeabbrev + AND debtorsmaster.debtorno='" . $DebtorNo . "' + AND prices.stockid = '" . $StockID . "' + AND prices.currabrev = debtorsmaster.currcode + AND prices.debtorno=debtorsmaster.debtorno + AND prices.branchcode='" . $BranchCode . "' + AND prices.startdate <='" . Date('Y-m-d') . "' + AND prices.enddate >='" . Date('Y-m-d') . "'"; + + $ErrMsg = _('There is a problem in retrieving the pricing information for part') . ' ' . $StockID . ' ' . _('and for Customer') . ' ' . $DebtorNo . ' ' . _('the error message returned by the SQL server was'); + $result = DB_query($sql, $db,$ErrMsg); + } if (DB_num_rows($result)==0){ /*Need to try same specific search but for a default price with a zero end date */ $sql="SELECT prices.price, @@ -163,4 +173,4 @@ } } -?> \ No newline at end of file +?> Modified: trunk/includes/MainMenuLinksArray.php =================================================================== --- trunk/includes/MainMenuLinksArray.php 2013-12-19 16:17:10 UTC (rev 6504) +++ trunk/includes/MainMenuLinksArray.php 2013-12-21 09:44:25 UTC (rev 6505) @@ -481,7 +481,8 @@ _('Sales GL Interface Postings'), _('COGS GL Interface Postings'), _('Freight Costs Maintenance'), - _('Discount Matrix')); + _('Discount Matrix'), + _('Price Matrix')); $MenuItems['system']['Reports']['URL'] = array( '/SalesTypes.php', '/CustomerTypes.php', @@ -496,7 +497,8 @@ '/SalesGLPostings.php', '/COGSGLPostings.php', '/FreightCosts.php', - '/DiscountMatrix.php'); + '/DiscountMatrix.php', + '/PriceMatrix.php'); $MenuItems['system']['Maintenance']['Caption'] = array( _('Inventory Categories Maintenance'), _('Inventory Locations Maintenance'), Modified: trunk/sql/mysql/upgrade4.11-4.12.sql =================================================================== --- trunk/sql/mysql/upgrade4.11-4.12.sql 2013-12-19 16:17:10 UTC (rev 6504) +++ trunk/sql/mysql/upgrade4.11-4.12.sql 2013-12-21 09:44:25 UTC (rev 6505) @@ -1,2 +1,13 @@ ALTER TABLE `emailsettings` CHANGE `username` `username` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL +CREATE TABLE IF NOT EXISTS `pricematrix` ( + `salestype` char(2) NOT NULL DEFAULT '', + `stockid` varchar(20) NOT NULL DEFAULT '', + `quantitybreak` int(11) NOT NULL DEFAULT '1', + `price` double NOT NULL DEFAULT '0', + PRIMARY KEY (`salestype`,`stockid`,`quantitybreak`), + KEY `DiscountCategory` (`stockid`), + KEY `SalesType` (`salestype`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +INSERT INTO scripts VALUES('PriceMatrix.php',11,'Mantain stock prices according to quantity break and sales types'); UPDATE config SET confvalue='4.12' WHERE confname='VersionNumber'; + |
From: <rc...@us...> - 2013-12-26 17:15:53
|
Revision: 6518 http://sourceforge.net/p/web-erp/reponame/6518 Author: rchacon Date: 2013-12-26 17:15:48 +0000 (Thu, 26 Dec 2013) Log Message: ----------- Shows Default Tax Category. Shows Stock Type name instead of Stock Type code. Minor Spanish translation adjustments. Modified Paths: -------------- trunk/StockCategories.php trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po Modified: trunk/StockCategories.php =================================================================== --- trunk/StockCategories.php 2013-12-25 08:18:30 UTC (rev 6517) +++ trunk/StockCategories.php 2013-12-26 17:15:48 UTC (rev 6518) @@ -3,11 +3,29 @@ include('includes/session.inc'); -$Title = _('Stock Category Maintenance'); +$Title = _('Inventory Categories Maintenance'); $ViewTopic= 'Inventory'; $BookMark = 'InventoryCategories'; include('includes/header.inc'); +// BEGIN: Stock Type Name array. +$StockTypeName = array(); +$StockTypeName['D'] = _('Dummy Item - (No Movements)'); +$StockTypeName['F'] = _('Finished Goods'); +$StockTypeName['L'] = _('Labour'); +$StockTypeName['M'] = _('Raw Materials'); +asort($StockTypeName); +// END: Stock Type Name array. + +// BEGIN: Tax Category Name array. +$TaxCategoryName = array(); +$Query = "SELECT taxcatid, taxcatname FROM taxcategories ORDER BY taxcatname"; +$Result = DB_query($Query, $db); +while ($Row = DB_fetch_array($Result)) { + $TaxCategoryName[$Row['taxcatid']] = $Row['taxcatname']; +} +// END: Tax Category Name array. + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/supplier.png" title="' . _('Inventory Adjustment') . '" alt="" />' . ' ' . $Title . '</p>'; if (isset($_GET['SelectedCategory'])){ @@ -150,17 +168,17 @@ purchpricevaract, materialuseagevarac, wipact) - VALUES ( - '" . $_POST['CategoryID'] . "', - '" . $_POST['StockType'] . "', - '" . $_POST['CategoryDescription'] . "', - '" . $_POST['DefaultTaxCatID'] . "', - '" . $_POST['StockAct'] . "', - '" . $_POST['AdjGLAct'] . "', - '" . $_POST['IssueGLAct'] . "', - '" . $_POST['PurchPriceVarAct'] . "', - '" . $_POST['MaterialUseageVarAc'] . "', - '" . $_POST['WIPAct'] . "')"; + VALUES ('" . + $_POST['CategoryID'] . "','" . + $_POST['StockType'] . "','" . + $_POST['CategoryDescription'] . "','" . + $_POST['DefaultTaxCatID'] . "','" . + $_POST['StockAct'] . "','" . + $_POST['AdjGLAct'] . "','" . + $_POST['IssueGLAct'] . "','" . + $_POST['PurchPriceVarAct'] . "','" . + $_POST['MaterialUseageVarAc'] . "','" . + $_POST['WIPAct'] . "')"; $ErrMsg = _('Could not insert the new stock category') . $_POST['CategoryDescription'] . _('because'); $result = DB_query($sql,$db,$ErrMsg); prnMsg(_('A new stock category record has been added for') . ' ' . $_POST['CategoryDescription'],'success'); @@ -219,9 +237,10 @@ links to delete or edit each. These will call the same page again and allow update/input or deletion of the records*/ - $sql = "SELECT categoryid, + $sql = "SELECT categoryid, categorydescription, stocktype, + defaulttaxcatid, stockact, adjglact, issueglact, @@ -234,15 +253,17 @@ echo '<br /> <table class="selection"> <tr> - <th>' . _('Cat Code') . '</th> - <th>' . _('Description') . '</th> - <th>' . _('Type') . '</th> - <th>' . _('Stock GL') . '</th> + <th>' . _('Code') . '</th> + <th>' . _('Category Description') . '</th>' . ' + <th>' . _('Stock Type') . '</th>' . ' + <th>' . _('Default Tax Category') . '</th>' . ' + <th>' . _('Stock GL') . '</th>' . ' <th>' . _('Adjts GL') . '</th> <th>' . _('Issues GL') . '</th> <th>' . _('Price Var GL') . '</th> <th>' . _('Usage Var GL') . '</th> <th>' . _('WIP GL') . '</th> + <th colspan="2">' . _('Maintenance') . '</th> </tr>'; $k=0; //row colour counter @@ -258,6 +279,7 @@ printf('<td>%s</td> <td>%s</td> <td>%s</td> + <td>%s</td> <td class="number">%s</td> <td class="number">%s</td> <td class="number">%s</td> @@ -269,7 +291,8 @@ </tr>', $myrow['categoryid'], $myrow['categorydescription'], - $myrow['stocktype'], + $StockTypeName[$myrow['stocktype']], + $TaxCategoryName[$myrow['defaulttaxcatid']], $myrow['stockact'], $myrow['adjglact'], $myrow['issueglact'], @@ -369,65 +392,46 @@ $PnLAccountsResult = DB_query($sql,$db); +// Category Description input. if (!isset($_POST['CategoryDescription'])) { $_POST['CategoryDescription'] = ''; } +echo '<tr><td><label for="CategoryDescription">' . _('Category Description') . + ':</label></td><td><input id="CategoryDescription" maxlength="20" name="CategoryDescription" required="required" size="22" title="' . + _('A description of the inventory category is required') . + '" type="text" value="' . $_POST['CategoryDescription'] . + '" /></td></tr>'; -echo '<tr> - <td>' . _('Category Description') . ':</td> - <td><input type="text" name="CategoryDescription" required="required" title="' . _('A description of the inventory category is required') . '" size="22" maxlength="20" value="' . $_POST['CategoryDescription'] . '" /></td> - </tr>'; - - -echo '<tr> - <td>' . _('Stock Type') . ':</td> - <td><select name="StockType" onChange="ReloadForm(CategoryForm.UpdateTypes)" >'; -if (isset($_POST['StockType']) and $_POST['StockType']=='F') { - echo '<option selected="selected" value="F">' . _('Finished Goods') . '</option>'; -} else { - echo '<option value="F">' . _('Finished Goods') . '</option>'; +// Stock Type input. +echo '<tr><td><label for="StockType">' . _('Stock Type') . + ':</label></td><td><select id="StockType" name="StockType" onChange="ReloadForm(CategoryForm.UpdateTypes)" >'; +foreach ($StockTypeName as $StockTypeId => $Row) { + echo '<option'; + if (isset($_POST['StockType']) and $_POST['StockType']==$StockTypeId) { + echo ' selected="selected"'; + } + echo ' value="' . $StockTypeId . '">' . $Row . '</option>'; } -if (isset($_POST['StockType']) and $_POST['StockType']=='M') { - echo '<option selected="selected" value="M">' . _('Raw Materials') . '</option>'; -} else { - echo '<option value="M">' . _('Raw Materials') . '</option>'; -} -if (isset($_POST['StockType']) and $_POST['StockType']=='D') { - echo '<option selected="selected" value="D">' . _('Dummy Item - (No Movements)') . '</option>'; -} else { - echo '<option value="D">' . _('Dummy Item - (No Movements)') . '</option>'; -} -if (isset($_POST['StockType']) and $_POST['StockType']=='L') { - echo '<option selected="selected" value="L">' . _('Labour') . '</option>'; -} else { - echo '<option value="L">' . _('Labour') . '</option>'; -} +echo '</select></td></tr>'; -echo '</select></td> - </tr>'; - -echo '<tr> - <td>' . _('Default Tax Category') . ':</td> - <td><select name="DefaultTaxCatID">'; -$sql = "SELECT taxcatid, taxcatname FROM taxcategories ORDER BY taxcatname"; -$result = DB_query($sql, $db); - -if (!isset($_POST['DefaultTaxCatID'])){ +// Default Tax Category input. +if (!isset($_POST['DefaultTaxCatID'])) { $_POST['DefaultTaxCatID'] = $_SESSION['DefaultTaxCategory']; } - -while ($myrow = DB_fetch_array($result)) { - if ($_POST['DefaultTaxCatID'] == $myrow['taxcatid']){ - echo '<option selected="selected" value="' . $myrow['taxcatid'] . '">' . $myrow['taxcatname'] . '</option>'; - } else { - echo '<option value="' . $myrow['taxcatid'] . '">' . $myrow['taxcatname'] . '</option>'; +echo '<tr><td><label for="DefaultTaxCatID">' . _('Default Tax Category') . + ':</label></td><td><select id="DefaultTaxCatID" name="DefaultTaxCatID">'; +foreach ($TaxCategoryName as $TaxCategoryId => $Row) { + echo '<option'; + if ($_POST['DefaultTaxCatID'] == $TaxCategoryId) { + echo ' selected="selected"'; } -} //end while loop + echo ' value="' . $TaxCategoryId . '">' . $Row . '</option>'; +} +echo '</select></td></tr>'; -echo '</select></td> - </tr>'; - -echo '<tr><td><input type="submit" name="UpdateTypes" style="visibility:hidden;width:1px" value="Not Seen" />'; +// Recovery or Stock GL Code input. +echo '<tr> +<td><input type="submit" name="UpdateTypes" style="visibility:hidden;width:1px" value="Not Seen" />'; if (isset($_POST['StockType']) and $_POST['StockType']=='L') { $Result = $PnLAccountsResult; echo _('Recovery GL Code'); @@ -435,7 +439,8 @@ $Result = $BSAccountsResult; echo _('Stock GL Code'); } -echo ':</td><td><select name="StockAct">'; +echo ':</td> +<td><select name="StockAct">'; while ($myrow = DB_fetch_array($Result)){ @@ -449,20 +454,21 @@ DB_data_seek($BSAccountsResult,0); echo '</select></td></tr>'; +// WIP GL Code input. echo '<tr><td>' . _('WIP GL Code') . ':</td><td><select name="WIPAct">'; - while ($myrow = DB_fetch_array($BSAccountsResult)) { - + echo '<option'; if (isset($_POST['WIPAct']) and $myrow['accountcode']==$_POST['WIPAct']) { - echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . htmlspecialchars($myrow['accountname'], ENT_QUOTES, 'UTF-8', false) . ' ('.$myrow['accountcode'].')' . '</option>'; - } else { - echo '<option value="' . $myrow['accountcode'] . '">' . htmlspecialchars($myrow['accountname'], ENT_QUOTES, 'UTF-8', false) . ' ('.$myrow['accountcode'].')' . '</option>'; + echo ' selected="selected"'; } - -} //end while loop + echo ' value="' . $myrow['accountcode'] . '">' . + htmlspecialchars($myrow['accountname'], ENT_QUOTES, 'UTF-8', false) . + ' ('.$myrow['accountcode'].')' . '</option>'; +} echo '</select></td></tr>'; DB_data_seek($BSAccountsResult,0); +// Stock Adjustments GL Code input. echo '<tr> <td>' . _('Stock Adjustments GL Code') . ':</td> <td><select name="AdjGLAct">'; 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 2013-12-25 08:18:30 UTC (rev 6517) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2013-12-26 17:15:48 UTC (rev 6518) @@ -8,7 +8,7 @@ "Project-Id-Version: WebERP 4.081\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-12-14 08:01-0600\n" +"PO-Revision-Date: 2013-12-26 11:02-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -2699,7 +2699,7 @@ #: Z_ChangeStockCategory.php:92 Z_ChangeStockCode.php:177 #: ../webSHOP/includes/PlaceOrder.php:235 msgid "Stock Code" -msgstr "Código de Inventario" +msgstr "Código de inventario" #: BOMInquiry.php:35 BOMs.php:875 ContractBOM.php:342 Contracts.php:769 #: CounterReturns.php:1642 CounterSales.php:2253 CustomerReceipt.php:1155 @@ -11763,7 +11763,7 @@ #: InternalStockCategoriesByRole.php:167 StockCategories.php:336 #: StockCategories.php:346 msgid "Category Code" -msgstr "Código de la Categoría" +msgstr "Código de categoría" #: FixedAssetCategories.php:255 #, fuzzy @@ -11774,7 +11774,7 @@ #: FixedAssetCategories.php:283 POReport.php:741 POReport.php:1435 #: SalesInquiry.php:977 StockCategories.php:377 msgid "Category Description" -msgstr "Descripción de la Categoría" +msgstr "Descripción de categoría" #: FixedAssetCategories.php:284 #, fuzzy @@ -15154,9 +15154,8 @@ msgstr "¿Seguro que desea eliminar esta categoría de impuestos?" #: InternalStockCategoriesByRole.php:201 -#, fuzzy msgid "Select Stock Category Code" -msgstr "Seleccionar una Categoría de Existencia" +msgstr "Seleccionar un código de categoría de inventario" #: InternalStockRequestAuthorisation.php:7 includes/MainMenuLinksArray.php:203 msgid "Authorise Internal Stock Requests" @@ -15431,7 +15430,7 @@ #: SupplierPriceList.php:14 SupplierPriceList.php:224 #: SupplierTenderCreate.php:659 SupplierTenders.php:388 msgid "Search for Inventory Items" -msgstr "Buscar Artículos del Inventario" +msgstr "Buscar artículos de inventario" #: InternalStockRequest.php:319 InventoryQuantities.php:181 MRPReport.php:508 #: ReorderLevel.php:231 SelectProduct.php:43 StockDispatch.php:378 @@ -15820,14 +15819,14 @@ #: InventoryValuation.php:15 MailInventoryValuation.php:51 #: MailInventoryValuation.php:230 includes/MainMenuLinksArray.php:226 msgid "Inventory Valuation Report" -msgstr "Informe de Valoración del Inventario" +msgstr "Informe de valoración de inventario" #: InventoryValuation.php:16 InventoryValuation.php:78 #: MailInventoryValuation.php:21 MailInventoryValuation.php:52 #: MailInventoryValuation.php:119 MailSalesReport_csv.php:30 #: MailSalesReport.php:23 msgid "Inventory Valuation" -msgstr "Valoración del Inventario" +msgstr "Valoración de inventario" #: InventoryValuation.php:80 MailInventoryValuation.php:121 msgid "The inventory valuation could not be retrieved by the SQL because" @@ -16320,9 +16319,8 @@ msgstr "Cumplir con las Solicitudes de Existencia Internas" #: MailingGroupMaintenance.php:3 includes/MainMenuLinksArray.php:449 -#, fuzzy msgid "Mailing Group Maintenance" -msgstr "Administrar Grupos de Impuestos" +msgstr "Administrar grupos de correo" #: MailingGroupMaintenance.php:18 msgid "" @@ -16343,9 +16341,8 @@ msgstr "La forma de pago no puede contener caracteres prohibidos" #: MailingGroupMaintenance.php:43 -#, fuzzy msgid "The Group Id must be integer" -msgstr "El código de la cuenta debe ser un entero" +msgstr "El código de grupo debe ser un entero" #: MailingGroupMaintenance.php:51 #, fuzzy @@ -16363,9 +16360,8 @@ msgstr "" #: MailingGroupMaintenance.php:71 -#, fuzzy msgid "The group id must be numeric" -msgstr "El período final debe ser numérico" +msgstr "El código de grupo debe ser un entero" #: MailingGroupMaintenance.php:87 MailingGroupMaintenance.php:107 #: MailingGroupMaintenance.php:125 @@ -16452,9 +16448,8 @@ msgstr "Por favor, vea el informe de valoración de existencias adjunto" #: MailInventoryValuation.php:239 -#, fuzzy msgid "Print Inventory Valuation" -msgstr "Imprimir Error de Valoración del Inventario" +msgstr "Imprimir valoración de inventario" #: MailInventoryValuation.php:241 #, fuzzy @@ -16860,7 +16855,7 @@ #: MRPCreateDemands.php:211 MRPShortages.php:267 PDFDeliveryDifferences.php:40 #: PDFDIFOT.php:49 PDFOrdersInvoiced.php:49 PDFOrderStatus.php:45 msgid "Inventory Category" -msgstr "Categorìa de Inventario" +msgstr "Categoría de inventario" #: MRPCreateDemands.php:213 MRPShortages.php:268 msgid "All Stock Categories" @@ -25131,9 +25126,8 @@ msgstr "Enviar Información" #: SalesCategories.php:434 -#, fuzzy msgid "Add Inventory to this category" -msgstr "Añadir Inventario a esta Categoría." +msgstr "Añadir inventario a esta categoría." #: SalesCategories.php:437 msgid "Select Item" @@ -25158,9 +25152,8 @@ msgstr "No hay más artículos de Inventario que añadir" #: SalesCategories.php:505 -#, fuzzy msgid "Inventory items for" -msgstr "Artículos de Inventario" +msgstr "Artículos de inventario para" #: SalesCategories.php:511 #, fuzzy @@ -28536,18 +28529,16 @@ msgstr "" #: ShopParameters.php:591 -#, fuzzy msgid "vendor" -msgstr "inventario" +msgstr "proveedor" #: ShopParameters.php:594 msgid "Pay Flow Pro Merchant" msgstr "" #: ShopParameters.php:596 -#, fuzzy msgid "merchant" -msgstr "Por Ciento" +msgstr "" #: ShopParameters.php:599 msgid "SwipeHQ Merchant ID" @@ -29140,11 +29131,11 @@ #: StockCategories.php:208 msgid "The stock category" -msgstr "La categoría de existencia" +msgstr "La categoría de inventario" #: StockCategories.php:240 msgid "Stock GL" -msgstr "CC Stock" +msgstr "CC Inventario" #: StockCategories.php:241 msgid "Adjts GL" @@ -29156,15 +29147,15 @@ #: StockCategories.php:243 msgid "Price Var GL" -msgstr "CC Variación Precio" +msgstr "CC Varianza en precio" #: StockCategories.php:244 msgid "Usage Var GL" -msgstr "CC Variación Uso" +msgstr "CC Varianza en cantidad" #: StockCategories.php:245 msgid "WIP GL" -msgstr "CC Trabajo en Progreso" +msgstr "CC Trabajo en proceso" #: StockCategories.php:268 #, php-format @@ -29179,7 +29170,7 @@ #: StockCategories.php:293 msgid "Show All Stock Categories" -msgstr "Mostrar todas las categorías de existencia" +msgstr "Mostrar todas las categorías de inventario" #: StockCategories.php:347 msgid "" @@ -29194,11 +29185,11 @@ #: StockCategories.php:383 msgid "Stock Type" -msgstr "Tipo de Stock" +msgstr "Tipo de inventario" #: StockCategories.php:386 StockCategories.php:388 msgid "Finished Goods" -msgstr "Bienes Terminados" +msgstr "Bienes terminados" #: StockCategories.php:396 StockCategories.php:398 msgid "Dummy Item - (No Movements)" @@ -29206,11 +29197,11 @@ #: StockCategories.php:401 StockCategories.php:403 msgid "Labour" -msgstr "Mano de Obra" +msgstr "Mano de obra" #: StockCategories.php:410 SystemParameters.php:635 msgid "Default Tax Category" -msgstr "Clase de Impuesto Predeterminado" +msgstr "Categoría predeterminada de impuesto" #: StockCategories.php:433 msgid "Recovery GL Code" @@ -29218,15 +29209,15 @@ #: StockCategories.php:436 msgid "Stock GL Code" -msgstr "Cuenta Contable de Existencias" +msgstr "Cuenta contable de inventario" #: StockCategories.php:452 msgid "WIP GL Code" -msgstr "Cuenta Contable de Trabajo en Progreso" +msgstr "Cuenta contable de trabajo en proceso" #: StockCategories.php:467 msgid "Stock Adjustments GL Code" -msgstr "Cuenta Contable de Ajustes Inventario" +msgstr "Cuenta contable de ajustes de inventario" #: StockCategories.php:482 msgid "Internal Stock Issues GL Code" @@ -29234,15 +29225,15 @@ #: StockCategories.php:497 msgid "Price Variance GL Code" -msgstr "Cuenta Contable de Variación de Precio" +msgstr "Cuenta contable de varianza en precio" #: StockCategories.php:515 msgid "Labour Efficiency Variance GL Code" -msgstr "Código Contable de Variación de Eficiencia Laboral" +msgstr "Código contable de varianza en mano de obra" #: StockCategories.php:517 msgid "Usage Variance GL Code" -msgstr "Cuenta Contable de Variación de Uso" +msgstr "Cuenta contable de varianza en cantidad" #: StockCategories.php:561 msgid "Property Label" @@ -29258,15 +29249,15 @@ #: StockCategories.php:564 msgid "Numeric Value" -msgstr "Valor Númerico" +msgstr "Valor númerico" #: StockCategories.php:565 msgid "Minimum Value" -msgstr "Valor Mínimo" +msgstr "Valor mínimo" #: StockCategories.php:566 msgid "Maximum Value" -msgstr "Valor Máximo" +msgstr "Valor máximo" #: StockCategories.php:567 msgid "Require in SO" @@ -29286,7 +29277,7 @@ #: StockCategories.php:591 StockCategories.php:593 StockCategories.php:625 msgid "Date Box" -msgstr "Fecha Caja" +msgstr "Caja de fecha" #: StockCategories.php:613 msgid "" @@ -43872,7 +43863,7 @@ #: includes/MainMenuLinksArray.php:501 msgid "Inventory Categories Maintenance" -msgstr "Administrar Categorías de Inventario" +msgstr "Administrar categorías de inventario" #: includes/MainMenuLinksArray.php:502 msgid "Inventory Locations Maintenance" @@ -49062,9 +49053,8 @@ msgstr "" #: ../webSHOP/ItemDetails.php:116 -#, fuzzy msgid "In Stock QTY" -msgstr "Tipo de Stock" +msgstr "Cantidad en inventario" #: ../webSHOP/ItemDetails.php:124 #, fuzzy @@ -49488,9 +49478,8 @@ msgstr "Cambiando la la información de la orden de trabajo" #: ../webSHOP/includes/Functions.php:50 -#, fuzzy msgid "Stock QTY" -msgstr "Tipo de Stock" +msgstr "Cantidad en inventario" #: ../webSHOP/includes/Functions.php:64 ../webSHOP/includes/header.php:227 msgid "View Order" |
From: <rc...@us...> - 2013-12-26 18:45:26
|
Revision: 6519 http://sourceforge.net/p/web-erp/reponame/6519 Author: rchacon Date: 2013-12-26 18:45:22 +0000 (Thu, 26 Dec 2013) Log Message: ----------- Standardise some text lines. Minor Spanish translations. Modified Paths: -------------- trunk/SelectProduct.php trunk/SuppPaymentRun.php trunk/UserSettings.php trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2013-12-26 17:15:48 UTC (rev 6518) +++ trunk/SelectProduct.php 2013-12-26 18:45:22 UTC (rev 6519) @@ -91,8 +91,8 @@ echo '<tr> <td style="width:40%" valign="top"> <table>'; //nested table - echo '<tr><th class="number">' . _('Category:') . '</th> <td colspan="2" class="select">' . $myrow['categorydescription'] , '</td></tr>'; - echo '<tr><th class="number">' . _('Item Type:') . '</th> + echo '<tr><th class="number">' . _('Category') . ':</th> <td colspan="2" class="select">' . $myrow['categorydescription'] , '</td></tr>'; + echo '<tr><th class="number">' . _('Item Type') . ':</th> <td colspan="2" class="select">'; switch ($myrow['mbflag']) { case 'A': @@ -119,7 +119,7 @@ echo _('Manufactured Item'); break; } - echo '</td><th class="number">' . _('Control Level:') . '</th><td class="select">'; + echo '</td><th class="number">' . _('Control Level') . ':</th><td class="select">'; if ($myrow['serialised'] == 1) { echo _('serialised'); } elseif ($myrow['controlled'] == 1) { Modified: trunk/SuppPaymentRun.php =================================================================== --- trunk/SuppPaymentRun.php 2013-12-26 17:15:48 UTC (rev 6518) +++ trunk/SuppPaymentRun.php 2013-12-26 18:45:22 UTC (rev 6519) @@ -263,7 +263,7 @@ } echo '<tr> <td>' . _('From Supplier Code') . ':</td> - <td><input type="text" pattern="[^><+-]{1,10}" title="'._('Illegal Characters are not allowed').'" maxlength="10" size="7" name="FromCriteria" value="' . $DefaultFromCriteria . '" /></td> + <td><input type="text" pattern="[^><+-]{1,10}" title="'._('Illegal characters are not allowed').'" maxlength="10" size="7" name="FromCriteria" value="' . $DefaultFromCriteria . '" /></td> </tr>'; echo '<tr> <td>' . _('To Supplier Code') . ':</td> Modified: trunk/UserSettings.php =================================================================== --- trunk/UserSettings.php 2013-12-26 17:15:48 UTC (rev 6518) +++ trunk/UserSettings.php 2013-12-26 18:45:22 UTC (rev 6519) @@ -120,7 +120,7 @@ echo '<tr> <td>' . _('Maximum Number of Records to Display') . ':</td> - <td><input type="text" class="integer" required="required" title="'._('Must be postive integer').'" name="DisplayRecordsMax" size="3" maxlength="3" value="' . $_POST['DisplayRecordsMax'] . '" /></td> + <td><input type="text" class="integer" required="required" title="'._('The input must be positive integer').'" name="DisplayRecordsMax" size="3" maxlength="3" value="' . $_POST['DisplayRecordsMax'] . '" /></td> </tr>'; 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 2013-12-26 17:15:48 UTC (rev 6518) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2013-12-26 18:45:22 UTC (rev 6519) @@ -8,7 +8,7 @@ "Project-Id-Version: WebERP 4.081\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-12-26 11:02-0600\n" +"PO-Revision-Date: 2013-12-26 12:40-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -3349,6 +3349,8 @@ "Enter the name of the business. This will appear on all reports and at the " "top of each screen. " msgstr "" +"Introduzca el nombre de la empresa. Esto aparecerá en todos los informes y " +"en la parte superior de cada pantalla." #: CompanyPreferences.php:178 msgid "Official Company Number" @@ -3367,6 +3369,8 @@ "Enter the first line of the company registered office. This will appear on " "invoices and statements." msgstr "" +"Introduzca la primera línea del domicilio social de la compañía. Esto " +"aparecerá en las facturas y declaraciones." #: CompanyPreferences.php:193 Factors.php:214 msgid "Address Line 2" @@ -3377,6 +3381,8 @@ "Enter the second line of the company registered office. This will appear on " "invoices and statements." msgstr "" +"Introduzca la segunda línea del domicilio social de la compañía. Esto " +"aparecerá en las facturas y declaraciones." #: CompanyPreferences.php:198 Factors.php:218 msgid "Address Line 3" @@ -3387,6 +3393,8 @@ "Enter the third line of the company registered office. This will appear on " "invoices and statements." msgstr "" +"Introduzca la tercera línea del domicilio social de la compañía. Esto " +"aparecerá en las facturas y declaraciones." #: CompanyPreferences.php:203 Factors.php:222 msgid "Address Line 4" @@ -3397,6 +3405,8 @@ "Enter the fourth line of the company registered office. This will appear on " "invoices and statements." msgstr "" +"Introduzca la cuarta línea del domicilio social de la compañía. Esto " +"aparecerá en las facturas y declaraciones." #: CompanyPreferences.php:208 Factors.php:226 msgid "Address Line 5" @@ -3408,17 +3418,19 @@ #: CompanyPreferences.php:218 msgid "Telephone Number" -msgstr "Teléfono" +msgstr "Número de teléfono" #: CompanyPreferences.php:219 msgid "" "Enter the main telephone number of the company registered office. This will " "appear on invoices and statements." msgstr "" +"Introduzca el número de teléfono principal del domicilio social de la " +"compañía. Esto aparecerá en las facturas y declaraciones." #: CompanyPreferences.php:223 msgid "Facsimile Number" -msgstr "Fax" +msgstr "Número de facsímil" #: CompanyPreferences.php:228 CustLoginSetup.php:162 Suppliers.php:734 #: Suppliers.php:956 SupplierTenderCreate.php:410 SuppLoginSetup.php:145 @@ -3431,6 +3443,8 @@ "Enter the main company email address. This will appear on invoices and " "statements." msgstr "" +"Introduzca la dirección principal de correo electrónico de la empresa. Esto " +"aparecerá en las facturas y declaraciones." #: CompanyPreferences.php:237 msgid "Home Currency" @@ -12170,7 +12184,7 @@ #: FixedAssetItems.php:484 SalesCategories.php:363 StockClone.php:691 #: Stocks.php:992 msgid "Image File (.jpg)" -msgstr "Fichero de Imagen (.jpg)" +msgstr "Archivo de imagen (.jpg)" #: FixedAssetItems.php:512 FixedAssetRegister.php:264 msgid "Asset Category" @@ -13595,7 +13609,7 @@ #: GLBalanceSheet.php:63 GLProfit_Loss.php:113 msgid "Show all Accounts including zero balances" -msgstr "" +msgstr "Mostrar todas las cuentas incluyendo saldos en cero" #: GLBalanceSheet.php:64 GLProfit_Loss.php:114 msgid "" @@ -16738,9 +16752,8 @@ msgstr "" #: Manufacturers.php:300 -#, fuzzy msgid "Brand Image File (.jpg)" -msgstr "Fichero de Imagen (.jpg)" +msgstr "Archivo de imagen (.jpg)" #: MaterialsNotUsed.php:6 msgid "Raw Materials Not Used Anywhere" @@ -27041,9 +27054,8 @@ msgstr "Administrar clase de descuento" #: SelectProduct.php:502 -#, fuzzy msgid "Clone This Item" -msgstr "Eliminar Este Artículo" +msgstr "Clonar este artículo" #: SelectProduct.php:548 SelectProduct.php:550 #, fuzzy @@ -29379,9 +29391,8 @@ msgstr "Imprimir y Procesar" #: StockClone.php:5 -#, fuzzy msgid "Clone Item" -msgstr "Convertir Artículos" +msgstr "Clonar artículo" #: StockClone.php:27 msgid "" @@ -29405,6 +29416,10 @@ "purchasing and pricing data as the selected item. Item image and general " "item details can be changed below prior to cloning." msgstr "" +"La clonación creará un nuevo artículo con las mismas propiedades, imagen, " +"costo, datos de compra y de precios como el elemento seleccionado. La imagen " +"del artículo y los detalleres generales del artículo se pueden cambiar abajo " +"antes de la clonación." #: StockClone.php:68 #, fuzzy @@ -29426,10 +29441,13 @@ "There was an image file to clone but there was an error copying. Please " "upload a new image if required." msgstr "" +"Había un archivo de imagen para clonar, pero hubo un error al copiar. Sube " +"una nueva imagen si es necesario." #: StockClone.php:98 msgid "Unable to delete the temporary image file for cloned item." msgstr "" +"No se puede eliminar el archivo de imagen temporal para el artículo clonado." #: StockClone.php:124 Stocks.php:120 Z_ImportStocks.php:104 msgid "" @@ -29613,30 +29631,27 @@ msgstr "EL SQL fallo:" #: StockClone.php:419 -#, fuzzy msgid "" "The cloned supplier purchasing details could not be added to the database " "because" msgstr "" "No se pudo agregar en la base de datos el detalle de la compra al proveedor " -"porque" +"porqueLos detalles clonados de compra al proveedor no pudieron ser añadidos " +"a la base de datos porque" #: StockClone.php:469 -#, fuzzy msgid "The cloned pricing could not be added" -msgstr "El nuevo precio no se podra añadir" +msgstr "Los precios clonados no pudieron ser añadidos" #: StockClone.php:503 -#, fuzzy msgid "The cost details for the cloned stock item could not be updated because" msgstr "" -"No se pudieron actualizar los detalles de costos del artículo de existencias " +"Los detalles de costo para el artículo clonado no pudieron ser actualizados " "porque" #: StockClone.php:510 -#, fuzzy msgid "New Cloned Item" -msgstr "Elemento nuevo" +msgstr "Nuevo artículo clonado" #: StockClone.php:511 msgid "We also attempted to setup item purchase data and pricing." @@ -29664,9 +29679,8 @@ msgstr "Revisar una orden de compra" #: StockClone.php:525 -#, fuzzy msgid "Costing was updated for this cloned item." -msgstr "los precios no se actualizarán para este artículo" +msgstr "Costeo fue actualizado para este artículo clonado." #: StockClone.php:526 #, fuzzy @@ -29674,14 +29688,12 @@ msgstr "Introducir Costo del Artículo" #: StockClone.php:584 -#, fuzzy msgid "Cloned Item Code" -msgstr "Código de artículo" +msgstr "Código de artículo clonado" #: StockClone.php:586 -#, fuzzy msgid "Enter a unique item code for the new item." -msgstr "Introduzca arriba un código de artículo de existencias" +msgstr "Introduzca un código de artículo único para el nuevo artículo." #: StockClone.php:694 Stocks.php:994 #, fuzzy @@ -33992,11 +34004,11 @@ #: SuppPaymentRun.php:266 msgid "Illegal Characters are not allowed" -msgstr "" +msgstr "Caracteres ilegales no son permitidos" #: SuppPaymentRun.php:270 msgid "Illegal characters are not allowed" -msgstr "" +msgstr "Caracteres ilegales no son permitidos" #: SuppPaymentRun.php:275 msgid "For Suppliers Trading in" @@ -36185,7 +36197,7 @@ #: TopItems.php:94 TopItems.php:105 msgid "The input must be positive integer" -msgstr "La entrada debe ser un número entero positivo" +msgstr "La entrada debe ser un entero positivo" #: TopItems.php:98 msgid "With less than" @@ -36570,7 +36582,7 @@ #: UserSettings.php:124 msgid "Must be postive integer" -msgstr "" +msgstr "Debe ser entero positivo" #: UserSettings.php:174 msgid "New Password" |
From: <rc...@us...> - 2013-12-31 19:05:45
|
Revision: 6522 http://sourceforge.net/p/web-erp/reponame/6522 Author: rchacon Date: 2013-12-31 19:05:40 +0000 (Tue, 31 Dec 2013) Log Message: ----------- Minor translation adjustments. Modified Paths: -------------- trunk/BankAccountUsers.php trunk/Customers.php trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po Modified: trunk/BankAccountUsers.php =================================================================== --- trunk/BankAccountUsers.php 2013-12-27 03:44:29 UTC (rev 6521) +++ trunk/BankAccountUsers.php 2013-12-31 19:05:40 UTC (rev 6522) @@ -68,7 +68,7 @@ VALUES ('" . $_POST['SelectedBankAccount'] . "', '" . $_POST['SelectedUser'] . "')"; - $msg = _('User:') . ' ' . $_POST['SelectedUser'].' '._('has been authorised to use') .' '. $_POST['SelectedBankAccount'] . ' ' . _('bank account'); + $msg = _('User') . ': ' . $_POST['SelectedUser'].' '._('has been authorised to use') .' '. $_POST['SelectedBankAccount'] . ' ' . _('bank account'); $result = DB_query($sql,$db); prnMsg($msg,'success'); unset($_POST['SelectedUser']); Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2013-12-27 03:44:29 UTC (rev 6521) +++ trunk/Customers.php 2013-12-31 19:05:40 UTC (rev 6522) @@ -988,7 +988,7 @@ if (isset($_GET['Modify'])) { echo '<tr> <td>' . _('Customer Currency') . ':</td> - <td>' . $CurrencyName[$_POST['CurrCode']] . '</td></tr>'; // Translates from currencies.currency *** + <td>' . $CurrencyName[$_POST['CurrCode']] . '</td></tr>'; } else { $result=DB_query("SELECT currency, currabrev FROM currencies",$db); echo '<tr> 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 2013-12-27 03:44:29 UTC (rev 6521) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2013-12-31 19:05:40 UTC (rev 6522) @@ -8,7 +8,7 @@ "Project-Id-Version: WebERP 4.081\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-12-26 12:40-0600\n" +"PO-Revision-Date: 2013-12-26 20:33-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -1635,19 +1635,16 @@ msgstr "Divisa de la Cuenta" #: BankAccountUsers.php:4 -#, fuzzy msgid "Maintenance Of Bank Account Authorised Users" -msgstr "Código de la Cuenta Bancaria" +msgstr "Administración de usuarios autorizados en cuentas bancarias" #: BankAccountUsers.php:7 includes/MainMenuLinksArray.php:373 -#, fuzzy msgid "Bank Account Authorised Users" -msgstr "Código de la Cuenta Bancaria" +msgstr "Usuarios autorizados en cuentas bancarias" #: BankAccountUsers.php:31 -#, fuzzy msgid "You have not selected any bank account" -msgstr "No ha seleccionado un gasto para reclamar en esta ficha" +msgstr "No ha seleccionado ninguna cuenta bancaria" #: BankAccountUsers.php:44 #, fuzzy @@ -1655,19 +1652,16 @@ msgstr "No ha seleccionado un gasto a añadir a esta ficha" #: BankAccountUsers.php:63 -#, fuzzy msgid "The user" -msgstr "ID del Usuario" +msgstr "El usuario" #: BankAccountUsers.php:63 -#, fuzzy msgid "already authorised to use this bank account" -msgstr "¿Confirma que desea eliminar esta cuenta bancaria?" +msgstr "ya autorizada para usar esta cuenta bancaria" #: BankAccountUsers.php:71 -#, fuzzy msgid "User:" -msgstr "Usuario" +msgstr "Usuario:" #: BankAccountUsers.php:71 #, fuzzy @@ -1675,7 +1669,6 @@ msgstr "ha sido enviada por correo electrónico a" #: BankAccountUsers.php:71 BankAccountUsers.php:84 BankAccountUsers.php:141 -#, fuzzy msgid "bank account" msgstr "Cuenta bancaria" @@ -1690,9 +1683,8 @@ msgstr "ha sido enviada por correo electrónico a" #: BankAccountUsers.php:97 -#, fuzzy msgid "Select Bank Account" -msgstr "Seleccionar Cuenta" +msgstr "Seleccionar cuenta bancaria" #: BankAccountUsers.php:105 BankAccountUsers.php:205 #: InternalStockCategoriesByRole.php:120 InternalStockCategoriesByRole.php:209 @@ -1727,19 +1719,16 @@ msgstr "Cancelar" #: BankAccountUsers.php:141 -#, fuzzy msgid "Authorised users for" -msgstr "Autorizado por" +msgstr "Usuarios autorizados para" #: BankAccountUsers.php:159 -#, fuzzy msgid "Authorised users for bank account" -msgstr "Autorizado por" +msgstr "Usuarios autorizados de la cuenta bancaria" #: BankAccountUsers.php:161 -#, fuzzy msgid "User Code" -msgstr "Código usuario" +msgstr "Código de usuario" #: BankAccountUsers.php:162 PcTabs.php:206 PcTabs.php:307 #: PO_AuthorisationLevels.php:125 SMTPServer.php:101 UserSettings.php:118 @@ -1752,14 +1741,13 @@ msgstr "¿Confirma que desea eliminar este usuario?" #: BankAccountUsers.php:178 -#, fuzzy, php-format +#, php-format msgid "Un-authorise" -msgstr "No Autorizado" +msgstr "Desautorizar" #: BankAccountUsers.php:196 -#, fuzzy msgid "Select User" -msgstr "Seleccionar Período Hasta" +msgstr "Seleccionar usuario" #: BankMatching.php:6 msgid "Bank Account Matching" @@ -7859,9 +7847,8 @@ msgstr "Nombre de Usuario" #: CustLoginSetup.php:133 -#, fuzzy msgid "Enter a userid for this customer login" -msgstr "Crear una Venta de Mostrador para este Cliente" +msgstr "Introduzca una identificación de usuario para el acceso este cliente" #: CustLoginSetup.php:150 SMTPServer.php:103 SuppLoginSetup.php:133 #: WWW_Users.php:454 includes/Login.php:99 install/index.php:926 @@ -7871,9 +7858,8 @@ msgstr "Contraseña" #: CustLoginSetup.php:151 -#, fuzzy msgid "Enter a password for this customer login" -msgstr "No hay artículos para este cliente" +msgstr "Introduzca una contraseña para el acceso este cliente" #: CustLoginSetup.php:154 SuppLoginSetup.php:137 WWW_Users.php:281 #: WWW_Users.php:458 @@ -9522,9 +9508,7 @@ #: Customers.php:639 msgid "Customer PO Line on SO" -msgstr "" -"Línea PO (nº del cliente en la orden de compra) del Cliente en SO (orden de " -"venta)" +msgstr "Línea de orden de compra del cliente en orden de venta" #: Customers.php:647 Customers.php:1050 Customers.php:1055 Customers.php:1061 msgid "Invoice Addressing" @@ -9553,8 +9537,7 @@ #: Customers.php:1027 msgid "Require Customer PO Line on SO" -msgstr "" -"Requerir Línea de la Orden de Compra del Cliente en el Pedido de Ventas" +msgstr "Requerir línea de orden de compra del cliente en orden de venta" #: Customers.php:1084 msgid "Contact Deleted" @@ -9562,7 +9545,7 @@ #: Customers.php:1116 msgid "Add Contact" -msgstr "Añadir un Contacto" +msgstr "Añadir contacto" #: Customers.php:1150 #, php-format @@ -48209,7 +48192,7 @@ #: install/index.php:1044 msgid "Time Zone" -msgstr "" +msgstr "Huso horario" #: install/index.php:1048 #, fuzzy @@ -48262,7 +48245,7 @@ #: install/index.php:1083 msgid "For example: ad...@yo..." -msgstr "" +msgstr "Por ejemplo: adm...@su..." #: install/index.php:1086 #, fuzzy @@ -48276,7 +48259,7 @@ #: install/index.php:1105 msgid "Install" -msgstr "" +msgstr "Instalar" #: install/index.php:1127 #, fuzzy |
From: <rc...@us...> - 2014-01-01 16:11:30
|
Revision: 6523 http://sourceforge.net/p/web-erp/reponame/6523 Author: rchacon Date: 2014-01-01 16:11:26 +0000 (Wed, 01 Jan 2014) Log Message: ----------- Translation improvements. Modified Paths: -------------- trunk/install/index.php trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po Modified: trunk/install/index.php =================================================================== --- trunk/install/index.php 2013-12-31 19:05:40 UTC (rev 6522) +++ trunk/install/index.php 2014-01-01 16:11:26 UTC (rev 6523) @@ -30,7 +30,7 @@ //get the php-gettext function //When users have not select the language, we guess user's language via the http header information. - //once the user has select their lanugage, use the language user selected + //once the user has selected their language, use the language user selected if(!isset($_POST['Language'])){ if(!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])){//get users preferred language $ClientLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2); 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 2013-12-31 19:05:40 UTC (rev 6522) +++ trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po 2014-01-01 16:11:26 UTC (rev 6523) @@ -8,7 +8,7 @@ "Project-Id-Version: WebERP 4.081\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" -"PO-Revision-Date: 2013-12-26 20:33-0600\n" +"PO-Revision-Date: 2014-01-01 09:44-0600\n" "Last-Translator: Rafael Chacon <raf...@gm...>\n" "Language-Team: TecnoSoluciones.com <web...@te...>\n" "Language: es_ES\n" @@ -1664,9 +1664,8 @@ msgstr "Usuario:" #: BankAccountUsers.php:71 -#, fuzzy msgid "has been authorised to use" -msgstr "ha sido enviada por correo electrónico a" +msgstr "ha sido autorizado a usar" #: BankAccountUsers.php:71 BankAccountUsers.php:84 BankAccountUsers.php:141 msgid "bank account" @@ -1678,9 +1677,8 @@ msgstr "No se pudo obtener la configuración de cuentas bancarias porque" #: BankAccountUsers.php:84 -#, fuzzy msgid "has been un-authorised to use" -msgstr "ha sido enviada por correo electrónico a" +msgstr "ha sido desautorizado a usar" #: BankAccountUsers.php:97 msgid "Select Bank Account" @@ -8433,6 +8431,8 @@ "Up to 10 characters for the branch code. The following characters are " "prohibited:" msgstr "" +"Hasta 10 caracteres para el código de sucursal. Los siguientes caracteres " +"están prohibidos:" #: CustomerBranches.php:608 Customers.php:443 msgid "alpha-numeric" @@ -8448,6 +8448,8 @@ "The branch name should identify the particular delivery address of the " "customer and must be entered" msgstr "" +"El nombre de la sucursal debe identificar la dirección de entrega particular " +"del cliente y deberá ser introducida" #: CustomerBranches.php:629 msgid "Street Address 1 (Street)" @@ -8604,19 +8606,19 @@ #: CustomerBranches.php:902 msgid "Postal Address 1 (Street)" -msgstr "Dirección Postal, 1 (Calle)" +msgstr "Dirección postal 1" #: CustomerBranches.php:910 msgid "Postal Address 2 (Suburb/City)" -msgstr "Dirección Postal, 2 (Ciudad)" +msgstr "Dirección postal 2" #: CustomerBranches.php:918 msgid "Postal Address 3 (State)" -msgstr "Dirección Postal, 3 (Provincia/Estado)" +msgstr "Dirección postal 3" #: CustomerBranches.php:926 msgid "Postal Address 4 (Postal Code)" -msgstr "Dirección Postal, 4 (Código Postal)" +msgstr "Dirección postal 4" #: CustomerBranches.php:934 msgid "Postal Address 5" @@ -8627,9 +8629,8 @@ msgstr "Código de Sucursal Interno de los Clientes (EDI)" #: CustomerBranches.php:948 -#, fuzzy msgid "Enter Or Update Branch" -msgstr "Introducir Sucursal" +msgstr "Introducir o actualizar sucursal" #: CustomerInquiry.php:8 msgid "Customer Inquiry" @@ -8664,7 +8665,7 @@ #: CustomerInquiry.php:133 CustomerReceipt.php:992 Customers.php:575 #: Customers.php:967 Customers.php:973 includes/MainMenuLinksArray.php:474 msgid "Credit Status" -msgstr "Tipos de Estado de Crédito" +msgstr "Estado de crédito" #: CustomerInquiry.php:137 CustomerReceipt.php:996 msgid "ACCOUNT ON HOLD" @@ -8673,7 +8674,7 @@ #: CustomerInquiry.php:142 CustomerReceipt.php:1002 #: PrintCustStatements.php:364 SupplierInquiry.php:143 msgid "Total Balance" -msgstr "Saldo Total" +msgstr "Saldo total" #: CustomerInquiry.php:143 CustomerReceipt.php:1003 #: PrintCustStatements.php:360 SalesPeople.php:206 Shipments.php:406 @@ -9407,6 +9408,8 @@ "Up to 10 characters for the customer code. The following characters are " "prohibited:" msgstr "" +"Hasta 10 caracteres para el código de cliente. Los siguientes caracteres " +"están prohibidos:" #: Customers.php:451 Customers.php:759 Customers.php:798 Suppliers.php:692 #: Suppliers.php:926 @@ -9516,7 +9519,7 @@ #: Customers.php:649 Customers.php:1051 Customers.php:1064 Customers.php:1067 msgid "Address to HO" -msgstr "Dirección del Cliente" +msgstr "Dirección del cliente" #: Customers.php:650 Customers.php:1056 Customers.php:1065 Customers.php:1068 msgid "Address to Branch" @@ -9530,6 +9533,8 @@ msgid "" "The customer code can be up to 10 alpha-numeric characters long or underscore" msgstr "" +"El código de cliente puede ser de hasta 10 caracteres alfanuméricos o " +"subrayado" #: Customers.php:991 Customers.php:996 msgid "Customers Currency" @@ -9631,7 +9636,7 @@ #: CustomerTypes.php:6 CustomerTypes.php:21 #: includes/MainMenuLinksArray.php:472 msgid "Customer Types" -msgstr "Tipos de Cliente" +msgstr "Tipos de cliente" #: CustomerTypes.php:6 index.php:149 SupplierTypes.php:6 msgid "Maintenance" @@ -9639,11 +9644,11 @@ #: CustomerTypes.php:22 msgid "Customer Type Setup" -msgstr "Configurar Tipos de Cliente" +msgstr "Configurar tipos de cliente" #: CustomerTypes.php:23 msgid "Add/edit/delete Customer Types" -msgstr "Añadir/Editar/Eliminar Tipos de Clientes" +msgstr "Añadir/Editar/Eliminar tipos de clientes" #: CustomerTypes.php:37 msgid "The customer type name description must be 100 characters or less long" @@ -9728,12 +9733,12 @@ #: CustomerTypes.php:189 CustomerTypes.php:253 SupplierTypes.php:172 #: SupplierTypes.php:239 msgid "Type ID" -msgstr "ID del Tipo" +msgstr "ID del tipo" #: CustomerTypes.php:190 CustomerTypes.php:264 SalesTypes.php:190 #: SupplierTypes.php:173 SupplierTypes.php:248 msgid "Type Name" -msgstr "Nombre del Tipo" +msgstr "Nombre del tipo" #: CustomerTypes.php:207 #, php-format @@ -9742,7 +9747,7 @@ #: CustomerTypes.php:223 SupplierTypes.php:208 msgid "Show All Types Defined" -msgstr "Mostrar Todos los Tipos Definidos" +msgstr "Mostrar todos los tipos definidos" #: CustomerTypes.php:265 #, fuzzy @@ -15906,19 +15911,19 @@ #: Labels.php:290 Labels.php:488 msgid "Page Width" -msgstr "Ancho de Página" +msgstr "Ancho de página" #: Labels.php:291 Labels.php:492 msgid "Page Height" -msgstr "Altura de Página" +msgstr "Alto de página" #: Labels.php:294 Labels.php:513 msgid "Row Height" -msgstr "Altura de Fila" +msgstr "Alto de fila" #: Labels.php:295 Labels.php:517 msgid "Column Width" -msgstr "Ancho de Columna" +msgstr "Ancho de columna" #: Labels.php:324 Labels.php:349 #, php-format @@ -15931,7 +15936,7 @@ #: Labels.php:431 msgid "Label Description" -msgstr "Descripción de la Etiqueta" +msgstr "Descripción de etiqueta" #: Labels.php:435 msgid "Label Paper Size" @@ -15943,7 +15948,7 @@ #: Labels.php:497 msgid "Label Height" -msgstr "Altura de la Etiqueta" +msgstr "Alto de etiqueta" #: Labels.php:501 msgid "Label Width" @@ -15951,7 +15956,7 @@ #: Labels.php:505 msgid "Top Margin" -msgstr "Márgen al Tope" +msgstr "Margen superior" #: Labels.php:509 msgid "Left Margin" @@ -16252,22 +16257,18 @@ msgstr "" #: Locations.php:556 -#, fuzzy msgid "Delivery Address 1 (Building)" -msgstr "Dirección de Entrega 1" +msgstr "Dirección de entrega 1" #: Locations.php:564 -#, fuzzy msgid "Delivery Address 3 (Suburb)" -msgstr "Dirección de Entrega 1" +msgstr "Dirección de entrega 3" #: Locations.php:568 -#, fuzzy msgid "Delivery Address 4 (City)" -msgstr "Dirección de Entrega 1" +msgstr "Dirección de entrega 4" #: Locations.php:572 -#, fuzzy msgid "Delivery Address 5 (Zip Code)" msgstr "Dirección de entrega 5" @@ -23238,14 +23239,12 @@ msgstr "Proveedor Preferido: " #: PurchaseByPrefSupplier.php:558 -#, fuzzy msgid "Enter the quantity to purchase of this item" -msgstr "Introduzca la fecha hasta la que se listarán las órdenes" +msgstr "Introduzca la cantidad a comprar de este artículo" #: PurchaseByPrefSupplier.php:563 -#, fuzzy msgid "Create Purchase Order" -msgstr "Imprimir orden de compra" +msgstr "Crear orden de compra" #: PurchaseByPrefSupplier.php:563 msgid "" @@ -26492,18 +26491,17 @@ msgstr "Indicar una parte del nombre de la Cuenta" #: SelectGLAccount.php:88 -#, fuzzy msgid "Select an Account Code" -msgstr "Seleccionar Cuenta" +msgstr "Seleccionar un código de cuenta" #: SelectGLAccount.php:115 msgid "Account Type" msgstr "Tipo de Cuenta" #: SelectGLAccount.php:116 SelectGLAccount.php:131 -#, fuzzy, php-format +#, php-format msgid "Inquiry" -msgstr "Ejecutar Consulta" +msgstr "Consulta" #: SelectOrderItems.php:12 msgid "Modifying Order" @@ -26726,9 +26724,8 @@ msgstr "" #: SelectOrderItems.php:1418 -#, fuzzy msgid "Enter the quantity of this item ordered by the customer" -msgstr "La cantidad del artículo del pedido debe ser numérica" +msgstr "Introducir la cantidad de este artículo pedida por el cliente" #: SelectOrderItems.php:1420 msgid "invoiced" @@ -26802,14 +26799,12 @@ msgstr "Referencia de la Orden de Trabajo" #: SelectOrderItems.php:1872 -#, fuzzy msgid "Enter the item code ordered" -msgstr "Introduzca arriba un código de artículo de existencias" +msgstr "Introducir el código de artículo pedido" #: SelectOrderItems.php:1873 -#, fuzzy msgid "Enter the quantity of the item ordered by the customer" -msgstr "La cantidad del artículo del pedido debe ser numérica" +msgstr "Introducir la cantidad del artículo pedida por el cliente" #: SelectOrderItems.php:1875 #, fuzzy @@ -27041,14 +27036,12 @@ msgstr "Clonar este artículo" #: SelectProduct.php:548 SelectProduct.php:550 -#, fuzzy msgid "Enter text that you wish to search for in the item description" -msgstr "Introduzca una parte de la descripción" +msgstr "Introducir el texto que desea buscar en la descripción del artículo" #: SelectProduct.php:556 SelectProduct.php:558 -#, fuzzy msgid "Enter text that you wish to search for in the item code" -msgstr "Introduzca la fecha hasta la que se listarán las órdenes" +msgstr "Introducir el texto que desea buscar en el código del artículo" #: SelectRecurringSalesOrder.php:5 msgid "Search Recurring Sales Orders" @@ -28429,11 +28422,11 @@ #: ShopParameters.php:514 ShopParameters.php:516 msgid "PayPal Pro" -msgstr "" +msgstr "PayPal Pro" #: ShopParameters.php:519 ShopParameters.php:521 msgid "PayFlow Pro" -msgstr "" +msgstr "PayFlow Pro" #: ShopParameters.php:524 ShopParameters.php:526 #, fuzzy @@ -28470,7 +28463,7 @@ #: ShopParameters.php:562 msgid "PayPal Pro User" -msgstr "" +msgstr "Usuario de PayPal Pro" #: ShopParameters.php:564 msgid "" @@ -47888,9 +47881,8 @@ msgstr "El Plan de Cuentas no se pudo obtener porque" #: install/index.php:263 -#, fuzzy msgid "The user language defintion is not in the correct format" -msgstr "El archivo seleccionado contiene campos en el orden incorrecto (" +msgstr "La definición del idioma del usuario no está en el formato correcto" #: install/index.php:270 msgid "" @@ -48048,9 +48040,8 @@ msgstr "" #: install/index.php:760 -#, fuzzy msgid "Select your language" -msgstr "Seleccionar su departamento" +msgstr "Seleccione su idioma" #: install/index.php:763 msgid "" @@ -48059,7 +48050,6 @@ msgstr "" #: install/index.php:767 -#, fuzzy msgid "Language:" msgstr "Idioma" @@ -48109,19 +48099,16 @@ msgstr "" #: install/index.php:912 -#, fuzzy msgid "The database name" -msgstr "Nombre de Base de Datos" +msgstr "El nombre de la base de datos" #: install/index.php:913 -#, fuzzy msgid "The database must have a valid name" -msgstr "La dirección de correo electrónico no parece ser válida" +msgstr "La base de datos debe tener un nombre válido" #: install/index.php:916 -#, fuzzy msgid "Database Prefix" -msgstr "Nombre de Base de Datos" +msgstr "Prefijo de base de datos" #: install/index.php:917 msgid "Useful with shared hosting" @@ -48132,23 +48119,20 @@ msgstr "" #: install/index.php:921 -#, fuzzy msgid "Database User Name" -msgstr "Nombre de Base de Datos" +msgstr "Nombre de usuario de la base de datos" #: install/index.php:922 -#, fuzzy msgid "A valid database user name" -msgstr "La Fecha es inválida" +msgstr "Un nombre de usuario la base de datos válido" #: install/index.php:923 msgid "Must be a user that has permission to create a database" msgstr "" #: install/index.php:927 -#, fuzzy msgid "mySQL user password" -msgstr "Contraseña de Usuario" +msgstr "Contraseña de usuario de MySQL" #: install/index.php:928 #, fuzzy @@ -48156,9 +48140,8 @@ msgstr "Introduzca una parte de la Dirección" #: install/index.php:960 -#, fuzzy msgid "Check Again" -msgstr "Comprobar Pieza" +msgstr "Comprobar de nuevo" #: install/index.php:982 msgid "Failed to connect to the database. Please correct the following error:" @@ -48171,14 +48154,12 @@ msgstr "" #: install/index.php:1012 -#, fuzzy msgid "Company Settings" -msgstr "Configuración General" +msgstr "Configuración de la compañía" #: install/index.php:1020 -#, fuzzy msgid "The name of your company" -msgstr "La compañía financiera" +msgstr "El nombre de su compañía" #: install/index.php:1023 #, fuzzy @@ -48195,9 +48176,8 @@ msgstr "Huso horario" #: install/index.php:1048 -#, fuzzy msgid "Company logo file" -msgstr "Nombre de Empresa" +msgstr "Archivo del logotipo de la compañía" #: install/index.php:1049 msgid "A jpg file up to 10k, and not greater than 170px x 80px" @@ -48234,42 +48214,36 @@ msgstr "" #: install/index.php:1077 -#, fuzzy msgid "webERP Admin Account" -msgstr "Editar Cuenta" +msgstr "Cuenta del administrador del webERP" #: install/index.php:1081 -#, fuzzy msgid "Email address" -msgstr "Correo electrónico" +msgstr "Dirección de correo electrónico" #: install/index.php:1083 msgid "For example: ad...@yo..." msgstr "Por ejemplo: adm...@su..." #: install/index.php:1086 -#, fuzzy msgid "webERP Password" -msgstr "Nueva Contraseña" +msgstr "Contraseña del webERP" #: install/index.php:1090 -#, fuzzy msgid "Re-enter Password" -msgstr "Nueva Contraseña" +msgstr "Reintroduzca la contraseña" #: install/index.php:1105 msgid "Install" msgstr "Instalar" #: install/index.php:1127 -#, fuzzy msgid "Failed to open the new sql file" -msgstr "no se pudo obtener porque" +msgstr "No se pudo abrir el nuevo archivo sql" #: install/index.php:1132 -#, fuzzy msgid "Failed to populate the database " -msgstr "No se puede ubicar en la base de datos" +msgstr "No se pudo llenar la base de datos" #: install/index.php:1272 msgid "" @@ -48291,9 +48265,8 @@ msgstr "Comprobar Total" #: ../webSHOP/Checkout.php:30 -#, fuzzy msgid "purchases" -msgstr "Compras" +msgstr "compras" #: ../webSHOP/Checkout.php:44 ../webSHOP/Checkout.php:96 msgid "The swipeHQ payment request failed with a curl error" @@ -48519,7 +48492,7 @@ #: ../webSHOP/Checkout.php:373 ../webSHOP/Checkout.php:630 msgid "ZIP" -msgstr "" +msgstr "Código postal" #: ../webSHOP/Checkout.php:393 #, fuzzy @@ -49376,33 +49349,28 @@ "El nombre de la cuenta debe ser de cincuenta caracteres o menos de longitud" #: ../webSHOP/Register.php:551 -#, fuzzy msgid "Update Your Account Details" -msgstr "Detalles de la Cuenta" +msgstr "Actualizar los detalles de su cuenta" #: ../webSHOP/Register.php:632 -#, fuzzy msgid "Billing Address - Number/Street" -msgstr "Dirección Postal, 1 (Calle)" +msgstr "Dirección de facturación - Número/Calle" #: ../webSHOP/Register.php:637 -#, fuzzy msgid "Billing Address - Street" -msgstr "Dirección Postal, 1 (Calle)" +msgstr "Dirección de facturación - Calle" #: ../webSHOP/Register.php:642 -#, fuzzy msgid "Billing Address - Suburb" -msgstr "Dirección Postal, 2 (Ciudad)" +msgstr "Dirección de facturación - Suburbio" #: ../webSHOP/Register.php:647 msgid "Billing Address - City" msgstr "" #: ../webSHOP/Register.php:652 -#, fuzzy msgid "Billing Address - ZIP" -msgstr "Dirección del Banco" +msgstr "Dirección de facturación - Código postal" #: ../webSHOP/Register.php:657 msgid "VAT No." @@ -49415,39 +49383,32 @@ msgstr "" #: ../webSHOP/Register.php:677 -#, fuzzy msgid "Delivery Address As Billing Address" -msgstr "Dirección de Entrega 1" +msgstr "Dirección de entrega como dirección de facturación" #: ../webSHOP/Register.php:680 -#, fuzzy msgid "Delivery Address - Number/Street" -msgstr "Dirección de Entrega 1" +msgstr "Dirección de entrega - Número/Calle" #: ../webSHOP/Register.php:718 -#, fuzzy msgid "Billing Currency" -msgstr "Moneda" +msgstr "Moneda de facturación" #: ../webSHOP/Register.php:740 -#, fuzzy msgid "Update Details" -msgstr "Actualizar Detalles del Envío" +msgstr "Actualizar detalles" #: ../webSHOP/includes/DisplayShoppingCart.php:25 -#, fuzzy msgid "Update Quantity" -msgstr "Actualizar cotización" +msgstr "Actualizar cantidad" #: ../webSHOP/includes/DisplayShoppingCart.php:26 -#, fuzzy msgid "Remove item" -msgstr "Quitando Artículos" +msgstr "Quitar artículo" #: ../webSHOP/includes/DisplayShoppingCart.php:29 -#, fuzzy msgid "Enter New Quantity" -msgstr "Introduzca una Nuevo Pedido de Venta" +msgstr "Introducir cantidad nueva" #: ../webSHOP/includes/DisplayShoppingCart.php:64 #, fuzzy @@ -49463,9 +49424,8 @@ #: ../webSHOP/includes/DisplayShoppingCart.php:79 #: ../webSHOP/includes/DisplayShoppingCart.php:85 #: ../webSHOP/includes/Functions.php:61 -#, fuzzy msgid "incl tax" -msgstr "Con Impuesto" +msgstr "con impuesto" #: ../webSHOP/includes/Functions.php:27 ../webSHOP/includes/Functions.php:30 #, fuzzy @@ -49508,9 +49468,8 @@ msgstr "Usar Para Recibos (Cobros)" #: ../webSHOP/includes/Functions.php:474 -#, fuzzy msgid "web" -msgstr "weberp" +msgstr "Web" #: ../webSHOP/includes/Functions.php:487 #, fuzzy @@ -49524,9 +49483,8 @@ msgstr "Transacción" #: ../webSHOP/includes/Functions.php:752 -#, fuzzy msgid "Bank Account Details" -msgstr "Detalles de la Cuenta" +msgstr "Detalles de la cuenta bancaria" #: ../webSHOP/includes/GetCustomerDetails.php:46 #, fuzzy @@ -49573,9 +49531,8 @@ msgstr "Detalles de la Cuenta" #: ../webSHOP/includes/header.php:239 -#, fuzzy msgid "Enter Email" -msgstr "Introduzca una parte de ..." +msgstr "Introducir correo-e" #: ../webSHOP/includes/Login.php:31 msgid "" @@ -49610,15 +49567,13 @@ msgstr "Total Valor de Órden(es) en" #: ../webSHOP/includes/PlaceOrder.php:297 -#, fuzzy msgid "Payment information" -msgstr "Asignaciones de Pagos" +msgstr "Información sobre el pago" #: ../webSHOP/includes/PlaceOrder.php:303 #: ../webSHOP/includes/PlaceOrder.php:314 -#, fuzzy msgid "Payment made by" -msgstr "Resumen Pagos" +msgstr "Pago hecho por" #: ../webSHOP/includes/PlaceOrder.php:307 msgid "" @@ -49724,19 +49679,16 @@ "deudores fue" #: ../webSHOP/includes/session.php:131 -#, fuzzy msgid "Pay Pal" -msgstr "Usuario PayPal" +msgstr "PayPal" #: ../webSHOP/includes/session.php:134 -#, fuzzy msgid "Credit Card" -msgstr "Crédito " +msgstr "Tarjeta de crédito" #: ../webSHOP/includes/session.php:137 -#, fuzzy msgid "Bank Transfer" -msgstr "Transferencia" +msgstr "Transferencia bancaria" #~ msgid "The input should be between 1~999" #~ msgstr "La entrada debe estar entre 1 y 999" |
From: <dai...@us...> - 2014-01-03 23:01:47
|
Revision: 6527 http://sourceforge.net/p/web-erp/reponame/6527 Author: daintree Date: 2014-01-03 23:01:44 +0000 (Fri, 03 Jan 2014) Log Message: ----------- Create CSV from inventory valuation rather than output to pdf Modified Paths: -------------- trunk/InventoryValuation.php trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po Modified: trunk/InventoryValuation.php =================================================================== --- trunk/InventoryValuation.php 2014-01-03 15:13:22 UTC (rev 6526) +++ trunk/InventoryValuation.php 2014-01-03 23:01:44 UTC (rev 6527) @@ -3,23 +3,13 @@ /* $Id$ */ include('includes/session.inc'); - -if (isset($_POST['PrintPDF']) +if ((isset($_POST['PrintPDF']) OR isset($_POST['CSV'])) AND isset($_POST['FromCriteria']) AND mb_strlen($_POST['FromCriteria'])>=1 AND isset($_POST['ToCriteria']) AND mb_strlen($_POST['ToCriteria'])>=1){ - include('includes/PDFStarter.php'); - - $pdf->addInfo('Title',_('Inventory Valuation Report')); - $pdf->addInfo('Subject',_('Inventory Valuation')); - $FontSize=9; - $PageNumber=1; - $line_height=12; - - - /*Now figure out the inventory data to report for the category range under review */ +/*Now figure out the inventory data to report for the category range under review */ if ($_POST['Location']=='All'){ $SQL = "SELECT stockmaster.categoryid, stockcategory.categorydescription, @@ -85,6 +75,24 @@ include('includes/footer.inc'); exit; } +} + +if (isset($_POST['PrintPDF']) + AND isset($_POST['FromCriteria']) + AND mb_strlen($_POST['FromCriteria'])>=1 + AND isset($_POST['ToCriteria']) + AND mb_strlen($_POST['ToCriteria'])>=1){ + + include('includes/PDFStarter.php'); + + $pdf->addInfo('Title',_('Inventory Valuation Report')); + $pdf->addInfo('Subject',_('Inventory Valuation')); + $FontSize=9; + $PageNumber=1; + $line_height=12; + + + if (DB_num_rows($InventoryResult)==0){ $Title = _('Print Inventory Valuation Error'); include('includes/header.inc'); @@ -191,9 +199,24 @@ $pdf->OutputD($_SESSION['DatabaseName'] . '_Inventory_Valuation_' . Date('Y-m-d') . '.pdf'); $pdf->__destruct(); + +} elseif (isset($_POST['CSV'])) { -} else { /*The option to print PDF was not hit */ + $CSVListing = _('Category ID') .','. _('Category Description') .','. _('Stock ID') .','. _('Description') .','. _('Decimal Places') .','. _('Qty On Hand') .','. _('Units') .','. _('Unit Cost') .','. _('Total') . "\n"; + while ($InventoryValn = DB_fetch_row($InventoryResult, $db)) { + $CSVListing .= implode(',', $InventoryValn) . "\n"; + } + header('Content-Encoding: UTF-8'); + header('Content-type: text/csv; charset=UTF-8'); + header("Content-disposition: attachment; filename=InventoryValuation_Categories_" . $_POST['FromCriteria'] . '-' . $_POST['Toriteria'] .'.csv'); + header("Pragma: public"); + header("Expires: 0"); + echo "\xEF\xBB\xBF"; // UTF-8 BOM + echo $CSVListing; + exit; +} else { /*The option to print PDF nor to create the CSV was not hit */ + $Title=_('Inventory Valuation Reporting'); include('includes/header.inc'); @@ -267,6 +290,7 @@ <br /> <div class="centre"> <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> + <input type="submit" name="CSV" value="' . _('Output to CSV') . '" /> </div>'; echo '</div> </form>'; @@ -274,4 +298,4 @@ include('includes/footer.inc'); } /*end of else not PrintPDF */ -?> \ No newline at end of file +?> Modified: trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po 2014-01-03 15:13:22 UTC (rev 6526) +++ trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po 2014-01-03 23:01:44 UTC (rev 6527) @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WebERP 4.2112\n" -"Report-Msgid-Bugs-To: <gs...@gm...>\n" +"Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-12-01 20:34+1300\n" "PO-Revision-Date: 2013-12-24 23:41-0300\n" "Last-Translator: gilberto dos santos alves <gs...@gm...>\n" @@ -22934,8 +22934,8 @@ "Unable to determine the area where the sale is to, from the customer " "branches table, please select an area for this branch" msgstr "" -"Incapaz de deteminar para qual área de vendas, da tabela de " -"sucursais(filiais), por favor selecione uma area para esta filial" +"Incapaz de deteminar para qual área de vendas, da tabela de sucursais" +"(filiais), por favor selecione uma area para esta filial" #: RecurringSalesOrdersProcess.php:228 msgid "" @@ -32721,9 +32721,10 @@ msgstr "" #: SystemParameters.php:478 +#, fuzzy msgid "" -"Select all the languages for which item description translations are to be " -"maintained." +"Select the languages in which translations of the item description will be " +"maintained. The default language is excluded." msgstr "Selecione os idiomas para o qual a descrição do item será mantida" #: SystemParameters.php:484 @@ -33034,12 +33035,14 @@ msgstr "Permitido Sobre Taxa na Proporção" #: SystemParameters.php:706 SystemParameters.php:711 -msgid "The input must between 0~100" +#, fuzzy +msgid "The input must between 0 and 100" msgstr "Valor de ser entre 0 e 100" #: SystemParameters.php:706 -msgid "integer between 0-100" -msgstr "" +#, fuzzy +msgid "integer between 0 and 100" +msgstr "Um núm. entre 1 e 10 é esperado" #: SystemParameters.php:707 msgid "" @@ -33145,8 +33148,9 @@ msgstr "Tamanho Pág. Relatório" #: SystemParameters.php:754 -msgid "The input should be between 1~999" -msgstr "" +#, fuzzy +msgid "The input should be between 1 and 999" +msgstr "registros devem ser entre 1 e 999" #: SystemParameters.php:754 msgid " 1 to 999" |
From: <dai...@us...> - 2014-01-10 11:37:32
|
Revision: 6531 http://sourceforge.net/p/web-erp/reponame/6531 Author: daintree Date: 2014-01-10 11:37:27 +0000 (Fri, 10 Jan 2014) Log Message: ----------- Tims fix for upper case database names Modified Paths: -------------- trunk/doc/Change.log trunk/includes/ConnectDB.inc Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2014-01-09 17:17:00 UTC (rev 6530) +++ trunk/doc/Change.log 2014-01-10 11:37:27 UTC (rev 6531) @@ -1,9 +1,12 @@ webERP Change Log + 2/1/14 Exson: Fixed php-mbstring extension detection failure in install/index.php during installation. 27/12/13 Thumb: Fixed the stock location will loss problem when move to StockAdjustmentsControlled.php interface in StockAdjustments.php. 23/12/13 Exson: Fixed the controlled items cannot be removed due to the negative operator is modified and balance of a serial no is wrong due negative operator is missing during credit controlled items by KEYED method. Other input method has not be inspected. -22/12/2013 Exson: Add a fool-proof to Credit_Invoice.php to prevent an invoice was credit again and again. -22/12/2013 Exson: Modify the stock select element to a combox box which autocomplete the limited stock ID options to 300 in PriceMatrix.php. Otherwise, users have to input an stock ID themselves. To avoid a too long stock list as pointed by Tim. +6/1/14 Phil: Apply Tim's bug report regarding conversion of database name to lower case in ConnectDB.inc Although uppercase characters should not be included in database names, removing this trap allows backward compatibility with users who did install with upper case database name +4/1/14 Phil: Add option to create CSV from inventory valuation rather than create PDF +22/12/13 Exson: Add a fool-proof to Credit_Invoice.php to prevent an invoice was credit again and again. +22/12/13 Exson: Modify the stock select element to a combox box which autocomplete the limited stock ID options to 300 in PriceMatrix.php. Otherwise, users have to input an stock ID themselves. To avoid a too long stock list as pointed by Tim. 21/12/13 Exson: Add price matrix features. Modified MainMenuLinksArray.php, GetPrice.inc and add pricematrix table and PriceMatrix.php 20/12/13 Thumb: Salesman can only review his own customer's data Modified: trunk/includes/ConnectDB.inc =================================================================== --- trunk/includes/ConnectDB.inc 2014-01-09 17:17:00 UTC (rev 6530) +++ trunk/includes/ConnectDB.inc 2014-01-10 11:37:27 UTC (rev 6531) @@ -10,8 +10,8 @@ if (!isset($_SESSION['DatabaseName'])){ //need to get the database name from the file structure if (isset($_POST['CompanyNameField'])){ if (isset($CompanyList) && is_array($CompanyList)) { - foreach ($CompanyList as $key => $CompanyEntry){ - if (is_dir('./companies/'.strtolower($CompanyEntry['database']).'') && ($key == $_POST['CompanyNameField']) ) { + foreach ($CompanyList as $CompanyEntryKey => $CompanyEntry){ + if (is_dir('./companies/'. $CompanyEntry['database']) AND ($CompanyEntryKey == $_POST['CompanyNameField']) ) { $_SESSION['DatabaseName'] = $CompanyEntry['database']; $_SESSION['CompanyName'] = $CompanyEntry['company']; include_once ($PathPrefix . 'includes/ConnectDB_' . $DBType . '.inc'); |
From: <dai...@us...> - 2014-01-14 06:59:16
|
Revision: 6537 http://sourceforge.net/p/web-erp/reponame/6537 Author: daintree Date: 2014-01-14 06:59:12 +0000 (Tue, 14 Jan 2014) Log Message: ----------- Tim: system would go to get currency rates even though they were set to manual - bug fixed Modified Paths: -------------- trunk/SuppInvGRNs.php trunk/doc/Change.log trunk/includes/MiscFunctions.php Modified: trunk/SuppInvGRNs.php =================================================================== --- trunk/SuppInvGRNs.php 2014-01-13 05:31:11 UTC (rev 6536) +++ trunk/SuppInvGRNs.php 2014-01-14 06:59:12 UTC (rev 6537) @@ -91,10 +91,10 @@ $_SESSION['SuppTrans']->GRNs[$_POST['GRNNo'.$i]]->OrderPrice, filter_number_format($_POST['ChgPrice' . $i]), $Complete, - $_POST['StdCostUnit'], - $_POST['ShiptRef'], - $_POST['JobRef'], - $_POST['GLCode'], + $_SESSION['SuppTrans']->GRNs[$_POST['GRNNo'.$i]]->StdCostUnit, + $_SESSION['SuppTrans']->GRNs[$_POST['GRNNo'.$i]]->ShiptRef, + $_SESSION['SuppTrans']->GRNs[$_POST['GRNNo'.$i]]->JobRef, + $_SESSION['SuppTrans']->GRNs[$_POST['GRNNo'.$i]]->GLCode, $Hold); } } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2014-01-13 05:31:11 UTC (rev 6536) +++ trunk/doc/Change.log 2014-01-14 06:59:12 UTC (rev 6537) @@ -1,5 +1,8 @@ webERP Change Log +14/4/14 Tim: system would go to get currency rates even though they were set to manual - bug fixed. +14/1/14 Phil: Fixed bug that was not recording the standard cost against goods received - this would put all accounting out for both standard and weighted average journals. +13/1/14 Phil: Fixed SuppInvGRNs.php price variance was not calculated correctly because cost not brought accross correctly as reported by Don Grimes 11/1/14 CQZ: Fixed that no bank accounts recorded in gl in CounterReturns.php 6/1/14 Phil: Apply Tim's bug report regarding conversion of database name to lower case in ConnectDB.inc Although uppercase characters should not be included in database names, removing this trap allows backward compatibility with users who did install with upper case database name 4/1/14 Phil: Add option to create CSV from inventory valuation rather than create PDF Modified: trunk/includes/MiscFunctions.php =================================================================== --- trunk/includes/MiscFunctions.php 2014-01-13 05:31:11 UTC (rev 6536) +++ trunk/includes/MiscFunctions.php 2014-01-14 06:59:12 UTC (rev 6537) @@ -192,21 +192,21 @@ } function GetCurrencyRate($CurrCode,$CurrenciesArray) { - if ((!isset($CurrenciesArray[$CurrCode]) or !isset($CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']]))){ - return quote_oanda_currency($CurrCode); - } elseif ($CurrCode=='EUR'){ - if ($CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']]==0) { - return 0; - } else { - return 1/$CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']]; - } - } else { - if ($CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']]==0) { - return 0; - } else { - return $CurrenciesArray[$CurrCode]/$CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']]; - } - } + if ((!isset($CurrenciesArray[$CurrCode]) OR !isset($CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']])) AND $_SESSION['UpdateCurrencyRatesDaily'] != '0') { + return quote_oanda_currency($CurrCode); + } elseif ($CurrCode=='EUR'){ + if ($CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']]==0) { + return 0; + } else { + return 1/$CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']]; + } + } else { + if ($CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']]==0) { + return 0; + } else { + return $CurrenciesArray[$CurrCode]/$CurrenciesArray[$_SESSION['CompanyRecord']['currencydefault']]; + } + } } function quote_oanda_currency($CurrCode) { |
From: <rc...@us...> - 2014-01-15 02:18:13
|
Revision: 6540 http://sourceforge.net/p/web-erp/reponame/6540 Author: rchacon Date: 2014-01-15 02:18:07 +0000 (Wed, 15 Jan 2014) Log Message: ----------- Add $RadiusY option. Set RoundRectangle parameters similar to other RoundRectangle functions. Substitute code with RoundRectangle function. Modified Paths: -------------- trunk/ReorderLevel.php trunk/companies/weberpdemo/FormDesigns/PickingList.xml trunk/companies/weberpdemo/FormDesigns/PurchaseOrder.xml trunk/includes/PDFPickingListHeader.inc trunk/includes/PDFQuotationPageHeader.inc trunk/includes/PO_PDFOrderPageHeader.inc trunk/includes/class.pdf.php Modified: trunk/ReorderLevel.php =================================================================== --- trunk/ReorderLevel.php 2014-01-14 20:17:08 UTC (rev 6539) +++ trunk/ReorderLevel.php 2014-01-15 02:18:07 UTC (rev 6540) @@ -274,8 +274,8 @@ $line_height=12; $FontSize=9; $YPos= $Page_Height-$Top_Margin; - $pdf->RoundRectangle($Left_Margin-5, $YPos+5, 300, ($line_height*3), 10); - $pdf->addTextWrap($Left_Margin,$YPos,300,$FontSize,$_SESSION['CompanyRecord']['coyname']); + $pdf->RoundRectangle($Left_Margin-5, $YPos+5+10, 310, ($line_height*3)+10+10, 10, 10);// Function RoundRectangle from includes/class.pdf.php + $pdf->addTextWrap($Left_Margin,$YPos,290,$FontSize,$_SESSION['CompanyRecord']['coyname']); $YPos -=$line_height; Modified: trunk/companies/weberpdemo/FormDesigns/PickingList.xml =================================================================== --- trunk/companies/weberpdemo/FormDesigns/PickingList.xml 2014-01-14 20:17:08 UTC (rev 6539) +++ trunk/companies/weberpdemo/FormDesigns/PickingList.xml 2014-01-15 02:18:07 UTC (rev 6540) @@ -263,23 +263,23 @@ </Data> <DeliveryAddressBox type="CurvedRectangle" name="Delivery Address Box" id="DeliveryAddressBox"> <x>40</x> - <y>22</y> - <width>180</width> - <height>70</height> + <y>32</y> + <width>190</width> + <height>90</height> <radius>10</radius> </DeliveryAddressBox> <CustomerAddressBox type="CurvedRectangle" name="Customer Address Box" id="CustomerAddressBox"> <x>40</x> - <y>116</y> - <width>200</width> - <height>80</height> + <y>126</y> + <width>210</width> + <height>100</height> <radius>10</radius> </CustomerAddressBox> <DataBox type="CurvedRectangle" name="Data Box" id="DataBox"> <x>20</x> - <y>226</y> - <width>792</width> - <height>350</height> + <y>236</y> + <width>802</width> + <height>370</height> <radius>10</radius> </DataBox> <LineBelowColumns type="Line" name="Line Below Columns" id="LineBelowColumns"> @@ -318,4 +318,4 @@ <endx>690</endx> <endy>586</endy> </ColumnLine5> -</form> \ No newline at end of file +</form> Modified: trunk/companies/weberpdemo/FormDesigns/PurchaseOrder.xml =================================================================== --- trunk/companies/weberpdemo/FormDesigns/PurchaseOrder.xml 2014-01-14 20:17:08 UTC (rev 6539) +++ trunk/companies/weberpdemo/FormDesigns/PurchaseOrder.xml 2014-01-15 02:18:07 UTC (rev 6540) @@ -109,9 +109,9 @@ </DeliveryAddress> <DeliveryAddressBox type="CurvedRectangle" name="Delivery address box" id="DeliveryAddressBox"> <x>436</x> - <y>142</y> - <width>240</width> - <height>72</height> + <y>154</y> + <width>252</width> + <height>96</height> <radius>12</radius> </DeliveryAddressBox> <SupplierName type="SimpleText" name="Supplier name" id="SupplierName"> Modified: trunk/includes/PDFPickingListHeader.inc =================================================================== --- trunk/includes/PDFPickingListHeader.inc 2014-01-14 20:17:08 UTC (rev 6539) +++ trunk/includes/PDFPickingListHeader.inc 2014-01-15 02:18:07 UTC (rev 6540) @@ -76,9 +76,9 @@ $LeftOvers = $pdf->addTextWrap($FormDesign->Headings->Column5->x,$Page_Height - $FormDesign->Headings->Column5->y,$FormDesign->Headings->Column5->Length , $FormDesign->Headings->Column5->FontSize, _('Prev Dels'),'right'); $LeftOvers = $pdf->addTextWrap($FormDesign->Headings->Column6->x,$Page_Height - $FormDesign->Headings->Column6->y,$FormDesign->Headings->Column6->Length , $FormDesign->Headings->Column6->FontSize, _('Actual Picked'),'right'); -$pdf->RoundRectangle($FormDesign->DeliveryAddressBox->x, $Page_Height - $FormDesign->DeliveryAddressBox->y,$FormDesign->DeliveryAddressBox->width, $FormDesign->DeliveryAddressBox->height, $FormDesign->DeliveryAddressBox->radius); -$pdf->RoundRectangle($FormDesign->CustomerAddressBox->x, $Page_Height - $FormDesign->CustomerAddressBox->y,$FormDesign->CustomerAddressBox->width, $FormDesign->CustomerAddressBox->height, $FormDesign->CustomerAddressBox->radius); -$pdf->RoundRectangle($FormDesign->DataBox->x, $Page_Height - $FormDesign->DataBox->y,$FormDesign->DataBox->width, $FormDesign->DataBox->height, $FormDesign->DataBox->radius); +$pdf->RoundRectangle($FormDesign->DeliveryAddressBox->x, $Page_Height - $FormDesign->DeliveryAddressBox->y,$FormDesign->DeliveryAddressBox->width, $FormDesign->DeliveryAddressBox->height, $FormDesign->DeliveryAddressBox->radius, $FormDesign->DeliveryAddressBox->radius);// Function RoundRectangle from includes/class.pdf.php +$pdf->RoundRectangle($FormDesign->CustomerAddressBox->x, $Page_Height - $FormDesign->CustomerAddressBox->y,$FormDesign->CustomerAddressBox->width, $FormDesign->CustomerAddressBox->height, $FormDesign->CustomerAddressBox->radius, $FormDesign->CustomerAddressBox->radius);// Function RoundRectangle from includes/class.pdf.php +$pdf->RoundRectangle($FormDesign->DataBox->x, $Page_Height - $FormDesign->DataBox->y,$FormDesign->DataBox->width, $FormDesign->DataBox->height, $FormDesign->DataBox->radius, $FormDesign->DataBox->radius);// Function RoundRectangle from includes/class.pdf.php $pdf->line($FormDesign->LineBelowColumns->startx, $Page_Height -$FormDesign->LineBelowColumns->starty,$FormDesign->LineBelowColumns->endx, $Page_Height -$FormDesign->LineBelowColumns->endy); $pdf->line($FormDesign->ColumnLine1->startx, $Page_Height -$FormDesign->ColumnLine1->starty,$FormDesign->ColumnLine1->endx, $Page_Height -$FormDesign->ColumnLine1->endy); @@ -87,4 +87,4 @@ $pdf->line($FormDesign->ColumnLine4->startx, $Page_Height -$FormDesign->ColumnLine4->starty,$FormDesign->ColumnLine4->endx, $Page_Height -$FormDesign->ColumnLine4->endy); $pdf->line($FormDesign->ColumnLine5->startx, $Page_Height -$FormDesign->ColumnLine5->starty,$FormDesign->ColumnLine5->endx, $Page_Height -$FormDesign->ColumnLine5->endy); -?> \ No newline at end of file +?> Modified: trunk/includes/PDFQuotationPageHeader.inc =================================================================== --- trunk/includes/PDFQuotationPageHeader.inc 2014-01-14 20:17:08 UTC (rev 6539) +++ trunk/includes/PDFQuotationPageHeader.inc 2014-01-15 02:18:07 UTC (rev 6540) @@ -53,47 +53,16 @@ $pdf->addText($XPos, $YPos-45, $FontSize, $myrow['address2']); $pdf->addText($XPos, $YPos-60, $FontSize, $myrow['address3'] . ' ' . $myrow['address4'] . ' ' . $myrow['address5']); - +// Draw a rectangle with rounded corners around 'Delivery To' info $XPos= 50; $YPos += 12; -/*draw a nice curved corner box around the delivery details */ -/*from the top right */ -$pdf->partEllipse($XPos+225,$YPos+60,0,90,10,10); -/*line to the top left */ -$pdf->line($XPos+225, $YPos+70,$XPos, $YPos+70); -/*Dow top left corner */ -$pdf->partEllipse($XPos, $YPos+60,90,180,10,10); -/*Do a line to the bottom left corner */ -$pdf->line($XPos-10, $YPos+60,$XPos-10, $YPos); -/*Now do the bottom left corner 180 - 270 coming back west*/ -$pdf->partEllipse($XPos, $YPos,180,270,10,10); -/*Now a line to the bottom right */ -$pdf->line($XPos, $YPos-10,$XPos+225, $YPos-10); -/*Now do the bottom right corner */ -$pdf->partEllipse($XPos+225, $YPos,270,360,10,10); -/*Finally join up to the top right corner where started */ -$pdf->line($XPos+235, $YPos,$XPos+235, $YPos+60); +$pdf->RoundRectangle($XPos-10, $YPos+60+10, 225+10+10, 60+10+10, 10, 10);// Function RoundRectangle from includes/class.pdf.php - +// Draw a rectangle with rounded corners around 'Quotation For' info $YPos -= 82; -/*draw a nice curved corner box around the billing details */ -/*from the top right */ -$pdf->partEllipse($XPos+225,$YPos+60,0,90,10,10); -/*line to the top left */ -$pdf->line($XPos+225, $YPos+70,$XPos, $YPos+70); -/*Dow top left corner */ -$pdf->partEllipse($XPos, $YPos+60,90,180,10,10); -/*Do a line to the bottom left corner */ -$pdf->line($XPos-10, $YPos+60,$XPos-10, $YPos); -/*Now do the bottom left corner 180 - 270 coming back west*/ -$pdf->partEllipse($XPos, $YPos,180,270,10,10); -/*Now a line to the bottom right */ -$pdf->line($XPos, $YPos-10,$XPos+225, $YPos-10); -/*Now do the bottom right corner */ -$pdf->partEllipse($XPos+225, $YPos,270,360,10,10); -/*Finally join up to the top right corner where started */ -$pdf->line($XPos+235, $YPos,$XPos+235, $YPos+60); +$pdf->RoundRectangle($XPos-10, $YPos+60+10, 225+10+10, 60+10+10, 10, 10);// Function RoundRectangle from includes/class.pdf.php +// Print the currency name include($PathPrefix . 'includes/CurrenciesArray.php'); // To get the currency name from the currency code. $pdf->addText($Page_Width/2-60, $YPos-5, $FontSize, _('All amounts stated in') . ' - ' . $myrow['currcode'] . ' ' . $CurrencyName[$myrow['currcode']]); Modified: trunk/includes/PO_PDFOrderPageHeader.inc =================================================================== --- trunk/includes/PO_PDFOrderPageHeader.inc 2014-01-14 20:17:08 UTC (rev 6539) +++ trunk/includes/PO_PDFOrderPageHeader.inc 2014-01-15 02:18:07 UTC (rev 6540) @@ -33,9 +33,9 @@ $pdf->addText($FormDesign->DeliveryAddress->Line2->x,$Page_Height - $FormDesign->DeliveryAddress->Line2->y, $FormDesign->DeliveryAddress->Line2->FontSize, $POHeader['deladd2']); $pdf->addText($FormDesign->DeliveryAddress->Line3->x,$Page_Height - $FormDesign->DeliveryAddress->Line3->y, $FormDesign->DeliveryAddress->Line3->FontSize, $POHeader['deladd3']); $pdf->addText($FormDesign->DeliveryAddress->Line4->x,$Page_Height - $FormDesign->DeliveryAddress->Line4->y, $FormDesign->DeliveryAddress->Line4->FontSize, $POHeader['deladd4']); -$pdf->addText($FormDesign->DeliveryAddress->Line5->x,$Page_Height - $FormDesign->DeliveryAddress->Line5->y, $FormDesign->DeliveryAddress->Line5->FontSize, $POHeader['deladd5'] . ' ' . $POHeader['deladd6']); // Includes delivery postal code and country. +$pdf->addText($FormDesign->DeliveryAddress->Line5->x,$Page_Height - $FormDesign->DeliveryAddress->Line5->y, $FormDesign->DeliveryAddress->Line5->FontSize, $POHeader['deladd5'] . ' ' . $POHeader['deladd6']);// Includes delivery postal code and country. /*draw a nice curved corner box around the delivery to address */ -$pdf->RoundRectangle($FormDesign->DeliveryAddressBox->x, $Page_Height - $FormDesign->DeliveryAddressBox->y,$FormDesign->DeliveryAddressBox->width, $FormDesign->DeliveryAddressBox->height, $FormDesign->DeliveryAddressBox->radius); +$pdf->RoundRectangle($FormDesign->DeliveryAddressBox->x, $Page_Height - $FormDesign->DeliveryAddressBox->y,$FormDesign->DeliveryAddressBox->width, $FormDesign->DeliveryAddressBox->height, $FormDesign->DeliveryAddressBox->radius, $FormDesign->DeliveryAddressBox->radius);// Function RoundRectangle from includes/class.pdf.php /*Now the Supplier details */ $pdf->addText($FormDesign->SupplierName->x,$Page_Height - $FormDesign->SupplierName->y, $FormDesign->SupplierName->FontSize, _('To').': '); $pdf->addText($FormDesign->SupplierName->x+30,$Page_Height - $FormDesign->SupplierName->y, $FormDesign->SupplierName->FontSize, $POHeader['suppname']); Modified: trunk/includes/class.pdf.php =================================================================== --- trunk/includes/class.pdf.php 2014-01-14 20:17:08 UTC (rev 6539) +++ trunk/includes/class.pdf.php 2014-01-15 02:18:07 UTC (rev 6540) @@ -218,23 +218,15 @@ $this->Output($DocumentFilename,'D'); } - function RoundRectangle($XPos, $YPos, $Width, $Height, $Radius) { - /*from the top right */ - $this->partEllipse($XPos+$Width,$YPos,0,90,$Radius,$Radius); - /*line to the top left */ - $this->line($XPos+$Width, $YPos+$Radius,$XPos+$Radius, $YPos+$Radius); - /*Do top left corner */ - $this->partEllipse($XPos+$Radius, $YPos,90,180,$Radius,$Radius); - /*Do a line to the bottom left corner */ - $this->line($XPos+$Radius, $YPos-$Height-$Radius,$XPos+$Width, $YPos-$Height-$Radius); - /*Now do the bottom left corner 180 - 270 coming back west*/ - $this->partEllipse($XPos+$Radius, $YPos-$Height,180,270,$Radius,$Radius); - /*Now a line to the bottom right */ - $this->line($XPos, $YPos-$Height,$XPos, $YPos); - /*Now do the bottom right corner */ - $this->partEllipse($XPos+$Width, $YPos-$Height,270,360,$Radius,$Radius); - /*Finally join up to the top right corner where started */ - $this->line($XPos+$Width+$Radius, $YPos-$Height,$XPos+$Width+$Radius, $YPos); + function RoundRectangle($XPos, $YPos, $Width, $Height, $RadiusX, $RadiusY) { + $this->line($XPos, $YPos-$RadiusY, $XPos, $YPos-$Height+$RadiusY);// Left side + $this->line($XPos+$RadiusX, $YPos, $XPos+$Width-$RadiusX, $YPos);// Top side + $this->line($XPos+$RadiusX, $YPos-$Height-$Radius, $XPos+$Width-$RadiusX, $YPos-$Height-$Radius);// Bottom side + $this->line($XPos+$Width, $YPos-$RadiusY, $XPos+$Width, $YPos-$Height+$RadiusY);// Right side + $this->partEllipse($XPos+$RadiusX, $YPos-$RadiusY, 90, 180, $RadiusX, $RadiusY);// Top left corner + $this->partEllipse($XPos+$RadiusX, $YPos-$Height+$RadiusY, 180, 270, $RadiusX, $RadiusY);// Bottom left corner + $this->partEllipse($XPos+$Width-$RadiusX, $YPos-$RadiusY, 0, 90, $RadiusX, $RadiusY);// Top right corner + $this->partEllipse($XPos+$Width-$RadiusX, $YPos-$Height+$RadiusY, 270, 360, $RadiusX, $RadiusY);// Bottom right corner } function Rectangle($XPos, $YPos, $Width, $Height) { @@ -335,4 +327,4 @@ } // end of class } //end if Cpdf class exists already -?> \ No newline at end of file +?> |
From: <dai...@us...> - 2014-01-15 06:28:14
|
Revision: 6541 http://sourceforge.net/p/web-erp/reponame/6541 Author: daintree Date: 2014-01-15 06:28:12 +0000 (Wed, 15 Jan 2014) Log Message: ----------- fix typos brackets else Modified Paths: -------------- trunk/Credit_Invoice.php trunk/WOSerialNos.php Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2014-01-15 02:18:07 UTC (rev 6540) +++ trunk/Credit_Invoice.php 2014-01-15 06:28:12 UTC (rev 6541) @@ -227,7 +227,7 @@ if (isset($_POST['ChargeFreightCost'])){ $_SESSION['CreditItems' . $identifier]->FreightCost = filter_number_format($_POST['ChargeFreightCost']); } -if ($_SESSION['SalesmanLogin'] != '') {}else{ +if ($_SESSION['SalesmanLogin'] == '') { if (isset($_POST['SalesPerson'])){ $_SESSION['CreditItems' . $identifier]->SalesPerson = $_POST['SalesPerson']; } Modified: trunk/WOSerialNos.php =================================================================== --- trunk/WOSerialNos.php 2014-01-15 02:18:07 UTC (rev 6540) +++ trunk/WOSerialNos.php 2014-01-15 06:28:12 UTC (rev 6541) @@ -177,6 +177,7 @@ //update the serial numbers and quantities and notes for each serial number or batch $InputError=false; $WOQuantityTotal=0; + $sql = array(); for ($i=0;$i<$_POST['CountOfItems'];$i++){ if (mb_strlen($_POST['Reference' . $i])==0){ |
From: <tu...@us...> - 2014-01-19 01:19:13
|
Revision: 6544 http://sourceforge.net/p/web-erp/reponame/6544 Author: turbopt Date: 2014-01-19 01:19:06 +0000 (Sun, 19 Jan 2014) Log Message: ----------- Change property name value to uppercase to match use in the script. Modified Paths: -------------- trunk/Suppliers.php trunk/doc/Change.log Modified: trunk/Suppliers.php =================================================================== --- trunk/Suppliers.php 2014-01-16 06:13:33 UTC (rev 6543) +++ trunk/Suppliers.php 2014-01-19 01:19:06 UTC (rev 6544) @@ -736,7 +736,7 @@ </tr> <tr> <td>' . _('URL') . ':</td> - <td><input type="url" name="url" title="'._('Only URL address are allowed').'" placeholder="'._('URL format such as www.example.com').'" size="30" maxlength="50" /></td> + <td><input type="url" name="URL" title="'._('Only URL address are allowed').'" placeholder="'._('URL format such as www.example.com').'" size="30" maxlength="50" /></td> </tr> <tr> <td>' . _('Supplier Type') . ':</td> Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2014-01-16 06:13:33 UTC (rev 6543) +++ trunk/doc/Change.log 2014-01-19 01:19:06 UTC (rev 6544) @@ -1,4 +1,5 @@ webERP Change Log +18/01/14 Paul T: Change property name value to uppercase to match use in the script. [causing input loss] 16/01/14 Exson: Fixed sql strict mode failure problem in StockTransfers.php by adding a '' to qualitytext fields. 14/4/14 Tim: system would go to get currency rates even though they were set to manual - bug fixed. 14/1/14 Phil: Fixed bug that was not recording the standard cost against goods received - this would put all accounting out for both standard and weighted average journals. |
From: <dai...@us...> - 2014-01-24 08:52:57
|
Revision: 6547 http://sourceforge.net/p/web-erp/reponame/6547 Author: daintree Date: 2014-01-24 08:52:53 +0000 (Fri, 24 Jan 2014) Log Message: ----------- Tim: selection of purchase orders by order date Modified Paths: -------------- trunk/GLTrialBalance.php trunk/PO_SelectOSPurchOrder.php trunk/SelectOrderItems.php trunk/api/api_php.php trunk/doc/Change.log trunk/includes/DefineCartClass.php trunk/includes/UserLogin.php trunk/sql/mysql/country_sql/default.sql trunk/sql/mysql/upgrade4.11-4.12.sql trunk/sql/mysql/upgrade4.11.2-4.11.3.sql Modified: trunk/GLTrialBalance.php =================================================================== --- trunk/GLTrialBalance.php 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/GLTrialBalance.php 2014-01-24 08:52:53 UTC (rev 6547) @@ -2,7 +2,7 @@ /* $Id$*/ -/*Through deviousness and cunning, this system allows trial balances for any date range that recalcuates the p & l balances +/*Through deviousness AND cunning, this system allows trial balances for any date range that recalcuates the p & l balances and shows the balance sheets as at the end of the period selected - so first off need to show the input of criteria screen while the user is selecting the criteria the system is posting any unposted transactions */ @@ -257,7 +257,7 @@ $GrpPrdActual[$Level] =0; $GrpPrdBduget[$Level] =0; $Level--; - } while ($Level>0 and $myrow['parentgroupname']!=$ParentGroups[$Level]); + } while ($Level>0 AND $myrow['parentgroupname']!=$ParentGroups[$Level]); if ($Level>0){ $YPos -= $line_height; @@ -354,7 +354,7 @@ } //end of while loop - while ($Level>0 and $myrow['parentgroupname']!=$ParentGroups[$Level]) { + while ($Level>0 AND $myrow['parentgroupname']!=$ParentGroups[$Level]) { $YPos -= (.5 * $line_height); $pdf->line($Left_Margin+250, $YPos+$line_height,$Left_Margin+500, $YPos+$line_height); @@ -446,7 +446,7 @@ echo '<table cellpadding="2" class="selection">'; echo '<tr> - <th colspan="6"><b>' . _('Trial Balance for the month of ') . $PeriodToDate . _(' and for the ') . $NumberOfMonths . _(' months to ') . $PeriodToDate . '</b></th> + <th colspan="6"><b>' . _('Trial Balance for the month of ') . $PeriodToDate . _(' AND for the ') . $NumberOfMonths . _(' months to ') . $PeriodToDate . '</b></th> </tr>'; $TableHeader = '<tr> <th>' . _('Account') . '</th> @@ -532,7 +532,7 @@ $Level--; $j++; - } while ($Level>0 and $myrow['groupname']!=$ParentGroups[$Level]); + } while ($Level>0 AND $myrow['groupname']!=$ParentGroups[$Level]); if ($Level>0){ printf('<tr> @@ -688,7 +688,7 @@ $Level--; $j++; - } while (isset($ParentGroups[$Level]) and ($myrow['groupname']!=$ParentGroups[$Level] and $Level>0)); + } while (isset($ParentGroups[$Level]) AND ($myrow['groupname']!=$ParentGroups[$Level] AND $Level>0)); if ($Level >0){ printf('<tr> @@ -738,4 +738,4 @@ </form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/PO_SelectOSPurchOrder.php 2014-01-24 08:52:53 UTC (rev 6547) @@ -145,6 +145,19 @@ <td>' . _('Order Number') . ': <input type="text" name="OrderNumber" autofocus="autofocus" maxlength="8" size="9" /> ' . _('Into Stock Location') . ': <select name="StockLocation">'; + if (!isset($_POST['DateFrom'])) { + $DateSQL = "SELECT min(orddate) as fromdate, + max(orddate) as todate + FROM purchorders"; + $DateResult = DB_query($DateSQL, $db); + $DateRow = DB_fetch_array($DateResult); + $DateFrom = $DateRow['fromdate']; + $DateTo = $DateRow['todate']; + } else { + $DateFrom = FormatDateForSQL($_POST['DateFrom']); + $DateTo = FormatDateForSQL($_POST['DateTo']); + } + $sql = "SELECT loccode, locationname FROM locations"; $resultStkLocs = DB_query($sql, $db); while ($myrow = DB_fetch_array($resultStkLocs)) { @@ -188,7 +201,12 @@ echo '<option value="Rejected">' . _('Rejected') . '</option>'; } } - echo '</select> <input type="submit" name="SearchOrders" value="' . _('Search Purchase Orders') . '" /> + echo '</select> + ' . _('Orders Between') . ': + <input type="text" name="DateFrom" value="' . ConvertSQLDate($DateFrom) . '" class="date" size="10" alt="' . $_SESSION['DefaultDateFormat'] . '" /> + ' . _('and') . ': + <input type="text" name="DateTo" value="' . ConvertSQLDate($DateTo) . '" class="date" size="10" alt="' . $_SESSION['DefaultDateFormat'] . '" /> + <input type="submit" name="SearchOrders" value="' . _('Search Purchase Orders') . '" /> </td> </tr> </table>'; @@ -232,16 +250,15 @@ echo '<br />'; if (isset($StockItemsResult)) { - echo '<table cellpadding="2" class="selection">'; - $TableHeader = '<tr> - <th class="ascending">' . _('Code') . '</th> - <th class="ascending">' . _('Description') . '</th> - <th class="ascending">' . _('On Hand') . '</th> - <th class="ascending">' . _('Orders') . '<br />' . _('Outstanding') . '</th> - <th class="ascending">' . _('Units') . '</th> - </tr>'; - echo $TableHeader; - $j = 1; + echo '<table cellpadding="2" class="selection"> + <tr> + <th class="ascending">' . _('Code') . '</th> + <th class="ascending">' . _('Description') . '</th> + <th class="ascending">' . _('On Hand') . '</th> + <th class="ascending">' . _('Orders') . '<br />' . _('Outstanding') . '</th> + <th class="ascending">' . _('Units') . '</th> + </tr>'; + $k = 0; //row colour counter while ($myrow = DB_fetch_array($StockItemsResult)) { @@ -258,14 +275,12 @@ <td>%s</td> <td class="number">%s</td> <td class="number">%s</td> - <td>%s</td></tr>', $myrow['stockid'], $myrow['description'], $myrow['qoh'], $myrow['qord'], $myrow['units']); - - $j++; - If ($j == 12) { - $j = 1; - echo $TableHeader; - } //$j == 12 - //end of page full new headings if + <td>%s</td></tr>', + $myrow['stockid'], + $myrow['description'], + $myrow['qoh'], + $myrow['qord'], + $myrow['units']); } //end of while loop through search items echo '</table>'; @@ -305,6 +320,8 @@ INNER JOIN currencies ON suppliers.currcode=currencies.currabrev WHERE purchorderdetails.completed=0 + AND orddate>='" . FormatDateForSQL($_POST['DateFrom']) . "' + AND orddate<='" . FormatDateForSQL($_POST['DateTo']) . "' AND purchorders.orderno='" . $OrderNumber . "' GROUP BY purchorders.orderno ASC, suppliers.suppname, @@ -341,6 +358,8 @@ INNER JOIN currencies ON suppliers.currcode=currencies.currabrev WHERE purchorderdetails.completed=0 + AND orddate>='" . FormatDateForSQL($_POST['DateFrom']) . "' + AND orddate<='" . FormatDateForSQL($_POST['DateTo']) . "' AND purchorderdetails.itemcode='" . $SelectedStockItem . "' AND purchorders.supplierno='" . $SelectedSupplier . "' AND purchorders.intostocklocation = '" . $_POST['StockLocation'] . "' @@ -375,6 +394,8 @@ INNER JOIN currencies ON suppliers.currcode=currencies.currabrev WHERE purchorderdetails.completed=0 + AND orddate>='" . FormatDateForSQL($_POST['DateFrom']) . "' + AND orddate<='" . FormatDateForSQL($_POST['DateTo']) . "' AND purchorders.supplierno='" . $SelectedSupplier . "' AND purchorders.intostocklocation = '" . $_POST['StockLocation'] . "' " . $StatusCriteria . " @@ -414,6 +435,8 @@ INNER JOIN currencies ON suppliers.currcode=currencies.currabrev WHERE purchorderdetails.completed=0 + AND orddate>='" . FormatDateForSQL($_POST['DateFrom']) . "' + AND orddate<='" . FormatDateForSQL($_POST['DateTo']) . "' AND purchorderdetails.itemcode='" . $SelectedStockItem . "' AND purchorders.intostocklocation = '" . $_POST['StockLocation'] . "' " . $StatusCriteria . " @@ -447,6 +470,8 @@ INNER JOIN currencies ON suppliers.currcode=currencies.currabrev WHERE purchorderdetails.completed=0 + AND orddate>='" . FormatDateForSQL($_POST['DateFrom']) . "' + AND orddate<='" . FormatDateForSQL($_POST['DateTo']) . "' AND purchorders.intostocklocation = '" . $_POST['StockLocation'] . "' " . $StatusCriteria . " GROUP BY purchorders.orderno ASC, Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/SelectOrderItems.php 2014-01-24 08:52:53 UTC (rev 6547) @@ -1083,8 +1083,7 @@ if(isset($_GET['Delete'])){ //page called attempting to delete a line - GET['Delete'] = the line number to delete - $QuantityAlreadyDelivered = $_SESSION['Items'.$identifier]->Some_Already_Delivered($_GET['Delete']); - if($QuantityAlreadyDelivered == 0){ + if($_SESSION['Items'.$identifier]->Some_Already_Delivered($_GET['Delete']) == 0){ $_SESSION['Items'.$identifier]->remove_from_cart($_GET['Delete'], 'Yes', $identifier); /*Do update DB */ } else { $_SESSION['Items'.$identifier]->LineItems[$_GET['Delete']]->Quantity = $QuantityAlreadyDelivered; Modified: trunk/api/api_php.php =================================================================== --- trunk/api/api_php.php 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/api/api_php.php 2014-01-24 08:52:53 UTC (rev 6547) @@ -61,4 +61,4 @@ include 'api_workorders.php'; include 'api_webERPsettings.php'; -?> \ No newline at end of file +?> Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/doc/Change.log 2014-01-24 08:52:53 UTC (rev 6547) @@ -2,7 +2,8 @@ 19/01/14 Exson: Add sales man login control and modify the PDF to download to harmony with other files and solve backward failure problem in PrintCustStatements.php. 18/01/14 Paul T: Change property name value to uppercase to match use in the script. [causing input loss] 16/01/14 Exson: Fixed sql strict mode failure problem in StockTransfers.php by adding a '' to qualitytext fields. -14/4/14 Tim: system would go to get currency rates even though they were set to manual - bug fixed. +23/1/14 Tim: PO_SelectOSPurchOrder.php now allows selection of purchase orders based on order dates +14/1/14 Tim: system would go to get currency rates even though they were set to manual - bug fixed. 14/1/14 Phil: Fixed bug that was not recording the standard cost against goods received - this would put all accounting out for both standard and weighted average journals. 13/1/14 Phil: Fixed SuppInvGRNs.php price variance was not calculated correctly because cost not brought accross correctly as reported by Don Grimes 11/1/14 CQZ: Fixed that no bank accounts recorded in gl in CounterReturns.php Modified: trunk/includes/DefineCartClass.php =================================================================== --- trunk/includes/DefineCartClass.php 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/includes/DefineCartClass.php 2014-01-24 08:52:53 UTC (rev 6547) @@ -235,7 +235,7 @@ /* something has been delivered. Clear the remaining Qty and Mark Completed */ $result = DB_query("UPDATE salesorderdetails SET quantity=qtyinvoiced, completed=1 - WHERE orderno='".$_SESSION['ExistingOrder']."' + WHERE orderno='" . $_SESSION['ExistingOrder' . $identifier] ."' AND orderlineno='" . $LineNumber . "'" , $db, _('The order line could not be updated as completed because') Modified: trunk/includes/UserLogin.php =================================================================== --- trunk/includes/UserLogin.php 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/includes/UserLogin.php 2014-01-24 08:52:53 UTC (rev 6547) @@ -88,8 +88,9 @@ WHERE www_users.userid='" . $Name . "'"; $Auth_Result = DB_query($sql, $db); /*get the security tokens that the user has access to */ - $sql = "SELECT tokenid FROM securitygroups - WHERE secroleid = '" . $_SESSION['AccessLevel'] . "'"; + $sql = "SELECT tokenid + FROM securitygroups + WHERE secroleid = '" . $_SESSION['AccessLevel'] . "'"; $Sec_Result = DB_query($sql, $db); $_SESSION['AllowedPageSecurityTokens'] = array(); if (DB_num_rows($Sec_Result)==0){ Modified: trunk/sql/mysql/country_sql/default.sql =================================================================== --- trunk/sql/mysql/country_sql/default.sql 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/sql/mysql/country_sql/default.sql 2014-01-24 08:52:53 UTC (rev 6547) @@ -2371,9 +2371,7 @@ `numericvalue` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`stkcatpropid`), KEY `categoryid` (`categoryid`), - CONSTRAINT `stockcatproperties_ibfk_1` FOREIGN KEY (`categoryid`) REFERENCES `stockcategory` (`categoryid`), - CONSTRAINT `stockcatproperties_ibfk_2` FOREIGN KEY (`categoryid`) REFERENCES `stockcategory` (`categoryid`), - CONSTRAINT `stockcatproperties_ibfk_3` FOREIGN KEY (`categoryid`) REFERENCES `stockcategory` (`categoryid`) + CONSTRAINT `stockcatproperties_ibfk_1` FOREIGN KEY (`categoryid`) REFERENCES `stockcategory` (`categoryid`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; Modified: trunk/sql/mysql/upgrade4.11-4.12.sql =================================================================== --- trunk/sql/mysql/upgrade4.11-4.12.sql 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/sql/mysql/upgrade4.11-4.12.sql 2014-01-24 08:52:53 UTC (rev 6547) @@ -1,13 +1,3 @@ -ALTER TABLE `emailsettings` CHANGE `username` `username` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL -CREATE TABLE IF NOT EXISTS `pricematrix` ( - `salestype` char(2) NOT NULL DEFAULT '', - `stockid` varchar(20) NOT NULL DEFAULT '', - `quantitybreak` int(11) NOT NULL DEFAULT '1', - `price` double NOT NULL DEFAULT '0', - PRIMARY KEY (`salestype`,`stockid`,`quantitybreak`), - KEY `DiscountCategory` (`stockid`), - KEY `SalesType` (`salestype`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; -INSERT INTO scripts VALUES('PriceMatrix.php',11,'Mantain stock prices according to quantity break and sales types'); + UPDATE config SET confvalue='4.12' WHERE confname='VersionNumber'; Modified: trunk/sql/mysql/upgrade4.11.2-4.11.3.sql =================================================================== --- trunk/sql/mysql/upgrade4.11.2-4.11.3.sql 2014-01-19 15:36:10 UTC (rev 6546) +++ trunk/sql/mysql/upgrade4.11.2-4.11.3.sql 2014-01-24 08:52:53 UTC (rev 6547) @@ -1 +1,23 @@ ALTER table stockmoves CHANGE reference reference varchar(100) NOT NULL DEFAULT ''; +alter table stockcatproperties drop foreign key stockcatproperties_ibfk_2; +alter table stockcatproperties drop foreign key stockcatproperties_ibfk_3; +ALTER TABLE `emailsettings` CHANGE `username` `username` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL +CREATE TABLE IF NOT EXISTS `pricematrix` ( + `salestype` char(2) NOT NULL DEFAULT '', + `stockid` varchar(20) NOT NULL DEFAULT '', + `quantitybreak` int(11) NOT NULL DEFAULT '1', + `price` double NOT NULL DEFAULT '0', + PRIMARY KEY (`salestype`,`stockid`,`quantitybreak`), + KEY `DiscountCategory` (`stockid`), + KEY `SalesType` (`salestype`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +INSERT INTO scripts VALUES('PriceMatrix.php',11,'Mantain stock prices according to quantity break and sales types'); +DELETE FROM scripts WHERE script='FixedAssetList.php'; +DELETE FROM scripts WHERE script='ManualContents.php'; +DELETE FROM scripts WHERE script='MenuAccess.php'; +DELETE FROM scripts WHERE script='OrderEntryDiscountPricing.php'; +DELETE FROM scripts WHERE script='PrintSalesOrder.php'; +DELETE FROM scripts WHERE script='ReportBug.php'; +DELETE FROM scripts WHERE script='ReportletContainer.php'; +DELETE FROM scripts WHERE script='SystemCheck.php'; +UPDATE config SET confvalue='4.11.3' WHERE confname='VersionNumber'; |
From: <dai...@us...> - 2014-01-24 09:27:50
|
Revision: 6548 http://sourceforge.net/p/web-erp/reponame/6548 Author: daintree Date: 2014-01-24 09:27:46 +0000 (Fri, 24 Jan 2014) Log Message: ----------- fixed error traps on customers and branches as per Ricards report Modified Paths: -------------- trunk/CustomerBranches.php trunk/Customers.php trunk/doc/Change.log Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2014-01-24 08:52:53 UTC (rev 6547) +++ trunk/CustomerBranches.php 2014-01-24 09:27:46 UTC (rev 6548) @@ -53,7 +53,7 @@ if ($_SESSION['SalesmanLogin'] != '') { $_POST['Salesman'] = $_SESSION['SalesmanLogin']; } - if (ContainsIllegalCharacters($_POST['BranchCode']) OR mb_strstr($_POST['BranchCode'],' ') OR mb_strstr($_POST['BranchCode'],'-')) { + if (ContainsIllegalCharacters($_POST['BranchCode']) OR mb_strstr($_POST['BranchCode'],' ')) { $InputError = 1; prnMsg(_('The Branch code cannot contain any of the following characters')." - & \' < >",'error'); $Errors[$i] = 'BranchCode'; @@ -340,15 +340,25 @@ prnMsg(_('Cannot delete this branch because contract have been created that refer to it') . '. ' . _('Purge old contracts first'),'warn'); echo '<br />' . _('There are') . ' ' . $myrow[0] . ' '._('contracts referring to this branch/customer'); } else { - $SQL="DELETE FROM custbranch WHERE branchcode='" . $SelectedBranch . "' AND debtorno='" . $DebtorNo . "'"; - if ($_SESSION['SalesmanLogin'] != '') { - $SQL .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; + //check if this it the last customer branch - don't allow deletion of the last branch + $SQL = "SELECT COUNT(*) FROM custbranch WHERE debtorno='" . $DebtorNo . "'"; + + $result = DB_query($SQL,$db); + $myrow = DB_fetch_row($result); + + if ($myrow[0]==1) { + prnMsg(_('Cannot delete this branch because it is the only branch defined for this customer.'),'warn'); + } else { + $SQL="DELETE FROM custbranch WHERE branchcode='" . $SelectedBranch . "' AND debtorno='" . $DebtorNo . "'"; + if ($_SESSION['SalesmanLogin'] != '') { + $SQL .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; + } + $ErrMsg = _('The branch record could not be deleted') . ' - ' . _('the SQL server returned the following message'); + $result = DB_query($SQL,$db,$ErrMsg); + if (DB_error_no($db)==0){ + prnMsg(_('Branch Deleted'),'success'); + } } - $ErrMsg = _('The branch record could not be deleted') . ' - ' . _('the SQL server returned the following message'); - $result = DB_query($SQL,$db,$ErrMsg); - if (DB_error_no($db)==0){ - prnMsg(_('Branch Deleted'),'success'); - } } } } @@ -394,16 +404,16 @@ ' . ' ' . _('Branches defined for'). ' '. $DebtorNo . ' - ' . $myrow[0] . '</p>'; echo '<table class="selection"> <tr> - <th>' . _('Code') . '</th> - <th>' . _('Name') . '</th> - <th>' . _('Branch Contact') . '</th> - <th>' . _('Salesman') . '</th> - <th>' . _('Area') . '</th> - <th>' . _('Phone No') . '</th> - <th>' . _('Fax No') . '</th> - <th>' . _('Email') . '</th> - <th>' . _('Tax Group') . '</th> - <th>' . _('Enabled?') . '</th> + <th class="ascending">' . _('Code') . '</th> + <th class="ascending">' . _('Name') . '</th> + <th class="ascending">' . _('Branch Contact') . '</th> + <th class="ascending">' . _('Salesman') . '</th> + <th class="ascending">' . _('Area') . '</th> + <th class="ascending">' . _('Phone No') . '</th> + <th class="ascending">' . _('Fax No') . '</th> + <th class="ascending">' . _('Email') . '</th> + <th class="ascending">' . _('Tax Group') . '</th> + <th class="ascending">' . _('Enabled?') . '</th> </tr>'; $k=0; Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2014-01-24 08:52:53 UTC (rev 6547) +++ trunk/Customers.php 2014-01-24 09:27:46 UTC (rev 6548) @@ -312,24 +312,40 @@ prnMsg( _('Cannot delete this customer record because sales analysis records exist for it'),'warn'); echo '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('sales analysis records against this customer'); } else { - $sql= "SELECT COUNT(*) FROM custbranch WHERE debtorno='" . $_POST['DebtorNo'] . "'"; - $result = DB_query($sql,$db); + + // Check if there are any users that refer to this CUSTOMER code + $SQL= "SELECT COUNT(*) FROM www_users WHERE www_users.customerid = '" . $_POST['DebtorNo'] . "'"; + + $result = DB_query($SQL,$db); $myrow = DB_fetch_row($result); + if ($myrow[0]>0) { - $CancelDelete = 1; - prnMsg(_('Cannot delete this customer because there are branch records set up against it'),'warn'); - echo '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('branch records relating to this customer'); + prnMsg(_('Cannot delete this customer because users exist that refer to it') . '. ' . _('Purge old users first'),'warn'); + echo '<br />' . _('There are') . ' ' . $myrow[0] . ' '._('users referring to this Branch/customer'); + } else { + // Check if there are any contract that refer to this branch code + $SQL = "SELECT COUNT(*) FROM contracts WHERE contracts.debtorno = '" . $_POST['DebtorNo'] . "'"; + + $result = DB_query($SQL,$db); + $myrow = DB_fetch_row($result); + + if ($myrow[0]>0) { + prnMsg(_('Cannot delete this customer because contracts have been created that refer to it') . '. ' . _('Purge old contracts first'),'warn'); + echo '<br />' . _('There are') . ' ' . $myrow[0] . ' '._('contracts referring to this customer'); + } } } } } if ($CancelDelete==0) { //ie not cancelled the delete as a result of above tests + $SQL="DELETE FROM custbranch WHERE debtorno='" . $_POST['DebtorNo'] . "'"; + $result = DB_query($SQL,$db,$ErrMsg); $sql="DELETE FROM custcontacts WHERE debtorno='" . $_POST['DebtorNo'] . "'"; $result = DB_query($sql,$db); $sql="DELETE FROM debtorsmaster WHERE debtorno='" . $_POST['DebtorNo'] . "'"; $result = DB_query($sql,$db); - prnMsg( _('Customer') . ' ' . $_POST['DebtorNo'] . ' ' . _('has been deleted - together with all the associated contacts') . ' !','success'); + prnMsg( _('Customer') . ' ' . $_POST['DebtorNo'] . ' ' . _('has been deleted - together with all the associated branches and contacts'),'success'); include('includes/footer.inc'); unset($_SESSION['CustomerID']); exit; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2014-01-24 08:52:53 UTC (rev 6547) +++ trunk/doc/Change.log 2014-01-24 09:27:46 UTC (rev 6548) @@ -1,4 +1,6 @@ webERP Change Log + +23/1/14 Phil: Fixed incompatible error traps on hyphens between new customers and new branches. Now both allow hyphens. Also prevented deletion of the last customer branch. Customer branches are now deleted when a customer is attempted to be deleted provided there are no dependent records. 19/01/14 Exson: Add sales man login control and modify the PDF to download to harmony with other files and solve backward failure problem in PrintCustStatements.php. 18/01/14 Paul T: Change property name value to uppercase to match use in the script. [causing input loss] 16/01/14 Exson: Fixed sql strict mode failure problem in StockTransfers.php by adding a '' to qualitytext fields. |
From: <dai...@us...> - 2014-01-24 20:32:34
|
Revision: 6549 http://sourceforge.net/p/web-erp/reponame/6549 Author: daintree Date: 2014-01-24 20:32:31 +0000 (Fri, 24 Jan 2014) Log Message: ----------- Andrew Galuski work and fix ups as advised by Tim Modified Paths: -------------- trunk/PDFGrn.php trunk/PDFStockTransfer.php trunk/SelectOrderItems.php trunk/doc/Change.log trunk/includes/PDFGrnHeader.inc trunk/sql/mysql/upgrade4.11.2-4.11.3.sql Modified: trunk/PDFGrn.php =================================================================== --- trunk/PDFGrn.php 2014-01-24 09:27:46 UTC (rev 6548) +++ trunk/PDFGrn.php 2014-01-24 20:32:31 UTC (rev 6549) @@ -14,9 +14,9 @@ // Set the paper size/orintation $PaperSize = $FormDesign->PaperSize; -$PageNumber=1; $line_height=$FormDesign->LineHeight; include('includes/PDFStarter.php'); +$PageNumber=1; $pdf->addInfo('Title', _('Goods Received Note') ); if ($GRNNo == 'Preview'){ @@ -98,18 +98,25 @@ $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column1->x,$Page_Height-$YPos,$FormDesign->Data->Column1->Length,$FormDesign->Data->Column1->FontSize, $myrow['itemcode']); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column2->x,$Page_Height-$YPos,$FormDesign->Data->Column2->Length,$FormDesign->Data->Column2->FontSize, $myrow['itemdescription']); - $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column3->x,$Page_Height-$YPos,$FormDesign->Data->Column3->Length,$FormDesign->Data->Column3->FontSize, $DeliveryDate); + /*resmart mods */ + /*$LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column3->x,$Page_Height-$YPos,$FormDesign->Data->Column3->Length,$FormDesign->Data->Column3->FontSize, $DeliveryDate);*/ + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column3->x,$Page_Height-$YPos,$FormDesign->Data->Column3->Length,$FormDesign->Data->Column3->FontSize, $DeliveryDate, 'right'); + /*resmart ends*/ $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column4->x,$Page_Height-$YPos,$FormDesign->Data->Column4->Length,$FormDesign->Data->Column4->FontSize, $SuppliersQuantity, 'right'); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column5->x,$Page_Height-$YPos,$FormDesign->Data->Column5->Length,$FormDesign->Data->Column5->FontSize, $myrow['suppliersunit'], 'left'); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column6->x,$Page_Height-$YPos,$FormDesign->Data->Column6->Length,$FormDesign->Data->Column6->FontSize, $OurUnitsQuantity, 'right'); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column7->x,$Page_Height-$YPos,$FormDesign->Data->Column7->Length,$FormDesign->Data->Column7->FontSize, $myrow['units'], 'left'); $YPos += $line_height; + /*resmoart mods*/ + /* move to after serial print if($FooterPrintedInPage == 0){ $LeftOvers = $pdf->addText($FormDesign->ReceiptDate->x,$Page_Height-$FormDesign->ReceiptDate->y,$FormDesign->ReceiptDate->FontSize, _('Date of Receipt: ') . $DeliveryDate); $LeftOvers = $pdf->addText($FormDesign->SignedFor->x,$Page_Height-$FormDesign->SignedFor->y,$FormDesign->SignedFor->FontSize, _('Signed for ').'______________________'); $FooterPrintedInPage= 1; } + */ + /*resmart ends*/ if ($YPos >= $FormDesign->LineAboveFooter->starty){ /* We reached the end of the page so finsih off the page and start a newy */ @@ -118,6 +125,48 @@ $YPos=$FormDesign->Data->y; include ('includes/PDFGrnHeader.inc'); } //end if need a new page headed up + + /*resmart mods*/ + $SQL = "SELECT stockmaster.controlled + FROM stockmaster WHERE stockid ='" . $myrow['itemcode'] . "'"; + $CheckControlledResult = DB_query($SQL,$db,'<br />' . _('Could not determine if the item was controlled or not because') . ' '); + $ControlledRow = DB_fetch_row($CheckControlledResult); + + if ($ControlledRow[0]==1) { /*Then its a controlled item */ + $SQL = "SELECT stockserialmoves.serialno, + stockserialmoves.moveqty + FROM stockmoves INNER JOIN stockserialmoves + ON stockmoves.stkmoveno= stockserialmoves.stockmoveno + WHERE stockmoves.stockid='" . $myrow['itemcode'] . "' + AND stockmoves.type =25 + AND stockmoves.transno='" . $GRNNo . "'"; + $GetStockMoveResult = DB_query($SQL,$db,_('Could not retrieve the stock movement reference number which is required in order to retrieve details of the serial items that came in with this GRN')); + while ($SerialStockMoves = DB_fetch_array($GetStockMoveResult)){ + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column1->x-20,$Page_Height-$YPos,$FormDesign->Data->Column1->Length,$FormDesign->Data->Column1->FontSize, _('Lot/Serial:'),'right'); + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column2->x,$Page_Height-$YPos,$FormDesign->Data->Column2->Length,$FormDesign->Data->Column2->FontSize, $SerialStockMoves['serialno']); + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column2->x,$Page_Height-$YPos,$FormDesign->Data->Column2->Length,$FormDesign->Data->Column2->FontSize, $SerialStockMoves['moveqty'],'right'); + $YPos += $line_height; + + if ($YPos >= $FormDesign->LineAboveFooter->starty){ + $FooterPrintedInPage= 0; + $YPos=$FormDesign->Data->y; + include ('includes/PDFGrnHeader.inc'); + } //end if need a new page headed up + } //while SerialStockMoves + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column2->x,$Page_Height-$YPos,$FormDesign->Data->Column2->Length,$FormDesign->Data->Column2->FontSize, ' '); + $YPos += $line_height; + if ($YPos >= $FormDesign->LineAboveFooter->starty){ + $FooterPrintedInPage= 0; + $YPos=$FormDesign->Data->y; + include ('includes/PDFGrnHeader.inc'); + } //end if need a new page headed up + } //controlled item*/ + /*resmart ends*/ + if($FooterPrintedInPage == 0){ + $LeftOvers = $pdf->addText($FormDesign->ReceiptDate->x,$Page_Height-$FormDesign->ReceiptDate->y,$FormDesign->ReceiptDate->FontSize, _('Date of Receipt: ') . $DeliveryDate); + $LeftOvers = $pdf->addText($FormDesign->SignedFor->x,$Page_Height-$FormDesign->SignedFor->y,$FormDesign->SignedFor->FontSize, _('Signed for ').'______________________'); + $FooterPrintedInPage= 1; + } } //end of loop around GRNs to print Modified: trunk/PDFStockTransfer.php =================================================================== --- trunk/PDFStockTransfer.php 2014-01-24 09:27:46 UTC (rev 6548) +++ trunk/PDFStockTransfer.php 2014-01-24 20:32:31 UTC (rev 6549) @@ -86,7 +86,10 @@ $Description=$myrow['description']; $LeftOvers = $pdf->addTextWrap($Left_Margin+1,$YPos-10,300-$Left_Margin,$FontSize, $StockID); - $LeftOvers = $pdf->addTextWrap($Left_Margin+75,$YPos-10,300-$Left_Margin,$FontSize-2, $Description); + /*resmoart mods*/ + /*$LeftOvers = $pdf->addTextWrap($Left_Margin+75,$YPos-10,300-$Left_Margin,$FontSize-2, $Description);*/ + $LeftOvers = $pdf->addTextWrap($Left_Margin+75,$YPos-10,300-$Left_Margin,$FontSize, $Description); + /*resmart ends*/ $LeftOvers = $pdf->addTextWrap($Left_Margin+250,$YPos-10,300-$Left_Margin,$FontSize, $From); $LeftOvers = $pdf->addTextWrap($Left_Margin+350,$YPos-10,300-$Left_Margin,$FontSize, $To); $LeftOvers = $pdf->addTextWrap($Left_Margin+475,$YPos-10,300-$Left_Margin,$FontSize, $Quantity); @@ -96,6 +99,39 @@ if ($YPos < $Bottom_Margin + $line_height){ include('includes/PDFStockTransferHeader.inc'); } + /*resmart mods*/ + $SQL = "SELECT stockmaster.controlled + FROM stockmaster WHERE stockid ='" . $StockID . "'"; + $CheckControlledResult = DB_query($SQL,$db,'<br />' . _('Could not determine if the item was controlled or not because') . ' '); + $ControlledRow = DB_fetch_row($CheckControlledResult); + + if ($ControlledRow[0]==1) { /*Then its a controlled item */ + $SQL = "SELECT stockserialmoves.serialno, + stockserialmoves.moveqty + FROM stockmoves INNER JOIN stockserialmoves + ON stockmoves.stkmoveno= stockserialmoves.stockmoveno + WHERE stockmoves.stockid='" . $StockID . "' + AND stockmoves.type =16 + AND qty > 0 + AND stockmoves.transno='" .$_GET['TransferNo']. "'"; + $GetStockMoveResult = DB_query($SQL,$db,_('Could not retrieve the stock movement reference number which is required in order to retrieve details of the serial items that came in with this GRN')); + while ($SerialStockMoves = DB_fetch_array($GetStockMoveResult)){ + $LeftOvers = $pdf->addTextWrap($Left_Margin+40,$YPos-10,300-$Left_Margin,$FontSize, _('Lot/Serial:')); + $LeftOvers = $pdf->addTextWrap($Left_Margin+75,$YPos-10,300-$Left_Margin,$FontSize, $SerialStockMoves['serialno']); + $LeftOvers = $pdf->addTextWrap($Left_Margin+250,$YPos-10,300-$Left_Margin,$FontSize, $SerialStockMoves['moveqty']); + $YPos=$YPos-$line_height; + + if ($YPos < $Bottom_Margin + $line_height){ + include('includes/PDFStockTransferHeader.inc'); + } //while SerialStockMoves + } + $LeftOvers = $pdf->addTextWrap($Left_Margin+40,$YPos-10,300-$Left_Margin,$FontSize, ' '); + $YPos=$YPos-$line_height; + if ($YPos < $Bottom_Margin + $line_height){ + include('includes/PDFStockTransferHeader.inc'); + } //controlled item*/ + } + /*resmart ends*/ } $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos-70,300-$Left_Margin,$FontSize, _('Date of transfer: ').$Date); Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2014-01-24 09:27:46 UTC (rev 6548) +++ trunk/SelectOrderItems.php 2014-01-24 20:32:31 UTC (rev 6549) @@ -1083,7 +1083,8 @@ if(isset($_GET['Delete'])){ //page called attempting to delete a line - GET['Delete'] = the line number to delete - if($_SESSION['Items'.$identifier]->Some_Already_Delivered($_GET['Delete']) == 0){ + $QuantityAlreadyDelivered = $_SESSION['Items'.$identifier]->Some_Already_Delivered($_GET['Delete']); + if($QuantityAlreadyDelivered == 0){ $_SESSION['Items'.$identifier]->remove_from_cart($_GET['Delete'], 'Yes', $identifier); /*Do update DB */ } else { $_SESSION['Items'.$identifier]->LineItems[$_GET['Delete']]->Quantity = $QuantityAlreadyDelivered; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2014-01-24 09:27:46 UTC (rev 6548) +++ trunk/doc/Change.log 2014-01-24 20:32:31 UTC (rev 6549) @@ -1,5 +1,6 @@ webERP Change Log +24/1/14 Andrew Galuski: Display serial items on GRN printouts 23/1/14 Phil: Fixed incompatible error traps on hyphens between new customers and new branches. Now both allow hyphens. Also prevented deletion of the last customer branch. Customer branches are now deleted when a customer is attempted to be deleted provided there are no dependent records. 19/01/14 Exson: Add sales man login control and modify the PDF to download to harmony with other files and solve backward failure problem in PrintCustStatements.php. 18/01/14 Paul T: Change property name value to uppercase to match use in the script. [causing input loss] Modified: trunk/includes/PDFGrnHeader.inc =================================================================== --- trunk/includes/PDFGrnHeader.inc 2014-01-24 09:27:46 UTC (rev 6548) +++ trunk/includes/PDFGrnHeader.inc 2014-01-24 20:32:31 UTC (rev 6549) @@ -27,7 +27,10 @@ /*set up the headings */ $LeftOvers = $pdf->addText($FormDesign->Headings->Column1->x,$Page_Height - $FormDesign->Headings->Column1->y, $FormDesign->Headings->Column1->FontSize, _('Item Number')); $LeftOvers = $pdf->addText($FormDesign->Headings->Column2->x,$Page_Height - $FormDesign->Headings->Column2->y, $FormDesign->Headings->Column2->FontSize, _('Description')); -$LeftOvers = $pdf->addText($FormDesign->Headings->Column3->x,$Page_Height - $FormDesign->Headings->Column3->y, $FormDesign->Headings->Column3->FontSize, _('Date Recd')); +/*resmart mods*/ +$LeftOvers = $pdf->addText($FormDesign->Headings->Column3->x,$Page_Height - $FormDesign->Headings->Column3->y, $FormDesign->Headings->Column3->FontSize, str_pad(_('Date Recd'),22,' ',STR_PAD_LEFT)); +//$LeftOvers = $pdf->addTextWrap($FormDesign->Headings->Column3->x,$Page_Height - $FormDesign->Headings->Column3->y, $FormDesign->Headings->Column4->Length, $FormDesign->Headings->Column3->FontSize, _('Date Recd'), 'right'); +/*resmart ends*/ $LeftOvers = $pdf->addTextWrap($FormDesign->Headings->Column4->x,$Page_Height - $FormDesign->Headings->Column4->y, $FormDesign->Headings->Column4->Length, $FormDesign->Headings->Column4->FontSize, _('Qty in Suppliers UOM'), 'right'); $LeftOvers = $pdf->addTextWrap($FormDesign->Headings->Column5->x,$Page_Height - $FormDesign->Headings->Column5->y, $FormDesign->Headings->Column5->Length, $FormDesign->Headings->Column5->FontSize, _('Qty in Stock UOM'), 'right'); Modified: trunk/sql/mysql/upgrade4.11.2-4.11.3.sql =================================================================== --- trunk/sql/mysql/upgrade4.11.2-4.11.3.sql 2014-01-24 09:27:46 UTC (rev 6548) +++ trunk/sql/mysql/upgrade4.11.2-4.11.3.sql 2014-01-24 20:32:31 UTC (rev 6549) @@ -1,7 +1,7 @@ ALTER table stockmoves CHANGE reference reference varchar(100) NOT NULL DEFAULT ''; -alter table stockcatproperties drop foreign key stockcatproperties_ibfk_2; -alter table stockcatproperties drop foreign key stockcatproperties_ibfk_3; -ALTER TABLE `emailsettings` CHANGE `username` `username` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL +alter table stockcatproperties drop foreign key stockcatproperties_ibfk_2; +alter table stockcatproperties drop foreign key stockcatproperties_ibfk_3; +ALTER TABLE `emailsettings` CHANGE `username` `username` VARCHAR( 50 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; CREATE TABLE IF NOT EXISTS `pricematrix` ( `salestype` char(2) NOT NULL DEFAULT '', `stockid` varchar(20) NOT NULL DEFAULT '', |