From: <tim...@us...> - 2010-01-12 13:44:15
|
Revision: 3294 http://web-erp.svn.sourceforge.net/web-erp/?rev=3294&view=rev Author: tim_schofield Date: 2010-01-12 13:44:08 +0000 (Tue, 12 Jan 2010) Log Message: ----------- New script to change a stock category code Modified Paths: -------------- trunk/doc/Change.log.html Added Paths: ----------- trunk/Z_ChangeStockCategory.php Added: trunk/Z_ChangeStockCategory.php =================================================================== --- trunk/Z_ChangeStockCategory.php (rev 0) +++ trunk/Z_ChangeStockCategory.php 2010-01-12 13:44:08 UTC (rev 3294) @@ -0,0 +1,101 @@ +<?php + +/* $Id$ */ +$PageSecurity = 15; +include ('includes/session.inc'); +$title = _('UTILITY PAGE Change A Stock Category'); +include ('includes/header.inc'); +include ('includes/SQL_CommonFunctions.inc'); + +if (isset($_POST['ProcessStockChange'])) { + $_POST['NewStockCategory'] = strtoupper($_POST['NewStockCategory']); + + /*First check the stock code exists */ + $result = DB_query("SELECT categoryid FROM stockcategory WHERE categoryid='" . $_POST['OldStockCategory'] . "'", $db); + + if (DB_num_rows($result) == 0) { + prnMsg(_('The stock Category') . ': ' . $_POST['OldStockCategory'] . ' ' . _('does not currently exist as a stock category in the system'), 'error'); + include ('includes/footer.inc'); + exit; + } + + if (ContainsIllegalCharacters($_POST['NewStockCategory'])) { + prnMsg(_('The new stock code to change the old code to contains illegal characters - no changes will be made'), 'error'); + include ('includes/footer.inc'); + exit; + } + + if ($_POST['NewStockCategory'] == '') { + prnMsg(_('The new stock code to change the old code to must be entered as well'), 'error'); + include ('includes/footer.inc'); + exit; + } + + /*Now check that the new code doesn't already exist */ + $result = DB_query("SELECT categoryid FROM stockcategory WHERE categoryid='" . $_POST['NewStockCategory'] . "'", $db); + + if (DB_num_rows($result) != 0) { + echo '<br><br>'; + prnMsg(_('The replacement stock category') . ': ' . $_POST['NewStockCategory'] . ' ' . _('already exists as a stock category in the system') . ' - ' . _('a unique stock category must be entered for the new stock category'), 'error'); + include ('includes/footer.inc'); + exit; + } + $result = DB_Txn_Begin($db); + echo '<br>' . _('Adding the new stock Category record'); + $sql = "INSERT INTO stockcategory (categoryid, + categorydescription, + stocktype, + stockact, + adjglact, + purchpricevaract, + materialuseagevarac, + wipact) + SELECT '" . $_POST['NewStockCategory'] . "', + categorydescription, + stocktype, + stockact, + adjglact, + purchpricevaract, + materialuseagevarac, + wipact + FROM stockcategory + WHERE categoryid='" . $_POST['OldStockCategory'] . "'"; + $DbgMsg = _('The SQL statement that failed was'); + $ErrMsg = _('The SQL to insert the new stock category record failed'); + $result = DB_query($sql, $db, $ErrMsg, $DbgMsg, true); + echo ' ... ' . _('completed'); + echo '<br>' . _('Changing stock properties'); + $sql = "UPDATE stockcatproperties SET categoryid='" . $_POST['NewStockCategory'] . "' WHERE categoryid='" . $_POST['OldStockCategory'] . "'"; + $ErrMsg = _('The SQL to update stock properties records failed'); + $result = DB_query($sql, $db, $ErrMsg, $DbgMsg, true); + echo ' ... ' . _('completed'); + echo '<br>' . _('Changing stock master records'); + $sql = "UPDATE stockmaster SET categoryid='" . $_POST['NewStockCategory'] . "' WHERE categoryid='" . $_POST['OldStockCategory'] . "'"; + $ErrMsg = _('The SQL to update stock master transaction records failed'); + $result = DB_query($sql, $db, $ErrMsg, $DbgMsg, true); + echo ' ... ' . _('completed'); + echo '<br>' . _('Changing sales analysis records'); + $sql = "UPDATE salesanalysis SET stkcategory='" . $_POST['NewStockID'] . "' WHERE stkcategory='" . $_POST['OldStockCategory'] . "'"; + $ErrMsg = _('The SQL to update Sales Analysis records failed'); + $result = DB_query($sql, $db, $ErrMsg, $DbgMsg, true); + echo ' ... ' . _('completed'); + $sql = 'SET FOREIGN_KEY_CHECKS=1'; + $result = DB_query($sql, $db, $ErrMsg, $DbgMsg, true); + $result = DB_Txn_Commit($db); + echo '<br>' . _('Deleting the old stock category record'); + $sql = "DELETE FROM stockcategory WHERE categoryid='" . $_POST['OldStockCategory'] . "'"; + $ErrMsg = _('The SQL to delete the old stock category record failed'); + $result = DB_query($sql, $db, $ErrMsg, $DbgMsg, true); + echo ' ... ' . _('completed'); + echo '<p>' . _('Stock Code') . ': ' . $_POST['OldStockCategory'] . ' ' . _('was successfully changed to') . ' : ' . $_POST['NewStockCategory']; +} +echo "<form action='" . $_SERVER['PHP_SELF'] . "?=" . $SID . "' method=post>"; +echo '<p><table> + <tr><td>' . _('Existing Inventory Category Code') . ":</td> + <td><input type=Text name='OldStockCategory' size=20 maxlength=20></td></tr>"; +echo '<tr><td>' . _('New Inventory Category Code') . ":</td><td><input type=Text name='NewStockCategory' size=20 maxlength=20></td></tr>"; +echo '</table>'; +echo "<div class='centre'><input type=submit name='ProcessStockChange' VALUE='" . _('Process') . "'></div>"; +echo '</form>'; +include ('includes/footer.inc'); +?> \ No newline at end of file Property changes on: trunk/Z_ChangeStockCategory.php ___________________________________________________________________ Added: svn:keywords + Id Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-12 11:02:25 UTC (rev 3293) +++ trunk/doc/Change.log.html 2010-01-12 13:44:08 UTC (rev 3294) @@ -1,5 +1,7 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p> +<p>12/01/10 Pak Ricard: Z_ChangeStockCategory.php - New script to change a stock category code</p> +<p>12/01/10 Chris Franks: PDFGrn.php - Show the date in the correct format</p> <p>12/01/10 Tim: Z_ChangeStockCode.php - Check thast mrpplannedorders table exists before trying to alter it</p> <p>10/01/10 Tim: StockTransfers.php - Correctly show stockid in links to ther functions.</p> <p>10/01/10 Bryan Nielsen: BOMs.php - syntax error includes() was used not include()</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lin...@us...> - 2010-01-13 09:39:36
|
Revision: 3295 http://web-erp.svn.sourceforge.net/web-erp/?rev=3295&view=rev Author: lindsayh Date: 2010-01-13 09:39:23 +0000 (Wed, 13 Jan 2010) Log Message: ----------- API changes: add method to return a string from an error code; shrank api_xml-rpc.php by using a function to create HTML doc string for each method. Corrected a couple of method descriptions. Modified Paths: -------------- trunk/api/api_login.php trunk/api/api_php.php trunk/api/api_session.inc trunk/api/api_xml-rpc.php trunk/doc/Change.log.html Modified: trunk/api/api_login.php =================================================================== --- trunk/api/api_login.php 2010-01-12 13:44:08 UTC (rev 3294) +++ trunk/api/api_login.php 2010-01-13 09:39:23 UTC (rev 3295) @@ -44,4 +44,30 @@ return $RetCode; } // ALSO NEED A userLogout FUNCTION + +/* + * Function to return an error message (hopefully in the user's language) + * from the supplied error codes. This is not really related to login/out, + * but since it does NOT require being logged in, this seems like a + * reasonable place to put it. + */ + +function GetAPIErrorMessages( $errcodes ) +{ + global $ErrorDescription; + $retmsg = array(); + + foreach ($errcodes as $errnum) { + $rm = array ($errnum ); + if (isset ($ErrorDescription[$errnum]) ) { + $rm[] = $ErrorDescription[$errnum]; + } else { + $rm[] = _('** Error Code Not Defined **'); + } + // Add this array to returned array. + $retmsg[] = $rm; + } + + return $retmsg; +} ?> \ No newline at end of file Modified: trunk/api/api_php.php =================================================================== --- trunk/api/api_php.php 2010-01-12 13:44:08 UTC (rev 3294) +++ trunk/api/api_php.php 2010-01-13 09:39:23 UTC (rev 3295) @@ -2,11 +2,9 @@ /* Include session.inc, to allow database connection, and access to miscfunctions, and datefunctions.*/ -// $DatabaseName='harlotte'; $AllowAnyone = true; $PathPrefix=dirname(__FILE__).'/../'; include('api_session.inc'); -// $_SESSION['db']=$db; include 'api_errorcodes.php'; /* Include SQL_CommonFunctions.inc, to use GetNextTransNo().*/ Modified: trunk/api/api_session.inc =================================================================== --- trunk/api/api_session.inc 2010-01-12 13:44:08 UTC (rev 3294) +++ trunk/api/api_session.inc 2010-01-13 09:39:23 UTC (rev 3295) @@ -101,16 +101,21 @@ if (!is_array($_SESSION['AllowedPageSecurityTokens']) AND !isset($AllowAnyone)) { +/* NO HTML output - but may need an XMLRPC style error message here. + Lindsay: 12Jan10 $title = _('Account Error Report'); include($PathPrefix . 'includes/header.inc'); echo '<br /><br /><br />'; prnMsg(_('Security settings have not been defined for your user account. Please advise your system administrator. It could also be that there is a session problem with your PHP web server'),'error'); include($PathPrefix . 'includes/footer.inc'); + */ exit; } if (!isset($AllowAnyone)){ if ((!in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PageSecurity))) { +/* NO HTML output - but need to return an appropriate error message + Lindsay: 12Jan10 $title = _('Security Permissions Problem'); include($PathPrefix . 'includes/header.inc'); echo '<tr> @@ -125,6 +130,7 @@ </td>'; include($PathPrefix . 'includes/footer.inc'); + */ exit; } } Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2010-01-12 13:44:08 UTC (rev 3294) +++ trunk/api/api_xml-rpc.php 2010-01-13 09:39:23 UTC (rev 3295) @@ -13,26 +13,15 @@ $Parameter[0]['name'] = _('Database Name'); $Parameter[0]['description'] = _('The name of the database to use for the transactions to come. '); $Parameter[1]['name'] = _('User name'); - $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); + $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an integer. '). _('Zero means the function was successful. '). _('Otherwise an error code is returned. '); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $Login_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $Login_doc = $doc; + $Login_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_Login($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(LoginAPI($xmlrpcmsg->getParam(0)->scalarval(), @@ -57,19 +46,8 @@ _('If the first element is zero then the function was successful. '). _('Otherwise an array of error codes is returned and no insertion takes place. '); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertCustomer_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertCustomer_doc = $doc; + $InsertCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertCustomer($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -93,19 +71,8 @@ _('If the first element is zero then the function was successful. '). _('Otherwise an array of error codes is returned and no insertion takes place. '); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertBranch_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertBranch_doc = $doc; + $InsertBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertBranch($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -130,20 +97,9 @@ _('If the first element is zero then the function was successful. '). _('Otherwise an array of error codes is returned and no insertion takes place. '); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $ModifyCustomer_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifyCustomer_doc = $doc; + $ModifyCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifyCustomer($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -168,20 +124,8 @@ _('If the first element is zero then the function was successful. '). _('Otherwise an array of error codes is returned and no insertion takes place. '); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; - $ModifyBranch_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifyBranch_doc = $doc; + $ModifyBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifyBranch($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -204,20 +148,9 @@ _('The key will be identical with field name from the custbranch table. All fields will be in the set regardless of whether the value was set.').'<p>'. _('Otherwise an array of error codes is returned. '); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetCustomerBranch_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetCustomerBranch_doc = $doc; + $GetCustomerBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCustomerBranch($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam(0)->scalarval(), @@ -239,46 +172,8 @@ _('The key will be identical with field name from the debtorsmaster table. All fields will be in the set regardless of whether the value was set.').'<p>'. _('Otherwise an array of error codes is returned. '); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; - - - unset($Parameter); - unset($ReturnValue); - $Description = _('This function is used to retrieve the details of a customer from the webERP database.'); - $Parameter[0]['name'] = _('Field name'); - $Parameter[0]['description'] = _('This is a string value. It must be a valid field in the debtorsmaster table. This is case sensitive'); - $Parameter[1]['name'] = _('Criteria'); - $Parameter[1]['description'] = _('This is a string value. It holds the string that is searched for in the given field. It will search for all or part of the field.'); - $Parameter[2]['name'] = _('User name'); - $Parameter[2]['description'] = _('A valid weberp username. This user should have security access to this data.'); - $Parameter[3]['name'] = _('User password'); - $Parameter[3]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('If successful this function returns an array of supplier ids. '). - _('Otherwise an array of error codes is returned. '); - - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetCustomer_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetCustomer_doc = $doc; + $GetCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCustomer($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam(0)->scalarval(), @@ -288,22 +183,23 @@ unset($Parameter); unset($ReturnValue); - unset($doc); - unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; + $Description = _('This function is used to retrieve the details of a customer from the webERP database.'); + $Parameter[0]['name'] = _('Field Name'); + $Parameter[0]['description'] = _('The name of a database field to search on. ') + ._('The field names can be found ').'<a href="../../Z_DescribeTable.php?table=debtorsmaster">'._('here ').'</a>' + ._('and are case sensitive. '); + $Parameter[1]['name'] = _('Search Criteria'); + $Parameter[1]['description'] = _('A (partial) string to match in the above Field Name.'); + $Parameter[2]['name'] = _('User name'); + $Parameter[2]['description'] = _('A valid weberp username. This user should have security access to this data.'); + $Parameter[3]['name'] = _('User password'); + $Parameter[3]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue[0] = _('This function returns an array of customer IDs, which may be integers or strings. '). + _('If the first element is zero then the function was successful. '). + _('Otherwise an array of error codes is returned and no insertion takes place. '); $SearchCustomers_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SearchCustomers_doc = $doc; + $SearchCustomers_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SearchCustomers($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam(0)->scalarval(), @@ -314,21 +210,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetCurrencyList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetCurrencyList_doc = $doc; + $GetCurrencyList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCurrencyList($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetCurrencyList($xmlrpcmsg->getParam(0)->scalarval(), @@ -337,21 +221,10 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; + $GetCurrencyDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetCurrencyDetails_doc = $doc; + $GetCurrencyDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCurrencyDetails($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam(0)->scalarval(), @@ -361,21 +234,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetSalesTypeList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetSalesTypeList_doc = $doc; + $GetSalesTypeList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesTypeList($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetSalesTypeList($xmlrpcmsg->getParam(0)->scalarval(), @@ -384,21 +245,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetSalesTypeDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetSalesTypeDetails_doc = $doc; + $GetSalesTypeDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesTypeDetails($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam(0)->scalarval(), @@ -408,21 +257,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertSalesType_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesType_doc = $doc; + $InsertSalesType_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesType($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -432,21 +269,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetHoldReasonList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetHoldReasonList_doc = $doc; + $GetHoldReasonList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetHoldReasonList($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetHoldReasonList($xmlrpcmsg->getParam(0)->scalarval(), @@ -455,21 +280,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetHoldReasonDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetHoldReasonDetails_doc = $doc; + $GetHoldReasonDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetHoldReasonDetails($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam(0)->scalarval(), @@ -479,21 +292,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetPaymentTermsList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetPaymentTermsList_doc = $doc; + $GetPaymentTermsList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetPaymentTermsList($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetPaymentTermsList($xmlrpcmsg->getParam(0)->scalarval(), @@ -502,21 +303,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetPaymentTermsDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetPaymentTermsDetails_doc = $doc; + $GetPaymentTermsDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetPaymentTermsDetails($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam(0)->scalarval(), @@ -526,21 +315,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertStockItem_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertStockItem_doc = $doc; + $InsertStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertStockItem($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -550,21 +327,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $ModifyStockItem_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifyStockItem_doc = $doc; + $ModifyStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifyStockItem($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -574,21 +339,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetStockItem_sig = array(array($xmlrpcStruct, $xmlrpcString)); - $GetStockItem_doc = $doc; + $GetStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockItem($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam(0)->scalarval(), @@ -597,21 +350,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $SearchStockItems_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SearchStockItems_doc = $doc; + $SearchStockItems_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SearchStockItems($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam(0)->scalarval(), @@ -622,7 +363,6 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); $Description='This function returns the stock balance for the given stockidn.'; $Parameter[0]['name'] = _('Stock ID'); @@ -632,19 +372,8 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of stock quantities by location for this stock item. '); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetStockBalance_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString),array($xmlrpcStruct, $xmlrpcString)); - $GetStockBalance_doc = $doc; + $GetStockBalance_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockBalance($xmlrpcmsg) { if ($xmlrpcmsg->getNumParams() == 3) @@ -659,7 +388,6 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); $Description='This function returns the reorder levels by location.'; $Parameter[0]['name'] = _('Stock ID'); @@ -669,19 +397,8 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of stock reorder levels by location for this stock item.'). - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetStockReorderLevel_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetStockReorderLevel = $doc; + $GetStockReorderLevel = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockReorderLevel($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam(0)->scalarval(), @@ -691,7 +408,6 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); $Description='This function sets the reorder level for the given stockid in the given location.'; $Parameter[0]['name'] = _('Stock ID'); @@ -705,19 +421,8 @@ $Parameter[4]['name'] = _('User password'); $Parameter[4]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns zero if the transaction was successful or an array of error codes if not. '); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $SetStockReorderLevel_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SetStockReorderLevel = $doc; + $SetStockReorderLevel = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SetStockReorderLevel($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam(0)->scalarval(), @@ -729,21 +434,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetAllocatedStock_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetAllocatedStock_doc = $doc; + $GetAllocatedStock_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetAllocatedStock($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam(0)->scalarval(), @@ -753,22 +446,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetOrderedStock_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetOrderedStock_doc = $doc; - + $GetOrderedStock_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetOrderedStock($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), @@ -777,21 +457,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $SetStockPrice_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SetStockPrice_doc = $doc; + $SetStockPrice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SetStockPrice($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam(0)->scalarval(), @@ -804,21 +472,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetStockPrice_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetStockPrice_doc = $doc; + $GetStockPrice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockPrice($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam(0)->scalarval(), @@ -830,21 +486,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertSalesInvoice_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesInvoice_doc = $doc; + $InsertSalesInvoice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesInvoice($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -854,21 +498,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertSalesCredit_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesCredit_doc = $doc; + $InsertSalesCredit_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesCredit($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertSalesCedit(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -878,7 +510,6 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); $Description = 'This function is used to start a new sales order.'; $Parameter[0]['name'] = _('Insert Sales Order Header'); @@ -892,19 +523,8 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('If successful this function returns a two element array; the first element is 0 for success or an error code, while the second element is the order number.'); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertSalesOrderHeader_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesOrderHeader_doc = $doc; + $InsertSalesOrderHeader_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesOrderHeader($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertSalesOrderHeader(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -914,7 +534,6 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); $Description = 'This function is used to modify the header details of a sales order'; $Parameter[0]['name'] = _('Modify Sales Order Header Details'); @@ -927,19 +546,8 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('If successful this function returns a single element array with the value 0; otherwise, it contains all error codes encountered during the update.'); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $ModifySalesOrderHeader_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifySalesOrderHeader_doc = $doc; + $ModifySalesOrderHeader_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifySalesOrderHeader($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(ModifySalesOrderHeader(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -949,7 +557,6 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); $Description = 'This function is used to add line items to a sales order.'; $Parameter[0]['name'] = _('Insert Sales Order Line'); @@ -963,19 +570,8 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array; the first element is 0 for success; otherwise the array contains a list of all errors encountered.'); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertSalesOrderLine_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesOrderLine_doc = $doc; + $InsertSalesOrderLine_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesOrderLine($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertSalesOrderLine(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -985,7 +581,6 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); $Description = 'This function is used to modify line items on a sales order.'; $Parameter[0]['name'] = _('Modify Sales Order Line'); @@ -999,19 +594,8 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array; the first element is 0 for success; otherwise the array contains a list of all errors encountered.'); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $ModifySalesOrderLine_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifySalesOrderLine_doc = $doc; + $ModifySalesOrderLine_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifySalesOrderLine($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(ModifySalesOrderLine(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -1021,21 +605,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertGLAccount_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertGLAccount_doc = $doc; + $InsertGLAccount_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertGLAccount($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertGLAccount(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -1045,21 +617,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertGLAccountSection_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertGLAccountSection_doc = $doc; + $InsertGLAccountSection_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertGLAccountSection($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertGLAccountSection(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -1069,21 +629,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertGLAccountGroup_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertGLAccountGroup_doc = $doc; + $InsertGLAccountGroup_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertGLAccountGroup($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertGLAccountGroup(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -1093,21 +641,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetLocationList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetLocationList_doc = $doc; + $GetLocationList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetLocationList($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetLocationList($xmlrpcmsg->getParam(0)->scalarval(), @@ -1116,21 +652,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetLocationDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetLocationDetails_doc = $doc; + $GetLocationDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetLocationDetails($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetLocationDetails($xmlrpcmsg->getParam(0)->scalarval(), @@ -1140,21 +664,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetShipperList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetShipperList_doc = $doc; + $GetShipperList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetShipperList($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetShipperList($xmlrpcmsg->getParam(0)->scalarval(), @@ -1163,21 +675,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetShipperDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetShipperDetails_doc = $doc; + $GetShipperDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetShipperDetails($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetShipperDetails($xmlrpcmsg->getParam(0)->scalarval(), @@ -1187,21 +687,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetSalesAreasList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetSalesAreasList_doc = $doc; + $GetSalesAreasList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesAreasList($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetSalesAreasList($xmlrpcmsg->getParam(0)->scalarval(), @@ -1210,21 +698,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetSalesAreaDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetSalesAreaDetails_doc = $doc; + $GetSalesAreaDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesAreaDetails($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetSalesAreaDetails($xmlrpcmsg->getParam(0)->scalarval(), @@ -1234,21 +710,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetSalesAreaDetailsFromName_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetSalesAreaDetailsFromName_doc = $doc; + $GetSalesAreaDetailsFromName_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesAreaDetailsFromName($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetSalesAreaDetailsFromName($xmlrpcmsg->getParam(0)->scalarval(), @@ -1258,21 +722,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertSalesArea_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesArea_doc = $doc; + $InsertSalesArea_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesArea($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertSalesArea(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -1282,21 +734,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetSalesmanList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetSalesmanList_doc = $doc; + $GetSalesmanList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesmanList($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetSalesmanList($xmlrpcmsg->getParam(0)->scalarval(), @@ -1305,21 +745,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetSalesmanDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetSalesmanDetails_doc = $doc; + $GetSalesmanDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesmanDetails($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetSalesmanDetails($xmlrpcmsg->getParam(0)->scalarval(), @@ -1329,21 +757,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetSalesmanDetailsFromName_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetSalesmanDetailsFromName_doc = $doc; + $GetSalesmanDetailsFromName_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesmanDetailsFromName($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetSalesmanDetailsFromName($xmlrpcmsg->getParam(0)->scalarval(), @@ -1353,21 +769,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $InsertSalesman_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesman_doc = $doc; + $InsertSalesman_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesman($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(InsertSalesman(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), @@ -1377,21 +781,9 @@ unset($Parameter); unset($ReturnValue); - unset($doc); unset($Description); - $doc = '<tr><td><b><u>'._('Description').'</u></b></td><td colspan=2>' .$Description.'</td></tr> - <tr><td valign="top"><b><u>'._('Parameters').'</u></b></td>'; - for ($i=0; $i<sizeof($Parameter); $i++) { - $doc .= '<tr><td valign="top">'.$Parameter[$i]['name'].'</td><td>'. - $Parameter[$i]['description'].'</td></tr>'; - } - $doc .= '<tr><td valign="top"><b><u>'._('Return Value'); - for ($i=0; $i<sizeof($ReturnValue); $i++) { - $doc .= '<td valign="top">'.$ReturnValue[$i].'</td></tr>'; - } - $doc .= '</table>'; $GetTaxgroupList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetTaxgroupList_doc = $doc; + $GetTaxgroupList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetTaxgroupList($xmlrpcmsg) { return new xmlrpcresp(php_xmlrpc_encode(GetTaxgroupList($xmlrpcmsg->getParam(0)->scalarval(), @@ -1400,21 +792,9 @@ unset($Parameter); unset($ReturnValue); ... [truncated message content] |
From: <lin...@us...> - 2010-01-13 11:11:48
|
Revision: 3296 http://web-erp.svn.sourceforge.net/web-erp/?rev=3296&view=rev Author: lindsayh Date: 2010-01-13 11:11:39 +0000 (Wed, 13 Jan 2010) Log Message: ----------- Added logout method to API to destroy session and erase storage. Modified Paths: -------------- trunk/api/api_login.php trunk/api/api_xml-rpc.php trunk/doc/Change.log.html Modified: trunk/api/api_login.php =================================================================== --- trunk/api/api_login.php 2010-01-13 09:39:23 UTC (rev 3295) +++ trunk/api/api_login.php 2010-01-13 11:11:39 UTC (rev 3296) @@ -19,9 +19,9 @@ include('../includes/ConnectDB.inc'); // Need to ensure we have a connection. if (!isset($db)) { - $RetCode[0] = NoAuthorisation; - $RetCode[1] = UL_CONFIGERR; - return $RetCode; + $RetCode[0] = NoAuthorisation; + $RetCode[1] = UL_CONFIGERR; + return $RetCode; } $_SESSION['db'] = $db; // Set in above include } @@ -43,8 +43,25 @@ } return $RetCode; } -// ALSO NEED A userLogout FUNCTION + +// Logout function destroys the session data, and that's about it. + +function LogoutAPI() { + + // Is this user logged in? + if (isset ($_SESSION['db']) ) { + // Cleanup is about all there is to do. + session_unset(); + session_destroy(); + $RetCode = 0; + } else { + $RetCode = NoAuthorisation; + } + + return $RetCode; +} + /* * Function to return an error message (hopefully in the user's language) * from the supplied error codes. This is not really related to login/out, Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2010-01-13 09:39:23 UTC (rev 3295) +++ trunk/api/api_xml-rpc.php 2010-01-13 11:11:39 UTC (rev 3296) @@ -31,6 +31,20 @@ unset($Parameter); unset($ReturnValue); + $Description = _('This function is used to logout from the API methods.'); + $ReturnValue[0] = _('This function returns an integer. '). + _('Zero means the function was successful. '). + _('Otherwise an error code is returned. '); + + $Logout_sig = array(array($xmlrpcStruct)); + $Logout_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); + + function xmlrpc_Logout($xmlrpcmsg) { + return new xmlrpcresp(php_xmlrpc_encode(LogoutAPI())); + } + + unset($Parameter); + unset($ReturnValue); $Description = _('This function is used to insert a new customer into the webERP database.'); $Parameter[0]['name'] = _('Customer Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -1369,6 +1383,10 @@ "function" => "xmlrpc_Login", "signature" => $Login_sig, "docstring" => $Login_doc), + "weberp.xmlrpc_Logout" => array( + "function" => "xmlrpc_Logout", + "signature" => $Logout_sig, + "docstring" => $Logout_doc), "weberp.xmlrpc_InsertCustomer" => array( "function" => "xmlrpc_InsertCustomer", "signature" => $InsertCustomer_sig, Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-13 09:39:23 UTC (rev 3295) +++ trunk/doc/Change.log.html 2010-01-13 11:11:39 UTC (rev 3296) @@ -1,6 +1,7 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p> -<p>12/01/13 Lindsay: API changes: added method to turn error number to string; clean up api_xml-rpc.php and corrected some method descriptions.<p> +<p>13/01/10 Lindsay: api_login.php, api_xml-rpc.php: Added logout method to API.<p> +<p>13/01/10 Lindsay: API changes: added method to turn error number to string; clean up api_xml-rpc.php and corrected some method descriptions.<p> <p>12/01/10 Pak Ricard: Z_ChangeStockCategory.php - New script to change a stock category code</p> <p>12/01/10 Chris Franks: PDFGrn.php - Show the date in the correct format</p> <p>12/01/10 Tim: Z_ChangeStockCode.php - Check thast mrpplannedorders table exists before trying to alter it</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-13 12:54:45
|
Revision: 3297 http://web-erp.svn.sourceforge.net/web-erp/?rev=3297&view=rev Author: tim_schofield Date: 2010-01-13 12:54:37 +0000 (Wed, 13 Jan 2010) Log Message: ----------- Show the mailto links correctly by decoding the hml entities Modified Paths: -------------- trunk/PO_Header.php trunk/doc/Change.log.html Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2010-01-13 11:11:39 UTC (rev 3296) +++ trunk/PO_Header.php 2010-01-13 12:54:37 UTC (rev 3297) @@ -52,8 +52,8 @@ /*If the page is called is called without an identifier being set then * it must be either a new order, or the start of a modification of an * order, and so we must create a new identifier. - * - * The identifier only needs to be unique for this php session, so a + * + * The identifier only needs to be unique for this php session, so a * unix timestamp will be sufficient. */ @@ -64,7 +64,7 @@ } /*Page is called with NewOrder=Yes when a new order is to be entered - * the session variable that holds all the PO data $_SESSION['PO'][$identifier] + * the session variable that holds all the PO data $_SESSION['PO'][$identifier] * is unset to allow all new details to be created */ if (isset($_GET['NewOrder']) and isset($_SESSION['PO'.$identifier])){ @@ -73,22 +73,22 @@ } if (isset($_POST['Select']) and empty($_POST['SupplierContact'])) { - $sql = "SELECT contact - FROM suppliercontacts + $sql = "SELECT contact + FROM suppliercontacts WHERE supplierid='". $_POST['Select'] ."'"; $SuppCoResult = DB_query($sql,$db); if (DB_num_rows($SuppCoResult)>0) { $myrow = DB_fetch_row($SuppCoResult); $_POST['SupplierContact'] = $myrow[0]; - } else { + } else { $_POST['SupplierContact']=''; } } -if (isset($_POST['UpdateStat']) AND $_POST['UpdateStat']!='') { +if (isset($_POST['UpdateStat']) AND $_POST['UpdateStat']!='') { /*The cancel button on the header screen - to delete order */ - $OK_to_updstat = 1; + $OK_to_updstat = 1; $OldStatus=$_SESSION['PO'.$identifier]->Stat; $NewStatus=$_POST['Stat']; $emailsql='SELECT email FROM www_users WHERE userid="'.$_SESSION['PO'.$identifier]->Initiator.'"'; @@ -97,8 +97,8 @@ $date = date($_SESSION['DefaultDateFormat']); if ($OldStatus!=$NewStatus) { /* assume this in the first instance */ - $authsql='SELECT authlevel - FROM purchorderauth + $authsql='SELECT authlevel + FROM purchorderauth WHERE userid="'.$_SESSION['UserID'].'" AND currabrev="'.$_SESSION['PO'.$identifier]->CurrCode.'"'; @@ -264,7 +264,7 @@ $_SESSION['PO'.$identifier]->contact = $_POST['Contact']; $_SESSION['PO'.$identifier]->tel = $_POST['tel']; $_SESSION['PO'.$identifier]->port = $_POST['port']; - + if (isset($_POST['RePrint']) and $_POST['RePrint']==1){ $_SESSION['PO'.$identifier]->AllowPrintPO=1; @@ -276,6 +276,8 @@ $ErrMsg = _('An error occurred updating the purchase order to allow reprints') . '. ' . _('The error says'); $updateResult = DB_query($sql,$db,$ErrMsg); + } else { + $_POST['RePrint'] = 0; } echo "<meta http-equiv='Refresh' content='0; url=" . $rootpath . '/PO_Items.php?' . SID . 'identifier='.$identifier. "'>"; @@ -290,19 +292,19 @@ echo '<a href="'. $rootpath . '/PO_SelectOSPurchOrder.php?' . SID . "identifier=".$identifier.'">'. _('Back to Purchase Orders'). '</a><br>'; /*The page can be called with ModifyOrderNumber=x where x is a purchase - * order number. The page then looks up the details of order x and allows + * order number. The page then looks up the details of order x and allows * these details to be modified */ if (isset($_GET['ModifyOrderNumber'])){ include ('includes/PO_ReadInOrder.inc'); } -if (isset($_POST['CancelOrder']) AND $_POST['CancelOrder']!='') { +if (isset($_POST['CancelOrder']) AND $_POST['CancelOrder']!='') { /*The cancel button on the header screen - to delete order */ $OK_to_delete = 1; //assume this in the first instance - if(!isset($_SESSION['ExistingOrder']) OR $_SESSION['ExistingOrder']!=0) { - /* need to check that not already dispatched or invoiced + if(!isset($_SESSION['ExistingOrder']) OR $_SESSION['ExistingOrder']!=0) { + /* need to check that not already dispatched or invoiced * by the supplier */ if($_SESSION['PO'.$identifier]->Any_Already_Received()==1){ @@ -327,18 +329,18 @@ $_SESSION['RequireSupplierSelection'] = 1; if($_SESSION['ExistingOrder']!=0){ - - $sql = 'UPDATE purchorderdetails + + $sql = 'UPDATE purchorderdetails SET completed=1 WHERE purchorderdetails.orderno =' . $_SESSION['ExistingOrder']; $ErrMsg = _('The order detail lines could not be deleted because'); $DelResult=DB_query($sql,$db,$ErrMsg); - $sql="UPDATE purchorders + $sql="UPDATE purchorders SET status='".PurchOrder::STATUS_CANCELLED."', stat_comment='".$StatusComment."' WHERE orderno=".$_SESSION['ExistingOrder']; - + $ErrMsg = _('The order header could not be deleted because'); $DelResult=DB_query($sql,$db,$ErrMsg); prnMsg( _('Order number').' '.$_SESSION['ExistingOrder'].' '._('has been cancelled'), 'success'); @@ -353,13 +355,13 @@ } if (!isset($_SESSION['PO'.$identifier])){ - /* It must be a new order being created + /* It must be a new order being created * $_SESSION['PO'.$identifier] would be set up from the order modification * code above if a modification to an existing order. Also * $ExistingOrder would be set to 1. The delivery check screen - * is where the details of the order are either updated or + * is where the details of the order are either updated or * inserted depending on the value of ExistingOrder */ - + $_SESSION['ExistingOrder']=0; $_SESSION['PO'.$identifier] = new PurchOrder; $_SESSION['PO'.$identifier]->AllowPrintPO = 1; /*Of course cos the order aint even started !!*/ @@ -367,21 +369,21 @@ if ($_SESSION['PO'.$identifier]->SupplierID=='' OR !isset($_SESSION['PO'.$identifier]->SupplierID)){ -/* a session variable will have to maintain if a supplier - * has been selected for the order or not the session - * variable supplierID holds the supplier code already +/* a session variable will have to maintain if a supplier + * has been selected for the order or not the session + * variable supplierID holds the supplier code already * as determined from user id /password entry */ $_SESSION['RequireSupplierSelection'] = 1; } else { $_SESSION['RequireSupplierSelection'] = 0; } - + } if (isset($_POST['ChangeSupplier'])) { -/* change supplier only allowed with appropriate permissions - - * button only displayed to modify is AccessLevel >10 +/* change supplier only allowed with appropriate permissions - + * button only displayed to modify is AccessLevel >10 * (see below)*/ if ($_SESSION['PO'.$identifier]->Stat == PurchOrder::STATUS_PENDING and $_SESSION['UserID']==$_SESSION['PO'.$identifier]->Initiator) { if ($_SESSION['PO'.$identifier]->Any_Already_Received()==0){ @@ -421,30 +423,30 @@ $i=strpos($_POST['Keywords'],' ',$i) +1; } $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - $SQL = "SELECT suppliers.supplierid, - suppliers.suppname, - suppliers.address1, - suppliers.address2, - suppliers.address3, + $SQL = "SELECT suppliers.supplierid, + suppliers.suppname, + suppliers.address1, + suppliers.address2, + suppliers.address3, suppliers.address4, - suppliers.address5, - suppliers.address6, + suppliers.address5, + suppliers.address6, suppliers.currcode - FROM suppliers + FROM suppliers WHERE suppliers.suppname " . LIKE . " '$SearchString' ORDER BY suppliers.suppname"; } elseif (strlen($_POST['SuppCode'])>0){ - $SQL = "SELECT suppliers.supplierid, + $SQL = "SELECT suppliers.supplierid, suppliers.suppname, - suppliers.address1, - suppliers.address2, - suppliers.address3, + suppliers.address1, + suppliers.address2, + suppliers.address3, suppliers.address4, - suppliers.address5, - suppliers.address6, - suppliers.currcode - FROM suppliers + suppliers.address5, + suppliers.address6, + suppliers.currcode + FROM suppliers WHERE suppliers.supplierid " . LIKE . " '%" . $_POST['SuppCode'] . "%' ORDER BY suppliers.supplierid"; } @@ -463,8 +465,8 @@ } /*end of if search for supplier codes/names */ -// added by Hudson -if((!isset($_POST['SearchSuppliers']) or $_POST['SearchSuppliers']=='' ) AND +// added by Hudson +if((!isset($_POST['SearchSuppliers']) or $_POST['SearchSuppliers']=='' ) AND (isset($_SESSION['PO'.$identifier]->SupplierID) AND $_SESSION['PO'.$identifier]->SupplierID!='')){ /*The session variables are set but the form variables have been lost @@ -491,33 +493,33 @@ if (isset($_POST['Select'])) { -/* will only be true if page called from supplier selection form - * or set because only one supplier record returned from a search +/* will only be true if page called from supplier selection form + * or set because only one supplier record returned from a search * so parse the $Select string into supplier code and branch code */ $sql='SELECT currcode FROM suppliers where supplierid="'.$_POST['Select'].'"'; $result=DB_query($sql,$db); $myrow=DB_fetch_array($result); $SupplierCurrCode=$myrow['currcode']; - - $authsql='SELECT cancreate - FROM purchorderauth + + $authsql='SELECT cancreate + FROM purchorderauth WHERE userid="'.$_SESSION['UserID'].'" AND currabrev="'.$SupplierCurrCode.'"'; $authresult=DB_query($authsql,$db); - + $sql = "SELECT suppliers.suppname, suppliers.currcode, currencies.rate, suppliers.paymentterms, - suppliers.address1, - suppliers.address2, - suppliers.address3, - suppliers.address4, - suppliers.address5, + suppliers.address1, + suppliers.address2, + suppliers.address3, + suppliers.address4, + suppliers.address5, suppliers.address6, suppliers.phn, - suppliers.port + suppliers.port FROM suppliers INNER JOIN currencies ON suppliers.currcode=currencies.currabrev WHERE supplierid='" . $_POST['Select'] . "'"; @@ -565,7 +567,7 @@ include('includes/footer.inc'); exit; } - + // end of added for suppliers lookup fields } else { @@ -573,14 +575,14 @@ $sql = "SELECT suppliers.suppname, suppliers.currcode, suppliers.paymentterms, - suppliers.address1, - suppliers.address2, - suppliers.address3, - suppliers.address4, - suppliers.address5, + suppliers.address1, + suppliers.address2, + suppliers.address3, + suppliers.address4, + suppliers.address5, suppliers.address6, suppliers.phn, - suppliers.port + suppliers.port FROM suppliers INNER JOIN currencies ON suppliers.currcode=currencies.currabrev WHERE supplierid='" . $_POST['Select'] . "'"; @@ -592,8 +594,8 @@ $myrow = DB_fetch_row($result); - + // added for suppliers lookup fields if (!isset($_SESSION['PO'.$identifier])) { $_POST['SupplierName'] = $myrow[0]; @@ -629,7 +631,7 @@ // MADE THE SUPPILERS BECOME SELECT MENU NOT BY SEARCHING By Hudson @2008/6/30 // part of step 1 -if ($_SESSION['RequireSupplierSelection'] ==1 OR !isset($_SESSION['PO'.$identifier]->SupplierID) OR +if ($_SESSION['RequireSupplierSelection'] ==1 OR !isset($_SESSION['PO'.$identifier]->SupplierID) OR $_SESSION['PO'.$identifier]->SupplierID=='' ) { //if (true) { echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . @@ -652,7 +654,7 @@ <input type=submit action=reset value='" . _('Reset') . "'></div>"; echo '<script type="text/javascript">defaultControl(document.forms[0].Keywords);</script>'; - + // UPDATED BY HUDSON 30/6/2008 if (isset($result_SuppSelect)) { @@ -683,7 +685,7 @@ echo "<td><input type='submit' style='width:100%' name='Select' value='".$myrow['supplierid']."' ></td> <td>".$myrow['suppname']."</td><td>"; - + for ($i=1; $i<=6; $i++) { if ($myrow['address'.$i] != '') { echo $myrow['address'.$i].'<br>'; @@ -708,7 +710,7 @@ // Be careful not made confused by orderno and realorderno // $orderno = previous_id("purchorders","orderno"); -// $_SESSION['PO'.$identifier]->OrderNo2 = $orderno; +// $_SESSION['PO'.$identifier]->OrderNo2 = $orderno; echo '<p class="page_title_text"> <img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Purchase Order') . '" alt=""> ' . $_SESSION['PO'.$identifier]->SupplierName . ' - ' . _('All amounts stated in') . ' @@ -719,11 +721,11 @@ echo '</p>'; } - + /* 2008-08-19 ToPu -- debugging purpose */ if (isset($purch_item)) { prnMsg(_('Purchase Item(s) with this code') . ': ' . $purch_item,'info'); - + /** * 2008-08-21 ToPu * Now go ahead to PO_Items.php @@ -734,18 +736,18 @@ echo '<br><table class="table_index"><tr><td class="menu_group_item">'; /* the link */ - echo '<li><a href="'.$rootpath.'/PO_Items.php?' . SID . 'NewItem=' . $purch_item . "&identifier=".$identifier. '">' . + echo '<li><a href="'.$rootpath.'/PO_Items.php?' . SID . 'NewItem=' . $purch_item . "&identifier=".$identifier. '">' . _('Enter Line Item to this purchase order') . '</a></li>'; /**/ echo "</td></tr></table></div><br>"; - + if (isset($_GET['Quantity'])) { $Qty=$_GET['Quantity']; } else { $Qty=1; } - $sql='SELECT + $sql='SELECT controlled, serialised, description, @@ -756,7 +758,7 @@ $result=DB_query($sql, $db); $stockmasterrow=DB_fetch_array($result); - $sql='SELECT + $sql='SELECT price, suppliersuom, suppliers_partno @@ -766,7 +768,7 @@ $result=DB_query($sql, $db); $purchdatarow=DB_fetch_array($result); - $sql='SELECT + $sql='SELECT stockact FROM stockcategory LEFT JOIN stockmaster ON stockmaster.categoryid=stockcategory.categoryid @@ -805,12 +807,12 @@ $Qty*$purchdatarow['price']); echo "<meta http-equiv='Refresh' content='0; url=" . $rootpath . '/PO_Items.php?' . SID . 'identifier='.$identifier. "'>"; } - + /*Set up form for entry of order header stuff */ - if (!isset($_POST['LookupDeliveryAddress']) and (!isset($_POST['StkLocation']) or $_POST['StkLocation']) + if (!isset($_POST['LookupDeliveryAddress']) and (!isset($_POST['StkLocation']) or $_POST['StkLocation']) AND (isset($_SESSION['PO'.$identifier]->Location) AND $_SESSION['PO'.$identifier]->Location != '')) { - /* The session variables are set but the form variables have + /* The session variables are set but the form variables have * been lost -- * need to restore the form variables from the session */ $_POST['StkLocation']=$_SESSION['PO'.$identifier]->Location; @@ -834,15 +836,15 @@ // move apart by Hudson echo '<br><table border=1 colspan=1 width=80%> - <tr> + <tr> <td><font color=blue size=4><b>' . _('Order Initiation Details') . '</b></font></td> - + <td><font color=blue size=4><b>' . _('Order Status') . '</b></font></td> </tr> <tr><td style="width:50%">'; echo '<table>'; echo '<tr><td>' . _('PO Date') . ':</td><td>'; - if ($_SESSION['ExistingOrder']!=0){ + if ($_SESSION['ExistingOrder']!=0){ echo ConvertSQLDate($_SESSION['PO'.$identifier]->Orig_OrderDate); } else { /* DefaultDateFormat defined in config.php */ @@ -851,20 +853,20 @@ echo '</td></tr>'; $date = date($_SESSION['DefaultDateFormat']); - + if (isset($_GET['ModifyOrderNumber']) && $_GET['ModifyOrderNumber'] != '') { $_SESSION['PO'.$identifier]->version += 1; - $_POST['version'] = $_SESSION['PO'.$identifier]->version; + $_POST['version'] = $_SESSION['PO'.$identifier]->version; } elseif (isset($_SESSION['PO'.$identifier]->version) and $_SESSION['PO'.$identifier]->version != '') { - $_POST['version'] = $_SESSION['PO'.$identifier]->version; + $_POST['version'] = $_SESSION['PO'.$identifier]->version; } else { $_POST['version']='1'; } - + if (!isset($_POST['deliverydate'])) { $_POST['deliverydate']= date($_SESSION['DefaultDateFormat']); } - + echo '<tr><td>' . _('Version'). ' #' . ":</td><td><input type='hidden' name='version' size=16 maxlength=15 value='" . $_POST['version'] . "'>".$_POST['version']."</td></tr>"; echo '<tr><td>' . _('Revised') . ":</td><td><input type='hidden' name='revised' size=11 maxlength=15 value=" . @@ -879,7 +881,7 @@ } echo '<tr><td>' . _('Initiated By') . ":</td> - <td><input type='hidden' name='Initiator' size=11 maxlength=10 value=" . + <td><input type='hidden' name='Initiator' size=11 maxlength=10 value=" . $_POST['Initiator'] . ">".$_POST['Initiator']."</td></tr>"; echo '<tr><td>' . _('Requisition Ref') . ":</td><td><input type='text' name='Requisition' size=16 maxlength=15 value=" . $_POST['Requisition'] . '></td></tr>'; @@ -897,23 +899,23 @@ $Printed = False; echo _('Not yet printed'); } - + if (isset($_POST['AllowRePrint'])) { $sql='UPDATE purchorders SET allowprint=1 WHERE orderno='.$_SESSION['PO'.$identifier]->OrderNo; $result=DB_query($sql, $db); } - if ($_SESSION['PO'.$identifier]->AllowPrintPO==0 AND $_POST['RePrint']!=1){ + if ($_SESSION['PO'.$identifier]->AllowPrintPO==0 AND empty($_POST['RePrint'])){ echo '<tr><td>' . _('Allow Reprint') . ":</td><td><select name='RePrint' onChange='ReloadForm(form1.AllowRePrint)'><option selected value=0>" . _('No') . "<option value=1>" . _('Yes') . '</select></td>'; echo '<td><input type=submit name="AllowRePrint" value="Update"></td></tr>'; } elseif ($Printed) { - echo "<tr><td colspan=2><a target='_blank' href='$rootpath/PO_PDFPurchOrder.php?" . + echo "<tr><td colspan=2><a target='_blank' href='$rootpath/PO_PDFPurchOrder.php?" . SID . "OrderNo=" . $_SESSION['ExistingOrder'] . "&identifier=".$identifier. "'>" . _('Reprint Now') . '</a></td></tr>'; } echo '</table>'; - + echo '<td style="width:50%"><table>'; if($_SESSION['ExistingOrder'] != 0 and $_SESSION['PO'.$identifier]->Stat == PurchOrder::STATUS_PRINTED){ echo '<tr><td><a href="' .$rootpath . "/GoodsReceived.php?" . SID . "&PONumber=" . @@ -964,7 +966,7 @@ echo '</select></td></tr>'; echo '<tr><td>' . _('Status Comment'); - echo ":</td><td><input type=text name='StatComments' size=50></td></tr><tr><td colspan=2><b>" . $_SESSION['PO'.$identifier]->StatComments .'</b></td></tr>'; + echo ":</td><td><input type=text name='StatComments' size=50></td></tr><tr><td colspan=2><b>" . html_entity_decode($_SESSION['PO'.$identifier]->StatComments) .'</b></td></tr>'; echo "<input type=hidden name='statcommentscomplete' value='".$_SESSION['PO'.$identifier]->StatComments."'>"; echo '<tr><td><input type="submit" name=UpdateStat value="' . _("Status Update") .'"></td>'; @@ -986,12 +988,12 @@ <td><select name=StkLocation onChange="ReloadForm(form1.LookupDeliveryAddress)">'; $sql = 'SELECT loccode, - locationname + locationname FROM locations'; $LocnResult = DB_query($sql,$db); while ($LocnRow=DB_fetch_array($LocnResult)){ - if (isset($_POST['StkLocation']) and ($_POST['StkLocation'] == $LocnRow['loccode'] OR + if (isset($_POST['StkLocation']) and ($_POST['StkLocation'] == $LocnRow['loccode'] OR ($_POST['StkLocation']=='' AND $LocnRow['loccode']==$_SESSION['UserStockLocation']))){ echo "<option selected value='" . $LocnRow['loccode'] . "'>" . $LocnRow['locationname']; } else { @@ -999,26 +1001,26 @@ } } - echo '</select> + echo '</select> <input type="submit" name="LookupDeliveryAddress" value="' ._('Select') . '"></td> </tr>'; -/* If this is the first time +/* If this is the first time * the form loaded set up defaults */ - if (!isset($_POST['StkLocation']) OR $_POST['StkLocation']==''){ + if (!isset($_POST['StkLocation']) OR $_POST['StkLocation']==''){ $_POST['StkLocation'] = $_SESSION['UserStockLocation']; - $sql = "SELECT deladd1, - deladd2, - deladd3, - deladd4, - deladd5, - deladd6, + $sql = "SELECT deladd1, + deladd2, + deladd3, + deladd4, + deladd5, + deladd6, tel, contact - FROM locations + FROM locations WHERE loccode='" . $_POST['StkLocation'] . "'"; $LocnAddrResult = DB_query($sql,$db); @@ -1044,7 +1046,7 @@ $_SESSION['PO'.$identifier]->tel = $_POST['tel']; $_SESSION['PO'.$identifier]->contact = $_POST['Contact']; - } else { + } else { /*The default location of the user is crook */ prnMsg(_('The default stock location set up for this user is not a currently defined stock location') . '. ' . _('Your system administrator needs to amend your user record'),'error'); @@ -1058,7 +1060,7 @@ deladd3, deladd4, deladd5, - deladd6, + deladd6, tel, contact FROM locations @@ -1084,7 +1086,7 @@ $_SESSION['PO'.$identifier]->DelAdd5 = $_POST['DelAdd5']; $_SESSION['PO'.$identifier]->DelAdd6 = $_POST['DelAdd6']; $_SESSION['PO'.$identifier]->tel = $_POST['tel']; - $_SESSION['PO'.$identifier]->contact = $_POST['Contact']; + $_SESSION['PO'.$identifier]->contact = $_POST['Contact']; } } @@ -1127,10 +1129,10 @@ } } - echo '</select></tr></table>'; + echo '</select></tr></table>'; /* end of sub table */ - echo '</td><td>'; /*sub table nested */ + echo '</td><td>'; /*sub table nested */ echo '<table><tr><td>' . _('Supplier Selection') . ':</td><td> <select name=Keywords onChange="ReloadForm(form1.SearchSuppliers)">'; @@ -1158,7 +1160,7 @@ $SuppCoResult = DB_query($sql,$db); while ( $SuppCoRow=DB_fetch_array($SuppCoResult)){ - if ($_POST['SupplierContact'] == $SuppCoRow['contact'] OR ($_POST['SupplierContact']=='' + if ($_POST['SupplierContact'] == $SuppCoRow['contact'] OR ($_POST['SupplierContact']=='' AND $SuppCoRow['contact']==$_SESSION['PO'.$identifier]->SupplierContact)){ //if (1) { echo "<option selected value='" . $SuppCoRow['contact'] . "'>" . $SuppCoRow['contact']; @@ -1202,7 +1204,7 @@ } DB_data_seek($result, 0); echo '</select></td></tr>'; - + $result=DB_query("SELECT loccode, locationname FROM locations WHERE loccode='" . $_SESSION['PO'.$identifier]->port."'", $db); $myrow = DB_fetch_array($result); $_POST['port'] = $myrow['locationname']; @@ -1230,7 +1232,7 @@ echo ":</th></tr><tr><td colspan=4><textarea name='Comments' style='width:100%' rows=5>" . $_POST['Comments'] . '</textarea>'; echo '</table>'; - + echo '</td></tr></table><br>'; /* end of main table */ // discard change supplier submit buttom // kept enter line item but remove Delete button by Hudson 11/16,and added status field Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-13 11:11:39 UTC (rev 3296) +++ trunk/doc/Change.log.html 2010-01-13 12:54:37 UTC (rev 3297) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> -<p> +<p></p> +<p>13/01/10 Tim: PO_Header.php: Show the mailto links correctly by decoding the hml entities<p> <p>13/01/10 Lindsay: api_login.php, api_xml-rpc.php: Added logout method to API.<p> <p>13/01/10 Lindsay: API changes: added method to turn error number to string; clean up api_xml-rpc.php and corrected some method descriptions.<p> <p>12/01/10 Pak Ricard: Z_ChangeStockCategory.php - New script to change a stock category code</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-13 14:16:29
|
Revision: 3298 http://web-erp.svn.sourceforge.net/web-erp/?rev=3298&view=rev Author: tim_schofield Date: 2010-01-13 14:16:22 +0000 (Wed, 13 Jan 2010) Log Message: ----------- Use output buffering to hide html error messages so that the api can handle errors in a graceful way Modified Paths: -------------- trunk/api/api_xml-rpc.php trunk/doc/Change.log.html Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2010-01-13 12:54:37 UTC (rev 3297) +++ trunk/api/api_xml-rpc.php 2010-01-13 14:16:22 UTC (rev 3298) @@ -1,5 +1,12 @@ <?php + function ob_file_callback($buffer) { + /* Empty handler function for unwanted output. + * Must be a better way of doing this, but at + * least it works */ + } + ob_start('ob_file_callback'); + include 'api_php.php'; include '../xmlrpc/lib/xmlrpc.inc'; @@ -24,6 +31,7 @@ $Login_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_Login($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(LoginAPI($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -40,6 +48,7 @@ $Logout_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_Logout($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(LogoutAPI())); } @@ -64,6 +73,7 @@ $InsertCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertCustomer($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -89,6 +99,7 @@ $InsertBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertBranch($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -116,6 +127,7 @@ $ModifyCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifyCustomer($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -142,6 +154,7 @@ $ModifyBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifyBranch($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -167,6 +180,7 @@ $GetCustomerBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCustomerBranch($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -190,6 +204,7 @@ $GetCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCustomer($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -216,6 +231,7 @@ $SearchCustomers_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SearchCustomers($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -229,6 +245,7 @@ $GetCurrencyList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCurrencyList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetCurrencyList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -241,6 +258,7 @@ $GetCurrencyDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCurrencyDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -253,6 +271,7 @@ $GetSalesTypeList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesTypeList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetSalesTypeList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -264,6 +283,7 @@ $GetSalesTypeDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesTypeDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -276,6 +296,7 @@ $InsertSalesType_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesType($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -288,6 +309,7 @@ $GetHoldReasonList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetHoldReasonList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetHoldReasonList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -299,6 +321,7 @@ $GetHoldReasonDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetHoldReasonDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -311,6 +334,7 @@ $GetPaymentTermsList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetPaymentTermsList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetPaymentTermsList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -322,6 +346,7 @@ $GetPaymentTermsDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetPaymentTermsDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -334,6 +359,7 @@ $InsertStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertStockItem($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -346,6 +372,7 @@ $ModifyStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifyStockItem($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -358,6 +385,7 @@ $GetStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockItem($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam(0)->scalarval(), '', ''))); } @@ -369,6 +397,7 @@ $SearchStockItems_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SearchStockItems($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -390,6 +419,7 @@ $GetStockBalance_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockBalance($xmlrpcmsg) { + ob_end_flush(); if ($xmlrpcmsg->getNumParams() == 3) { return new xmlrpcresp(php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam(0)->scalarval(), @@ -415,6 +445,7 @@ $GetStockReorderLevel = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockReorderLevel($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -439,6 +470,7 @@ $SetStockReorderLevel = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SetStockReorderLevel($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -453,6 +485,7 @@ $GetAllocatedStock_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetAllocatedStock($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -464,6 +497,7 @@ $GetOrderedStock_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); $GetOrderedStock_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetOrderedStock($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -476,6 +510,7 @@ $SetStockPrice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SetStockPrice($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -491,6 +526,7 @@ $GetStockPrice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockPrice($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -505,6 +541,7 @@ $InsertSalesInvoice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesInvoice($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -517,6 +554,7 @@ $InsertSalesCredit_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesCredit($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertSalesCedit(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -541,6 +579,7 @@ $InsertSalesOrderHeader_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesOrderHeader($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertSalesOrderHeader(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -564,6 +603,7 @@ $ModifySalesOrderHeader_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifySalesOrderHeader($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(ModifySalesOrderHeader(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -588,6 +628,7 @@ $InsertSalesOrderLine_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesOrderLine($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertSalesOrderLine(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -612,6 +653,7 @@ $ModifySalesOrderLine_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifySalesOrderLine($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(ModifySalesOrderLine(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -624,6 +666,7 @@ $InsertGLAccount_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertGLAccount($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertGLAccount(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -636,6 +679,7 @@ $InsertGLAccountSection_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertGLAccountSection($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertGLAccountSection(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -648,6 +692,7 @@ $InsertGLAccountGroup_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertGLAccountGroup($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertGLAccountGroup(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -660,6 +705,7 @@ $GetLocationList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetLocationList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetLocationList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -671,6 +717,7 @@ $GetLocationDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetLocationDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetLocationDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -683,6 +730,7 @@ $GetShipperList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetShipperList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetShipperList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -694,6 +742,7 @@ $GetShipperDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetShipperDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetShipperDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -706,6 +755,7 @@ $GetSalesAreasList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesAreasList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetSalesAreasList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -717,6 +767,7 @@ $GetSalesAreaDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesAreaDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetSalesAreaDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -729,6 +780,7 @@ $GetSalesAreaDetailsFromName_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesAreaDetailsFromName($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetSalesAreaDetailsFromName($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -741,6 +793,7 @@ $InsertSalesArea_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesArea($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertSalesArea(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -753,6 +806,7 @@ $GetSalesmanList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesmanList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetSalesmanList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -764,6 +818,7 @@ $GetSalesmanDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesmanDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetSalesmanDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -776,6 +831,7 @@ $GetSalesmanDetailsFromName_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSalesmanDetailsFromName($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetSalesmanDetailsFromName($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -788,6 +844,7 @@ $InsertSalesman_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSalesman($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertSalesman(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -800,6 +857,7 @@ $GetTaxgroupList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetTaxgroupList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetTaxgroupList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -811,6 +869,7 @@ $GetTaxgroupDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetTaxgroupDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetTaxgroupDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -823,6 +882,7 @@ $GetCustomerTypeList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCustomerTypeList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetCustomerTypeList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -834,6 +894,7 @@ $GetCustomerTypeDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetCustomerTypeDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetCustomerTypeDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -846,6 +907,7 @@ $InsertStockCategory_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertStockCategory($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertStockCategory(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -858,6 +920,7 @@ $ModifyStockCategory_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifyStockCategory($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(ModifyStockCategory(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -870,6 +933,7 @@ $GetStockCategory_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockCategory($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetStockCategory($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -882,6 +946,7 @@ $SearchStockCategories_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SearchStockCategories($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(SearchStockCategories($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -895,12 +960,13 @@ $StockCatPropertyList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_StockCatPropertyList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(StockCatPropertyList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), $xmlrpcmsg->getParam(3)->scalarval()))); } - + unset($Parameter); unset($ReturnValue); unset($Description); @@ -908,6 +974,7 @@ $GetGLAccountList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetGLAccountList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetGLAccountList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -919,6 +986,7 @@ $GetGLAccountDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetGLAccountDetails($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetGLAccountDetails($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -931,6 +999,7 @@ $GetStockTaxRate_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockTaxRate($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetStockTaxRate($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -957,6 +1026,7 @@ $InsertSupplier_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertSupplier($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertSupplier(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -984,6 +1054,7 @@ $ModifySupplier_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifySupplier($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(ModifySupplier(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -1007,6 +1078,7 @@ $GetSupplier_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetSupplier($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetSupplier($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -1031,6 +1103,7 @@ $SearchSuppliers_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SearchSuppliers($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(SearchSuppliers($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -1056,6 +1129,7 @@ $GetBatches_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetBatches($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetBatches($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -1085,6 +1159,7 @@ $StockAdjustment_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_StockAdjustment($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(StockAdjustment($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -1120,6 +1195,7 @@ $WorkOrderIssue_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_WorkOrderIssue($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(WorkOrderIssue($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -1149,6 +1225,7 @@ $SearchWorkOrders_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_SearchWorkOrders($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(SearchWorkOrders($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -1175,6 +1252,7 @@ $InsertPurchData_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertPurchData($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertPurchData(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -1200,6 +1278,7 @@ $InsertPurchData_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_ModifyPurchData($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(ModifyPurchData(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -1225,6 +1304,7 @@ $InsertWorkOrder_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_InsertWorkOrder($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(InsertWorkOrder(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); @@ -1255,6 +1335,7 @@ $WorkOrderReceive_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_WorkOrderReceive($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(WorkOrderReceive($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -1279,6 +1360,7 @@ $GetDefaultDateFormat_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetDefaultDateFormat($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetDefaultDateFormat($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -1297,6 +1379,7 @@ $GetDefaultCurrency_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetDefaultCurrency($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetDefaultCurrency($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -1315,6 +1398,7 @@ $GetDefaultPriceList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetDefaultPriceList($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetDefaultPriceList($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -1333,6 +1417,7 @@ $GetDefaultLocation_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetDefaultLocation($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetDefaultLocation($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval()))); } @@ -1355,6 +1440,7 @@ $GetStockCatProperty_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetStockCatProperty($xmlrpcmsg) { + ob_end_flush(); return new xmlrpcresp(php_xmlrpc_encode(GetStockCatProperty($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval(), @@ -1372,12 +1458,13 @@ $GetErrorMessages_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_GetErrorMessages($xmlrpcmsg) { - return new xmlrpcresp(php_xmlrpc_encode( - GetAPIErrorMessages( + ob_end_flush(); + return new xmlrpcresp(php_xmlrpc_encode( + GetAPIErrorMessages( php_xmlrpc_decode($xmlrpcmsg->getParam(0))))); } - - + + $s = new xmlrpc_server( array( "weberp.xmlrpc_Login" => array( "function" => "xmlrpc_Login", Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-13 12:54:37 UTC (rev 3297) +++ trunk/doc/Change.log.html 2010-01-13 14:16:22 UTC (rev 3298) @@ -1,8 +1,9 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> -<p>13/01/10 Tim: PO_Header.php: Show the mailto links correctly by decoding the hml entities<p> -<p>13/01/10 Lindsay: api_login.php, api_xml-rpc.php: Added logout method to API.<p> -<p>13/01/10 Lindsay: API changes: added method to turn error number to string; clean up api_xml-rpc.php and corrected some method descriptions.<p> +<p>13/01/10 Tim: api_xml-rpc.php: Use output buffering to hide html error messages so that the api can handle errors in a graceful way</p> +<p>13/01/10 Tim: PO_Header.php: Show the mailto links correctly by decoding the hml entities</p> +<p>13/01/10 Lindsay: api_login.php, api_xml-rpc.php: Added logout method to API.</p> +<p>13/01/10 Lindsay: API changes: added method to turn error number to string; clean up api_xml-rpc.php and corrected some method descriptions.</p> <p>12/01/10 Pak Ricard: Z_ChangeStockCategory.php - New script to change a stock category code</p> <p>12/01/10 Chris Franks: PDFGrn.php - Show the date in the correct format</p> <p>12/01/10 Tim: Z_ChangeStockCode.php - Check thast mrpplannedorders table exists before trying to alter it</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-15 16:36:30
|
Revision: 3299 http://web-erp.svn.sourceforge.net/web-erp/?rev=3299&view=rev Author: tim_schofield Date: 2010-01-15 16:36:23 +0000 (Fri, 15 Jan 2010) Log Message: ----------- The userid session variable was not being correctly set. Modified Paths: -------------- trunk/doc/Change.log.html trunk/includes/UserLogin.php Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-13 14:16:22 UTC (rev 3298) +++ trunk/doc/Change.log.html 2010-01-15 16:36:23 UTC (rev 3299) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>15/01/10 Tim: UserLogin.php: The userid session variable was not being correctly set.</p> <p>13/01/10 Tim: api_xml-rpc.php: Use output buffering to hide html error messages so that the api can handle errors in a graceful way</p> <p>13/01/10 Tim: PO_Header.php: Show the mailto links correctly by decoding the hml entities</p> <p>13/01/10 Lindsay: api_login.php, api_xml-rpc.php: Added logout method to API.</p> @@ -9,7 +10,7 @@ <p>12/01/10 Tim: Z_ChangeStockCode.php - Check thast mrpplannedorders table exists before trying to alter it</p> <p>10/01/10 Tim: StockTransfers.php - Correctly show stockid in links to ther functions.</p> <p>10/01/10 Bryan Nielsen: BOMs.php - syntax error includes() was used not include()</p> -<p>09/01/10 Phil: Fix price for same item on an order priced at different prices - unfortunately, this means that there may be rounding errors on very large currencies as I reverted to the old logic using the stockmoves which use local currency and then converting back to the currency of the invoice - fixed both portrait and landscape +<p>09/01/10 Phil: Fix price for same item on an order priced at different prices - unfortunately, this means that there may be rounding errors on very large currencies as I reverted to the old logic using the stockmoves which use local currency and then converting back to the currency of the invoice - fixed both portrait and landscape</p> <p>09/01/10 Lindsay: Changes to api session handling. <p>08/01/10 Tim: PrintCustTrans.php - Correct errors preventing invoice from printing <p>08/01/10 Tim: Put a supplier invoice on hold when outside the bounds set up in the config Modified: trunk/includes/UserLogin.php =================================================================== --- trunk/includes/UserLogin.php 2010-01-13 14:16:22 UTC (rev 3298) +++ trunk/includes/UserLogin.php 2010-01-15 16:36:23 UTC (rev 3299) @@ -55,29 +55,30 @@ $Auth_Result = DB_query($sql, $db); // Populate session variables with data base results if (DB_num_rows($Auth_Result) > 0) { - $myrow = DB_fetch_row($Auth_Result); + $myrow = DB_fetch_array($Auth_Result); if ($myrow[7]==1){ //the account is blocked return UL_BLOCKED; } /*reset the attempts counter on successful login */ $_SESSION['AttemptsCounter'] = 0; - $_SESSION['AccessLevel'] = $myrow[0]; - $_SESSION['CustomerID'] = $myrow[1]; - $_SESSION['UserBranch'] = $myrow[5]; - $_SESSION['DefaultPageSize'] = $myrow[3]; - $_SESSION['UserStockLocation'] = $myrow[4]; - $_SESSION['ModulesEnabled'] = explode(",", $myrow[6]); - $_SESSION['UsersRealName'] = $myrow[8]; - $_SESSION['Theme'] = $myrow[9]; + $_SESSION['AccessLevel'] = $myrow['fullaccess']; + $_SESSION['CustomerID'] = $myrow['customerid']; + $_SESSION['UserBranch'] = $myrow['branchcode']; + $_SESSION['DefaultPageSize'] = $myrow['pagesize']; + $_SESSION['UserStockLocation'] = $myrow['defaultlocation']; + $_SESSION['ModulesEnabled'] = explode(",", $myrow['modulesallowed']); + $_SESSION['UsersRealName'] = $myrow['realname']; + $_SESSION['Theme'] = $myrow['theme']; // $_SESSION['UserID'] = $myrow[11]; - $_SESSION['Language'] = $myrow[12]; - $_SESSION['SalesmanLogin'] = $myrow[13]; + $_SESSION['Language'] = $myrow['language']; + $_SESSION['SalesmanLogin'] = $myrow['salesman']; if ($myrow[10] > 0) { - $_SESSION['DisplayRecordsMax'] = $myrow[10]; + $_SESSION['DisplayRecordsMax'] = $myrow['displayrecordsmax']; } else { $_SESSION['DisplayRecordsMax'] = $_SESSION['DefaultDisplayRecordsMax']; // default comes from config.php } + $_SESSION['UserID'] = $myrow['userid']; $sql = "UPDATE www_users SET lastvisitdate='". date("Y-m-d H:i:s") ."' WHERE www_users.userid='" . $Name . "'"; $Auth_Result = DB_query($sql, $db); @@ -96,7 +97,6 @@ } } // Temporary shift - disable log messages. - $_SESSION['UserID'] = $myrow[11]; } else { // Incorrect password // 5 login attempts, show failed login screen if (!isset($_SESSION['AttemptsCounter'])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2010-01-15 21:59:30
|
Revision: 3300 http://web-erp.svn.sourceforge.net/web-erp/?rev=3300&view=rev Author: daintree Date: 2010-01-15 21:59:19 +0000 (Fri, 15 Jan 2010) Log Message: ----------- various fixes to css to show links that were the same color as background for user settings - highlight selected module etc Modified Paths: -------------- trunk/css/fresh/default.css trunk/css/gel/default.css trunk/css/jelly/default.css trunk/css/professional/default.css trunk/includes/header.inc Modified: trunk/css/fresh/default.css =================================================================== --- trunk/css/fresh/default.css 2010-01-15 16:36:23 UTC (rev 3299) +++ trunk/css/fresh/default.css 2010-01-15 21:59:19 UTC (rev 3300) @@ -163,6 +163,8 @@ } font.header_title { + font-weight: bold; + color:black; } #topMenu { @@ -332,12 +334,12 @@ } .quick_menu_tab a{ - color:#fff; - font-weight:bold; + color:white; } .quick_menu_left a{ - color:#fff; + color:black; + font-weight:normal; } .quick_menu_tab a:hover{ @@ -347,7 +349,7 @@ } .quick_menu_left a:hover{ - color:#ffc; + color:blue; text-decoration:none; } @@ -561,6 +563,7 @@ } .menu_group_item a { + font-weight: normal; } .menu_group_items a:hover { Modified: trunk/css/gel/default.css =================================================================== --- trunk/css/gel/default.css 2010-01-15 16:36:23 UTC (rev 3299) +++ trunk/css/gel/default.css 2010-01-15 21:59:19 UTC (rev 3300) @@ -189,6 +189,8 @@ } font.header_title { + font-weight: bold; + color:white; } #topMenu { @@ -415,7 +417,7 @@ } .main_menu { -background:none; + background:none; border: 0px; height:28px; } @@ -439,6 +441,7 @@ } .main_menu_selected:hover{ background: #00f url(images/gelblueh.png) 0px -1px repeat-x; + border: 3px solid #888; } .main_menu_unselected a{ @@ -458,6 +461,7 @@ /* position: relative; */ text-align: center; white-space: nowrap; + border: 3px solid #dee; } .main_menu_selected a{ @@ -542,8 +546,8 @@ .page_title_text { font-family: Verdana, Arial, Helvetica; - padding-top: 2px; - padding-bottom: 2px; + padding-top: 2px; + padding-bottom: 2px; font-weight: bold; font-size: 12px; color: black; @@ -563,9 +567,9 @@ MARGIN: 0 auto; POSITION: static; font-family: Verdana, Arial, Helvetica; - font-weight: normal; - font-size: 10px; - color: black; + font-weight: normal; + font-size: 10px; + color: black; TEXT-ALIGN:center; } @@ -704,7 +708,7 @@ } .table_index { - background-color: #F1FFDD; + background-color: #eee; } li { Modified: trunk/css/jelly/default.css =================================================================== --- trunk/css/jelly/default.css 2010-01-15 16:36:23 UTC (rev 3299) +++ trunk/css/jelly/default.css 2010-01-15 21:59:19 UTC (rev 3300) @@ -499,9 +499,8 @@ .main_menu_selected { background: #00f url(images/gelblue.png) 0px -1px repeat-x; /*border: 0px solid #888;*/ -/* position: relative; */ text-align: center; - white-space: nowrap; + white-space: nowrap; } .main_menu_selected a{ @@ -587,8 +586,8 @@ .page_title_text { font-family: Verdana, Arial, Helvetica; - padding-top: 2px; - padding-bottom: 2px; + padding-top: 2px; + padding-bottom: 2px; font-weight: bold; font-size: 12px; color: black; @@ -599,7 +598,7 @@ background: lightgrey url(images/help.png) top left no-repeat; BORDER: #a52a2a 1px solid; padding-top:2px; - padding-bottom: 2px; + padding-bottom: 2px; PADDING-LEFT: 10px; Z-INDEX: 1; width: 80%; @@ -608,9 +607,9 @@ MARGIN: 0 auto; POSITION: static; font-family: Verdana, Arial, Helvetica; - font-weight: normal; - font-size: 10px; - color: black; + font-weight: normal; + font-size: 10px; + color: black; TEXT-ALIGN:center; } Modified: trunk/css/professional/default.css =================================================================== --- trunk/css/professional/default.css 2010-01-15 16:36:23 UTC (rev 3299) +++ trunk/css/professional/default.css 2010-01-15 21:59:19 UTC (rev 3300) @@ -286,7 +286,7 @@ border: none; margin: 0px; padding: 0px; - color: black; + color: #eee; border-top: 2px #AAAAAA solid; border-left: 2px #AAAAAA solid; border-right: 2px white solid; @@ -332,13 +332,13 @@ text-align: right; } -.quick_menu_tab a{ - color:#fff; +.quick_menu_tab a{ /*The quick menu links */ + color:blue; font-weight:bold; } -.quick_menu_left a{ - color:#fff; +.quick_menu_left a{ /*The links to the user settings */ + color:black; } .quick_menu_tab a:hover{ @@ -348,7 +348,7 @@ } .quick_menu_left a:hover{ - color:#ffc; + color:blue; text-decoration:none; } Modified: trunk/includes/header.inc =================================================================== --- trunk/includes/header.inc 2010-01-15 16:36:23 UTC (rev 3299) +++ trunk/includes/header.inc 2010-01-15 21:59:19 UTC (rev 3300) @@ -33,7 +33,7 @@ echo '<tr>'; echo '<td>'; - if ($title AND substr($title,0,4) != 'Help') { + if (isset($title)) { echo '<table cellpadding="0" cellspacing="0" border="0" id="quick_menu" class="quick_menu">'; echo '<tr>'; echo '<td align="left" style="width:100%;" class="quick_menu_left">'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-16 09:52:46
|
Revision: 3301 http://web-erp.svn.sourceforge.net/web-erp/?rev=3301&view=rev Author: tim_schofield Date: 2010-01-16 09:52:39 +0000 (Sat, 16 Jan 2010) Log Message: ----------- Add the Goods Received Note to the Form Designer Modified Paths: -------------- trunk/FormDesigner.php trunk/PDFGrn.php trunk/doc/Change.log.html trunk/includes/PDFGrnHeader.inc Added Paths: ----------- trunk/companies/weberpdemo/FormDesigns/GoodsReceived.xml Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2010-01-15 21:59:19 UTC (rev 3300) +++ trunk/FormDesigner.php 2010-01-16 09:52:39 UTC (rev 3301) @@ -78,6 +78,9 @@ /*First create a simple xml object from the main file */ $FormDesign = simplexml_load_file($PathPrefix.'companies/'.$_SESSION['DatabaseName'].'/FormDesigns/'.$_POST['FormName']); $FormDesign['name']=$_POST['formname']; + if (substr($_POST['PaperSize'],-8)=='Portrait') { + $_POST['PaperSize']=substr($_POST['PaperSize'],0,strlen($_POST['PaperSize'])-9); + } $FormDesign->PaperSize=$_POST['PaperSize']; $FormDesign->LineHeight=$_POST['LineHeight']; /*Iterate through the object filling in the values from @@ -98,7 +101,14 @@ * PDF creating script */ if (isset($_POST['preview'])) { $FormDesign->asXML(sys_get_temp_dir().'/'.$_POST['FormName']); - echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PO_PDFPurchOrder.php?' . SID .'OrderNo=Preview">'; + switch ($_POST['FormName']) { + case 'PurchaseOrder.xml': + echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PO_PDFPurchOrder.php?' . SID .'OrderNo=Preview">'; + break; + case 'GoodsReceived.xml': + echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PDFGrn.php?' . SID .'GRNNo=Preview&PONo=1">'; + break; + } } else { /* otherwise check that the web server has write premissions on the companies * directory and save the xml file to the correct directory */ @@ -141,7 +151,7 @@ } echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Form Design') . '" alt="">' . ' ' . _('Form Design').'<br />'. $FormDesign['name'] . ''; echo '<div class="page_help_text">' . _('Enter the changes that you want in the form layout below.') .'<br /> '. _('All measurements are in millimetres') . '.</div><br>'; -$Papers=array('A4_Landscape', 'A4_Portrait', 'A3_Lanscape', 'A3_Portrait'); // Possible paper sizes/orientations +$Papers=array('A4_Landscape', 'A4_Portrait', 'A3_Landscape', 'A3_Portrait'); // Possible paper sizes/orientations echo '<form method="post" id="Form" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '">'; echo '<input name=FormName type=hidden value="'.$_POST['FormName'].'">'; echo '<table width=85% border=1>'; //Start of outer table Modified: trunk/PDFGrn.php =================================================================== --- trunk/PDFGrn.php 2010-01-15 21:59:19 UTC (rev 3300) +++ trunk/PDFGrn.php 2010-01-16 09:52:39 UTC (rev 3301) @@ -7,77 +7,79 @@ $PageSecurity = 2; include('includes/session.inc'); +$FormDesign = simplexml_load_file($PathPrefix.'companies/'.$_SESSION['DatabaseName'].'/FormDesigns/GoodsReceived.xml'); +// Set the paper size/orintation +$PaperSize = $FormDesign->PaperSize; +$PageNumber=1; +$line_height=$FormDesign->LineHeight; + include('includes/PDFStarter.php'); $pdf->addInfo('Title', _('Goods Received Note') ); -$FontSize=10; -$PageNumber=1; -$line_height=12; +if (isset($_POST['GRNNo'])) { + $GRNNo=$_POST['GRNNo']; +} else if (isset($_GET['GRNNo'])) { + $GRNNo=$_GET['GRNNo']; +} else { + $GRNNo=''; +} include('includes/PDFGrnHeader.inc'); -$FontSize =10; -/*Print out the category totals */ - -$sql='SELECT itemcode, grnno, deliverydate, itemdescription, qtyrecd, supplierid from grns where grnbatch='. - $_GET['GRNNo']; -$result=DB_query($sql, $db); - -$ListCount = DB_num_rows($result); // UldisN - +if ($GRNNo=='Preview') { + $ListCount = 1; // UldisN +} else { + $sql='SELECT itemcode, grnno, deliverydate, itemdescription, qtyrecd, supplierid from grns where grnbatch='.$GRNNo; + $result=DB_query($sql, $db); + $ListCount = DB_num_rows($result); // UldisN +} $counter=1; -while ($myrow=DB_fetch_array($result)) { - $StockID=$myrow[0]; - $GRNNo=$myrow[1]; - $Date=$myrow[2]; - $Description=$myrow[3]; - $Quantity=$myrow[4]; - $SupplierID=$myrow[5]; +$YPos=$FormDesign->Data->y; +while ($counter<=$ListCount) { + if ($GRNNo=='Preview') { + $StockID=str_pad('',10,'x'); + $Date='1/1/1900'; + $Description=str_pad('',30,'x'); + $Quantity='XXXXX.XX'; + $Supplier=str_pad('',25,'x'); + } else { + $myrow=DB_fetch_array($result); + $StockID=$myrow[0]; + $GRNNo=$myrow[1]; + $Date=ConvertSQLDate($myrow[2]); + $Description=$myrow[3]; + $Quantity=$myrow[4]; + $SupplierID=$myrow[5]; - $sql='select suppname from suppliers where supplierid="'.$SupplierID.'"'; - $supplierresult=DB_query($sql, $db); - $suppliermyrow=DB_fetch_array($supplierresult); - $Supplier=$suppliermyrow[0]; + $sql='select suppname from suppliers where supplierid="'.$SupplierID.'"'; + $supplierresult=DB_query($sql, $db); + $suppliermyrow=DB_fetch_array($supplierresult); + $Supplier=$suppliermyrow[0]; + } - $LeftOvers = $pdf->addTextWrap($Left_Margin+1,$YPos-(10*$counter),70,$FontSize, $StockID); - $LeftOvers = $pdf->addTextWrap($Left_Margin+75,$YPos-(10*$counter),175,$FontSize, $Description); - $LeftOvers = $pdf->addTextWrap($Left_Margin+250,$YPos-(10*$counter),300-$Left_Margin,$FontSize, $Date); - $LeftOvers = $pdf->addTextWrap($Left_Margin+315,$YPos-(10*$counter),150,$FontSize, $Supplier); - $LeftOvers = $pdf->addTextWrap($Left_Margin+475,$YPos-(10*$counter),300-$Left_Margin,$FontSize, $Quantity); - $counter = $counter + 1; + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column1->x,$Page_Height-$YPos,$FormDesign->Data->Column1->Length,$FormDesign->Data->Column1->FontSize, $StockID); + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column2->x,$Page_Height-$YPos,$FormDesign->Data->Column2->Length,$FormDesign->Data->Column2->FontSize, $Description); + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column3->x,$Page_Height-$YPos,$FormDesign->Data->Column3->Length,$FormDesign->Data->Column3->FontSize, $Date); + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column4->x,$Page_Height-$YPos,$FormDesign->Data->Column4->Length,$FormDesign->Data->Column4->FontSize, $Supplier); + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column5->x,$Page_Height-$YPos,$FormDesign->Data->Column5->Length,$FormDesign->Data->Column5->FontSize, $Quantity); + $YPos += $line_height; + $counter++; } -$LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos-(10*$counter+80),300-$Left_Margin,$FontSize, _('Date of Receipt: ').$Date); +$LeftOvers = $pdf->addText($FormDesign->ReceiptDate->x,$Page_Height-$FormDesign->ReceiptDate->y,$FormDesign->ReceiptDate->FontSize, _('Date of Receipt: ').$Date); -$LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos-(10*$counter+130),300-$Left_Margin,$FontSize, _('Signed for ').'______________________'); +$LeftOvers = $pdf->addText($FormDesign->SignedFor->x,$Page_Height-$FormDesign->SignedFor->y,$FormDesign->SignedFor->FontSize, _('Signed for ').'______________________'); -//$pdfcode = $pdf->output(); -//$len = strlen($pdfcode); - -//if ($len<=20){ if ($ListCount == 0) { //UldisN - $title = _('Print Price List Error'); + $title = _('GRN Error'); include('includes/header.inc'); - prnMsg(_('There were no stock transfer details to print'),'warn'); + prnMsg(_('There were no GRN to print'),'warn'); echo '<br><a href="'.$rootpath.'/index.php?' . SID . '">'. _('Back to the menu').'</a>'; include('includes/footer.inc'); exit; } else { -/* UldisN - header('Content-type: application/pdf'); - header('Content-Length: ' . $len); - header('Content-Disposition: inline; filename=GRN.pdf'); - header('Expires: 0'); - header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); - header('Pragma: public'); - - $pdf->Output('GRN.pdf', 'I'); -*/ $pdf->OutputD($_SESSION['DatabaseName'] . '_GRN_' . date('Y-m-d').'.pdf');//UldisN $pdf->__destruct(); //UldisN } - - - /*end of else not PrintPDF */ -?> +?> \ No newline at end of file Added: trunk/companies/weberpdemo/FormDesigns/GoodsReceived.xml =================================================================== --- trunk/companies/weberpdemo/FormDesigns/GoodsReceived.xml (rev 0) +++ trunk/companies/weberpdemo/FormDesigns/GoodsReceived.xml 2010-01-16 09:52:39 UTC (rev 3301) @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="UTF-8"?> +<form name="Goods Received Note"> + <PaperSize name="Paper size">A4</PaperSize> + <LineHeight name="Line height">12</LineHeight> + <logo type="image" name="Logo" id="Logo"> + <x>20</x> + <y>80</y> + <width>0</width> + <height>60</height> + </logo> + <CompanyName type="SimpleText" name="Company name" id="CompanyName"> + <FontSize>10</FontSize> + <x>425</x> + <y>30</y> + </CompanyName> + <GRNNumber type="SimpleText" name="GRN Number" id="GRNNumber"> + <FontSize>10</FontSize> + <x>425</x> + <y>48</y> + </GRNNumber> + <OrderNumber type="SimpleText" name="Order Number" id="OrderNumber"> + <FontSize>10</FontSize> + <x>425</x> + <y>66</y> + </OrderNumber> + <PrintDate type="SimpleText" name="Date Printed" id="PrintDate"> + <FontSize>10</FontSize> + <x>425</x> + <y>84</y> + </PrintDate> + <HeaderRectangle type="Rectangle" name="Header rectangle" id="HeaderRectangle"> + <x>40</x> + <y>114</y> + <width>525</width> + <height>24</height> + </HeaderRectangle> + <Headings type="ElementArray" name="Column headings"> + <Column1 type="SimpleText" name="Heading 1" id="Heading1"> + <FontSize>10</FontSize> + <x>41</x> + <y>126</y> + </Column1> + <Column2 type="SimpleText" name="Heading 2" id="Heading2"> + <FontSize>10</FontSize> + <x>116</x> + <y>126</y> + </Column2> + <Column3 type="SimpleText" name="Heading 3" id="Heading3"> + <FontSize>10</FontSize> + <x>291</x> + <y>126</y> + </Column3> + <Column4 type="SimpleText" name="Heading 4" id="Heading4"> + <FontSize>10</FontSize> + <x>391</x> + <y>126</y> + </Column4> + <Column5 type="SimpleText" name="Heading 5" id="Heading5"> + <FontSize>10</FontSize> + <x>491</x> + <y>126</y> + </Column5> + </Headings> + <DataRectangle type="Rectangle" name="Data rectangle" id="DataRectangle"> + <x>40</x> + <y>138</y> + <width>525</width> + <height>674</height> + </DataRectangle> + <Data type="ElementArray" name="Column Data"> + <y type="StartLine" name="Y co-ordinate of first data line" id="DataStartLine">156</y> + <Column1 type="DataText" name="Column 1" id="Data1"> + <FontSize>10</FontSize> + <x>41</x> + <Length>94</Length> + </Column1> + <Column2 type="DataText" name="Column 2" id="Data2"> + <FontSize>10</FontSize> + <x>116</x> + <Length>270</Length> + </Column2> + <Column3 type="DataText" name="Column 3" id="Data3"> + <FontSize>10</FontSize> + <x>291</x> + <Length>85</Length> + </Column3> + <Column4 type="DataText" name="Column 4" id="Data4"> + <FontSize>10</FontSize> + <x>356</x> + <Length>150</Length> + </Column4> + <Column5 type="DataText" name="Column 5" id="Data5"> + <FontSize>10</FontSize> + <x>506</x> + <Length>60</Length> + </Column5> + </Data> + <ReceiptDate type="SimpleText" name="Date Received" id="ReceiptDate"> + <FontSize>10</FontSize> + <x>40</x> + <y>722</y> + </ReceiptDate> + <SignedFor type="SimpleText" name="Signed Fror" id="SignedFor"> + <FontSize>10</FontSize> + <x>40</x> + <y>760</y> + </SignedFor> +</form> \ No newline at end of file Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-15 21:59:19 UTC (rev 3300) +++ trunk/doc/Change.log.html 2010-01-16 09:52:39 UTC (rev 3301) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>16/01/10 Tim: Add the Goods Received Note to the Form Designer</p> <p>15/01/10 Tim: UserLogin.php: The userid session variable was not being correctly set.</p> <p>13/01/10 Tim: api_xml-rpc.php: Use output buffering to hide html error messages so that the api can handle errors in a graceful way</p> <p>13/01/10 Tim: PO_Header.php: Show the mailto links correctly by decoding the hml entities</p> Modified: trunk/includes/PDFGrnHeader.inc =================================================================== --- trunk/includes/PDFGrnHeader.inc 2010-01-15 21:59:19 UTC (rev 3300) +++ trunk/includes/PDFGrnHeader.inc 2010-01-16 09:52:39 UTC (rev 3301) @@ -5,44 +5,25 @@ $pdf->newPage(); } -$FontSize=10; -$YPos= $Page_Height-$Top_Margin; -$XPos=0; -$pdf->addJpegFromFile($_SESSION['LogoFile'] ,$XPos+20,$YPos-50,0,60); +$pdf->addJpegFromFile($_SESSION['LogoFile'] ,$FormDesign->logo->x,$Page_Height-$FormDesign->logo->y,$FormDesign->logo->width,$FormDesign->logo->height); +$LeftOvers = $pdf->addText($FormDesign->CompanyName->x,$Page_Height-$FormDesign->CompanyName->y,$FormDesign->CompanyName->FontSize,$_SESSION['CompanyRecord']['coyname']); +$LeftOvers = $pdf->addText($FormDesign->GRNNumber->x,$Page_Height-$FormDesign->GRNNumber->y,$FormDesign->GRNNumber->FontSize, _('GRN number ').' ' . $GRNNo ); +$LeftOvers = $pdf->addText($FormDesign->OrderNumber->x,$Page_Height-$FormDesign->OrderNumber->y,$FormDesign->OrderNumber->FontSize, _('PO number ').' ' . $_GET['PONo'] ); +$LeftOvers = $pdf->addText($FormDesign->PrintDate->x,$Page_Height-$FormDesign->PrintDate->y,$FormDesign->PrintDate->FontSize, _('Printed').': ' . Date($_SESSION['DefaultDateFormat']) . ' '. _('Page'). ' ' . $PageNumber); -$LeftOvers = $pdf->addTextWrap($Page_Width-$Right_Margin-140,$YPos,300,$FontSize,$_SESSION['CompanyRecord']['coyname']); -$LeftOvers = $pdf->addTextWrap($Page_Width-$Right_Margin-140,$YPos-($line_height*1.5),550,$FontSize, _('GRN number ').' ' . $_GET['GRNNo'] ); -$LeftOvers = $pdf->addTextWrap($Page_Width-$Right_Margin-140,$YPos-($line_height*3),550,$FontSize, _('PO number ').' ' . $_GET['PONo'] ); -$LeftOvers = $pdf->addTextWrap($Page_Width-$Right_Margin-140,$YPos-($line_height*4.5),140,$FontSize, _('Printed').': ' . Date($_SESSION['DefaultDateFormat']) . ' '. _('Page'). ' ' . $PageNumber); - -$YPos -= 60; - -$YPos -=$line_height; -//Note, this is ok for multilang as this is the value of a Select, text in option is different - -$YPos -=(2*$line_height); - /*Draw a rectangle to put the headings in */ +$pdf->Rectangle($FormDesign->HeaderRectangle->x, $Page_Height - $FormDesign->HeaderRectangle->y, $FormDesign->HeaderRectangle->width,$FormDesign->HeaderRectangle->height); -$pdf->line($Left_Margin, $YPos+$line_height,$Page_Width-$Right_Margin, $YPos+$line_height); -$pdf->line($Left_Margin, $YPos+$line_height,$Left_Margin, $YPos- $line_height); -$pdf->line($Left_Margin, $YPos- $line_height,$Page_Width-$Right_Margin, $YPos- $line_height); -$pdf->line($Page_Width-$Right_Margin, $YPos+$line_height,$Page_Width-$Right_Margin, $YPos- $line_height); - /*set up the headings */ -$Xpos = $Left_Margin+1; +$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')); +$LeftOvers = $pdf->addText($FormDesign->Headings->Column4->x,$Page_Height - $FormDesign->Headings->Column4->y, $FormDesign->Headings->Column4->FontSize, _('Supplier')); +$LeftOvers = $pdf->addText($FormDesign->Headings->Column5->x,$Page_Height - $FormDesign->Headings->Column5->y, $FormDesign->Headings->Column5->FontSize, _('Quantity')); -$LeftOvers = $pdf->addTextWrap($Xpos,$YPos,300-$Left_Margin,$FontSize, _('Item Number'), 'centre'); -$LeftOvers = $pdf->addTextWrap($Xpos+75,$YPos,300-$Left_Margin,$FontSize, _('Description'), 'centre'); -$LeftOvers = $pdf->addTextWrap($Xpos+250,$YPos,300-$Left_Margin,$FontSize, _('Date Recd'), 'centre'); -$LeftOvers = $pdf->addTextWrap($Xpos+350,$YPos,300-$Left_Margin,$FontSize, _('Supplier'), 'centre'); -$LeftOvers = $pdf->addTextWrap($Xpos+450,$YPos,300-$Left_Margin,$FontSize, _('Quantity'), 'centre'); +/*Draw a rectangle to put the data in */ +$pdf->Rectangle($FormDesign->DataRectangle->x, $Page_Height - $FormDesign->DataRectangle->y, $FormDesign->DataRectangle->width,$FormDesign->DataRectangle->height); - -$FontSize=8; -$YPos -= (1.5 * $line_height); - $PageNumber++; - ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-16 12:09:36
|
Revision: 3302 http://web-erp.svn.sourceforge.net/web-erp/?rev=3302&view=rev Author: tim_schofield Date: 2010-01-16 12:08:57 +0000 (Sat, 16 Jan 2010) Log Message: ----------- Correctly deal with different paper sizes in form designer Modified Paths: -------------- trunk/FormDesigner.php trunk/PDFGrn.php trunk/companies/weberpdemo/FormDesigns/GoodsReceived.xml trunk/doc/Change.log.html Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2010-01-16 09:52:39 UTC (rev 3301) +++ trunk/FormDesigner.php 2010-01-16 12:08:57 UTC (rev 3302) @@ -151,7 +151,7 @@ } echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Form Design') . '" alt="">' . ' ' . _('Form Design').'<br />'. $FormDesign['name'] . ''; echo '<div class="page_help_text">' . _('Enter the changes that you want in the form layout below.') .'<br /> '. _('All measurements are in millimetres') . '.</div><br>'; -$Papers=array('A4_Landscape', 'A4_Portrait', 'A3_Landscape', 'A3_Portrait'); // Possible paper sizes/orientations +$Papers=array('A4_Landscape', 'A4_Portrait', 'A3_Landscape', 'A3_Portrait', 'letter_Portrait', 'letter_Landscape', 'legal_Portrait', 'legal_Landscape'); // Possible paper sizes/orientations echo '<form method="post" id="Form" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '">'; echo '<input name=FormName type=hidden value="'.$_POST['FormName'].'">'; echo '<table width=85% border=1>'; //Start of outer table @@ -159,11 +159,16 @@ /* Select the paper size/orientation */ echo '<th width=33%>'._('Paper Size').'<select name="PaperSize">'; foreach ($Papers as $Paper) { - if ($Paper==$FormDesign->PaperSize) { - echo '<option selected value="'.$Paper.'">'.$Paper.'</option>'; + if (substr($Paper,-8)=='Portrait') { + $PaperValue=substr($Paper,0,strlen($Paper)-9); } else { - echo '<option value="'.$Paper.'">'.$Paper.'</option>'; + $PaperValue=$Paper; } + if ($PaperValue==$FormDesign->PaperSize) { + echo '<option selected value="'.$PaperValue.'">'.$Paper.'</option>'; + } else { + echo '<option value="'.$PaperValue.'">'.$Paper.'</option>'; + } } echo '</select></th>'; /* and the standard line height for the form */ Modified: trunk/PDFGrn.php =================================================================== --- trunk/PDFGrn.php 2010-01-16 09:52:39 UTC (rev 3301) +++ trunk/PDFGrn.php 2010-01-16 12:08:57 UTC (rev 3302) @@ -7,24 +7,27 @@ $PageSecurity = 2; include('includes/session.inc'); -$FormDesign = simplexml_load_file($PathPrefix.'companies/'.$_SESSION['DatabaseName'].'/FormDesigns/GoodsReceived.xml'); +if (isset($_POST['GRNNo'])) { + $GRNNo=$_POST['GRNNo']; +} else if (isset($_GET['GRNNo'])) { + $GRNNo=$_GET['GRNNo']; +} else { + $GRNNo=''; +} +if ($GRNNo=='Preview') { + $FormDesign = simplexml_load_file(sys_get_temp_dir().'/GoodsReceived.xml'); +} else { + $FormDesign = simplexml_load_file($PathPrefix.'companies/'.$_SESSION['DatabaseName'].'/FormDesigns/GoodsReceived.xml'); +} + // Set the paper size/orintation $PaperSize = $FormDesign->PaperSize; $PageNumber=1; $line_height=$FormDesign->LineHeight; - include('includes/PDFStarter.php'); $pdf->addInfo('Title', _('Goods Received Note') ); -if (isset($_POST['GRNNo'])) { - $GRNNo=$_POST['GRNNo']; -} else if (isset($_GET['GRNNo'])) { - $GRNNo=$_GET['GRNNo']; -} else { - $GRNNo=''; -} - include('includes/PDFGrnHeader.inc'); if ($GRNNo=='Preview') { Modified: trunk/companies/weberpdemo/FormDesigns/GoodsReceived.xml =================================================================== --- trunk/companies/weberpdemo/FormDesigns/GoodsReceived.xml 2010-01-16 09:52:39 UTC (rev 3301) +++ trunk/companies/weberpdemo/FormDesigns/GoodsReceived.xml 2010-01-16 12:08:57 UTC (rev 3302) @@ -105,4 +105,4 @@ <x>40</x> <y>760</y> </SignedFor> -</form> \ No newline at end of file +</form> Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-16 09:52:39 UTC (rev 3301) +++ trunk/doc/Change.log.html 2010-01-16 12:08:57 UTC (rev 3302) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>16/01/10 Tim: Correctly deal with different paper sizes in form designer</p> <p>16/01/10 Tim: Add the Goods Received Note to the Form Designer</p> <p>15/01/10 Tim: UserLogin.php: The userid session variable was not being correctly set.</p> <p>13/01/10 Tim: api_xml-rpc.php: Use output buffering to hide html error messages so that the api can handle errors in a graceful way</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-17 10:11:58
|
Revision: 3306 http://web-erp.svn.sourceforge.net/web-erp/?rev=3306&view=rev Author: tim_schofield Date: 2010-01-17 10:11:51 +0000 (Sun, 17 Jan 2010) Log Message: ----------- Add entry for planned work orders Modified Paths: -------------- trunk/doc/Change.log.html trunk/index.php Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-17 09:02:42 UTC (rev 3305) +++ trunk/doc/Change.log.html 2010-01-17 10:11:51 UTC (rev 3306) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>17/01/10 Tim: index.php - Add entry for planned work orders</p> <p>17/01/10 Harald: MRPCalendar.php - gettext function for string was missing</p> <p>16/01/10 Tim: Correctly deal with different paper sizes in form designer</p> <p>16/01/10 Tim: Add the Goods Received Note to the Form Designer</p> Modified: trunk/index.php =================================================================== --- trunk/index.php 2010-01-17 09:02:42 UTC (rev 3305) +++ trunk/index.php 2010-01-17 10:11:51 UTC (rev 3306) @@ -748,6 +748,11 @@ </tr> <tr> <td class="menu_group_item"> + <?php echo '<p>• <a href="' . $rootpath . '/MRPPlannedWorkOrders.php?' . SID . '">' . _('MRP Suggested Work Orders') . '</a></p>'; ?> + </td> + </tr> + <tr> + <td class="menu_group_item"> <?php echo '<p>• <a href="' . $rootpath . '/MRPReschedules.php?' . SID . '">' . _('MRP Reschedules Required') . '</a></p>'; ?> </td> </tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-18 08:50:59
|
Revision: 3307 http://web-erp.svn.sourceforge.net/web-erp/?rev=3307&view=rev Author: tim_schofield Date: 2010-01-18 08:50:53 +0000 (Mon, 18 Jan 2010) Log Message: ----------- Add default date and use the javascript date picker Modified Paths: -------------- trunk/MRPPlannedPurchaseOrders.php trunk/MRPPlannedWorkOrders.php trunk/doc/Change.log.html Modified: trunk/MRPPlannedPurchaseOrders.php =================================================================== --- trunk/MRPPlannedPurchaseOrders.php 2010-01-17 10:11:51 UTC (rev 3306) +++ trunk/MRPPlannedPurchaseOrders.php 2010-01-18 08:50:53 UTC (rev 3307) @@ -29,7 +29,7 @@ stockmaster.mbflag, stockmaster.decimalplaces, stockmaster.actualcost, - (stockmaster.materialcost + stockmaster.labourcost + + (stockmaster.materialcost + stockmaster.labourcost + stockmaster.overheadcost ) as computedcost FROM mrpplannedorders, stockmaster WHERE mrpplannedorders.part = stockmaster.stockid ' . "$wheredate" . @@ -47,11 +47,11 @@ stockmaster.mbflag, stockmaster.decimalplaces, stockmaster.actualcost, - (stockmaster.materialcost + stockmaster.labourcost + + (stockmaster.materialcost + stockmaster.labourcost + stockmaster.overheadcost ) as computedcost FROM mrpplannedorders, stockmaster WHERE mrpplannedorders.part = stockmaster.stockid ' . "$wheredate" . - ' AND stockmaster.mbflag IN ("B","P") + ' AND stockmaster.mbflag IN ("B","P") GROUP BY mrpplannedorders.part, weekindex, stockmaster.stockid, @@ -76,11 +76,11 @@ stockmaster.mbflag, stockmaster.decimalplaces, stockmaster.actualcost, - (stockmaster.materialcost + stockmaster.labourcost + + (stockmaster.materialcost + stockmaster.labourcost + stockmaster.overheadcost ) as computedcost FROM mrpplannedorders, stockmaster WHERE mrpplannedorders.part = stockmaster.stockid ' . "$wheredate" . - ' AND stockmaster.mbflag IN ("B","P") + ' AND stockmaster.mbflag IN ("B","P") GROUP BY mrpplannedorders.part, yearmonth, stockmaster.stockid, @@ -91,7 +91,7 @@ stockmaster.materialcost, stockmaster.labourcost, stockmaster.overheadcost, - computedcost + computedcost ORDER BY mrpplannedorders.part,yearmonth '; }; $result = DB_query($sql,$db,'','',false,true); @@ -115,7 +115,7 @@ include('includes/footer.inc'); exit; } - + PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin, $Page_Width,$Right_Margin,$_POST['Consolidation'],$reportdate); @@ -131,10 +131,10 @@ $holddecimalplaces = 0; $totalpartqty = 0; $totalpartcost = 0; - + While ($myrow = DB_fetch_array($result,$db)){ $YPos -=$line_height; - + // Use to alternate between lines with transparent and painted background if ($_POST['Fill'] == 'yes'){ $fill=!$fill; @@ -167,7 +167,7 @@ $totalpartqty = 0; $YPos -= (2*$line_height); } - + // Parameters for addTextWrap are defined in /includes/class.pdf.php // 1) X position 2) Y position 3) Width // 4) Height 5) Text 6) Alignment 7) Border 8) Fill - True to use SetFillColor @@ -194,10 +194,10 @@ $holddecimalplaces = $myrow['decimalplaces']; $totalpartcost += $extcost; $totalpartqty += $myrow['supplyquantity']; - + $Total_Extcost += $extcost; $Partctr++; - + if ($YPos < $Bottom_Margin + $line_height){ PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width, $Right_Margin,$_POST['Consolidation'],$reportdate); @@ -243,7 +243,7 @@ $pdf->OutputD($_SESSION['DatabaseName'] . '_MRP_Planned_Purchase_Orders_' . Date('Y-m-d') . '.pdf'); $pdf->__destruct(); - + } else { /*The option to print PDF was not hit so display form */ $title=_('MRP Planned Purchase Orders Reporting'); @@ -259,7 +259,7 @@ echo '<option selected value="yes">' . _('Print With Alternating Highlighted Lines'); echo '<option value="no">' . _('Plain Print'); echo '</select></td></tr>'; - echo '<tr><td>' . _('Cut Off Date') . ':</td><td><input type ="text" class=date alt="'.$_SESSION['DefaultDateFormat'] .'" name="cutoffdate" size="10"></tr>'; + echo '<tr><td>' . _('Cut Off Date') . ':</td><td><input type ="text" class=date alt="'.$_SESSION['DefaultDateFormat'] .'" name="cutoffdate" size="10" value="'.date($_SESSION['DefaultDateFormat']).'"></tr>'; echo '</table></br><div class="centre"><input type="submit" name="PrintPDF" value="' . _('Print PDF') . '"></div>'; include('includes/footer.inc'); @@ -276,14 +276,14 @@ $line_height=12; $FontSize=9; $YPos= $Page_Height-$Top_Margin; - + $pdf->addTextWrap($Left_Margin,$YPos,300,$FontSize,$_SESSION['CompanyRecord']['coyname']); - + $YPos -=$line_height; - + $pdf->addTextWrap($Left_Margin,$YPos,150,$FontSize,_('MRP Planned Purchase Orders Report')); $pdf->addTextWrap(190,$YPos,100,$FontSize,$reportdate); - $pdf->addTextWrap($Page_Width-$Right_Margin-150,$YPos,160,$FontSize,_('Printed') . ': ' . + $pdf->addTextWrap($Page_Width-$Right_Margin-150,$YPos,160,$FontSize,_('Printed') . ': ' . Date($_SESSION['DefaultDateFormat']) . ' ' . _('Page') . ' ' . $PageNumber,'left'); $YPos -= $line_height; if ($consolidation == 'None') { @@ -295,12 +295,12 @@ }; $pdf->addTextWrap($Left_Margin,$YPos,65,$FontSize,_('Consolidation:')); $pdf->addTextWrap(110,$YPos,40,$FontSize,$displayconsolidation); - + $YPos -=(2*$line_height); - + /*set up the headings */ $Xpos = $Left_Margin+1; - + $pdf->addTextWrap($Xpos,$YPos,150,$FontSize,_('Part Number'), 'left'); $pdf->addTextWrap(150,$YPos,50,$FontSize,_('Due Date'), 'right'); $pdf->addTextWrap(200,$YPos,60,$FontSize,_('MRP Date'), 'right'); @@ -312,7 +312,7 @@ } else { $pdf->addTextWrap(370,$YPos,100,$FontSize,_('Consolidation Count'), 'right'); } - + $FontSize=8; $YPos =$YPos - (2*$line_height); $PageNumber++; @@ -325,7 +325,7 @@ purchorders.orderno FROM purchorders, purchorderdetails - WHERE purchorders.orderno = purchorderdetails.orderno + WHERE purchorders.orderno = purchorderdetails.orderno AND purchorderdetails.itemcode = ' . "'$part' " . 'order by orddate desc limit 1'; $result = DB_query($sql,$db); Modified: trunk/MRPPlannedWorkOrders.php =================================================================== --- trunk/MRPPlannedWorkOrders.php 2010-01-17 10:11:51 UTC (rev 3306) +++ trunk/MRPPlannedWorkOrders.php 2010-01-18 08:50:53 UTC (rev 3307) @@ -11,7 +11,7 @@ $pdf->addInfo('Title',_('MRP Planned Work Orders Report')); $pdf->addInfo('Subject',_('MRP Planned Work Orders')); - + $FontSize=9; $PageNumber=1; $line_height=12; @@ -23,7 +23,7 @@ $wheredate = ' AND duedate <= "' . $formatdate . '" '; $reportdate = _(' Through ') . Format_Date($_POST['cutoffdate']); } - + if ($_POST['Consolidation'] == 'None') { $sql = 'SELECT mrpplannedorders.*, stockmaster.stockid, @@ -31,11 +31,11 @@ stockmaster.mbflag, stockmaster.decimalplaces, stockmaster.actualcost, - (stockmaster.materialcost + stockmaster.labourcost + + (stockmaster.materialcost + stockmaster.labourcost + stockmaster.overheadcost ) as computedcost FROM mrpplannedorders, stockmaster WHERE mrpplannedorders.part = stockmaster.stockid ' . "$wheredate" . - ' AND stockmaster.mbflag = "M" + ' AND stockmaster.mbflag = "M" ORDER BY mrpplannedorders.part,mrpplannedorders.duedate'; } elseif ($_POST['Consolidation'] == 'Weekly') { $sql = 'SELECT mrpplannedorders.part, @@ -49,11 +49,11 @@ stockmaster.mbflag, stockmaster.decimalplaces, stockmaster.actualcost, - (stockmaster.materialcost + stockmaster.labourcost + + (stockmaster.materialcost + stockmaster.labourcost + stockmaster.overheadcost ) as computedcost FROM mrpplannedorders, stockmaster WHERE mrpplannedorders.part = stockmaster.stockid ' . "$wheredate" . - ' AND stockmaster.mbflag = "M" + ' AND stockmaster.mbflag = "M" GROUP BY mrpplannedorders.part, weekindex, stockmaster.stockid, @@ -64,7 +64,7 @@ stockmaster.materialcost, stockmaster.labourcost, stockmaster.overheadcost, - computedcost + computedcost ORDER BY mrpplannedorders.part,weekindex '; } else { @@ -79,11 +79,11 @@ stockmaster.mbflag, stockmaster.decimalplaces, stockmaster.actualcost, - (stockmaster.materialcost + stockmaster.labourcost + + (stockmaster.materialcost + stockmaster.labourcost + stockmaster.overheadcost ) as computedcost, FROM mrpplannedorders, stockmaster WHERE mrpplannedorders.part = stockmaster.stockid ' . "$wheredate" . - ' AND stockmaster.mbflag = "M" + ' AND stockmaster.mbflag = "M" GROUP BY mrpplannedorders.part, yearmonth, stockmaster.stockid, @@ -94,7 +94,7 @@ stockmaster.materialcost, stockmaster.labourcost, stockmaster.overheadcost, - computedcost + computedcost ORDER BY mrpplannedorders.part,yearmonth '; }; $result = DB_query($sql,$db,'','',false,true); @@ -134,10 +134,10 @@ $holddecimalplaces = 0; $totalpartqty = 0; $totalpartcost = 0; - + While ($myrow = DB_fetch_array($result,$db)){ $YPos -=$line_height; - + // Use to alternate between lines with transparent and painted background if ($_POST['Fill'] == 'yes'){ $fill=!$fill; @@ -157,7 +157,7 @@ $totalpartqty = 0; $YPos -= (2*$line_height); } - + // Parameters for addTextWrap are defined in /includes/class.pdf.php // 1) X position 2) Y position 3) Width // 4) Height 5) Text 6) Alignment 7) Border 8) Fill - True to use SetFillColor @@ -184,10 +184,10 @@ $holddecimalplaces = $myrow['decimalplaces']; $totalpartcost += $extcost; $totalpartqty += $myrow['supplyquantity']; - + $Total_Extcost += $extcost; $Partctr++; - + if ($YPos < $Bottom_Margin + $line_height){ PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width, $Right_Margin,$_POST['Consolidation'],$reportdate); @@ -221,7 +221,7 @@ $pdf->OutputD($_SESSION['DatabaseName'] . '_MRP_Planned_Work_Orders_' . Date('Y-m-d') . '.pdf'); $pdf->__destruct(); - + } else { /*The option to print PDF was not hit so display form */ $title=_('MRP Planned Work Orders Reporting'); @@ -237,7 +237,7 @@ echo "<option selected value='yes'>" . _('Print With Alternating Highlighted Lines'); echo "<option value='no'>" . _('Plain Print'); echo '</select></td></tr>'; - echo '<tr><td>' . _('Cut Off Date') . ":</td><td><input type ='text' name='cutoffdate' size='10'></tr>"; + echo '<tr><td>' . _('Cut Off Date') . ":</td><td><input type ='text' class=date alt='".$_SESSION['DefaultDateFormat'] ."' name='cutoffdate' size='10' value='".date($_SESSION['DefaultDateFormat'])."'></tr>"; echo "</table></br><div class='centre'><input type=submit name='PrintPDF' value='" . _('Print PDF') . "'></div>"; include('includes/footer.inc'); @@ -254,14 +254,14 @@ $line_height=12; $FontSize=9; $YPos= $Page_Height-$Top_Margin; - + $pdf->addTextWrap($Left_Margin,$YPos,300,$FontSize,$_SESSION['CompanyRecord']['coyname']); - + $YPos -=$line_height; - + $pdf->addTextWrap($Left_Margin,$YPos,150,$FontSize,_('MRP Planned Work Orders Report')); $pdf->addTextWrap(190,$YPos,100,$FontSize,$reportdate); - $pdf->addTextWrap($Page_Width-$Right_Margin-150,$YPos,160,$FontSize,_('Printed') . ': ' . + $pdf->addTextWrap($Page_Width-$Right_Margin-150,$YPos,160,$FontSize,_('Printed') . ': ' . Date($_SESSION['DefaultDateFormat']) . ' ' . _('Page') . ' ' . $PageNumber,'left'); $YPos -= $line_height; if ($consolidation == 'None') { @@ -273,12 +273,12 @@ }; $pdf->addTextWrap($Left_Margin,$YPos,65,$FontSize,_('Consolidation:')); $pdf->addTextWrap(110,$YPos,40,$FontSize,$displayconsolidation); - + $YPos -=(2*$line_height); - + /*set up the headings */ $Xpos = $Left_Margin+1; - + $pdf->addTextWrap($Xpos,$YPos,150,$FontSize,_('Part Number'), 'left'); $pdf->addTextWrap(150,$YPos,50,$FontSize,_('Due Date'), 'right'); $pdf->addTextWrap(200,$YPos,60,$FontSize,_('MRP Date'), 'right'); @@ -290,7 +290,7 @@ } else { $pdf->addTextWrap(370,$YPos,100,$FontSize,_('Consolidation Count'), 'right'); } - + $FontSize=8; $YPos =$YPos - (2*$line_height); $PageNumber++; Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-17 10:11:51 UTC (rev 3306) +++ trunk/doc/Change.log.html 2010-01-18 08:50:53 UTC (rev 3307) @@ -1,5 +1,7 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>18/01/10 Tim: MRPPlannedWorkOrders.php - Add default date and use the javascript date picker</p> +<p>18/01/10 Tim: MRPPlannedPurchaseOrders.php - Add default date and use the javascript date picker</p> <p>17/01/10 Tim: index.php - Add entry for planned work orders</p> <p>17/01/10 Harald: MRPCalendar.php - gettext function for string was missing</p> <p>16/01/10 Tim: Correctly deal with different paper sizes in form designer</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-19 10:14:51
|
Revision: 3309 http://web-erp.svn.sourceforge.net/web-erp/?rev=3309&view=rev Author: tim_schofield Date: 2010-01-19 10:14:45 +0000 (Tue, 19 Jan 2010) Log Message: ----------- Missing gettext function for string Modified Paths: -------------- trunk/MRP.php trunk/doc/Change.log.html Modified: trunk/MRP.php =================================================================== --- trunk/MRP.php 2010-01-18 21:19:35 UTC (rev 3308) +++ trunk/MRP.php 2010-01-19 10:14:45 UTC (rev 3309) @@ -9,11 +9,11 @@ include('includes/header.inc'); if (isset($_POST['submit'])) { - + if (!$_POST['Leeway'] || !is_numeric($_POST['Leeway'])) { $_POST['Leeway'] = 0; } - + // MRP - Create levels table based on bom echo '</br>' ._('Start time') . ': ' . date('h:i:s') . '</br>'; echo '</br>' . _('Initialising tables .....') . '</br>'; @@ -23,15 +23,15 @@ $result = DB_query('DROP TABLE IF EXISTS passbom2',$db); $result = DB_query('DROP TABLE IF EXISTS bomlevels',$db); $result = DB_query('DROP TABLE IF EXISTS levels',$db); - + $sql = 'CREATE TEMPORARY TABLE passbom ( - part char(20), + part char(20), sortpart text)'; $ErrMsg = _('The SQL to to create passbom failed with the message'); $result = DB_query($sql,$db,$ErrMsg); - + $sql = 'CREATE TEMPORARY TABLE tempbom ( - parent char(20), + parent char(20), component char(20), sortpart text, level int)'; @@ -42,7 +42,7 @@ // Put those top level assemblies in passbom, use COMPONENT in passbom // to link to PARENT in bom to find next lower level and accumulate // those parts into tempbom - + prnMsg(_('Creating first level'),'info'); flush(); // This finds the top level @@ -52,8 +52,8 @@ FROM bom LEFT JOIN bom as bom2 ON bom.parent = bom2.component WHERE bom2.component IS NULL'; $result = DB_query($sql,$db); - - $lctr = 2; + + $lctr = 2; // $lctr is the level counter $sql = "INSERT INTO tempbom (parent, component, sortpart, level) SELECT bom.parent AS parent, bom.component AS component, @@ -77,46 +77,46 @@ $lctr as level FROM bom,passbom WHERE bom.parent = passbom.part"; $result = DB_query($sql,$db); - + $result = DB_query('DROP TABLE IF EXISTS passbom2',$db); $result = DB_query('ALTER TABLE passbom RENAME AS passbom2',$db); $result = DB_query('DROP TABLE IF EXISTS passbom',$db); - + $sql = 'CREATE TEMPORARY TABLE passbom ( - part char(20), + part char(20), sortpart text)'; $result = DB_query($sql,$db); - + $sql = "INSERT INTO passbom (part, sortpart) SELECT bom.component AS part, CONCAT(passbom2.sortpart,'%',bom.component) AS sortpart - FROM bom,passbom2 + FROM bom,passbom2 WHERE bom.parent = passbom2.part"; $result = DB_query($sql,$db); - - - $sql = 'SELECT COUNT(*) FROM bom + + + $sql = 'SELECT COUNT(*) FROM bom INNER JOIN passbom ON bom.parent = passbom.part GROUP BY bom.parent'; $result = DB_query($sql,$db); - + $myrow = DB_fetch_row($result); $compctr = $myrow[0]; - + } // End of while $compctr > 0 - + prnMsg(_('Creating bomlevels table'),'info'); flush(); $sql = 'CREATE TEMPORARY TABLE bomlevels ( - part char(20), + part char(20), level int)'; $result = DB_query($sql,$db); - + // Read tempbom and split sortpart into separate parts. For each separate part, calculate level as - // the sortpart level minus the position in the @parts array of the part. For example, the first + // the sortpart level minus the position in the @parts array of the part. For example, the first // part in the array for a level 4 sortpart would be created as a level 3 in levels, the fourth // and last part in sortpart would have a level code of zero, meaning it has no components - + $sql = 'SELECT * FROM tempbom'; $result = DB_query($sql,$db); while ($myrow=DB_fetch_array($result)) { @@ -128,15 +128,15 @@ $newlevel = $level - $ctr; $sql = "INSERT INTO bomlevels (part, level) VALUES('$part','$newlevel')"; $result2 = DB_query($sql,$db); - } // End of foreach + } // End of foreach } //end of while loop - + prnMsg(_('Creating levels table'),'info'); flush(); // Create levels from bomlevels using the highest level number found for a part $sql = 'CREATE TABLE levels ( - part char(20), + part char(20), level int, leadtime smallint(6) NOT NULL default "0", pansize double NOT NULL default "0", @@ -164,10 +164,10 @@ $result = DB_query($sql,$db); $sql = 'ALTER TABLE levels ADD INDEX part(part)'; $result = DB_query($sql,$db); - + // Create levels records with level of zero for all parts in stockmaster that // are not in bom - + $sql = 'INSERT INTO levels (part, level, leadtime, @@ -179,29 +179,29 @@ 0, stockmaster.pansize, stockmaster.shrinkfactor, - stockmaster.eoq - FROM stockmaster + stockmaster.eoq + FROM stockmaster LEFT JOIN levels ON stockmaster.stockid = levels.part WHERE levels.part IS NULL'; $result = DB_query($sql,$db); - + // Update leadtime in levels from purchdata. Do it twice so can make sure leadtime from preferred // vendor is used $sql = 'UPDATE levels,purchdata SET levels.leadtime = purchdata.leadtime - WHERE levels.part = purchdata.stockid + WHERE levels.part = purchdata.stockid AND purchdata.leadtime > 0'; $result = DB_query($sql,$db); $sql = 'UPDATE levels,purchdata SET levels.leadtime = purchdata.leadtime - WHERE levels.part = purchdata.stockid + WHERE levels.part = purchdata.stockid AND purchdata.preferred = 1 AND purchdata.leadtime > 0'; $result = DB_query($sql,$db); - + prnMsg(_('Levels table has been created'),'info'); flush(); - + // Get rid if temporary tables $sql = 'DROP TABLE IF EXISTS tempbom'; //$result = DB_query($sql,$db); @@ -211,7 +211,7 @@ //$result = DB_query($sql,$db); $sql = 'DROP TABLE IF EXISTS bomlevels'; //$result = DB_query($sql,$db); - + // In the following section, create mrprequirements from open sales orders and // mrpdemands prnMsg(_('Creating requirements table'),'info'); @@ -223,7 +223,7 @@ // CreateLowerLevelRequirement() function. Mostly do this so can distinguish the type // of requirements for the MRPShortageReport so don't show double requirements. $sql = 'CREATE TABLE mrprequirements ( - part char(20), + part char(20), daterequired date, quantity double, mrpdemandtype varchar(6), @@ -231,10 +231,10 @@ directdemand smallint, whererequired char(20))'; $result = DB_query($sql,$db,_('Create of mrprequirements failed because')); - + prnMsg(_('Loading requirements from sales orders'),'info'); flush(); - $sql = 'INSERT INTO mrprequirements + $sql = 'INSERT INTO mrprequirements (part, daterequired, quantity, @@ -256,11 +256,11 @@ AND salesorders.quotation = 0'; $result = DB_query($sql,$db); - + prnMsg(_('Loading requirements from work orders'),'info'); - flush(); + flush(); // Definition of demand from SelectProduct.php - $sql = 'INSERT INTO mrprequirements + $sql = 'INSERT INTO mrprequirements (part, daterequired, quantity, @@ -281,9 +281,9 @@ ON woitems.wo=workorders.wo AND woitems.wo=worequirements.wo WHERE workorders.closed=0'; - $result = DB_query($sql,$db); - - $sql = 'INSERT INTO mrprequirements + $result = DB_query($sql,$db); + + $sql = 'INSERT INTO mrprequirements (part, daterequired, quantity, @@ -304,7 +304,7 @@ prnMsg(_('Loading requirements based on mrpdemands'),'info'); flush(); } - $sql = 'INSERT INTO mrprequirements + $sql = 'INSERT INTO mrprequirements (part, daterequired, quantity, @@ -323,33 +323,33 @@ WHERE reorderlevel > quantity'; $result = DB_query($sql,$db); prnMsg(_('Loading requirements based on reorder level'),'info'); - flush(); - + flush(); + $result = DB_query('ALTER TABLE mrprequirements ADD INDEX part(part)',$db); - + // In the following section, create mrpsupplies from open purchase orders, // open work orders, and current quantity onhand from locstock prnMsg(_('Creating supplies table'),'info'); flush(); $result = DB_query('DROP TABLE IF EXISTS mrpsupplies',$db); - // updateflag is set to 1 in UpdateSupplies if change date when matching requirements to + // updateflag is set to 1 in UpdateSupplies if change date when matching requirements to // supplies. Actually only change update flag in the array created from mrpsupplies $sql = 'CREATE TABLE mrpsupplies ( id int(11) NOT NULL auto_increment, - part char(20), + part char(20), duedate date, supplyquantity double, ordertype varchar(6), orderno int(11), mrpdate date, - updateflag smallint(6), + updateflag smallint(6), PRIMARY KEY (id))'; $result = DB_query($sql,$db,_('Create of mrpsupplies failed because')); - + prnMsg(_('Loading supplies from purchase orders'),'info'); flush(); - $sql = 'INSERT INTO mrpsupplies - (id, + $sql = 'INSERT INTO mrpsupplies + (id, part, duedate, supplyquantity, @@ -371,7 +371,7 @@ AND purchorders.status != "Cancelled" AND(quantityord - quantityrecd) > 0'; $result = DB_query($sql,$db); - + prnMsg(_('Loading supplies from inventory on hand'),'info'); flush(); // Set date for inventory already onhand to 0000-00-00 so it is first in sort @@ -409,14 +409,14 @@ "0000-00-00", 0 FROM locstock - WHERE quantity > 0 ' . + WHERE quantity > 0 ' . $whereloc . 'GROUP BY stockid'; $result = DB_query($sql,$db); - + prnMsg(_('Loading supplies from work orders'),'info'); flush(); - $sql = 'INSERT INTO mrpsupplies + $sql = 'INSERT INTO mrpsupplies (id, part, duedate, @@ -437,10 +437,10 @@ ON woitems.wo=workorders.wo WHERE workorders.closed=0'; $result = DB_query($sql,$db); - + $sql = 'ALTER TABLE mrpsupplies ADD INDEX part(part)'; $result = DB_query($sql,$db); - + // Create mrpplannedorders table to create a record for any unmet requirments // In the following section, create mrpsupplies from open purchase orders, // open work orders, and current quantity onhand from locstock @@ -449,33 +449,33 @@ $result = DB_query('DROP TABLE IF EXISTS mrpplannedorders',$db); $sql = 'CREATE TABLE mrpplannedorders ( id int(11) NOT NULL auto_increment, - part char(20), + part char(20), duedate date, supplyquantity double, ordertype varchar(6), orderno int(11), mrpdate date, - updateflag smallint(6), + updateflag smallint(6), PRIMARY KEY (id))'; $result = DB_query($sql,$db,_('Create of mrpplannedorders failed because')); - + // Find the highest and lowest level number $sql = 'SELECT MAX(level),MIN(level) from levels'; $result = DB_query($sql,$db); - + $myrow = DB_fetch_row($result); $maxlevel = $myrow[0]; - $minlevel = $myrow[1]; - + $minlevel = $myrow[1]; + // At this point, have all requirements in mrprequirements and all supplies to satisfy // those requirements in mrpsupplies. Starting at the top level, will read all parts one // at a time, compare the requirements and supplies to see if have to re-schedule or create - // planned orders to satisfy requirements. If there is a net requirement from a higher level - // part, that serves as a gross requirement for a lower level part, so will read down through + // planned orders to satisfy requirements. If there is a net requirement from a higher level + // part, that serves as a gross requirement for a lower level part, so will read down through // the Bill of Materials to generate those requirements in function LevelNetting(). for ($level = $maxlevel; $level >= $minlevel; $level--) { $sql = 'SELECT * FROM levels WHERE level = ' . "$level " . ' LIMIT 50000'; //should cover most eventualities!! - + prnMsg('</br>------ ' . _('Processing level') .' ' . $level . ' ------','info'); flush(); $result = DB_query($sql,$db); @@ -489,7 +489,7 @@ $sql = 'DROP TABLE IF EXISTS mrpparameters'; $result = DB_query($sql,$db); $sql = 'CREATE TABLE mrpparameters ( - runtime datetime, + runtime datetime, location varchar(50), pansizeflag varchar(5), shrinkageflag varchar(5), @@ -522,21 +522,21 @@ '" . $_POST['usemrpdemands'] . "', '" . $_POST['Leeway'] . "')"; $result = DB_query($sql,$db); - -} else { // End of if submit isset + +} else { // End of if submit isset // Display form if submit has not been hit - + // Display parameters from last run $sql = 'SELECT * FROM mrpparameters'; $result = DB_query($sql,$db,'','',false,false); if (DB_error_no($db)==0){ - + $myrow = DB_fetch_array($result); - + $leeway = $myrow['leeway']; $usemrpdemands = _('No'); if ($myrow['usemrpdemands'] == 'y') { - $usemrpdemands = 'Yes'; + $usemrpdemands = _('Yes'); } $useeoq = _('No'); if ($myrow['eoqflag'] == 'y') { @@ -550,7 +550,7 @@ if ($myrow['shrinkageflag'] == 'y') { $useshrinkage = _('Yes'); } - + echo '<table><tr><td>     </td>'; echo '<td>' . _('Last Run Time') . ':  </td><td>' . $myrow['runtime'] . '</td></tr>'; echo '<td></td><td>' . _('Location') . ':  </td><td>' . $myrow['location'] . '</td></tr>'; @@ -579,7 +579,7 @@ if (!isset($leeway)){ $leeway =0; } - + echo '<tr><td>' . _('Days Leeway') . ':</td><td><input type="text" name="Leeway" size="4" value=' . $leeway . '>'; echo '<tr><td>' ._('Use MRP Demands?') . ':</td>'; echo '<td><input type="checkbox" name="usemrpdemands" value="y" checked></td></tr>'; @@ -600,13 +600,13 @@ // them seeing if all requirements are covered by supplies. Create a planned order // for any unmet requirements. Change dates if necessary for the supplies. //echo '</br>Part is ' . "$part" . '</br>'; - + // Get decimal places from stockmaster for rounding of shrinkage factor $sql = "SELECT decimalplaces FROM stockmaster WHERE stockid = '" . $part . "'"; $result = DB_query($sql,$db); $myrow=DB_fetch_row($result); $decimalplaces = $myrow[0]; - + // Load mrprequirements into $requirements array $sql = "SELECT * FROM mrprequirements WHERE part = '" . "$part" . "' ORDER BY daterequired"; $result = DB_query($sql,$db); @@ -630,7 +630,7 @@ // Go through all requirements and check if have supplies to cover them $requirementcount = count($requirements); $supplycount = count($supplies); - $reqi = 0; //Index for requirements + $reqi = 0; //Index for requirements $supi = 0; // index for supplies $totalrequirement = 0; $totalsupply = 0; @@ -646,10 +646,10 @@ $datediff = DateDiff($duedate,$reqdate,'d'); //if ($supplies[$supi]['duedate'] > $requirements[$reqi]['daterequired']) { if ($datediff > abs($_POST['Leeway'])) { - $sql = "UPDATE mrpsupplies SET mrpdate = '" . $requirements[$reqi]['daterequired'] . + $sql = "UPDATE mrpsupplies SET mrpdate = '" . $requirements[$reqi]['daterequired'] . "' WHERE id = '" . $supplies[$supi]['id'] . "' AND duedate = mrpdate"; $result = DB_query($sql,$db); - } + } if ($totalrequirement > $totalsupply) { $totalrequirement -= $totalsupply; @@ -669,10 +669,10 @@ if ($requirementcount > $reqi) { $totalrequirement += $requirements[$reqi]['quantity']; } - } // End of if $totalrequirement > $totalsupply + } // End of if $totalrequirement > $totalsupply } // End of while } // End of if - + // When get to this part of code, have gone through all requirements, If there is any // unmet requirements, create an mrpplannedorder to cover it. Also call the // CreateLowerLevelRequirement() function to create gross requirements for lower level parts. @@ -694,7 +694,7 @@ // Should the quantity be rounded? if ($_POST['shrinkageflag'] == 'y' and $shrinkfactor > 0) { $requirement['quantity'] = ($requirement['quantity'] * 100) / (100 - $shrinkfactor); - $requirement['quantity'] = round($requirement['quantity'],$decimalplaces); + $requirement['quantity'] = round($requirement['quantity'],$decimalplaces); } if ($excessqty >= $requirement['quantity']) { $plannedqty = 0; @@ -735,8 +735,8 @@ '0')"; $result = DB_query($sql,$db); // If part has lower level components, create requirements for them - $sql = "SELECT COUNT(*) FROM bom - WHERE parent ='" . $requirement['part'] . "' + $sql = "SELECT COUNT(*) FROM bom + WHERE parent ='" . $requirement['part'] . "' GROUP BY parent"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); @@ -747,10 +747,10 @@ } } // End of if $plannedqty > 0 } // End of foreach $requirements - + // If there are any supplies not used and updateflag is zero, those supplies are not // necessary, so change date - + foreach($supplies as $supply) { if ($supply['supplyquantity'] > 0 && $supply['updateflag'] == 0) { $id = $supply['id']; @@ -775,23 +775,23 @@ levels.leadtime, levels.eoq FROM bom - LEFT JOIN levels + LEFT JOIN levels ON bom.component = levels.part WHERE bom.parent = '$toppart' - AND effectiveafter <= now() + AND effectiveafter <= now() AND effectiveto >= now()"; $resultbom = DB_query($sql,$db); while ($myrow=DB_fetch_array($resultbom)) { // Calculate required date by subtracting leadtime from top part's required date $leadtime = $myrow['leadtime']; - - // Following sql finds daynumber for the top part's required date, subtracts leadtime, and finds + + // Following sql finds daynumber for the top part's required date, subtracts leadtime, and finds // a valid manufacturing date for the daynumber. There is only one valid manufacturing date - // for each daynumber, but there could be several non-manufacturing dates for the + // for each daynumber, but there could be several non-manufacturing dates for the // same daynumber. MRPCalendar.php maintains the manufacturing calendar. - $calendarsql = "SELECT COUNT(*),cal2.calendardate - FROM mrpcalendar - LEFT JOIN mrpcalendar as cal2 + $calendarsql = "SELECT COUNT(*),cal2.calendardate + FROM mrpcalendar + LEFT JOIN mrpcalendar as cal2 ON (mrpcalendar.daynumber - $leadtime) = cal2.daynumber WHERE mrpcalendar.calendardate = '$topdate' AND cal2.manufacturingflag='1' @@ -802,7 +802,7 @@ // If can't find date based on manufacturing calendar, use $topdate if ($myrowdate[0] == 0){ // Convert $topdate from mysql format to system date format, use that to subtract leadtime - // from it using DateAdd, convert that date back to mysql format + // from it using DateAdd, convert that date back to mysql format $convertdate = ConvertSQLDate($topdate); $dateadd = DateAdd($convertdate,"d",($leadtime * -1)); $newdate = FormatDateForSQL($dateadd); @@ -810,12 +810,12 @@ $component = $myrow['component']; $extendedquantity = $myrow['quantity'] * $topquantity; -// Commented out the following lines 8/15/09 because the eoq should be considered in the +// Commented out the following lines 8/15/09 because the eoq should be considered in the // LevelNetting() function where $excessqty is calculated // if ($myrow['eoq'] > $extendedquantity) { // $extendedquantity = $myrow['eoq']; // } - $sql = "INSERT INTO mrprequirements + $sql = "INSERT INTO mrprequirements (part, daterequired, quantity, Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-18 21:19:35 UTC (rev 3308) +++ trunk/doc/Change.log.html 2010-01-19 10:14:45 UTC (rev 3309) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>19/01/10 Tim: MRP.php - Missing gettext function for string</p> <p>18/01/10 Tim: MRPPlannedWorkOrders.php - Add default date and use the javascript date picker</p> <p>18/01/10 Tim: MRPPlannedPurchaseOrders.php - Add default date and use the javascript date picker</p> <p>17/01/10 Tim: index.php - Add entry for planned work orders</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-20 17:36:27
|
Revision: 3311 http://web-erp.svn.sourceforge.net/web-erp/?rev=3311&view=rev Author: tim_schofield Date: 2010-01-20 17:36:19 +0000 (Wed, 20 Jan 2010) Log Message: ----------- Remove redundant javascript calls Modified Paths: -------------- trunk/AccountGroups.php trunk/AccountSections.php trunk/DiscountMatrix.php trunk/GLBudgets.php trunk/GoodsReceived.php trunk/Payments.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/StockLocTransfer.php trunk/StockLocTransferReceive.php trunk/TaxGroups.php trunk/WOSerialNos.php trunk/WorkCentres.php trunk/WorkOrderEntry.php trunk/WorkOrderReceive.php trunk/doc/Change.log.html Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/AccountGroups.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -18,10 +18,10 @@ $ErrMsg = _('An error occurred in retrieving the account groups of the parent account group during the check for recursion'); $DbgMsg = _('The SQL that was used to retrieve the account groups of the parent account group and that failed in the process was'); - + do { $sql = "SELECT parentgroupname FROM accountgroups WHERE groupname='" . $GroupName ."'"; - + $result = DB_query($sql,$db,$ErrMsg,$DbgMsg); $myrow = DB_fetch_row($result); if ($ParentGroupName == $myrow[0]){ @@ -36,9 +36,9 @@ if (isset($Errors)) { unset($Errors); } - -$Errors = array(); +$Errors = array(); + if (isset($_POST['submit'])) { //initialise no input errors assumed initially before we test @@ -50,8 +50,8 @@ //first off validate inputs sensible $i=1; - - $sql="SELECT count(groupname) + + $sql="SELECT count(groupname) FROM accountgroups WHERE groupname='".$_POST['GroupName']."'"; $DbgMsg = _('The SQL that was used to retrieve the information was'); @@ -64,7 +64,7 @@ $InputError = 1; prnMsg( _('The account group name already exists in the database'),'error'); $Errors[$i] = 'GroupName'; - $i++; + $i++; } if (ContainsIllegalCharacters($_POST['GroupName'])) { $InputError = 1; @@ -85,12 +85,12 @@ $Errors[$i] = 'ParentGroupName'; $i++; } else { - $sql = "SELECT pandl, - sequenceintb, - sectioninaccounts - FROM accountgroups + $sql = "SELECT pandl, + sequenceintb, + sectioninaccounts + FROM accountgroups WHERE groupname='" . $_POST['ParentGroupName'] . "'"; - + $DbgMsg = _('The SQL that was used to retrieve the information was'); $ErrMsg = _('Could not check whether the group is recursive because'); @@ -119,7 +119,7 @@ prnMsg( _('The sequence in the TB must be numeric and less than') . ' 10,000','error'); $Errors[$i] = 'SequenceInTB'; $i++; - } + } if ($_POST['SelectedAccountGroup']!='' AND $InputError !=1) { @@ -216,7 +216,7 @@ sequenceintb, pandl, parentgroupname - FROM accountgroups + FROM accountgroups LEFT JOIN accountsection ON sectionid = sectioninaccounts ORDER BY sequenceintb"; @@ -224,7 +224,7 @@ $ErrMsg = _('Could not get account groups because'); $result = DB_query($sql,$db,$ErrMsg,$DbgMsg); echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="">' . ' ' . $title.'<br>'; - + echo '<table> <tr> <th>' . _('Group Name') . "</th> @@ -369,7 +369,7 @@ } echo '</select>'; echo '</td></tr>'; - + echo '<tr><td>' . _('Profit and Loss') . ':' . '</td> <td><select tabindex="4" name="PandL">'; @@ -388,7 +388,7 @@ echo '<tr><td>' . _('Sequence In TB') . ':' . '</td>'; echo '<td><input tabindex="5" ' . (in_array('SequenceInTB',$Errors) ? 'class="inputerror"' : '' ) . - ' type="text" maxlength="4" name="SequenceInTB" onkeypress="return restrictToNumbers(this, event)" + ' type="text" maxlength="4" name="SequenceInTB" class=number value="' . $_POST['SequenceInTB'] . '" /></td></tr>'; echo '</table>'; @@ -396,9 +396,9 @@ echo '<div class="centre"><input tabindex="6" type="submit" name="submit" value="' . _('Enter Information') . '" /></div>'; echo '<script type="text/javascript">defaultControl(document.forms[0].GroupName);</script>'; - + echo '</form>'; } //end if record deleted no point displaying form to add record include('includes/footer.inc'); -?> +?> \ No newline at end of file Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/AccountSections.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -17,7 +17,7 @@ if( $myrow[0] == 0 ) { $sql = "INSERT INTO accountsection ( sectionid, - sectionname + sectionname ) VALUES ( 1, 'Income' @@ -31,22 +31,22 @@ if( $myrow[0] == 0 ) { $sql = "INSERT INTO accountsection ( sectionid, - sectionname + sectionname ) VALUES ( 2, 'Cost Of Sales' )"; $result = DB_query($sql,$db); } -// DONE WITH MINIMUM TESTS +// DONE WITH MINIMUM TESTS if (isset($Errors)) { unset($Errors); } - -$Errors = array(); +$Errors = array(); + if (isset($_POST['submit'])) { //initialise no input errors assumed initially before we test @@ -59,7 +59,7 @@ //first off validate inputs sensible if (isset($_POST['SectionID'])) { - $sql="SELECT count(sectionid) + $sql="SELECT count(sectionid) FROM accountsection WHERE sectionid='".$_POST['SectionID']."'"; $result=DB_query($sql, $db); $myrow=DB_fetch_row($result); @@ -67,32 +67,32 @@ $InputError = 1; prnMsg( _('The account section already exists in the database'),'error'); $Errors[$i] = 'SectionID'; - $i++; + $i++; } } if (strpos($_POST['SectionName'],'&')>0 OR strpos($_POST['SectionName'],"'")>0) { $InputError = 1; prnMsg( _('The account section name cannot contain the character') . " '&' " . _('or the character') ." '",'error'); $Errors[$i] = 'SectionName'; - $i++; - } + $i++; + } if (strlen($_POST['SectionName'])==0) { $InputError = 1; prnMsg( _('The account section name must contain at least one character') ,'error'); $Errors[$i] = 'SectionName'; - $i++; + $i++; } if (isset($_POST['SectionID']) and (!is_numeric($_POST['SectionID']))) { $InputError = 1; prnMsg( _('The section number must be an integer'),'error'); $Errors[$i] = 'SectionID'; - $i++; + $i++; } if (isset($_POST['SectionID']) and strpos($_POST['SectionID'],".")>0) { $InputError = 1; prnMsg( _('The section number must be an integer'),'error'); $Errors[$i] = 'SectionID'; - $i++; + $i++; } if (isset($_POST['SelectedSectionID']) and $_POST['SelectedSectionID']!='' AND $InputError !=1) { @@ -144,7 +144,7 @@ $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); $SectionName = $myrow[0]; - + $sql="DELETE FROM accountsection WHERE sectionid='" . $_GET['SelectedSectionID'] . "'"; $result = DB_query($sql,$db); prnMsg( $SectionName . ' ' . _('section has been deleted') . '!','success'); @@ -159,7 +159,7 @@ if (!isset($_GET['SelectedSectionID']) OR !isset($_POST['SelectedSectionID'])) { -/* An account section could be posted when one has been edited and is being updated +/* An account section could be posted when one has been edited and is being updated or GOT when selected for modification SelectedSectionID will exist because it was sent with the page in a GET . If its the first time the page has been displayed with no parameters @@ -254,7 +254,7 @@ echo "<table> <tr> <td>" . _('Section Number') . ':' . '</td> - <td><input tabindex="1" ' . (in_array('SectionID',$Errors) ? 'class="inputerror"' : '' ) ." type='text' name='SectionID' onKeyPress='return restrictToNumbers(this, event)' size=4 maxlength=4 value='" . $_POST['SectionID'] . "'></td></tr>"; + <td><input tabindex="1" ' . (in_array('SectionID',$Errors) ? 'class="inputerror"' : '' ) ." type='text' name='SectionID' class=number size=4 maxlength=4 value='" . $_POST['SectionID'] . "'></td></tr>"; } echo "<tr><td>" . _('Section Description') . ':' . '</td> <td><input tabindex="2" ' . (in_array('SectionName',$Errors) ? 'class="inputerror"' : '' ) ." type='text' name='SectionName' size=30 maxlength=30 value='" . $_POST['SectionName'] . "'></td> Modified: trunk/DiscountMatrix.php =================================================================== --- trunk/DiscountMatrix.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/DiscountMatrix.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -11,8 +11,8 @@ if (isset($Errors)) { unset($Errors); } - -$Errors = array(); + +$Errors = array(); $i=1; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="">' . ' ' . $title.'<br>'; @@ -26,26 +26,26 @@ prnMsg( _('The quantity break must be entered as a positive number'),'error'); $InputError =1; $Errors[$i] = 'QuantityBreak'; - $i++; + $i++; } if ($_POST['QuantityBreak']<=0){ prnMsg( _('The quantity of all items on an order in the discount category') . ' ' . $_POST['DiscountCategory'] . ' ' . _('at which the discount will apply is 0 or less than 0') . '. ' . _('Positive numbers are expected for this entry'),'warn'); $InputError =1; $Errors[$i] = 'QuantityBreak'; - $i++; + $i++; } if (!is_numeric($_POST['DiscountRate'])){ prnMsg( _('The discount rate must be entered as a positive number'),'warn'); $InputError =1; $Errors[$i] = 'DiscountRate'; - $i++; + $i++; } if ($_POST['DiscountRate']<=0 OR $_POST['DiscountRate']>=70){ prnMsg( _('The discount rate applicable for this record is either less than 0% or greater than 70%') . '. ' . _('Numbers between 1 and 69 are expected'),'warn'); $InputError =1; $Errors[$i] = 'DiscountRate'; - $i++; + $i++; } /* actions to take once the user has clicked the submit button @@ -53,13 +53,13 @@ if ($InputError !=1) { - $sql = "INSERT INTO discountmatrix (salestype, - discountcategory, - quantitybreak, - discountrate) - VALUES('" . $_POST['SalesType'] . "', - '" . $_POST['DiscountCategory'] . "', - " . $_POST['QuantityBreak'] . ", + $sql = "INSERT INTO discountmatrix (salestype, + discountcategory, + quantitybreak, + discountrate) + VALUES('" . $_POST['SalesType'] . "', + '" . $_POST['DiscountCategory'] . "', + " . $_POST['QuantityBreak'] . ", " . ($_POST['DiscountRate']/100) . ')'; $result = DB_query($sql,$db); @@ -126,11 +126,11 @@ echo '<tr><td>' . _('Quantity Break') . ":</td><td><input class='number' tabindex=3 " . (in_array('QuantityBreak',$Errors) ? "class='inputerror'" : "") - ." type='text' name='QuantityBreak' size=10 maxlength=10 onKeyPress='return restrictToNumbers(this, event)'></td></tr>"; + ." type='text' name='QuantityBreak' size=10 maxlength=10></td></tr>"; echo '<tr><td>' . _('Discount Rate') . " (%):</td><td><input class='number' tabindex=4 " . (in_array('DiscountRate',$Errors) ? "class='inputerror'" : "") . - "type='text' name='DiscountRate' size=4 maxlength=4 onKeyPress='return restrictToNumbers(this, event)'></td></tr>"; + "type='text' name='DiscountRate' size=4 maxlength=4></td></tr>"; echo '</table><br>'; echo "<div class='centre'><input tabindex=5 type='submit' name='submit' value='" . _('Enter Information') . "'></div><hr>"; Modified: trunk/GLBudgets.php =================================================================== --- trunk/GLBudgets.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/GLBudgets.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -31,7 +31,7 @@ echo '<form action=' . $_SERVER['PHP_SELF'] . '?' . SID . ' method=post name="selectaccount">'; echo '<table>'; -echo '</br><tr><td>'. _('Select GL Account'). ":</td><td><select name='SelectedAccount' +echo '</br><tr><td>'. _('Select GL Account'). ":</td><td><select name='SelectedAccount' onChange='ReloadForm(selectaccount.Select)'>"; $SQL = 'SELECT accountcode, @@ -121,9 +121,9 @@ if (isset($_POST['apportion'])) { for ($i=1; $i<=12; $i++) { - if ($_POST['AnnualAmount'] != '0') + if ($_POST['AnnualAmount'] != '0') $budget[$CurrentYearEndPeriod+($i)] = $_POST['AnnualAmount']/12; - if ($_POST['AnnualAmountTY'] != '0') + if ($_POST['AnnualAmountTY'] != '0') $budget[$CurrentYearEndPeriod+($i)-12] = $_POST['AnnualAmountTY']/12; } } @@ -168,10 +168,10 @@ echo '<td bgcolor="d2e5e8" class="number">'.number_format($budget[$CurrentYearEndPeriod-(24-$i)],2,'.','').'</td>'; echo '<th>'. $PeriodEnd[$CurrentYearEndPeriod-(12-$i)] .'</th>'; echo '<td bgcolor="d2e5e8" class="number">'.number_format($actual[$CurrentYearEndPeriod-(12-$i)],2,'.','').'</td>'; - echo '<td><input type="text" onKeyPress="return restrictToNumbers(this, event)" class="number" size=14 name='.$i.'this'.' value="'.number_format($budget[$CurrentYearEndPeriod-(12-$i)],2,'.','').'"></td>'; + echo '<td><input type="text" class="number" size=14 name='.$i.'this'.' value="'.number_format($budget[$CurrentYearEndPeriod-(12-$i)],2,'.','').'"></td>'; echo '<th>'. $PeriodEnd[$CurrentYearEndPeriod+($i)] .'</th>'; echo '<td bgcolor="d2e5e8" class="number">'.number_format($actual[$CurrentYearEndPeriod+($i)],2,'.','').'</td>'; - echo '<td><input type="text" onKeyPress="return restrictToNumbers(this, event)" class="number" size=14 name='.$i.'next'.' value='.number_format($budget[$CurrentYearEndPeriod+($i)],2,'.','').'></td>'; + echo '<td><input type="text" class="number" size=14 name='.$i.'next'.' value='.number_format($budget[$CurrentYearEndPeriod+($i)],2,'.','').'></td>'; echo '</tr>'; $LastYearActual=$LastYearActual+$actual[$CurrentYearEndPeriod-(24-$i)]; $LastYearBudget=$LastYearBudget+$budget[$CurrentYearEndPeriod-(24-$i)]; @@ -193,9 +193,9 @@ echo '<th align="right">'.number_format($NextYearActual,2,'.',''). '</th>'; echo '<th align="right">'.number_format($NextYearBudget,2,'.',''). '</th></tr>'; echo '<tr><td></td><td></td><td></td><td colspan=2>'._('Annual Budget').'</td>'; - echo '<td><input onKeyPress="return restrictToNumbers(this, event)" type="text" size=14 name="AnnualAmountTY" style="text-align: right" value=0.00></td>'; + echo '<td><input class=number type="text" size=14 name="AnnualAmountTY" value=0.00></td>'; echo '</td><td></td><td>'; - echo '<td><input onChange="numberFormat(this,2)" onKeyPress="return restrictToNumbers(this, event)" type="text" size=14 name="AnnualAmount" style="text-align: right" value=0.00></td>'; + echo '<td><input onChange="numberFormat(this,2)" class=number type="text" size=14 name="AnnualAmount" value=0.00></td>'; echo '<td><input type="submit" name="apportion" value="Apportion budget"></td>'; echo '</tr>'; echo '</table>'; Modified: trunk/GoodsReceived.php =================================================================== --- trunk/GoodsReceived.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/GoodsReceived.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -127,7 +127,7 @@ } else { $uom=$LnItm->Units; } - + //Now Display LineItem echo '<td><font size=2>' . $LnItm->StockID . '</font></td>'; echo '<td><font size=2>' . $LnItm->ItemDescription . '</td>'; @@ -141,7 +141,7 @@ echo '<input type=hidden name="RecvQty_' . $LnItm->LineNo . '" value="' . $LnItm->ReceiveQty . '"><a href="GoodsReceivedControlled.php?' . SID . '&LineNo=' . $LnItm->LineNo . '">' . number_format($LnItm->ReceiveQty,$LnItm->DecimalPlaces) . '</a></td>'; } else { - echo '<input type=text class=number name="RecvQty_' . $LnItm->LineNo . '" maxlength=10 size=10 onKeyPress="return restrictToNumbers(this, event)" onFocus="return setTextAlign(this, '."'".'right'."'".')" value="' . $LnItm->ReceiveQty . '"></td>'; + echo '<input type=text class=number name="RecvQty_' . $LnItm->LineNo . '" maxlength=10 size=10 value="' . $LnItm->ReceiveQty . '"></td>'; } echo '<td class=number><font size=2>' . $DisplayPrice . '</td>'; @@ -378,7 +378,7 @@ completed=0 WHERE podetailitem = " . $OrderLine->PODetailRec; } - + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The purchase order detail record could not be updated with the quantity received because'); $DbgMsg = _('The following SQL to update the purchase order detail record was used'); $Result = DB_query($SQL,$db, $ErrMsg, $DbgMsg, true); @@ -527,16 +527,16 @@ $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The serial stock item record could not be inserted because'); $DbgMsg = _('The following SQL to insert the serial stock item records was used'); $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true); - + /*Update fixed asset details */ $sql='select stocktype from stockcategory - left join stockmaster on - stockcategory.categoryid=stockmaster.categoryid + left join stockmaster on + stockcategory.categoryid=stockmaster.categoryid where stockmaster.stockid="'.$OrderLine->StockID.'"'; $result=DB_query($sql, $db); $myrow=DB_fetch_array($result); if ($myrow['stocktype']=='A') { - $SQL = "INSERT INTO assetmanager + $SQL = "INSERT INTO assetmanager VALUES (NULL, '" . $OrderLine->StockID . "', '" . $Item->BundleRef . "', @@ -620,12 +620,12 @@ } /*end of OrderLine loop */ $completedsql='SELECT SUM(completed) as completedlines, COUNT(podetailitem) as alllines - FROM purchorderdetails + FROM purchorderdetails WHERE orderno='.$_SESSION['PO']->OrderNo; $completedresult=DB_query($completedsql,$db); $mycompletedrow=DB_fetch_array($completedresult); $status=$mycompletedrow['alllines']-$mycompletedrow['completedlines']; - + if ($status==0) { $sql='SELECT stat_comment FROM purchorders WHERE orderno='.$_SESSION['PO']->OrderNo; $result=DB_query($sql,$db); @@ -633,14 +633,14 @@ $comment=$myrow['stat_comment']; $date = date($_SESSION['DefaultDateFormat']); $StatusComment=$date.' - Order Completed'.'<br>'.$comment; - $sql="UPDATE purchorders + $sql="UPDATE purchorders SET status='" . PurchOrder::STATUS_COMPLITED . "', stat_comment='".$StatusComment."' WHERE orderno=".$_SESSION['PO']->OrderNo; $result=DB_query($sql,$db); } - + $Result = DB_Txn_Commit($db); $PONo = $_SESSION['PO']->OrderNo; unset($_SESSION['PO']->LineItems); Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/Payments.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -234,8 +234,8 @@ } $PeriodNo = GetPeriod($_SESSION['PaymentDetail']->DatePaid,$db); - - + + // first time through commit if supplier cheque then print it first if ((!isset($_POST['ChequePrinted'])) AND (!isset($_POST['PaymentCancelled'])) @@ -521,7 +521,7 @@ $ErrMsg = _('Cannot insert a bank transaction because'); $DbgMsg = _('Cannot insert a bank transaction using the SQL'); - $result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); + $result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); } else { foreach ($_SESSION['PaymentDetail']->GLItems as $PaymentItem) { $SQL="INSERT INTO banktrans (transno, @@ -891,14 +891,13 @@ /*now set up a GLCode field to select from avaialble GL accounts */ if (isset($_POST['GLManualCode'])) { echo '<tr><td>' . _('Enter GL Account Manually') . ':</td> - <td><input type=Text Name="GLManualCode" Maxlength=12 size=12onChange="return inArray(this, this.value, GLCode.options,'. + <td><input type=Text class="number" Name="GLManualCode" Maxlength=12 size=12 onChange="return inArray(this, this.value, GLCode.options,'. "'".'The account code '."'".'+ this.value+ '."'".' doesnt exist'."'".')"' . - ' onKeyPress="return restrictToNumbers(this, event)" VALUE='. $_POST['GLManualCode'] .' ></td></tr>'; + ' VALUE='. $_POST['GLManualCode'] .' ></td></tr>'; } else { echo '<tr><td>' . _('Enter GL Account Manually') . ':</td> - <td><input type=Text Name="GLManualCode" Maxlength=12 size=12 onChange="return inArray(this, this.value, GLCode.options,'. - "'".'The account code '."'".'+ this.value+ '."'".' doesnt exist'."'".')"' . - ' onKeyPress="return restrictToNumbers(this, event)"></td></tr>'; + <td><input type=Text class="number" Name="GLManualCode" Maxlength=12 size=12 onChange="return inArray(this, this.value, GLCode.options,'. + "'".'The account code '."'".'+ this.value+ '."'".' doesnt exist'."'".')"></td></tr>'; } echo '<tr><td>' . _('Select GL Account') . ':</td> <td><select name="GLCode" onChange="return assignComboToInput(this,'.'GLManualCode'.')">'; @@ -928,14 +927,14 @@ if (isset($_POST['GLNarrative'])) { echo '<tr><td>' . _('GL Narrative') . ':</td><td><input type="text" name="GLNarrative" maxlength=50 size=52 value="' . $_POST['GLNarrative'] . '"></td></tr>'; } else { - echo '<tr><td>' . _('GL Narrative') . ':</td><td><input type="text" name="GLNarrative" maxlength=50 size=52></td></tr>'; + echo '<tr><td>' . _('GL Narrative') . ':</td><td><input type="text" name="GLNarrative" maxlength=50 size=52></td></tr>'; } - + if (isset($_POST['GLAmount'])) { - echo '<tr><td>' . _('Amount') . ' (' . $_SESSION['PaymentDetail']->Currency . '):</td><td><input type=Text Name="GLAmount" Maxlength=12 size=12 onKeyPress="return restrictToNumbers(this, event)" onChange="numberFormat(this,2)" onFocus="return setTextAlign(this, '."'".'right'."'".')" VALUE=' . $_POST['GLAmount'] . '></td></tr>'; + echo '<tr><td>' . _('Amount') . ' (' . $_SESSION['PaymentDetail']->Currency . '):</td><td><input type=Text Name="GLAmount" Maxlength=12 size=12 class=number VALUE=' . $_POST['GLAmount'] . '></td></tr>'; } else { - echo '<tr><td>' . _('Amount') . ' (' . $_SESSION['PaymentDetail']->Currency . '):</td><td><input type=Text Name="GLAmount" Maxlength=12 size=12 onKeyPress="return restrictToNumbers(this, event)" onChange="numberFormat(this,2)" onFocus="return setTextAlign(this, '."'".'right'."'".')"></td></tr>'; - } + echo '<tr><td>' . _('Amount') . ' (' . $_SESSION['PaymentDetail']->Currency . '):</td><td><input type=Text Name="GLAmount" Maxlength=12 size=12 class=number></td></tr>'; + } echo '</table>'; echo '<div class="centre"><input type=submit name="Process" value="' . _('Accept') . '"><input type=submit name="Cancel" value="' . _('Cancel') . '"></div>'; Modified: trunk/SelectGLAccount.php =================================================================== --- trunk/SelectGLAccount.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/SelectGLAccount.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -49,8 +49,8 @@ $SQL = "SELECT chartmaster.accountcode, chartmaster.accountname, chartmaster.group_, - CASE WHEN accountgroups.pandl!=0 - THEN '" . _('Profit and Loss') . "' + CASE WHEN accountgroups.pandl!=0 + THEN '" . _('Profit and Loss') . "' ELSE '" . _('Balance Sheet') . "' END AS pl FROM chartmaster, accountgroups @@ -84,7 +84,7 @@ if (!isset($AccountID)) { -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . _('Search for General Ledger Accounts'); +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . _('Search for General Ledger Accounts'); echo "<br><form action='" . $_SERVER['PHP_SELF'] . '?' . SID . "' method=post>"; if(strlen($msg)>1){ @@ -97,7 +97,7 @@ <td><input type='Text' name='Keywords' size=20 maxlength=25></td> <td><font size=3><b>" . _('OR') . "</b></font></td> <td><font size=1>" . _('Enter Account No. to search from') . ":</font></td> - <td><input type='Text' name='GLCode' size=15 maxlength=18 onKeyPress='return restrictToNumbers(this, event)' ></td> + <td><input type='Text' name='GLCode' size=15 maxlength=18 class=number ></td> </tr> </table><br>"; Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/SelectOrderItems.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -62,7 +62,7 @@ } -// removed to improve UI layout +// removed to improve UI layout //echo '<a href="'. $rootpath . '/SelectSalesOrder.php?' . SID . '">'. _('Back to Sales Orders'). '</a><br>'; if (isset($_GET['ModifyOrderNumber']) @@ -250,7 +250,7 @@ $myrow['eoq'], $myrow['nextserialno'], $ExRate ); - + /*Just populating with existing order - no DBUpdates */ } $LastLineNo = $myrow['orderlineno']; @@ -324,10 +324,10 @@ custbranch.debtorno FROM custbranch WHERE custbranch.brname " . LIKE . " '$SearchString'"; - + if ($_SESSION['SalesmanLogin']!=''){ $SQL .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; - } + } $SQL .= ' AND custbranch.disabletrans=0 ORDER BY custbranch.debtorno, custbranch.branchcode'; @@ -343,7 +343,7 @@ custbranch.debtorno FROM custbranch WHERE custbranch.debtorno " . LIKE . " '%" . $_POST['CustCode'] . "%' OR custbranch.branchcode " . LIKE . " '%" . $_POST['CustCode'] . "%'"; - + if ($_SESSION['SalesmanLogin']!=''){ $SQL .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; } @@ -358,11 +358,11 @@ custbranch.debtorno FROM custbranch WHERE custbranch.phoneno " . LIKE . " '%" . $_POST['CustPhone'] . "%'"; - + if ($_SESSION['SalesmanLogin']!=''){ $SQL .= " AND custbranch.salesman='" . $_SESSION['SalesmanLogin'] . "'"; } - + $SQL .= ' AND custbranch.disabletrans=0 ORDER BY custbranch.debtorno'; } @@ -476,7 +476,7 @@ include('includes/footer.inc'); exit; } - + $_SESSION['Items'.$identifier]->DeliverTo = $myrow[0]; $_SESSION['Items'.$identifier]->DelAdd1 = $myrow[1]; $_SESSION['Items'.$identifier]->DelAdd2 = $myrow[2]; @@ -602,8 +602,8 @@ if ($_SESSION['RequireCustomerSelection'] ==1 OR !isset($_SESSION['Items'.$identifier]->DebtorNo) OR $_SESSION['Items'.$identifier]->DebtorNo=='') { - + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . _('Enter an Order or Quotation') . ' : ' . _('Search for the Customer Branch.') . '</p>'; echo '<div class="page_help_text">' . _('Orders/Quotations are placed against the Customer Branch. A Customer may have several Branches.') . '</div>'; @@ -901,10 +901,10 @@ /*Process Quick Entry */ /* If enter is pressed on the quick entry screen, the default button may be Recalculate */ - if (isset($_POST['order_items']) - OR isset($_POST['QuickEntry']) - OR isset($_POST['Recalculate'])){ - + if (isset($_POST['order_items']) + OR isset($_POST['QuickEntry']) + OR isset($_POST['Recalculate'])){ + /* get the item details from the database and hold them in the cart object */ /*Discount can only be set later on -- after quick entry -- so default discount to 0 in the first place */ @@ -991,7 +991,7 @@ unset($NewItem); } /* end of if quick entry */ - + /*Now do non-quick entry delete/edits/adds */ if ((isset($_SESSION['Items'.$identifier])) OR isset($NewItem)){ @@ -1011,7 +1011,7 @@ if (isset($_POST['Quantity_' . $OrderLine->LineNumber])){ $Quantity = $_POST['Quantity_' . $OrderLine->LineNumber]; - + if (ABS($OrderLine->Price - $_POST['Price_' . $OrderLine->LineNumber])>0.01){ $Price = $_POST['Price_' . $OrderLine->LineNumber]; $_POST['GPPercent_' . $OrderLine->LineNumber] = (($Price*(1-($_POST['Discount_' . $OrderLine->LineNumber]/100))) - $OrderLine->StandardCost*$ExRate)/($Price *(1-$_POST['Discount_' . $OrderLine->LineNumber])/100); @@ -1020,14 +1020,14 @@ $Price = ($OrderLine->StandardCost*$ExRate)/(1 -(($_POST['GPPercent_' . $OrderLine->LineNumber] + $_POST['Discount_' . $OrderLine->LineNumber])/100)); } else { $Price = $_POST['Price_' . $OrderLine->LineNumber]; - } + } $DiscountPercentage = $_POST['Discount_' . $OrderLine->LineNumber]; if ($_SESSION['AllowOrderLineItemNarrative'] == 1) { $Narrative = $_POST['Narrative_' . $OrderLine->LineNumber]; } else { $Narrative = ''; } - + if (!isset($OrderLine->DiscountPercent)) { $OrderLine->DiscountPercent = 0; } @@ -1047,13 +1047,13 @@ } elseif ($_SESSION['Items'.$identifier]->LineItems[$OrderLine->LineNumber]->QtyInv > $Quantity){ prnMsg( _('You are attempting to make the quantity ordered a quantity less than has already been invoiced') . '. ' . _('The quantity delivered and invoiced cannot be modified retrospectively'),'warn'); - } elseif ($OrderLine->Quantity !=$Quantity - OR $OrderLine->Price != $Price - OR ABS($OrderLine->DiscountPercent -$DiscountPercentage/100) >0.001 - OR $OrderLine->Narrative != $Narrative - OR $OrderLine->ItemDue != $_POST['ItemDue_' . $OrderLine->LineNumber] + } elseif ($OrderLine->Quantity !=$Quantity + OR $OrderLine->Price != $Price + OR ABS($OrderLine->DiscountPercent -$DiscountPercentage/100) >0.001 + OR $OrderLine->Narrative != $Narrative + OR $OrderLine->ItemDue != $_POST['ItemDue_' . $OrderLine->LineNumber] OR $OrderLine->POLine != $_POST['POLine_' . $OrderLine->LineNumber]) { - + $_SESSION['Items'.$identifier]->update_cart_item($OrderLine->LineNumber, $Quantity, $Price, @@ -1113,7 +1113,7 @@ } else { /*Its not a kit set item*/ $NewItemDue = date($_SESSION['DefaultDateFormat']); $NewPOLine = 0; - + include('includes/SelectOrderItems_IntoCart.inc'); } @@ -1223,7 +1223,7 @@ <th>' . _('Unit') . '</th> <th>' . _('Price') . '</th>'; - if (in_array(2,$_SESSION['AllowedPageSecurityTokens'])){ + if (in_array(2,$_SESSION['AllowedPageSecurityTokens'])){ echo '<th>' . _('Discount') . '</th> <th>' . _('GP %') . '</th>'; } @@ -1263,7 +1263,7 @@ echo '<td><a target="_blank" href="' . $rootpath . '/StockStatus.php?' . SID .'identifier='.$identifier . '&StockID=' . $OrderLine->StockID . '&DebtorNo=' . $_SESSION['Items'.$identifier]->DebtorNo . '">' . $OrderLine->StockID . '</a></td> <td>' . $OrderLine->ItemDescription . '</td>'; - echo '<td><input class="number" onKeyPress="return restrictToNumbers(this, event)" tabindex=2 type=tect name="Quantity_' . $OrderLine->LineNumber . '" size=6 maxlength=6 value=' . $OrderLine->Quantity . '>'; + echo '<td><input class="number" tabindex=2 type=tect name="Quantity_' . $OrderLine->LineNumber . '" size=6 maxlength=6 value=' . $OrderLine->Quantity . '>'; if ($QtyRemain != $QtyOrdered){ echo '<br>'.$OrderLine->QtyInv.' of '.$OrderLine->Quantity.' invoiced'; } @@ -1273,9 +1273,9 @@ if (in_array(2,$_SESSION['AllowedPageSecurityTokens'])){ /*OK to display with discount if it is an internal user with appropriate permissions */ - echo '<td><input class="number" onKeyPress="return restrictToNumbers(this, event)" type=text name="Price_' . $OrderLine->LineNumber . '" size=16 maxlength=16 value=' . $OrderLine->Price . '></td> - <td><input class="number" onKeyPress="return restrictToNumbers(this, event)" type=text name="Discount_' . $OrderLine->LineNumber . '" size=5 maxlength=4 value=' . ($OrderLine->DiscountPercent * 100) . '></td> - <td><input class="number" onKeyPress="return restrictToNumbers(this, event)" type=text name="GPPercent_' . $OrderLine->LineNumber . '" size=3 maxlength=40 value=' . $OrderLine->GPPercent . '></td>'; + echo '<td><input class="number" type=text name="Price_' . $OrderLine->LineNumber . '" size=16 maxlength=16 value=' . $OrderLine->Price . '></td> + <td><input class="number" type=text name="Discount_' . $OrderLine->LineNumber . '" size=5 maxlength=4 value=' . ($OrderLine->DiscountPercent * 100) . '></td> + <td><input class="number" type=text name="GPPercent_' . $OrderLine->LineNumber . '" size=3 maxlength=40 value=' . $OrderLine->GPPercent . '></td>'; } else { echo '<td class=number>' . $OrderLine->Price . '</td><td></td>'; echo '<input type=hidden name="Price_' . $OrderLine->LineNumber . '" value=' . $OrderLine->Price . '>'; @@ -1338,10 +1338,10 @@ echo '<input type="hidden" name="PartSearch" value="' . _('Yes Please') . '">'; if ($_SESSION['FrequentlyOrderedItems']>0){ //show the Frequently Order Items selection where configured to do so - + // Select the most recently ordered items for quick select $SixMonthsAgo = DateAdd (Date($_SESSION['DefaultDateFormat']),'m',-6); - + $SQL="SELECT stockmaster.units, stockmaster.description, stockmaster.stockid, salesorderdetails.stkcode, SUM(qtyinvoiced) Sales FROM `salesorderdetails`, `stockmaster` WHERE ActualDispatchDate >= '" . FormatDateForSQL($SixMonthsAgo) . "' AND salesorderdetails.stkcode = stockmaster.stockid @@ -1400,7 +1400,7 @@ // Find the quantity on purchase orders $sql = "SELECT SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS dem FROM purchorderdetails - WHERE purchorderdetails.completed=0 + WHERE purchorderdetails.completed=0 AND purchorderdetails.itemcode='" . $myrow['stockid'] . "'"; $ErrMsg = _('The order details for this product cannot be retrieved because'); @@ -1502,8 +1502,8 @@ <td align="right"><b><?php echo _('OR'); ?> </b><b><?php echo _('Enter extract of the Stock Code'); ?>:</b> <input tabindex=3 type="Text" name="StockCode" size=15 maxlength=18 value="<?php if (isset($_POST['StockCode'])) echo $_POST['StockCode']; ?>"></td> - - </tr><tr> + + </tr><tr> <td style="text-align:center" colspan=1><input tabindex=4 type=submit name="Search" value="<?php echo _('Search Now'); ?>"></td> <td style="text-align:center" colspan=1><input tabindex=5 type=submit name="QuickEntry" value="<?php echo _('Use Quick Entry'); ?>"></td> @@ -1705,10 +1705,10 @@ }#end of else not selecting a customer echo '</form>'; -echo '<script type="text/javascript">defaultControl(document.SelectParts.part_1);</script>'; +echo '<script type="text/javascript">defaultControl(document.SelectParts.part_1);</script>'; if (isset($_GET['NewOrder']) and $_GET['NewOrder']!='') { - echo '<script type="text/javascript">defaultControl(document.SelectCustomer.CustKeywords);</script>'; + echo '<script type="text/javascript">defaultControl(document.SelectCustomer.CustKeywords);</script>'; } include('includes/footer.inc'); ?> Modified: trunk/StockLocTransfer.php =================================================================== --- trunk/StockLocTransfer.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/StockLocTransfer.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -118,7 +118,7 @@ If (isset($InputError) and $InputError==true){ echo '<br>'; - + prnMsg($ErrorMessage, 'error'); echo '<br>'; @@ -180,8 +180,8 @@ $k=0; } echo '<tr> - <td><input type=text name="StockID' . $i .'" size=21 maxlength=20 Value="' . $_POST['StockID' . $i] . '"></td> - <td><input type=text name="StockQTY' . $i .'" size=5 maxlength=4 onkeypress="return restrictToNumbers(this, event)" onFocus="return setTextAlign(this, '."'".'right'."'".')" Value="' . $_POST['StockQTY' . $i] . '"></td> + <td><input type=text name="StockID' . $i .'" size=21 maxlength=20 value="' . $_POST['StockID' . $i] . '"></td> + <td><input type=text name="StockQTY' . $i .'" size=5 maxlength=4 class="number" value="' . $_POST['StockQTY' . $i] . '"></td> </tr>'; } }else { @@ -198,14 +198,14 @@ $_POST['StockQTY' . $i]=0; } echo '<tr> - <td><input type=text name="StockID' . $i .'" size=21 maxlength=20 Value="' . $_POST['StockID' . $i] . '"></td> - <td><input type=text name="StockQTY' . $i .'" size=5 maxlength=4 onkeypress="return restrictToNumbers(this, event)" onFocus="return setTextAlign(this, '."'".'right'."'".')" Value="' . $_POST['StockQTY' . $i] . '"></td> + <td><input type=text name="StockID' . $i .'" size=21 maxlength=20 value="' . $_POST['StockID' . $i] . '"></td> + <td><input type=text name="StockQTY' . $i .'" size=5 maxlength=4 class="number" value="' . $_POST['StockQTY' . $i] . '"></td> </tr>'; $i++; } echo '</table><br><div class="centre"> - <input type=hidden name="LinesCounter" value='. $i .'><input type=submit name="EnterMoreItems" VALUE="'. _('Add More Items'). '"><input type=submit name="Submit" VALUE="'. _('Create Transfer Shipment'). '"><br><hr>'; + <input type=hidden name="LinesCounter" value='. $i .'><input type=submit name="EnterMoreItems" value="'. _('Add More Items'). '"><input type=submit name="Submit" value="'. _('Create Transfer Shipment'). '"><br><hr>'; echo '<script type="text/javascript">defaultControl(document.forms[0].StockID0);</script>'; echo '</form></div>'; include('includes/footer.inc'); Modified: trunk/StockLocTransferReceive.php =================================================================== --- trunk/StockLocTransferReceive.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/StockLocTransferReceive.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -448,14 +448,14 @@ if ($TrfLine->Controlled==1){ echo '<td><input type=hidden name="Qty' . $i . '" VALUE="' . $Qty . '"><a href="' . $rootpath .'/StockTransferControlled.php?' . SID . '&TransferItem=' . $i . '">' . $Qty . '</a></td>'; } else { - echo '<td><input type=TEXT class="number" name="Qty' . $i . '" maxlength=10 onKeyPress="return restrictToNumbers(this, event)" onFocus="return setTextAlign(this, '."'".'right'."'".')" size=10 VALUE="' . $Qty . '"></td>'; + echo '<td><input type=TEXT class="number" name="Qty' . $i . '" maxlength=10 class="number" size=10 VALUE="' . $Qty . '"></td>'; } echo '<td>' . $TrfLine->PartUnit . '</td>'; - + echo '<td><input type="checkbox" name="CancelBalance' . $i . '" value=1></td>'; - + if ($TrfLine->Controlled==1){ if ($TrfLine->Serialised==1){ echo '<td><a href="' . $rootpath .'/StockTransferControlled.php?' . SID . '&TransferItem=' . $i . '">' . _('Enter Serial Numbers') . '</a></td>'; Modified: trunk/TaxGroups.php =================================================================== --- trunk/TaxGroups.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/TaxGroups.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -27,18 +27,18 @@ $InputError = 1; prnMsg(_('The Group description entered must be at least 4 characters long'),'error'); } - + // if $_POST['GroupName'] then it is a modification of a tax group name - // else it is either an add or remove of taxgroup + // else it is either an add or remove of taxgroup unset($sql); if (isset($_POST['GroupName']) ){ // Update or Add a tax group if(isset($SelectedGroup)) { // Update a tax group - $sql = "UPDATE taxgroups SET taxgroupdescription = '". $_POST['GroupName'] ."' + $sql = "UPDATE taxgroups SET taxgroupdescription = '". $_POST['GroupName'] ."' WHERE taxgroupid = ".$SelectedGroup; $ErrMsg = _('The update of the tax group description failed because'); $SuccessMsg = _('The tax group description was updated to') . ' ' . $_POST['GroupName']; } else { // Add new tax group - + $result = DB_query("SELECT taxgroupid FROM taxgroups WHERE taxgroupdescription='" . $_POST['GroupName'] . "'",$db); if (DB_num_rows($result)==1){ prnMsg( _('A new tax group could not be added because a tax group already exists for') . ' ' . $_POST['GroupName'],'warn'); @@ -54,17 +54,17 @@ } elseif (isset($SelectedGroup) ) { $TaxAuthority = $_GET['TaxAuthority']; if( isset($_GET['add']) ) { // adding a tax authority to a tax group - $sql = "INSERT INTO taxgrouptaxes ( taxgroupid, + $sql = "INSERT INTO taxgrouptaxes ( taxgroupid, taxauthid, - calculationorder) - VALUES (" . $SelectedGroup . ", + calculationorder) + VALUES (" . $SelectedGroup . ", " . $TaxAuthority . ", 0)"; - + $ErrMsg = _('The addition of the tax failed because'); $SuccessMsg = _('The tax was added.'); } elseif ( isset($_GET['remove']) ) { // remove a taxauthority from a tax group - $sql = "DELETE FROM taxgrouptaxes + $sql = "DELETE FROM taxgrouptaxes WHERE taxgroupid = ".$SelectedGroup." AND taxauthid = ".$TaxAuthority; $ErrMsg = _('The removal of this tax failed because'); @@ -85,30 +85,30 @@ //A calculation order update $sql = 'SELECT taxauthid FROM taxgrouptaxes WHERE taxgroupid=' . $SelectedGroup; $Result = DB_query($sql,$db,_('Could not get tax authorities in the selected tax group')); - + while ($myrow=DB_fetch_row($Result)){ if (is_numeric($_POST['CalcOrder_' . $myrow[0]]) AND $_POST['CalcOrder_' . $myrow[0]] <5){ - - $sql = 'UPDATE taxgrouptaxes + + $sql = 'UPDATE taxgrouptaxes SET calculationorder=' . $_POST['CalcOrder_' . $myrow[0]] . ', taxontax=' . $_POST['TaxOnTax_' . $myrow[0]] . ' WHERE taxgroupid=' . $SelectedGroup . ' AND taxauthid=' . $myrow[0]; - + $result = DB_query($sql,$db); } } - + //need to do a reality check to ensure that taxontax is relevant only for taxes after the first tax - $sql = 'SELECT taxauthid, - taxontax - FROM taxgrouptaxes + $sql = 'SELECT taxauthid, + taxontax + FROM taxgrouptaxes WHERE taxgroupid=' . $SelectedGroup . ' ORDER BY calculationorder'; - + $Result = DB_query($sql,$db,_('Could not get tax authorities in the selected tax group')); - + if (DB_num_rows($Result)>0){ $myrow=DB_fetch_array($Result); if ($myrow['taxontax']==1){ @@ -116,10 +116,10 @@ $Result = DB_query('UPDATE taxgrouptaxes SET taxontax=0 WHERE taxgroupid=' . $SelectedGroup . ' AND taxauthid=' . $myrow['taxauthid'],$db); } } -} elseif (isset($_GET['Delete'])) { - +} elseif (isset($_GET['Delete'])) { + /* PREVENT DELETES IF DEPENDENT RECORDS IN 'custbranch, suppliers */ - + $sql= "SELECT COUNT(*) FROM custbranch WHERE taxgroupid=" . $_GET['SelectedGroup']; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); @@ -134,7 +134,7 @@ prnMsg( _('Cannot delete this tax group because some suppliers are setup using it'),'warn'); echo '<br>' . _('There are') . ' ' . $myrow[0] . ' ' . _('suppliers referring to this tax group'); } else { - + $sql="DELETE FROM taxgrouptaxes WHERE taxgroupid=" . $_GET['SelectedGroup']; $result = DB_query($sql,$db); $sql="DELETE FROM taxgroups WHERE taxgroupid=" . $_GET['SelectedGroup']; @@ -163,7 +163,7 @@ echo '<table border=1>'; echo "<tr><th>" . _('Group No') . "</th> <th>" . _('Tax Group') . "</th></tr>"; - + $k=0; //row colour counter while ($myrow = DB_fetch_array($result)) { if ($k==1){ @@ -173,7 +173,7 @@ echo '<tr class="OddTableRows">'; $k=1; } - + printf("<td>%s</td> <td>%s</td> <td><a href=\"%s&SelectedGroup=%s\">" . _('Edit') . "</a></td> @@ -186,7 +186,7 @@ $_SERVER['PHP_SELF'] . "?" . SID, $myrow['taxgroupid'], urlencode($myrow['taxgroupdescription'])); - + } //END WHILE LIST LOOP echo '</table>'; } @@ -230,23 +230,23 @@ if (isset($SelectedGroup)) { echo '</table><br>'; - - $sql = 'SELECT taxid, - description as taxname + + $sql = 'SELECT taxid, + description as taxname FROM taxauthorities ORDER BY taxid'; - + $sqlUsed = "SELECT taxauthid, description AS taxname, - calculationorder, - taxontax + calculationorder, + taxontax FROM taxgrouptaxes INNER JOIN taxauthorities ON taxgrouptaxes.taxauthid=taxauthorities.taxid - WHERE taxgroupid=". $SelectedGroup . ' + WHERE taxgroupid=". $SelectedGroup . ' ORDER BY calculationorder'; - + $Result = DB_query($sql, $db); - + /*Make an array of the used tax authorities in calculation order */ $UsedResult = DB_query($sqlUsed, $db); $TaxAuthsUsed = array(); //this array just holds the taxauthid of all authorities in the group @@ -257,14 +257,14 @@ $TaxAuthRow[$i] = $myrow; $i++; } - + /* the order and tax on tax will only be an issue if more than one tax authority in the group */ - if (count($TaxAuthsUsed)>0) { + if (count($TaxAuthsUsed)>0) { echo '<div class="centre"><font size=3 color=blue>'._('Calculation Order').'</font></div>'; echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?' . SID .'">'; echo '<input type=hidden name="SelectedGroup" value="' . $SelectedGroup .'">'; echo '<table>'; - + echo '<tr><th>'._('Tax Authority').'</th> <th>'._('Order').'</th> <th>'._('Tax on Prior Taxes').'</th></tr>'; @@ -277,15 +277,14 @@ echo '<tr class="EvenTableRows">'; $k=1; } - + if ($TaxAuthRow[$i]['calculationorder']==0){ $TaxAuthRow[$i]['calculationorder'] = $i; } - + echo '<td>' . $TaxAuthRow[$i]['taxname'] . '</td><td>'. - '<input type="text" class="number" name="CalcOrder_' . $TaxAuthRow[$i]['taxauthid'] . '" value="' . - $TaxAuthRow[$i]['calculationorder'] . '" size=2 maxlength=2 onKeyPress="return restrictToNumbers(this, event)" - style="width: 100%"></td>'; + '<input type="text" class="number" name="CalcOrder_' . $TaxAuthRow[$i]['taxauthid'] . '" value="' . + $TaxAuthRow[$i]['calculationorder'] . '" size=2 maxlength=2 style="width: 100%"></td>'; echo '<td><select name="TaxOnTax_' . $TaxAuthRow[$i]['taxauthid'] . '" style="width: 100%">'; if ($TaxAuthRow[$i]['taxontax']==1){ echo '<option selected value=1>' . _('Yes'); @@ -294,15 +293,15 @@ echo '<option value=1>' . _('Yes'); echo '<option selected value=0>' . _('No'); } - echo '</select></td></tr>'; - + echo '</select></td></tr>'; + } echo '</table>'; echo '<br><div class="centre"><input type="submit" name="UpdateOrder" value="' . _('Update Order') . '"></div>'; } - + echo '</form>'; - + if (DB_num_rows($Result)>0 ) { echo '<br>'; echo '<table><tr>'; @@ -311,7 +310,7 @@ echo "<th colspan=2>"._('Available Taxes')."</th>"; echo '</tr>'; - echo '<tr>'; + echo '<tr>'; echo "<th>" . _('Tax Auth ID') . '</th>'; echo "<th>" . _('Tax Authority Name') . '</th>'; echo "<th>" . _('Calculation Order') . '</th>'; @@ -320,14 +319,14 @@ echo "<th>" . _('Tax Auth ID') . '</th>'; echo "<th>" . _('Tax Authority Name') . '</th>'; echo '</tr>'; - + } else { echo '<br><div class="centre">' . _('There are no tax authorities defined to allocate to this tax group').'</div>'; } - + $k=0; //row colour counter while($AvailRow = DB_fetch_array($Result)) { - + if ($k==1){ echo '<tr class="EvenTableRows">'; $k=0; @@ -336,15 +335,15 @@ $k=1; } $TaxAuthUsedPointer = array_search($AvailRow['taxid'],$TaxAuthsUsed); - + if ($TaxAuthUsedPointer){ - + if ($TaxAuthRow[$TaxAuthUsedPointer]['taxontax'] ==1){ $TaxOnTax = _('Yes'); } else { $TaxOnTax = _('No'); } - + printf("<td>%s</td> <td>%s</td> <td>%s</td> @@ -360,7 +359,7 @@ $SelectedGroup, $AvailRow['taxid'] ); - + } else { printf("<td> </td> <td> </td> @@ -376,11 +375,11 @@ $SelectedGroup, $AvailRow['taxid'] ); - } + } echo '</tr>'; } echo '</table>'; - + } include('includes/footer.inc'); Modified: trunk/WOSerialNos.php =================================================================== --- trunk/WOSerialNos.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/WOSerialNos.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -1,12 +1,12 @@ <?php /* $Id$*/ -/*This page shows the serial numbers created for a works order - * - creating automatically from the last serial number counter in the stockmaster or by manual entry - * - If the item is lot controlled then the lot reference and the quantity in the lot can be entered - * - this updates the quantity on the work order. - * The work order quantity can only be modified by creating lots or serial numbers for controlled item work orders - * +/*This page shows the serial numbers created for a works order + * - creating automatically from the last serial number counter in the stockmaster or by manual entry + * - If the item is lot controlled then the lot reference and the quantity in the lot can be entered + * - this updates the quantity on the work order. + * The work order quantity can only be modified by creating lots or serial numbers for controlled item work orders + * * Need to allow adding serial numbers/batches and deleting batches/serial numbers */ @@ -53,7 +53,7 @@ $sql = "INSERT INTO woserialnos (stockid, wo, qualitytext, - serialno) + serialno) VALUES "; $ValueLine = " ('" . $StockID . "', " . $WO . ",'' ,"; for ($i=0;$i<$_POST['NumberToAdd'];$i++){ @@ -82,13 +82,13 @@ } $NextSerialNo = $NextItemNumber + 1; $ErrMsg = _('Unable to add the serial numbers requested'); - $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); + $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); // update the nextserialno in the stockmaster for the item - $result = DB_query('UPDATE stockmaster - SET nextserialno=' . $NextSerialNo . " + $result = DB_query('UPDATE stockmaster + SET nextserialno=' . $NextSerialNo . " WHERE stockid='" . $StockID . "'",$db); $result = DB_query('UPDATE woitems SET qtyreqd=qtyreqd+' . $_POST['NumberToAdd'] . " - WHERE stockid='" . $StockID . "' + WHERE stockid='" . $StockID . "' AND wo=" . $WO,$db,$ErrMsg,$DbgMsg,true); DB_Txn_Commit($db); } @@ -121,50 +121,50 @@ if (!$InputError){ DB_Txn_Begin($db); $ErrMsg = _('Could not add a new serial number/batch'); - $result = DB_query('UPDATE woitems + $result = DB_query('UPDATE woitems SET qtyreqd=qtyreqd+' . $_POST['Quantity'] . " - WHERE stockid='" . $StockID . "' + WHERE stockid='" . $StockID . "' AND wo=" . $WO,$db,$ErrMsg,$DbgMsg,true); $sql = "INSERT INTO woserialnos (stockid, wo, qualitytext, quantity, serialno) - VALUES ('" . $StockID . "', + VALUES ('" . $StockID . "', " . $WO . ", '', " . $_POST['Quantity'] . ", '" . $_POST['Reference'] . "')"; - + $ErrMsg = _('Unable to add the batch or serial number requested'); $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); - - DB_Txn_Commit($db); + + DB_Txn_Commit($db); } - } + } } -if (isset($_GET['Delete'])){ //user hit delete link +if (isset($_GET['Delete'])){ //user hit delete link /*when serial numbers /lots received they are removed from the woserialnos table so no need to check if already received - they will only show here if they are in progress */ - $result = DB_query("DELETE FROM woserialnos - WHERE wo=" . $WO . " + $result = DB_query("DELETE FROM woserialnos + WHERE wo=" . $WO . " AND stockid='" . $StockID . "' AND serialno='" . $_GET['Reference'] ."'", $db); - + $result = DB_query("UPDATE woitems SET qtyreqd=qtyreqd-" . $_GET['Quantity'] . " WHERE wo=" . $WO . " - AND stockid = '" . $StockID . "'",$db); - - prnMsg(_('The batch/serial number') . ' ' . $_GET['Reference'] . ' ' . _('has been deleted from this work order'),'info'); + AND stockid = '" . $StockID . "'",$db); + + prnMsg(_('The batch/serial number') . ' ' . $_GET['Reference'] . ' ' . _('has been deleted from this work order'),'info'); } if (isset($_POST['UpdateItems'])){ //update the serial numbers and quantities and notes for each serial number or batch $WOQuantityTotal=0; for ($i=0;$i<$_POST['CountOfItems'];$i++){ - + if (strlen($_POST['Reference' . $i])==0){ prnMsg($_POST['OldReference' .$i] . ': ' , _('The new batch or serial number reference has not been entered - a reference is required'),'error'); $InputError=true; @@ -200,7 +200,7 @@ $WOQuantityTotal += $_POST['Quantity'.$i]; } else { $WOQuantityTotal += $_POST['OldQuantity'.$i]; - } + } }//end loop around all serial numbers/batches $ErrMsg = _('Could not update serial/batches on the work order'); if (sizeof($sql)>0){ @@ -209,7 +209,7 @@ $result = DB_query($SQLStatement,$db,$ErrMsg,$DbgMsg,true); } $result = DB_query("UPDATE woitems SET qtyreqd = " . $WOQuantityTotal . " - WHERE wo = " .$WO . " + WHERE wo = " .$WO . " AND stockid='" . $StockID . "'", $db, $ErrMsg,$DbgMsg,true); $result = DB_Txn_Commit($db); } @@ -226,11 +226,11 @@ echo '<input type="hidden" name="NextSerialNo" value="' . $NextSerialNo . '">'; echo '<table>'; - + if ($Serialised==1 AND $NextSerialNo>0){ echo '<tr><td>' . _('Add A Number of New Serial Numbers'); echo ':</td> - <td><input type="text" name="NumberToAdd" size=10 onKeyPress="return restrictToNumbers(this, event)" maxlength=10 value="1"></td> + <td><input type="text" name="NumberToAdd" size=10 class=number maxlength=10 value="1"></td> <td>' . _('Starting at') . ':</td><td align="right">' . $NextSerialNo . '</td>'; } else { //Need to allow entry of batch or serial number and its a batch a quantity too for individual entry @@ -245,7 +245,7 @@ } echo '<td><input type="text" name="Reference" maxlength="30" size="30"></td>'; if ($Serialised==0){ //also need to add the quantity - echo '<td><input type="text" name="Quantity" size=10 onKeyPress="return restrictToNumbers(this, event)" maxlength=10 value="1"></td>'; + echo '<td><input type="text" name="Quantity" size=10 class=number maxlength=10 value="1"></td>'; } else { //it will be 1 for a serial item echo '<input type="hidden" name="Quantity" value=1>'; } @@ -255,10 +255,10 @@ </table>'; echo '<hr>'; -$sql = "SELECT serialno, - quantity, - qualitytext - FROM woserialnos +$sql = "SELECT serialno, + quantity, + qualitytext + FROM woserialnos WHERE wo=" . $WO . " AND stockid='" . $StockID . "'"; @@ -278,12 +278,12 @@ $i = 0; $j = 0; while ($WOSNRow = DB_fetch_array($WOSerialNoResult)){ - + if ($j==5){ echo $Header; $j=0; } - + echo '<tr><td><input type="text" name="Reference' . $i .'" value="' . $WOSNRow['serialno'] . '"></td>'; echo '<input type="hidden" name="OldReference' . $i . '" value="' . $WOSNRow['serialno'] . '">'; if ($Serialised==0){ @@ -295,11 +295,11 @@ echo '<td><textarea name="Notes' . $i .'" cols=60 rows=3>' . $WOSNRow['qualitytext'] .'</textarea></td>'; echo '<td><a href="' . $_SESSION['PHP_SELF'] . '?' . SID . '&Delete=1&Reference=' . $WOSNRow['serialno'] . '&Quantity=' . $WOSNRow['quantity'] . '&WO=' . $WO . '&StockID=' . $StockID . '&Description=' . $Description . '&Serialised=' . $Serialised . '&NextSerialNo=' . $NextSerialNo . '">' . _('Delete') . '</td></tr>'; $i++; - $j++; + $j++; } - + echo '<input type="hidden" name="CountOfItems" value=' . $i . '>'; - + if ($Serialised==0){ echo '<tr><td align="center" colspan=3>'; } else { @@ -307,7 +307,7 @@ } echo '<input type="submit" name="UpdateItems" value="' . _('Update') . '"></td></tr>'; echo '</table>'; - + } //end of if there are woserialno items defined echo '<p/><a href="' . $rootpath . '/WorkOrderEntry.php?' . SID . '&WO=' . $WO . '">' . _('Back To Work Order') . ' ' . $WO .'</a>'; Modified: trunk/WorkCentres.php =================================================================== --- trunk/WorkCentres.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/WorkCentres.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -26,7 +26,7 @@ if (strlen($_POST['Code']) < 2) { $InputError = 1; prnMsg(_('The Work Centre code must be at least 2 characters long'),'error'); - } + } if (strlen($_POST['Description'])<3) { $InputError = 1; prnMsg(_('The Work Centre description must be at least 3 characters long'),'error'); @@ -41,7 +41,7 @@ /*SelectedWC could also exist if submit had not been clicked this code would not run in this case cos submit is false of course see the delete code below*/ - + $sql = "UPDATE workcentres SET location = '" . $_POST['Location'] . "', description = '" . $_POST['Description'] . "', overheadrecoveryact =" . $_POST['OverheadRecoveryAct'] . ", @@ -66,7 +66,7 @@ $msg = _('The new work centre has been added to the database'); } //run the SQL from either of the above possibilites - + if ($InputError !=1){ $result = DB_query($sql,$db,_('The update/addition of the work centre failed because')); prnMsg($msg,'success'); @@ -82,7 +82,7 @@ //the link to delete a selected record was clicked instead of the submit button // PREVENT DELETES IF DEPENDENT RECORDS IN 'BOM' - + $sql= "SELECT COUNT(*) FROM bom WHERE bom.workcentreadded='$SelectedWC'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); @@ -109,7 +109,7 @@ links to delete or edit each. These will call the same page again and allow update/input or deletion of the records*/ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="">' . ' ' . $title; - + $sql = 'SELECT workcentres.code, workcentres.description, locations.locationname, @@ -197,7 +197,7 @@ $SQL = 'SELECT locationname, loccode - FROM locations'; + FROM locations'; $result = DB_query($SQL,$db); if (!isset($_POST['Description'])) { @@ -254,7 +254,7 @@ echo '</td></tr>'; echo '<tr><td>' . _('Overhead Per Hour') . ':</td> - <td><input type="Text" class="number" name="OverheadPerHour" size=6 maxlength=6 onKeyPress="return restrictToNumbers(this, event)" value=' . $_POST['OverheadPerHour'] . '></td></tr> + <td><input type="Text" class="number" name="OverheadPerHour" size=6 maxlength=6></td></tr> </table>'; echo '<br><div class="centre"><input type="Submit" name="submit" value="' . _('Enter Information') . '"></div>'; Modified: trunk/WorkOrderEntry.php =================================================================== --- trunk/WorkOrderEntry.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/WorkOrderEntry.php 2010-01-20 17:36:19 UTC (rev 3311) @@ -205,9 +205,9 @@ if (!isset($EOQ)){ $EOQ=1; } - + $Result = DB_Txn_Begin($db); - + // insert parent item info $sql = "INSERT INTO woitems (wo, stockid, @@ -225,7 +225,7 @@ WoRealRequirements($db, $_POST['WO'], $_POST['StockLocation'], $NewItem); $result = DB_Txn_Commit($db); - + unset($NewItem); } //end if there were no input errors } //adding a new item to the work order @@ -354,7 +354,7 @@ $ErrMsg=_('The work order could not be deleted'); $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); - DB_Txn_Commit($db); + DB_Txn_Commit($db); prnMsg(_('The work order has been deleted'),'success'); @@ -480,8 +480,8 @@ if ($_POST['Controlled'.$i]==1 AND $_SESSION['DefineControlledOnWOEntry']==1){ echo '<td style="text-align: right">' . $_POST['OutputQty' . $i] . '</td>'; echo '<input type="hidden" name="OutputQty' . $i .'" value=' . $_POST['OutputQty' . $i] . '>'; - } else { - echo'<td><input type="text" style="text-align: right" name="OutputQty' . $i . '" value=' . $_POST['OutputQty' . $i] . ' size=10 onKeyPress="return restrictToNumbers(this, event)" maxlength=10></td>'; + } else { + echo'<td><input type="text" class="number" name="OutputQty' . $i . '" value=' . $_POST['OutputQty' . $i] . ' size=10 maxlength=10></td>'; } echo '<td><input type="hidden" name="RecdQty' . $i . '" value=' . $_POST['RecdQty' .$i] . '>' . $_POST['RecdQty' .$i] .'</td> <td align="right">' . ($_POST['OutputQty' . $i] - $_POST['RecdQty' .$i]) . '</td>'; Modified: trunk/WorkOrderReceive.php =================================================================== --- trunk/WorkOrderReceive.php 2010-01-20 06:23:48 UTC (rev 3310) +++ trunk/WorkOrderReceive.php 20... [truncated message content] |
From: <tim...@us...> - 2010-01-21 19:27:21
|
Revision: 3312 http://web-erp.svn.sourceforge.net/web-erp/?rev=3312&view=rev Author: tim_schofield Date: 2010-01-21 19:27:14 +0000 (Thu, 21 Jan 2010) Log Message: ----------- Correct path in ReportCreator.php Modified Paths: -------------- trunk/doc/Change.log.html trunk/reportwriter/admin/ReportCreator.php Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-20 17:36:19 UTC (rev 3311) +++ trunk/doc/Change.log.html 2010-01-21 19:27:14 UTC (rev 3312) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>21/01/10 Harald: Correct path in ReportCreator.php</p> <p>20/01/10 Tim: Remove redundant javascript calls</p> <p>19/01/10 Tim: MRP.php - Missing gettext function for string</p> <p>18/01/10 Tim: MRPPlannedWorkOrders.php - Add default date and use the javascript date picker</p> Modified: trunk/reportwriter/admin/ReportCreator.php =================================================================== --- trunk/reportwriter/admin/ReportCreator.php 2010-01-20 17:36:19 UTC (rev 3311) +++ trunk/reportwriter/admin/ReportCreator.php 2010-01-21 19:27:14 UTC (rev 3312) @@ -2,12 +2,12 @@ /* $Id$*/ /* -This script has the responsibility to gather basic information necessary to retrieve data for reports. -It is comprised of several steps designed to gather display preferences, database information, field +This script has the responsibility to gather basic information necessary to retrieve data for reports. +It is comprised of several steps designed to gather display preferences, database information, field information and filter/criteria information. The Report builder process is as follows: Step 1: (or script entry): displays the current listing of reports. Uses form ReportsHome.html as a UI. -Step 2: (action=step2): After the user has selected an option, this step is followed to enter a report +Step 2: (action=step2): After the user has selected an option, this step is followed to enter a report name and the type of report it is for grouping purposes. Step 3: Handles the page setup information. Step 4: Handles the database setup and link information. @@ -19,14 +19,14 @@ $DirectoryLevelsDeep = 2; // Javier $PathPrefix = '../../'; se va un directorio mas arriba, si no funciona el cambio hay que hacerlo constante. -$PathPrefix = '../'; +$PathPrefix = '../../'; $PageSecurity = 2; // set security level for webERP // Fetch necessary include files for webERP require ($PathPrefix . 'includes/session.inc'); // Initialize some constants -$ReportLanguage = 'en_US'; // default language file +$ReportLanguage = 'en_US'; // default language file define('DBReports','reports'); // name of the databse holding the main report information (ReportID) define('DBRptFields','reportfields'); // name of the database holding the report fields define ('DefRptPath',$PathPrefix . 'companies/' . $_SESSION['DatabaseName'] . '/reportwriter/'); // path to default reports @@ -41,8 +41,8 @@ $usrMsg = ''; // initialize array for return messages // a valid report id needs to be passed as a post field to do anything, except create new report if (!isset($_POST['ReportID'])) { // entered for the first time or created new report - $ReportID = ''; -} else { + $ReportID = ''; +} else { $ReportID = $_POST['ReportID']; if (isset($_POST['Type'])) { // then the type was passed from the previous form $Type=$_POST['Type']; @@ -81,7 +81,7 @@ $myrow = DB_fetch_array($Result); $_POST['ReportName'] = $myrow['reportname']; // continue like copy was pushed - case RPT_BTN_COPY: // Copy a report was selected + case RPT_BTN_COPY: // Copy a report was selected $FormParams = PrepStep('2'); break; case RPT_BTN_DEL: // after confirmation, delete the report and go to the main report admin menu @@ -103,7 +103,7 @@ break; } break; // End Step 2 - + case "step3": // entered from id setup page switch ($_POST['todo']) { case RPT_BTN_REPLACE: // Erase the default report and copy a new one with the same name @@ -175,8 +175,8 @@ $sql = "UPDATE ".DBReports." SET id=".$OrigID." WHERE id=0;"; $Result=DB_query($sql,$db,'','',false,true); // Set the report name and group name per the form - $sql = "UPDATE ".DBReports." SET - reportname = '" . DB_escape_string($_POST['ReportName']) . "' + $sql = "UPDATE ".DBReports." SET + reportname = '" . DB_escape_string($_POST['ReportName']) . "' WHERE id =".$ReportID.";"; $Result=DB_query($sql,$db,'','',false,true); // fetch the fields and duplicate @@ -184,7 +184,7 @@ $Result=DB_query($sql,$db,'','',false,true); while ($temp = DB_fetch_array($Result)) $field[] = $temp; foreach ($field as $row) { - $sql = "INSERT INTO ".DBRptFields." (reportid, entrytype, seqnum, fieldname, + $sql = "INSERT INTO ".DBRptFields." (reportid, entrytype, seqnum, fieldname, displaydesc, visible, columnbreak, params) VALUES (".$ReportID.", '".$row['entrytype']."', ".$row['seqnum'].", '".$row['fieldname']."', '".$row['displaydesc']."', '".$row['visible']."', @@ -198,7 +198,7 @@ $myrow = DB_fetch_array($Result); $FormParams = PrepStep('3'); break; - + case RPT_BTN_RENAME: // Rename a report was selected, fetch the report name and update // input error check reportname, blank duplicate, bad characters, etc. if ($_POST['ReportName']=='') { // no report name was entered, error and reload form @@ -227,7 +227,7 @@ $FormParams = PrepStep('1'); } break; - + case "step4": // entered from page setup page switch ($_POST['todo']) { case RPT_BTN_UPDATE: @@ -241,7 +241,7 @@ case RPT_BTN_CONT: // fetch the report information and go to the page setup screen $success = UpdatePageFields($ReportID); // read in the data for the next form - $sql = "SELECT table1, + $sql = "SELECT table1, table2, table2criteria, table3, table3criteria, table4, table4criteria, @@ -260,7 +260,7 @@ $FormParams = PrepStep('1'); } break; - + case "step5": // entered from dbsetup page switch ($_POST['todo']) { case RPT_BTN_BACK: @@ -284,16 +284,16 @@ } } $success = UpdateDBFields($ReportID); - if (!$success OR $_POST['todo']==RPT_BTN_UPDATE) { + if (!$success OR $_POST['todo']==RPT_BTN_UPDATE) { // update fields and stay on this form if (!$success) $usrMsg[] = array('message'=>RPT_DUPDB, 'level'=>'error'); // read back in new data for next screen (will set defaults as defined in the db) - $sql = "SELECT table1, - table2, table2criteria, - table3, table3criteria, - table4, table4criteria, - table5, table5criteria, - table6, table6criteria, + $sql = "SELECT table1, + table2, table2criteria, + table3, table3criteria, + table4, table4criteria, + table5, table5criteria, + table6, table6criteria, reportname FROM ".DBReports." WHERE id='".$ReportID."'"; $Result=DB_query($sql,$db,'','',false,true); @@ -311,7 +311,7 @@ $FormParams = PrepStep('1'); } break; - + case "step6": // entered from field setup page if (!isset($_POST['todo'])) { // then a sequence image button was pushed $SeqNum = $_POST['SeqNum']; //fetch the sequence number @@ -324,9 +324,9 @@ if ($SeqNum<DB_num_rows($Result)) $success = ChangeSequence($SeqNum, 'fieldlist', 'down'); $FieldListings = RetrieveFields('fieldlist'); } elseif (isset($_POST['ed_x'])) { // the sequence edit button was pushed - // pre fill form with the field to edit and change button name + // pre fill form with the field to edit and change button name $FieldListings = RetrieveFields('fieldlist'); - $sql = "SELECT * FROM ".DBRptFields." + $sql = "SELECT * FROM ".DBRptFields." WHERE reportid = ".$ReportID." AND entrytype = 'fieldlist' AND seqnum=".$SeqNum.";"; $Result=DB_query($sql,$db,'','',false,true); $FieldListings['defaults'] = DB_fetch_array($Result); @@ -340,12 +340,12 @@ } else { switch ($_POST['todo']) { case RPT_BTN_BACK: - $sql = "SELECT table1, - table2, table2criteria, - table3, table3criteria, - table4, table4criteria, - table5, table5criteria, - table6, table6criteria, + $sql = "SELECT table1, + table2, table2criteria, + table3, table3criteria, + table4, table4criteria, + table5, table5criteria, + table6, table6criteria, reportname FROM ".DBReports." WHERE id='".$ReportID."'"; $Result=DB_query($sql,$db,'','',false,true); @@ -374,7 +374,7 @@ $reportname = $_POST['ReportName']; $FormParams = PrepStep('5'); break; - } + } if ($_POST['todo']==RPT_BTN_ADDNEW) { // add new so insert $_POST['SeqNum'] = InsertSequence($_POST['SeqNum'], 'fieldlist'); } else { // exists, so update it. @@ -390,7 +390,7 @@ case RPT_BTN_PROP: // Enter the properties of a given field // see what form needs to be loaded and load based on index stored in params variable $SeqNum = $_POST['SeqNum']; - $sql = "SELECT id, displaydesc, params FROM ".DBRptFields." + $sql = "SELECT id, displaydesc, params FROM ".DBRptFields." WHERE reportid = ".$ReportID." AND entrytype='fieldlist' AND seqnum = ".$SeqNum.";"; $Result = DB_query($sql,$db,'','',false,true); $myrow = DB_fetch_assoc($Result); @@ -419,13 +419,13 @@ } } break; - + case "step6a": // entered from properties page for fields $ButtonValue = RPT_BTN_ADDNEW; // default the field button to Add New unless overidden by the edit image pressed $reportname = $_POST['ReportName']; $SeqNum = $_POST['SeqNum']; // first fetch the original Params - $sql = "SELECT id, params FROM ".DBRptFields." + $sql = "SELECT id, params FROM ".DBRptFields." WHERE reportid = ".$ReportID." AND entrytype='fieldlist' AND seqnum = ".$SeqNum.";"; $Result = DB_query($sql,$db,'','',false,true); $myrow = DB_fetch_assoc($Result); @@ -441,9 +441,9 @@ $ButtonValue = RPT_BTN_CHANGE; } } - // Update field properties + // Update field properties $FormParams = PrepStep('prop'); - $FormParams['id'] = $myrow['id']; + $FormParams['id'] = $myrow['id']; } else { // fetch the choices with the form post data foreach ($_POST as $key=>$value) $Params[$key]=$value; @@ -460,36 +460,36 @@ $Index = $_POST['FieldIndex']; if ($Index<>'') $Params['Seq'] = array_merge(array_slice($Params['Seq'],0,$Index),array_slice($Params['Seq'],$Index+1)); } else { // it's the add button, error check - if ($_POST['TotalField']=='') { + if ($_POST['TotalField']=='') { $usrMsg[] = array('message'=>RPT_BADFLD, 'level'=>'error'); // reload form with bad data entered as field defaults, ready to be editted $DisplayName =$_POST['DisplayName']; $FormParams = PrepStep('prop'); - $FormParams['id'] = $myrow['id']; + $FormParams['id'] = $myrow['id']; break; - } + } $Params['Seq'][] = $_POST['TotalField']; } - // Update field properties + // Update field properties $sql = "UPDATE ".DBRptFields." SET params='".serialize($Params)."' WHERE id = ".$_POST['ID'].";"; $Result=DB_query($sql,$db,'','',false,true); $Params['TotalField']=''; $FormParams = PrepStep('prop'); - $FormParams['id'] = $myrow['id']; + $FormParams['id'] = $myrow['id']; break; case RPT_BTN_CHANGE: case RPT_BTN_ADDNEW: // Error Check input, see if user entered a bad fieldname or description, error and reload - if ($_POST['TblField']=='' OR ($Params['index']=='Tbl' AND $_POST['TblDesc']=='')) { + if ($_POST['TblField']=='' OR ($Params['index']=='Tbl' AND $_POST['TblDesc']=='')) { $usrMsg[] = array('message'=>RPT_BADFLD, 'level'=>'error'); // reload form with bad data entered as field defaults, ready to be editted if ($_POST['todo']==RPT_BTN_ADDNEW) $ButtonValue = RPT_BTN_ADDNEW; else $ButtonValue = RPT_BTN_CHANGE; $DisplayName =$_POST['DisplayName']; $FormParams = PrepStep('prop'); - $FormParams['id'] = $myrow['id']; + $FormParams['id'] = $myrow['id']; break; - } + } if ($_POST['todo']==RPT_BTN_ADDNEW) $success = InsertFormSeq($Params,'insert'); else $success = InsertFormSeq($Params, 'update'); // continue on @@ -514,7 +514,7 @@ $Params['TblDesc'] = ''; $Params['Processing'] = ''; } - // Update field properties + // Update field properties $sql = "UPDATE ".DBRptFields." SET params='".serialize($Params)."' WHERE id = ".$_POST['ID'].";"; $Result=DB_query($sql,$db,'','',false,true); // check for update errors and reload @@ -524,7 +524,7 @@ } else { // print error message if need be and reload parameter form $DisplayName =$_POST['DisplayName']; $FormParams = PrepStep('prop'); - $FormParams['id'] = $myrow['id']; + $FormParams['id'] = $myrow['id']; } break; default: // bail to reports home @@ -534,7 +534,7 @@ } } break; - + case "step7": // entered from criteria setup page $OverrideDefaults = false; if (!isset($_POST['todo'])) { // then a sequence image button was pushed @@ -548,8 +548,8 @@ if ($SeqNum<DB_num_rows($Result)) $success = ChangeSequence($_POST['SeqNum'], $EntryType, 'down'); } elseif (isset($_POST['ed_x'])) { // the sequence edit button was pushed $OverrideDefaults = true; - // pre fill form with the field to edit and change button name - $sql = "SELECT * FROM ".DBRptFields." + // pre fill form with the field to edit and change button name + $sql = "SELECT * FROM ".DBRptFields." WHERE reportid = ".$ReportID." AND entrytype = '".$EntryType."' AND seqnum=".$SeqNum.";"; $Result=DB_query($sql,$db,'','',false,true); $NewDefaults['defaults'] = DB_fetch_array($Result); @@ -600,13 +600,13 @@ if (isset($_POST['EntryType'])) $EntryType = $_POST['EntryType']; else $EntryType = ''; // build date string of choices from user $DateString = ''; - for ($i=1; $i<=count($DateChoices); $i++) { + for ($i=1; $i<=count($DateChoices); $i++) { if (isset($_POST['DateRange'.$i])) $DateString .= $_POST['DateRange'.$i]; } // error check input for date if ($DateString=='' OR $DateString=='a') { // then the report is date independent $_POST['DateField'] = ''; // clear the date field since we don't need it - $IsValidField = true; // + $IsValidField = true; // } else { // check the input for a valid fieldname $IsValidField = ValidateField($ReportID, $_POST['DateField'], 'TestField'); } @@ -669,7 +669,7 @@ } } break; // End Step 7 - + case "step8": // Entered from import report form switch ($_POST['todo']) { case RPT_BTN_IMPORT: // Error check input and import the new report This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-23 12:29:34
|
Revision: 3315 http://web-erp.svn.sourceforge.net/web-erp/?rev=3315&view=rev Author: tim_schofield Date: 2010-01-23 12:24:57 +0000 (Sat, 23 Jan 2010) Log Message: ----------- Correction to DateAdd() function for the d.m.Y date format Modified Paths: -------------- trunk/doc/Change.log.html trunk/includes/DateFunctions.inc Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-23 11:30:58 UTC (rev 3314) +++ trunk/doc/Change.log.html 2010-01-23 12:24:57 UTC (rev 3315) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>23/01/10 Tim: DateFunctions.inc - Correction to DateAdd() function for the d.m.Y date format</p> <p>21/01/10 Harald: Correct path in ReportCreator.php</p> <p>20/01/10 Tim: Remove redundant javascript calls</p> <p>19/01/10 Tim: MRP.php - Missing gettext function for string</p> Modified: trunk/includes/DateFunctions.inc =================================================================== --- trunk/includes/DateFunctions.inc 2010-01-23 11:30:58 UTC (rev 3314) +++ trunk/includes/DateFunctions.inc 2010-01-23 12:24:57 UTC (rev 3315) @@ -399,7 +399,7 @@ if ($_SESSION['DefaultDateFormat']=='Y/m/d') { return $Date_Array[0].'/'.$Date_Array[1].'/'.$Date_Array[2]; } - + //to modify assumption in 2030 if (strlen($Date_Array[0])==2) { if ((int)$Date_Array[2] <60) { @@ -555,7 +555,7 @@ $Date_Array = explode('/',$DateToAddTo); } elseif (strpos ($DateToAddTo,'-')) { $Date_Array = explode('-',$DateToAddTo); - } elseif (strpos ($TranDate,'.')) { + } elseif (strpos ($DateToAddTo,'.')) { $Date_Array = explode('.',$DateToAddTo); } @@ -759,9 +759,9 @@ if (strlen($_SESSION['ProhibitPostingsBefore'])>=8 and $UseProhibit){ //then the ProhibitPostingsBefore configuration is set $Date_Array = explode('-', $_SESSION['ProhibitPostingsBefore']); - + $ProhibitPostingsBefore = mktime(0,0,0,$Date_Array[1],$Date_Array[2],$Date_Array[0]); - + /* If transaction date is in a closed period use the month end of that period */ if ($TransDate < $ProhibitPostingsBefore) { $TransDate = $ProhibitPostingsBefore; @@ -788,7 +788,7 @@ $Date_Array = explode('-', $myrow[0]); $FirstPeriodEnd = mktime(0,0,0,$Date_Array[1],0,(int)$Date_Array[0]); $FirstPeriod = $myrow[1]; - + /* If the period number doesn't exist */ if (!PeriodExists($TransDate, $db)) { /* if the transaction is after the last period */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-24 19:03:59
|
Revision: 3319 http://web-erp.svn.sourceforge.net/web-erp/?rev=3319&view=rev Author: tim_schofield Date: 2010-01-24 19:03:53 +0000 (Sun, 24 Jan 2010) Log Message: ----------- Typo correction in string Modified Paths: -------------- trunk/api/api_xml-rpc.php trunk/doc/Change.log.html Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2010-01-24 06:04:57 UTC (rev 3318) +++ trunk/api/api_xml-rpc.php 2010-01-24 19:03:53 UTC (rev 3319) @@ -311,7 +311,7 @@ unset($Description); $Description = _('This function takes a sales type abbreviation and returns details of that sales type.'); $Parameter[0]['name'] = _('Sales type abbreviation'); - $Parameter[0]['description'] = _('A currency abbreviation as returned by the GetSalesTypeList function.'); + $Parameter[0]['description'] = _('A sales type abbreviation as returned by the GetSalesTypeList function.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-24 06:04:57 UTC (rev 3318) +++ trunk/doc/Change.log.html 2010-01-24 19:03:53 UTC (rev 3319) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>24/01/10 Harald: api_xml-rpc.php - Typo correction in string</p> <p>23/01/10 Tim: DateFunctions.inc - Correction to DateAdd() function for the d.m.Y date format</p> <p>21/01/10 Harald: Correct path in ReportCreator.php</p> <p>20/01/10 Tim: Remove redundant javascript calls</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-24 20:04:43
|
Revision: 3320 http://web-erp.svn.sourceforge.net/web-erp/?rev=3320&view=rev Author: tim_schofield Date: 2010-01-24 20:04:35 +0000 (Sun, 24 Jan 2010) Log Message: ----------- Croatian translation files from Miki Modified Paths: -------------- trunk/doc/Change.log.html Added Paths: ----------- trunk/locale/hr_HR.utf8/ trunk/locale/hr_HR.utf8/LC_MESSAGES/ trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-24 19:03:53 UTC (rev 3319) +++ trunk/doc/Change.log.html 2010-01-24 20:04:35 UTC (rev 3320) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>24/01/10 Miki: Croatian translation files</p> <p>24/01/10 Harald: api_xml-rpc.php - Typo correction in string</p> <p>23/01/10 Tim: DateFunctions.inc - Correction to DateAdd() function for the d.m.Y date format</p> <p>21/01/10 Harald: Correct path in ReportCreator.php</p> Added: trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Property changes on: trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po (rev 0) +++ trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po 2010-01-24 20:04:35 UTC (rev 3320) @@ -0,0 +1,32924 @@ +# webERP Croatian translation. +# Copyright (C) 2010 +# This file is distributed under the same license as the webERP package. +# Miroslav Mazurek <mma...@sf...>, 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: 3.12\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2009-11-19 13:39+0000\n" +"PO-Revision-Date: 2010-01-22 14:51+0100\n" +"Last-Translator: Miroslav Mazurek <mma...@sf...>\n" +"Language-Team: Miroslav Mazurek <mma...@sf...>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: AccountGroups.php:8 +#: index.php:1156 +msgid "Account Groups" +msgstr "Kontna skupina" + +#: AccountGroups.php:18 +msgid "An error occurred in retrieving the account groups of the parent account group during the check for recursion" +msgstr "Došlo je do pogreške pri dohvaćanju kontnih skupina nadređene kontne skupine pri provjeri rekurzije" + +#: AccountGroups.php:19 +msgid "The SQL that was used to retrieve the account groups of the parent account group and that failed in the process was" +msgstr "Nije izvršena SQL naredba korištena za dohvat kontnih skupina nadređene kontne skupine koja glasi" + +#: AccountGroups.php:56 +#: AccountGroups.php:93 +#: AccountGroups.php:176 +#: AccountGroups.php:186 +msgid "The SQL that was used to retrieve the information was" +msgstr "SQL naredba korištena za dohvat podataka je" + +#: AccountGroups.php:57 +msgid "Could not check whether the group exists because" +msgstr "Nije moguća provjera postojanja skupine zbog" + +#: AccountGroups.php:64 +msgid "The account group name already exists in the database" +msgstr "Naziv skupine računa već postoji u bazi" + +#: AccountGroups.php:70 +msgid "The account group name cannot contain the character" +msgstr "Naziv kontne skupine nemože sadržavati znak" + +#: AccountGroups.php:70 +#: AccountSections.php:74 +#: PaymentMethods.php:37 +#: TaxCategories.php:30 +#: TaxProvinces.php:30 +#: UnitsOfMeasure.php:30 +msgid "or the character" +msgstr "ili znak" + +#: AccountGroups.php:76 +msgid "The account group name must be at least one character long" +msgstr "Naziv kontne skupine mora biti dug bar jedan znak" + +#: AccountGroups.php:83 +msgid "The parent account group selected appears to result in a recursive account structure - select an alternative parent account group or make this group a top level account group" +msgstr "Odabrana nadređena kontna skupina rezultira u rekurzivnoj kontnoj strukturi - odaberite drugu nadređenu kontnu skupinu ili promovirajte ovu skupinu u vršnu skupinu" + +#: AccountGroups.php:94 +msgid "Could not check whether the group is recursive because" +msgstr "Nije moguća provjera rekurzivnosti skupine zbog" + +#: AccountGroups.php:106 +msgid "The section in accounts must be an integer" +msgstr "Kontni razred mora biti cjeli broj" + +#: AccountGroups.php:112 +#, fuzzy +msgid "The sequence in the trial balance must be an integer" +msgstr "Niz u probnoj bilanci mora biti cjelobrojan" + +#: AccountGroups.php:118 +#, fuzzy +msgid "The sequence in the TB must be numeric and less than" +msgstr "Niz u probnoj bilanci mora biti brojčani i manji od" + +#: AccountGroups.php:135 +msgid "An error occurred in updating the account group" +msgstr "Doslo je do greške pri promjeni kontne skupine" + +#: AccountGroups.php:136 +msgid "The SQL that was used to update the account group was" +msgstr "SQL naredba za promjenu kontne skupine je" + +#: AccountGroups.php:138 +#: AccountSections.php:105 +#: PaymentMethods.php:87 +msgid "Record Updated" +msgstr "Zapis ažuriran" + +#: AccountGroups.php:156 +msgid "An error occurred in inserting the account group" +msgstr "Došlo je do greške pri dodavanju kontne skupine" + +#: AccountGroups.php:157 +msgid "The SQL that was used to insert the account group was" +msgstr "SQL naredba za dodavanje kontne skupine je" + +#: AccountGroups.php:158 +#: AccountSections.php:117 +#: PaymentMethods.php:109 +msgid "Record inserted" +msgstr "Zapis dodan" + +#: AccountGroups.php:175 +#, fuzzy +msgid "An error occurred in retrieving the group information from chartmaster" +msgstr "Došlo je do greške pri dohvatu podataka o skupini od chartmastera" + +#: AccountGroups.php:180 +msgid "Cannot delete this account group because general ledger accounts have been created using this group" +msgstr "Nije moguće brisati kontnu skupinu jer su računi u glavnoj knjizi kreirani unutar te grupe" + +#: AccountGroups.php:181 +#: AccountGroups.php:191 +#: AccountSections.php:138 +#: Areas.php:116 +#: Areas.php:125 +#: BankAccounts.php:162 +#: CreditStatus.php:123 +#: Currencies.php:141 +#: Currencies.php:149 +#: Currencies.php:156 +#: CustomerBranches.php:293 +#: CustomerBranches.php:303 +#: CustomerBranches.php:313 +#: CustomerBranches.php:323 +#: Customers.php:291 +#: Customers.php:300 +#: Customers.php:308 +#: Customers.php:316 +#: CustomerTypes.php:150 +#: CustomerTypes.php:160 +#: Factors.php:106 +#: FixedAssetCategories.php:174 +#: FixedAssetItems.php:483 +#: FixedAssetItems.php:492 +#: FixedAssetItems.php:500 +#: FixedAssetItems.php:508 +#: FixedAssetItems.php:516 +#: FixedAssetItems.php:524 +#: GLAccounts.php:90 +#: GLAccounts.php:104 +#: Locations.php:217 +#: Locations.php:225 +#: Locations.php:234 +#: Locations.php:242 +#: Locations.php:250 +#: Locations.php:258 +#: Locations.php:266 +#: Locations.php:274 +#: MRPDemandTypes.php:84 +#: PaymentMethods.php:141 +#: PaymentTerms.php:148 +#: PaymentTerms.php:155 +#: SalesCategories.php:126 +#: SalesCategories.php:134 +#: SalesPeople.php:142 +#: SalesPeople.php:149 +#: SalesTypes.php:145 +#: SalesTypes.php:155 +#: Shippers.php:82 +#: Shippers.php:94 +#: StockCategories.php:153 +#: Stocks.php:468 +#: Stocks.php:477 +#: Stocks.php:485 +#: Stocks.php:493 +#: Stocks.php:501 +#: Stocks.php:509 +#: Suppliers.php:570 +#: Suppliers.php:579 +#: Suppliers.php:587 +#: TaxCategories.php:130 +#: TaxGroups.php:128 +#: TaxGroups.php:135 +#: TaxProvinces.php:125 +#: UnitsOfMeasure.php:140 +#: UnitsOfMeasure.php:147 +#: WorkCentres.php:90 +#: WorkCentres.php:96 +#: WWW_Access.php:84 +msgid "There are" +msgstr "Postoje" + +#: AccountGroups.php:181 +msgid "general ledger accounts that refer to this account group" +msgstr "konta glavne knjige koja se pozivaju na ovu kontnu skupinu" + +#: AccountGroups.php:185 +msgid "An error occurred in retrieving the parent group information" +msgstr "Došlo je do greške pri dohvatu podataka o nadređenoj skupini" + +#: AccountGroups.php:190 +msgid "Cannot delete this account group because it is a parent account group of other account group(s)" +msgstr "Nije moguće brisati kontnu skupinu jer je ona nadređena drugim kontnim skupinama" + +#: AccountGroups.php:191 +msgid "account groups that have this group as its/there parent account group" +msgstr "kontne skupine koje imaju ovu skupinu kao nadređenu su" + +#: AccountGroups.php:194 +msgid "An error occurred in deleting the account group" +msgstr "Došlo je do greške pri brisanju kontne skupine" + +#: AccountGroups.php:195 +msgid "The SQL that was used to delete the account group was" +msgstr "SQL naredba korištena za brisanje kontne skupine" + +#: AccountGroups.php:197 +msgid "group has been deleted" +msgstr "skupina je obrisana" + +#: AccountGroups.php:222 +msgid "The sql that was used to retrieve the account group information was " +msgstr "SQL naredba korištena za dohvat kontne skupine" + +#: AccountGroups.php:223 +msgid "Could not get account groups because" +msgstr "Nije moguće dohvatiti kontne skupine zbog" + +#: AccountGroups.php:225 +#: AccountSections.php:176 +#: AddCustomerContacts.php:20 +#: AgedDebtors.php:455 +#: AgedSuppliers.php:267 +#: BOMListing.php:124 +#: BOMs.php:213 +#: BOMs.php:800 +#: DiscountCategories.php:11 +#: DiscountCategories.php:118 +#: DiscountMatrix.php:17 +#: Factors.php:6 +#: FixedAssetJournal.php:334 +#: FixedAssetLocations.php:8 +#: FixedAssetRegister.php:11 +#: FixedAssetTransfer.php:31 +#: GLBalanceSheet.php:357 +#: GLBudgets.php:29 +#: GLJournal.php:236 +#: PO_AuthorisationLevels.php:9 +#: PO_SelectOSPurchOrder.php:139 +#: SelectCompletedOrder.php:13 +#: SelectCustomer.php:331 +#: SelectGLAccount.php:19 +#: SelectGLAccount.php:87 +#: SelectOrderItems.php:607 +#: SelectOrderItems.php:1351 +#: SelectOrderItems.php:1471 +#: SelectProduct.php:55 +#: SelectSalesOrder.php:159 +#: SelectSupplier.php:12 +#: SelectSupplier.php:227 +#: SelectWorkOrder.php:11 +#: SelectWorkOrder.php:154 +#: Suppliers.php:307 +#: TaxGroups.php:16 +#: TopItems.php:73 +#: WhereUsedInquiry.php:18 +#: WorkCentres.php:111 +#: WorkCentres.php:158 +#: WorkOrderEntry.php:11 +#: WWW_Users.php:28 +msgid "Search" +msgstr "Traži" + +#: AccountGroups.php:229 +msgid "Group Name" +msgstr "Naziv skupine" + +#: AccountGroups.php:230 +#: EDIMessageFormat.php:140 +msgid "Section" +msgstr "Razred" + +#: AccountGroups.php:231 +#: AccountGroups.php:388 +#, fuzzy +msgid "Sequence In TB" +msgstr "RB u probnoj bilanci" + +#: AccountGroups.php:232 +#: AccountGroups.php:372 +#: GLProfit_Loss.php:8 +#: GLProfit_Loss.php:106 +#: GLProfit_Loss.php:107 +#: GLProfit_Loss.php:154 +#: SelectGLAccount.php:53 +#: SelectGLAccount.php:67 +msgid "Profit and Loss" +msgstr "Račun DiG" + +#: AccountGroups.php:233 +#: AccountGroups.php:333 +msgid "Parent Group" +msgstr "Nadređena skupina" + +#: AccountGroups.php:249 +#: AccountGroups.php:252 +#: AccountGroups.php:376 +#: AccountGroups.php:378 +#: BankAccounts.php:216 +#: BankAccounts.php:359 +#: BankAccounts.php:361 +#: BankAccounts.php:365 +#: BOMs.php:127 +#: BOMs.php:711 +#: BOMs.php:713 +#: CompanyPreferences.php:436 +#: CompanyPreferences.php:438 +#: CompanyPreferences.php:448 +#: CompanyPreferences.php:450 +#: CompanyPreferences.php:460 +#: CompanyPreferences.php:462 +#: CustLoginSetup.php:573 +#: CustLoginSetup.php:575 +#: CustomerBranches.php:406 +#: Customers.php:563 +#: Customers.php:804 +#: Customers.php:811 +#: Customers.php:814 +#: DeliveryDetails.php:967 +#: DeliveryDetails.php:1007 +#: DeliveryDetails.php:1010 +#: GLTransInquiry.php:71 +#: Locations.php:341 +#: MRPCalendar.php:218 +#: MRP.php:542 +#: MRP.php:546 +#: MRP.php:550 +#: PaymentMethods.php:197 +#: PaymentMethods.php:198 +#: PaymentMethods.php:257 +#: PaymentMethods.php:263 +#: PDFChequeListing.php:57 +#: PDFDeliveryDifferences.php:58 +#: PDFDIFOT.php:61 +#: PO_AuthorisationLevels.php:92 +#: PO_Header.php:906 +#: PO_PDFPurchOrder.php:368 +#: PO_PDFPurchOrder.php:371 +#: PurchData.php:231 +#: PurchData.php:392 +#: PurchData.php:395 +#: RecurringSalesOrders.php:473 +#: RecurringSalesOrders.php:476 +#: SalesAnalReptCols.php:278 +#: SalesAnalReptCols.php:383 +#: SalesAnalReptCols.php:386 +#: SalesAnalRepts.php:404 +#: SalesAnalRepts.php:407 +#: SalesAnalRepts.php:430 +#: SalesAnalRepts.php:433 +#: SalesAnalRepts.php:456 +#: SalesAnalRepts.php:459 +#: SelectProduct.php:732 +#: ShipmentCosting.php:612 +#: Stocks.php:838 +#: Stocks.php:840 +#: Stocks.php:858 +#: Stocks.php:860 +#: SystemParameters.php:355 +#: SystemParameters.php:431 +#: SystemParameters.php:439 +#: SystemParameters.php:479 +#: SystemParameters.php:552 +#: SystemParameters.php:560 +#: SystemParameters.php:578 +#: SystemParameters.php:585 +#: SystemParameters.php:709 +#: SystemParameters.php:840 +#: SystemParameters.php:842 +#: SystemParameters.php:852 +#: SystemParameters.php:854 +#: SystemParameters.php:867 +#: SystemParameters.php:879 +#: SystemParameters.php:881 +#: TaxGroups.php:291 +#: TaxGroups.php:294 +#: TaxGroups.php:343 +#: WWW_Users.php:573 +#: WWW_Users.php:575 +msgid "Yes" +msgstr "Da" + +#: AccountGroups.php:255 +#: AccountGroups.php:381 +#: AccountGroups.php:383 +#: BankAccounts.php:214 +#: BankAccounts.php:359 +#: BankAccounts.php:361 +#: BankAccounts.php:365 +#: BOMs.php:129 +#: BOMs.php:710 +#: BOMs.php:714 +#: CompanyPreferences.php:435 +#: CompanyPreferences.php:439 +#: CompanyPreferences.php:447 +#: CompanyPreferences.php:451 +#: CompanyPreferences.php:459 +#: CompanyPreferences.php:463 +#: CustLoginSetup.php:572 +#: CustLoginSetup.php:576 +#: CustomerBranches.php:406 +#: Customers.php:562 +#: Customers.php:802 +#: Customers.php:810 +#: Customers.php:813 +#: DeliveryDetails.php:968 +#: DeliveryDetails.php:1008 +#: DeliveryDetails.php:1011 +#: GLTransInquiry.php:125 +#: Locations.php:343 +#: MRPCalendar.php:220 +#: MRP.php:536 +#: MRP.php:540 +#: MRP.php:544 +#: MRP.php:548 +#: PaymentMethods.php:197 +#: PaymentMethods.php:198 +#: PaymentMethods.php:258 +#: PaymentMethods.php:264 +#: PDFChequeListing.php:56 +#: PDFDeliveryDifferences.php:57 +#: PDFDIFOT.php:60 +#: PO_AuthorisationLevels.php:94 +#: PO_Header.php:906 +#: PO_PDFPurchOrder.php:369 +#: PO_PDFPurchOrder.php:372 +#: PurchData.php:234 +#: PurchData.php:393 +#: PurchData.php:396 +#: RecurringSalesOrders.php:472 +#: RecurringSalesOrders.php:475 +#: SalesAnalReptCols.php:276 +#: SalesAnalReptCols.php:384 +#: SalesAnalReptCols.php:387 +#: SalesAnalRepts.php:403 +#: SalesAnalRepts.php:406 +#: SalesAnalRepts.php:429 +#: SalesAnalRepts.php:432 +#: SalesAnalRepts.php:455 +#: SalesAnalRepts.php:458 +#: SelectProduct.php:735 +#: ShipmentCosting.php:613 +#: Stocks.php:833 +#: Stocks.php:835 +#: Stocks.php:853 +#: Stocks.php:855 +#: SystemParameters.php:356 +#: SystemParameters.php:432 +#: SystemParameters.php:440 +#: SystemParameters.php:480 +#: SystemParameters.php:553 +#: SystemParameters.php:561 +#: SystemParameters.php:579 +#: SystemParameters.php:586 +#: SystemParameters.php:710 +#: SystemParameters.php:839 +#: SystemParameters.php:843 +#: SystemParameters.php:851 +#: SystemParameters.php:855 +#: SystemParameters.php:868 +#: SystemParameters.php:878 +#: SystemParameters.php:882 +#: TaxGroups.php:292 +#: TaxGroups.php:295 +#: TaxGroups.php:345 +#: WWW_Users.php:572 +#: WWW_Users.php:576 +#: includes/PDFLowGPPageHeader.inc:31 +#: includes/PDFTaxPageHeader.inc:34 +msgid "No" +msgstr "Ne" + +#: AccountGroups.php:264 +#: AccountSections.php:196 +#: AddCustomerContacts.php:125 +#: AddCustomerNotes.php:124 +#: AddCustomerTypeNotes.php:121 +#: Areas.php:161 +#: BankAccounts.php:225 +#: BOMs.php:149 +#: COGSGLPostings.php:107 +#: COGSGLPostings.php:212 +#: CreditStatus.php:172 +#: Currencies.php:232 +#: CustLoginSetup.php:296 +#: CustomerBranches.php:410 +#: Customers.php:856 +#: Customers.php:888 +#: CustomerTypes.php:205 +#: EDIMessageFormat.php:161 +#: FixedAssetCategories.php:234 +#: FixedAssetLocations.php:79 +#: FreightCosts.php:240 +#: GeocodeSetup.php:165 +#: GLAccounts.php:317 +#: GLTags.php:58 +#: Locations.php:350 +#: MRPDemands.php:308 +#: MRPDemandTypes.php:116 +#: PaymentMethods.php:199 +#: PaymentTerms.php:203 +#: PO_AuthorisationLevels.php:102 +#: Prices_Customer.php:200 +#: Prices.php:178 +#: PurchData.php:244 +#: SalesCategories.php:262 +#: SalesGLPostings.php:133 +#: SalesGLPostings.php:245 +#: SalesPeople.php:201 +#: SalesTypes.php:204 +#: SelectCustomer.php:688 +#: SelectCustomer.php:704 +#: SelectCustomer.php:736 +#: SelectCustomer.php:752 +#: SelectCustomer.php:783 +#: SelectCustomer.php:799 +#: Shippers.php:142 +#: StockCategories.php:215 +#: SupplierContacts.php:153 +#: TaxAuthorities.php:165 +#: TaxCategories.php:181 +#: TaxGroups.php:179 +#: TaxProvinces.php:176 +#: UnitsOfMeasure.php:199 +#: WorkCentres.php:138 +#: WWW_Access.php:124 +#: WWW_Users.php:287 +#: includes/InputSerialItems.php:82 +#, php-format +msgid "Edit" +msgstr "Uredi" + +#: AccountGroups.php:265 +#: AccountSections.php:200 +#: AddCustomerContacts.php:126 +#: AddCustomerNotes.php:125 +#: AddCustomerTypeNotes.php:122 +#: Areas.php:162 +#: BankAccounts.php:226 +#: BOMs.php:151 +#: COGSGLPostings.php:108 +#: COGSGLPostings.php:213 +#: Credit_Invoice.php:371 +#: CreditStatus.php:173 +#: Currencies.php:235 +#: CustLoginSetup.php:297 +#: CustomerReceipt.php:830 +#: Customers.php:889 +#: CustomerTypes.php:206 +#: DiscountCategories.php:200 +#: DiscountMatrix.php:172 +#: EDIMessageFormat.php:162 +#: FixedAssetCategories.php:235 +#: FixedAssetJournal.php:392 +#: FixedAssetLocations.php:81 +#: FreightCosts.php:241 +#: GeocodeSetup.php:166 +#: GLAccounts.php:318 +#: GLJournal.php:393 +#: Locations.php:351 +#: MRPDemands.php:309 +#: MRPDemandTypes.php:117 +#: PaymentMethods.php:200 +#: Payments.php:860 +#: PaymentTerms.php:204 +#: PO_AuthorisationLevels.php:104 +#: PO_Items.php:955 +#: Prices_Customer.php:201 +#: Prices.php:179 +#: PurchData.php:245 +#: SalesAnalReptCols.php:293 +#: SalesAnalRepts.php:303 +#: SalesCategories.php:263 +#: SalesGLPostings.php:134 +#: SalesGLPostings.php:246 +#: SalesPeople.php:202 +#: SalesTypes.php:205 +#: SelectCreditItems.php:762 +#: SelectCustomer.php:689 +#: SelectCustomer.php:705 +#: SelectCustomer.php:737 +#: SelectCustomer.php:753 +#: SelectCustomer.php:784 +#: SelectCustomer.php:800 +#: SelectOrderItems.php:1285 +#: Shipments.php:422 +#: Shippers.php:143 +#: SpecialOrder.php:587 +#: StockCategories.php:216 +#: StockCategories.php:497 +#: SuppCreditGRNs.php:89 +#: SuppInvGLAnalysis.php:65 +#: SuppInvGRNs.php:128 +#: SupplierContacts.php:154 +#: SuppShiptChgs.php:80 +#: SuppTransGLAnalysis.php:107 +#: TaxAuthorities.php:166 +#: TaxCategories.php:182 +#: TaxGroups.php:180 +#: TaxProvinces.php:177 +#: UnitsOfMeasure.php:200 +#: WorkCentres.php:139 +#: WOSerialNos.php:296 +#: WWW_Access.php:125 +#: WWW_Users.php:288 +#: includes/InputSerialItemsKeyed.php:53 +#, php-format +msgid "Delete" +msgstr "Briši" + +#: AccountGroups.php:273 +msgid "Review Account Groups" +msgstr "Pregled kontnih skupina" + +#: AccountGroups.php:291 +msgid "An error occurred in retrieving the account group information" +msgstr "Došlo je do gređke pri dohvatu podataka o kontnoj skupini" + +#: AccountGroups.php:292 +msgid "The SQL that was used to retrieve the account group and that failed in the process was" +msgstr "Nije izvršena SQL naredba korištena za dohvat kontne skupine " + +#: AccountGroups.php:306 +#: GLAccounts.php:244 +#: GLAccounts.php:297 +#: Z_ImportGLAccountGroups.php:27 +msgid "Account Group" +msgstr "Kontna skupina" + +#: AccountGroups.php:330 +msgid "Account Group Name" +msgstr "Naziv kontne skupine" + +#: AccountGroups.php:340 +#: AccountGroups.php:342 +msgid "Top Level Group" +msgstr "Vršna skupina" + +#: AccountGroups.php:356 +msgid "Section In Accounts" +msgstr "Kontni razred" + +#: AccountGroups.php:395 +#: AccountSections.php:262 +#: AddCustomerContacts.php:201 +#: AddCustomerNotes.php:200 +#: AddCustomerTypeNotes.php:183 +#: Areas.php:217 +#: BankAccounts.php:371 +#: BOMs.php:723 +#: COGSGLPostings.php:341 +#: CreditStatus.php:243 +#: Currencies.php:331 +#: CustLoginSetup.php:594 +#: DiscountMatrix.php:135 +#: EDIMessageFormat.php:253 +#: FixedAssetCategories.php:458 +#: FixedAssetLocations.php:125 +#: FreightCosts.php:336 +#: GeocodeSetup.php:261 +#: GLAccounts.php:267 +#: Locations.php:516 +#: MRPDemands.php:424 +#: MRPDemandTypes.php:175 +#: PaymentMethods.php:269 +#: PaymentTerms.php:277 +#: PO_AuthorisationLevels.php:150 +#: Prices_Customer.php:243 +#: SalesAnalReptCols.php:465 +#: SalesAnalRepts.php:494 +#: SalesGLPostings.php:412 +#: SalesPeople.php:292 +#: Shippers.php:195 +#: StockCategories.php:516 +#: SupplierContacts.php:249 +#: TaxAuthorities.php:303 +#: TaxCategories.php:231 +#: TaxProvinces.php:226 +#: UnitsOfMeasure.php:250 +#: WorkCentres.php:260 +#: WWW_Users.php:593 +msgid "Enter Information" +msgstr "Unos podataka" + +#: AccountSections.php:8 +#: index.php:1161 +msgid "Account Sections" +msgstr "Kontni razredi" + +#: AccountSections.php:67 +msgid "The account section already exists in the database" +msgstr "Kontni razred već postoji u bazi" + +#: AccountSections.php:74 +msgid "The account section name cannot contain the character" +msgstr "Naziv kontnog razreda nemože sadržavati znak" + +#: AccountSections.php:80 +msgid "The account section name must contain at least one character" +msgstr "Naziv kontnog razreda mora sadržavati bar jedan znak" + +#: AccountSections.php:86 +#: AccountSections.php:92 +msgid "The section number must be an integer" +msgstr "Broj razreda mora biti cjelobrojna vrijednost" + +#: AccountSections.php:137 +msgid "Cannot delete this account section because general ledger accounts groups have been created using this section" +msgstr "Nije moguće brisat ovaj kontni razred jer su kontne skupine u glavnoj knjizi svrstane u ovaj razred" + +#: AccountSections.php:138 +msgid "general ledger accounts groups that refer to this account section" +msgstr "kontne skupine u glavnoj knjizi koje se pozivaju na ovaj kontni razred" + +#: AccountSections.php:149 +msgid "section has been deleted" +msgstr "razred je obrisan" + +#: AccountSections.php:174 +msgid "Could not get account group sections because" +msgstr "Nije moguće dohvatiti razred kontnih skupina zbog" + +#: AccountSections.php:180 +#: AccountSections.php:238 +#: AccountSections.php:255 +msgid "Section Number" +msgstr "Broj razreda" + +#: AccountSections.php:181 +#: AccountSections.php:258 +msgid "Section Description" +msgstr "Opis razreda" + +#: AccountSections.php:198 +msgid "Restricted" +msgstr "Ograničeno" + +#: AccountSections.php:209 +msgid "Review Account Sections" +msgstr "Pregled kontnih razreda" + +#: AccountSections.php:228 +msgid "Could not retrieve the requested section please try again." +msgstr "Nije moguće dohvatiti traženi razred - molimo pokušajte ponovo" + +#: AddCustomerContacts.php:5 +#: AddCustomerContacts.php:49 +#: SelectCustomer.php:681 +#: SelectCustomer.php:721 +msgid "Customer Contacts" +msgstr "Kupac Kontakti" + +#: AddCustomerContacts.php:19 +#: CustEDISetup.php:10 +#: CustLoginSetup.php:20 +#: Z_CheckDebtorsControl.php:20 +msgid "Back to Customers" +msgstr "Natrag na kupce" + +#: AddCustomerContacts.php:31 +msgid "The Contact must be an integer." +msgstr "Kontakt mora biti cjelobrojan" + +#: AddCustomerContacts.php:34 +msgid "The contact's name must be forty characters or less long" +msgstr "Naziv kontakta mora biti do 40 znakova" + +#: AddCustomerContacts.php:37 +msgid "The contact's name may not be empty" +msgstr "Naziv kontakta ne smije biti prazan" + +#: AddCustomerContacts.php:49 +#: AddCustomerNotes.php:48 +#: AddCustomerTypeNotes.php:48 +#: Areas.php:73 +#: CustomerTypes.php:67 +#: DeliveryDetails.php:673 +#: Factors.php:46 +#: FixedAssetItems.php:351 +#: PO_Items.php:390 +#: SalesAnalReptCols.php:128 +#: SalesPeople.php:92 +#: SalesTypes.php:61 +#: Stocks.php:354 +#: Suppliers.php:483 +msgid "has been updated" +msgstr "promijenjeno je" + +#: AddCustomerContacts.php:60 +msgid "The contact record has been added" +msgstr "Dodan je zapis o kontaktu" + +#: AddCustomerContacts.php:87 +msgid "The contact record has been deleted" +msgstr "Obrisan je zapis o kontaktu" + +#: AddCustomerContacts.php:97 +msgid "Contacts for Customer: <b>" +msgstr "Kontakti za kupca: <b>" + +#: AddCustomerContacts.php:106 +#: CompanyPreferences.php:226 +#: CustomerBranches.php:373 +#: Customers.php:846 +#: Customers.php:852 +#: Customers.php:917 +#: SalesPeople.php:183 +#: SelectCustomer.php:684 +#: StockDispatch.php:189 +#: StockDispatch.php:201 +#: SuppInvGLAnalysis.php:49 +#: SuppInvGLAnalysis.php:73 +#: SupplierContacts.php:141 +#: SupplierCredit.php:305 +#: SupplierInvoice.php:309 +#: SuppTransGLAnalysis.php:91 +#: includes/InputSerialItemsFile.php:84 +#: includes/InputSerialItemsFile.php:124 +#: includes/PDFTaxPageHeader.inc:36 +msgid "Name" +msgstr "Naziv" + +#: AddCustomerContacts.php:107 +#: AddCustomerContacts.php:183 +#: Customers.php:847 +#: Customers.php:853 +#: Customers.php:918 +#: SelectCustomer.php:685 +#: WWW_Access.php:108 +#: WWW_Access.php:168 +msgid "Role" +msgstr "Uloga" + +#: AddCustomerContacts.php:108 +#: Customers.php:919 +msgid "Phone no" +msgstr "Telefon" + +#: AddCustomerContacts.php:109 +#: AddCustomerContacts.php:195 +#: Customers.php:849 +#: Customers.php:855 +#: Customers.php:920 +#: SelectCustomer.php:687 +#: SystemParameters.php:295 +#: WOSerialNos.php:273 +#: WOSerialNos.php:275 +msgid "Notes" +msgstr "Bilješke" + +#: AddCustomerContacts.php:143 +msgid "Review all contacts for this Customer" +msgstr "Pregled svih kontakta za ovog kupca" + +#: AddCustomerContacts.php:172 +msgid "Contact Code" +msgstr "Šifra kontakta" + +#: AddCustomerContacts.php:177 +#: Factors.php:179 +#: Factors.php:194 +#: SupplierContacts.php:217 +msgid "Contact Name" +msgstr "Naziv kontakta" + +#: AddCustomerContacts.php:189 +#: PO_Header.php:1105 +#: PO_Header.php:1180 +#: SelectCreditItems.php:234 +#: SelectCustomer.php:504 +#: SelectOrderItems.php:637 +#: includes/PDFStatementPageHeader.inc:63 +#: includes/PDFTransPageHeader.inc:83 +#: includes/PDFTransPageHeaderPortrait.inc:106 +msgid "Phone" +msgstr "Telefon" + +#: AddCustomerNotes.php:5 +#: AddCustomerNotes.php:48 +#: SelectCustomer.php:729 +#: SelectCustomer.php:768 +msgid "Customer Notes" +msgstr "Bilješke o kupcu" + +#: AddCustomerNotes.php:19 +#: AddCustomerTypeNotes.php:19 +msgid "Back to Select Customer" +msgstr "Natrag na izbor kupca" + +#: AddCustomerNotes.php:30 +msgid "The contact priority must be an integer." +msgstr "Prioritet kontakta mora biti cjelobrojan" + +#: AddCustomerNotes.php:33 +#: AddCustomerTypeNotes.php:33 +msgid "The contact's notes must be two hundred characters or less long" +msgstr "Zabilješke o kontaktu moraju biti manje od 200 znakova" + +#: AddCustomerNotes.php:36 +#: AddCustomerTypeNotes.php:36 +msgid "The contact's notes may not be empty" +msgstr "Zabilješke o kontaktu ne smiju biti prazne" + +#: AddCustomerNotes.php:59 +msgid "The contact notes record has been added" +msgstr "Dodane zabilješke o kontaktu" + +#: AddCustomerNotes.php:86 +msgid "The contact note record has been deleted" +msgstr "Obrisane zabilješke o kontaktu" + +#: AddCustomerNotes.php:96 +msgid "Notes for Customer: <b>" +msgstr "Zabilješke za kupca: <b>" + +#: AddCustomerNotes.php:105 +#: AddCustomerNotes.php:187 +#: AddCustomerTypeNotes.php:102 +#: AddCustomerTypeNotes.php:177 +#: BankMatching.php:213 +#: BankReconciliation.php:181 +#: BankReconciliation.php:253 +#: CustomerAllocations.php:347 +#: CustomerAllocations.php:373 +#: CustomerInquiry.php:188 +#: CustomerTransInquiry.php:85 +#: GLAccountInquiry.php:157 +#: GLTransInquiry.php:46 +#: MRPCalendar.php:213 +#: PaymentAllocations.php:76 +#: PrintCustTrans.php:844 +#: PrintCustTransPortrait.php:891 +#: ReverseGRN.php:330 +#: ShipmentCosting.php:494 +#: ShipmentCosting.php:565 +#: Shipments.php:463 +#: StockDispatch.php:191 +#: StockDispatch.php:203 +#: StockLocMovements.php:79 +#: StockMovements.php:98 +#: StockSerialItemResearch.php:74 +#: SupplierAllocations.php:466 +#: SupplierAllocations.php:578 +#: SupplierAllocations.php:648 +#: SupplierInquiry.php:192 +#: SupplierTransInquiry.php:87 +#: includes/PDFQuotationPageHeader.inc:91 +#: includes/PDFStatementPageHeader.inc:169 +#: includes/PDFTaxPageHeader.inc:35 +#: includes/PDFTransPageHeader.inc:50 +#: includes/PDFTransPageHeaderPortrait.inc:59 +msgid "Date" +msgstr "Datum" + +#: AddCustomerNotes.php:106 +#: AddCustomerTypeNotes.php:103 +#: Stocks.php:842 +#: Z_Upgrade_3.10-3.11.php:60 +#: Z_Upgrade_3.10-3.11.php:64 +#: Z_Upgrade_3.10-3.11.php:68 +#: Z_Upgrade_3.10-3.11.php:72 +#: Z_Upgrade_3.10-3.11.php:76 +msgid "Note" +msgstr "Bilješka" + +#: AddCustomerNotes.php:107 +#: AddCustomerNotes.php:181 +msgid "WWW" +msgstr "WWW" + +#: AddCustomerNotes.php:108 +#: AddCustomerNotes.php:193 +#: AddCustomerTypeNotes.php:105 +#: AddCustomerTypeNotes.php:180 +msgid "Priority" +msgstr "Prioritet" + +#: AddCustomerNotes.php:142 +msgid "Review all notes for this Customer" +msgstr "Pregled svih bilješki o kupcu" + +#: AddCustomerNotes.php:170 +#: AddCustomerTypeNotes.php:168 +msgid "Note ID" +msgstr "Šifra zabilješke" + +#: AddCustomerNotes.php:175 +msgid "Contact Note" +msgstr "Zabilješka kontakta" + +#: AddCustomerTypeNotes.php:5 +#: SelectCustomer.php:776 +msgid "Customer Type (Group) Notes" +msgstr "Zabilješke za tip/grupu kupca" + +#: AddCustomerTypeNotes.php:30 +msgid "The Contact priority must be an integer." +msgstr "Prioritet kontakta mora biti cjelobrojan." + +#: AddCustomerTypeNotes.php:48 +#: SelectCustomer.php:816 +msgid "Customer Group Notes" +msgstr "Zabilješke grupe kupaca" + +#: AddCustomerTypeNotes.php:59 +msgid "The contact group notes record has been added" +msgstr "Dodan je zapis sa zabilješkom kontakt grupe" + +#: AddCustomerTypeNotes.php:83 +msgid "The contact group note record has been deleted" +msgstr "Obrisan je zapis sa zabilješkom kontakt grupe" + +#: AddCustomerTypeNotes.php:93 +msgid "Notes for Customer Type: <b>" +msgstr "Zabilješke za kupca tipa: <b>" + +#: AddCustomerTypeNotes.php:104 +#: AddCustomerTypeNotes.php:175 +msgid "href" +msgstr "" + +#: AddCustomerTypeNotes.php:139 +msgid "Review all notes for this Customer Type" +msgstr "Pregled svih zabilješki za ovaj tip kupca" + +#: AddCustomerTypeNotes.php:173 +msgid "Contact Group Note" +msgstr "Zabilješka za kontakt grupu" + +#: AgedDebtors.php:18 +msgid "Aged Customer Balance Listing" +msgstr "Ispis salda kupaca sa neizvršenim obavezama" + +#: AgedDebtors.php:19 +msgid "Aged Customer Balances" +msgstr "Salda kupaca sa neizvršenim obavezama" + +#: AgedDebtors.php:266 +#: AgedDebtors.php:362 +#: AgedDebtors.php:430 +msgid "Aged Customer Account Analysis" +msgstr "Analiza konta kupaca sa neizvršenim obavezama" + +#: AgedDebtors.php:266 +#: AgedDebtors.php:362 +#: AgedDebtors.php:430 +#: AgedSuppliers.php:104 +#: BOMExtendedQty.php:153 +#: BOMIndented.php:147 +#: BOMIndentedReverse.php:146 +#: BOMListing.php:46 +#: BOMListing.php:57 +#: DebtorsAtPeriodEnd.php:59 +#: GLBalanceSheet.php:86 +#: GLBalanceSheet.php:124 +#: GLProfit_Loss.php:154 +#: GLTagProfit_Loss.php:167 +#: GLTrialBalance.php:138 +#: InventoryPlanning.php:91 +#: InventoryPlanning.php:166 +#: InventoryPlanning.php:200 +#: InventoryPlanning.php:243 +#: InventoryPlanning.php:277 +#: InventoryPlanningPrefSupplier.php:195 +#: InventoryPlanningPrefSupplier.php:262 +#: InventoryPlanningPrefSupplier.php:295 +#: InventoryPlanningPrefSupplier.php:338 +#: InventoryPlanningPrefSupplier.php:372 +#: InventoryQuantities.php:78 +#: InventoryValuation.php:75 +#: MailInventoryValuation.php:100 +#: MRPPlannedPurchaseOrders.php:100 +#: MRPPlannedWorkOrders.php:102 +#: MRPReport.php:119 +#: MRPReschedules.php:34 +#: MRPShortages.php:111 +#: OutstandingGRNs.php:50 +#: PDFCustomerList.php:13 +#: PDFCustomerList.php:233 +#: PDFLowGP.php:17 +#: PDFStockCheckComparison.php:25 +#: PDFStockCheckComparison.php:51 +#: PDFStockCheckComparison.php:259 +#: ReorderLevel.php:54 +#: SelectProduct.php:48 +#: StockCheck.php:38 +#: StockCheck.php:59 +#: StockCheck.php:88 +#: StockCheck.php:138 +#: StockCheck.php:182 +#: StockDispatch.php:102 +#: SupplierBalsAtPeriodEnd.php:56 +#: SuppPaymentRun.php:106 +#: SuppPriceList.php:118 +#: includes/PDFPaymentRun_PymtFooter.php:52 +#: includes/PDFPaymentRun_PymtFooter.php:111 +#: includes/PDFPaymentRun_PymtFooter.php:149 +#: includes/PDFPaymentRun_PymtFooter.php:181 +#: includes/PDFPaymentRun_PymtFooter.php:213 +msgid "Problem Report" +msgstr "Izvješće o problemima" + +#: AgedDebtors.php:268 +#: CustomerInquiry.php:85 +#: CustomerInquiry.php:106 +#: DebtorsAtPeriodEnd.php:61 +msgid "The customer details could not be retrieved by the SQL because" +msgstr "Detalji o kupcu nisu dohvaćeni SQL-om zbog" + +#: AgedDebtors.php:269 +#: AgedDebtors.php:365 +#: AgedDebtors.php:436 +#: AgedSuppliers.php:107 +#: AgedSuppliers.php:187 +#: BOMExtendedQty.php:156 +#: BOMExtendedQty.php:258 +#: BOMIndented.php:150 +#: BOMIndented.php:232 +#: BOMIndentedReverse.php:149 +#: BOMIndentedReverse.php:228 +#: BOMListing.php:49 +#: Credit_Invoice.php:185 +#: DebtorsAtPeriodEnd.php:62 +#: FTP_RadioBeacon.php:187 +#: GetStockImage.php:152 +#: GLBalanceSheet.php:89 +#: GLBalanceSheet.php:127 +#: GLBalanceSheet.php:295 +#: GLProfit_Loss.php:157 +#: GLProfit_Loss.php:485 +#: GLTagProfit_Loss.php:170 +#: GLTagProfit_Loss.php:430 +#: GLTrialBalance.php:141 +#: GLTrialBalance.php:337 +#: InventoryPlanning.php:94 +#: InventoryPlanning.php:169 +#: InventoryPlanning.php:203 +#: InventoryPlanning.php:246 +#: InventoryPlanning.php:280 +#: InventoryPlanning.php:346 +#: InventoryPlanningPrefSupplier.php:198 +#: InventoryPlanningPrefSupplier.php:265 +#: InventoryPlanningPrefSupplier.php:298 +#: InventoryPlanningPrefSupplier.php:341 +#: InventoryPlanningPrefSupplier.php:375 +#: InventoryPlanningPrefSupplier.php:434 +#: InventoryQuantities.php:81 +#: InventoryQuantities.php:136 +#: InventoryValuation.php:78 +#: InventoryValuation.php:187 +#: MailInventoryValuation.php:103 +#: MailInventoryValuation.php:202 +#: MRPPlannedPurchaseOrders.php:103 +#: MRPPlannedPurchaseOrders.php:245 +#: MRPPlannedWorkOrders.php:105 +#: MRPPlannedWorkOrders.php:221 +#: MRPReport.php:34 +#: MRPReport.php:122 +#: MRPReport.php:469 +#: MRPReschedules.php:37 +#: MRPReschedules.php:105 +#: MRPShortages.php:114 +#: MRPShortages.php:189 +#: OutstandingGRNs.php:53 +#: OutstandingGRNs.php:140 +#: PDFCustomerList.php:236 +#: PDFCustomerList.php:363 +#: PDFGrn.php:58 +#: PDFLowGP.php:61 +#: PDFLowGP.php:110 +#: PDFPriceList.php:104 +#: PDFPriceList.php:183 +#: PDFQuotation.php:233 +#: PDFStockCheckComparison.php:29 +#: PDFStockCheckComparison.php:55 +#: PDFStockCheckComparison.php:263 +#: PDFStockCheckComparison.php:315 +#: PDFStockLocTransfer.php:82 +#: PDFStockNegatives.php:67 +#: PDFStockTransfer.php:66 +#: PDFTopItems.php:160 +#: PO_PDFPurchOrder.php:23 +#: PO_PDFPurchOrder.php:131 +#: PrintCustOrder_generic.php:180 +#: PrintCustOrder.php:179 +#: PrintSalesOrder_generic.php:180 +#: ReorderLevel.php:57 +#: ReorderLevel.php:143 +#: SalesAnalysis_UserDefined.php:36 +#: SalesAnalysis_UserDefined.php:54 +#: SelectCreditItems.php:25 +#: StockCheck.php:41 +#: StockCheck.php:62 +#: StockCheck.php:91 +#: StockCheck.php:141 +#: StockCheck.php:185 +#: StockCheck.php:254 +#: StockDispatch.php:105 +#: StockDispatch.php:225 +#: SupplierBalsAtPeriodEnd.php:59 +#: SuppPaymentRun.php:109 +#: SuppPaymentRun.php:177 +#: SuppPaymentRun.php:208 +#: SuppPriceList.php:121 +#: Tax.php:64 +#: Tax.php:165 +#: Z_DataExport.php:73 +#: Z_DataExport.php:169 +#: Z_DataExport.php:260 +#: Z_DataExport.php:309 +#: Z_DataExport.php:348 +#: Z_DataExport.php:384 +#: Z_DataExport.php:420 +#: Z_DataExport.php:474 +#: Z_poRebuildDefault.php:37 +#: includes/PDFPaymentRun_PymtFooter.php:55 +#: includes/PDFPaymentRun_PymtFooter.php:85 +#: includes/PDFPaymentRun_PymtFooter.php:114 +#: includes/PDFPaymentRun_PymtFooter.php:152 +#: includes/PDFPaymentRun_PymtFooter.php:184 +#: includes/PDFPaymentRun_PymtFooter.php:216 +#: includes/ConstructSQLForUserDefinedSalesReport.inc:180 +#: includes/ConstructSQLForUserDefinedSalesReport.inc:188 +#: includes/ConstructSQLForUserDefinedSalesReport.inc:340 +msgid "Back to the menu" +msgstr "Natrag na izbornik" + +#: AgedDebtors.php:364 +msgid "The details of outstanding transactions for customer" +msgstr "Detalji o nepodmirenim transakcijama za kupca" + +#: AgedDebtors.php:364 +#: AgedSuppliers.php:186 +#: GLAccountInquiry.php:149 +#: PO_Items.php:545 +#: PO_Items.php:575 +#: PO_Items.php:655 +#: PO_Items.php:793 +#: SalesAnalReptCols.php:349 +#: SpecialOrder.php:369 +#: StockLocTransferReceive.php:369 +#: StockQuantityByDate.php:103 +#: includes/SelectOrderItems_IntoCart.inc:52 +msgid "could not be retrieved because" +msgstr "nije ih moguće dohvatiti zbog" + +#: AgedDebtors.php:367 +#: AgedSuppliers.php:189 +#: Areas.php:95 +#: ConfirmDispatch_Invoice.php:153 +#: ConfirmDispatch_Invoice.php:913 +#: ConfirmDispatch_Invoice.php:927 +#: Credit_Invoice.php:680 +#: Credit_Invoice.php:702 +#: CustomerReceipt.php:491 +#: CustomerReceipt.php:632 +#: CustomerReceipt.php:660 +#: CustomerTransInquiry.php:77 +#: DeliveryDetails.php:397 +#: GLProfit_Loss.php:547 +#: GLTagProfit_Loss.php:489 +#: Payments.php:293 +#: PurchData.php:36 +#: PurchData.php:94 +#: PurchData.php:116 +#: ReverseGRN.php:143 +#: ReverseGRN.php:157 +#: ReverseGRN.php:318 +#: SelectCreditItems.php:1393 +#: StockCheck.php:215 +#: StockCostUpdate.php:78 +#: StockCostUpdate.php:88 +#: StockLocStatus.php:143 +#: StockMovements.php:91 +#: StockQuantityByDate.php:79 +#: StockReorderLevel.php:40 +#: StockStatus.php:263 +#: StockTransfers.php:153 +#: StockUsageGraph.php:52 +#: StockUsage.php:124 +#: SupplierInquiry.php:78 +#: SupplierInquiry.php:99 +#: SupplierInquiry.php:129 +#: SupplierInquiry.php:174 +#: SupplierTransInquiry.php:79 +#: SuppPaymentRun.php:112 +#: SuppPaymentRun.php:179 +#: SuppPaymentRun.php:210 +#: WorkOrderCosting.php:391 +#: WorkOrderReceive.php:261 +#: WOSerialNos.php:44 +#: Z_ChangeBranchCode.php:108 +#: Z_ChangeCustomerCode.php:90 +#: Z_DeleteCreditNote.php:57 +#: Z_DeleteInvoice.php:83 +#: includes/PDFPaymentRun_PymtFooter.php:57 +#: includes/PDFPaymentRun_PymtFooter.php:87 +#: includes/PDFPaymentRun_PymtFooter.php:116 +#: includes/PDFPaymentRun_PymtFooter.php:154 +#: includes/PDFPaymentRun_PymtFooter.php:186 +#: includes/PDFPaymentRun_PymtFooter.php:218 +#: includes/ConnectDB_mysqli.inc:56 +#: includes/ConnectDB_mysql.inc:39 +msgid "The SQL that failed was" +msgstr "Neizvršena SQL naredba je" + +#: AgedDebtors.php:432 +msgid "There are no customers meeting the criteria specified to list" +msgstr "Nema kupaca koji zadovoljavaju kriterij za izlistanje" + +#: AgedDebtors.php:452 +msgid "Aged Debtor Analysis" +msgstr "Analiza dužnika sa neizvršenim obavezama" + +#: AgedDebtors.php:463 +#: DebtorsAtPeriodEnd.php:132 +msgid "From Customer Code" +msgstr "Od šifre kupca" + +#: AgedDebtors.php:464 +#: DebtorsAtPeriodEnd.php:133 +msgid "To Customer Code" +msgstr "do šifre kupca" + +#: AgedDebtors.php:466 +#: AgedSuppliers.php:282 +msgid "All balances or overdues only" +msgstr "Sva salda ili samo dospjela" + +#: AgedDebtors.php:467 +msgid "All customers with balances" +msgstr "Svi kupci sa saldom" + +#: AgedDebtors.php:468 +#: AgedSuppliers.php:285 +msgid "Overdue accounts only" +msgstr "Samo dospjela salda" + +#: AgedDebtors.php:469 +msgid "Held accounts only" +msgstr "" + +#: AgedDebtors.php:472 +msgid "Only Show Customers Of" +msgstr "" + +#: AgedDebtors.php:484 +msgid "Only show customers trading in" +msgstr "" + +#: AgedDebtors.php:500 +msgid "Summary or detailed report" +msgstr "Sažetak ili detaljno izvješće" + +#: AgedDebtors.php:502 +#: AgedSuppliers.php:305 +#: InventoryValuation.php:244 +msgid "Summary Report" +msgstr "Zbirno izvješće" + +#: AgedDebtors.php:503 +#: AgedSuppliers.php:306 +#: InventoryValuation.php:245 +msgid "Detailed Report" +msgstr "Detaljno izvješće" + +#: AgedDebtors.php:506 +#: AgedSuppliers.php:309 +#: BOMExtendedQty.php:288 +#: BOMIndented.php:264 +#: BOMIndentedReverse.php:254 +#: BOMListing.php:136 +#: DebtorsAtPeriodEnd.php:150 +#: InventoryPlanning.php:432 +#: InventoryPlanningPrefSupplier.php:497 +#: InventoryQuantities.php:194 +#: InventoryValuation.php:248 +#: MRPPlannedPurchaseOrders.php:275 +#: MRPPlannedWorkOrders.php:251 +#: MRPReport.php:495 +#: MRPReschedules.php:134 +#: MRPShortages.php:217 +#: OutstandingGRNs.php:165 +#: PDFCustomerList.php:422 +#: PDFLowGP.php:148 +#: PDFPriceList.php:245 +#: PDFStockCheckComparison.php:371 +#: PrintCustTrans.php:615 +#: PrintCustTransPortrait.php:661 +#: ReorderLevel.php:216 +#: StockDispatch.php:323 +#: SupplierBalsAtPeriodEnd.php:152 +#: SuppPriceList.php:231 +#: Tax.php:337 +msgid "Print PDF" +msgstr "" + +#: AgedSuppliers.php:17 +msgid "Aged Supplier Listing" +msgstr "" + +#: AgedSuppliers.php:18 +msgid "Aged Suppliers" +msgstr "" + +#: AgedSuppliers.php:104 +msgid "Aged Supplier Account Analysis" +msgstr "" + +#: AgedSuppliers.php:106 +#: SupplierBalsAtPeriodEnd.php:58 +msgid "The Supplier details could not be retrieved by the SQL because" +msgstr "" + +#: AgedSuppliers.php:184 +msgid "Aged Supplier Account Analysis - Problem Report" +msgstr "" + +#: AgedSuppliers.php:186 +msgid "The details of outstanding transactions for Supplier" +msgstr "" + +#: AgedSuppliers.php:264 +msgid "Aged Supplier Analysis" +msgstr "" + +#: AgedSuppliers.php:275 +#: OutstandingGRNs.php:160 +#: SupplierBalsAtPeriodEnd.php:129 +#: SuppPaymentRun.php:262 +msgid "From Supplier Code" +msgstr "Od šifre dobavljača" + +#: AgedSuppliers.php:278 +#: OutstandingGRNs.php:162 +#: SupplierBalsAtPeriodEnd.php:131 +#: SuppPaymentRun.php:264 +msgid "To Supplier Code" +msgstr "Do šifre dobavljača" + +#: AgedSuppliers.php:284 +msgid "All suppliers with balances" +msgstr "Svi dobavljači sa saldom" + +#: AgedSuppliers.php:288 +msgid "For suppliers trading in" +msgstr "Za dobavljače koji posluju u" + +#: AgedSuppliers.php:303 +#: InventoryValuation.php:243 +msgid "Summary or Detailed Report" +msgstr "Detaljna izvješća sumarno" + +#: Areas.php:7 +msgid "Sales Area Maintenance" +msgstr "Održavanje prodajnog modula" + +#: Areas.php:40 +msgid "The area code must be three characters or less long" +msgstr "" + +#: Areas.php:45 +msgid "The area code entered already exists" +msgstr "" + +#: Areas.php:50 +msgid "The area description must be twenty five characters or less long" +msgstr "" + +#: Areas.php:55 +msgid "The area code may not be empty" +msgstr "" + +#: Areas.php:60 +msgid "The area description may not be empty" +msgstr "" + +#: Areas.php:73 +msgid "Area code" +msgstr "Poštanski broj" + +#: Areas.php:87 +msgid "New area code" +msgstr "Novi poštanski broj" + +#: Areas.php:87 +msgid "has been inserted" +msgstr "je dodan" + +#: Areas.php:94 +msgid "The area could not be added or updated because" +msgstr "" + +#: Areas.php:115 +msgid "Cannot delete this area because customer branches have been created using this area" +msgstr "" + +#: Areas.php:116 +msgid "branches using this area code" +msgstr "" + +#: Areas.php:124 +msgid "Cannot delete this area because sales analysis records exist that use this area" +msgstr "" + +#: Areas.php:125 +msgid "sales analysis records referring this area code" +msgstr "" + +#: Areas.php:132 +#: Areas.php:145 +#: Areas.php:196 +#: Areas.php:207 +msgid "Area Code" +msgstr "Poštanski broj" + +#: Areas.php:132 +#: CustomerTypes.php:166 +#: Factors.php:111 +#: FixedAssetCategories.php:191 +#: GLAccounts.php:203 +#: Locations.php:298 +#: SalesAnalReptCols.php:214 +#: SalesCategories.php:138 +#: SalesTypes.php:161 +#: StockCategories.php:170 +#: Suppliers.php:596 +#: Z_DeleteInvoice.php:142 +msgid "has been deleted" +msgstr "je obrisan" + +#: Areas.php:146 +#: Areas.php:212 +msgid "Area Name" +msgstr "Naziv pošte" + +#: Areas.php:172 +msgid "Review Areas Defined" +msgstr "Pregled pošta" + +#: AuditTrail.php:9 +msgid "Audit Trail" +msgstr "Nadzor upisa" + +#: AuditTrail.php:21 +msgid "Incorrect date format used, please re-enter" +msgstr "" + +#: AuditTrail.php:34 +#: BOMIndented.php:303 +#: BOMIndentedReverse.php:293 +#: MRPCalendar.php:251 +msgid "From Date" +msgstr "Od datuma" + +#: AuditTrail.php:36 +#: BOMIndented.php:304 +#: BOMIndentedReverse.php:294 +#: MRPCalendar.php:253 +msgid "To Date" +msgstr "Do datuma" + +#: AuditTrail.php:40 +#: PO_AuthorisationLevels.php:84 +#: PO_AuthorisationLevels.php:112 +#: UserSettings.php:103 +msgid "User ID" +msgstr "Šifra korisnika" + +#: AuditTrail.php:53 +msgid "Table " +msgstr "Tablica" + +#: AuditTrail.php:64 +#: PO_SelectPurchOrder.php:370 +msgid "View" +msgstr "Pregled" + +#: AuditTrail.php:141 +msgid "Date/Time" +msgstr "Datum/vrijeme" + +#: AuditTrail.php:142 +#: includes/header.inc:42 +msgid "User" +msgstr "Korisnik" + +#: AuditTrail.php:143 +#: BankReconciliation.php:182 +#: BankReconciliation.php:254 +#: CustomerAllocations.php:371 +#: CustomerInquiry.php:186 +#: CustomerTransInquiry.php:18 +#: CustomerTransInquiry.php:83 +#: CustWhereAlloc.php:13 +#: CustWhereAlloc.php:80 +#: FixedAssetCategories.php:211 +#: GLAccountInquiry.php:155 +#: GLJournal.php:249 +#: MRPReschedules.php:172 +#: SelectCustomer.php:503 +#: ShipmentCosting.php:492 +#: ShipmentCosting.php:563 +#: StockCategories.php:190 +#: StockLocMovements.php:77 +#: StockMovements.php:97 +#: SupplierAllocations.php:464 +#: SupplierInquiry.php:190 +#: SupplierTransInquiry.php:16 +#: SupplierTransInquiry.php:84 +#: Z_CheckAllocationsFrom.php:27 +#: Z_CheckAllocationsFrom.php:50 +#: Z_CheckAllocs.php:59 +#: Z_CheckGLTransBalance.php:12 +#: includes/InputSerialItemsFile.php:86 +#: includes/InputSerialItemsFile.php:126 +#: includes/PDFTaxPageHeader.inc:33 +msgid "Type" +msgstr "Tip" + +#: AuditTrail.php:144 +msgid "Table" +msgstr "Tablica" + +#: AuditTrail.php:145 +msgid "Field Name" +msgstr "Naziv polja" + +#: AuditTrail.php:146 +#: SystemParameters.php:294 +#: includes/PDFInventoryValnPageHeader.inc:38 +#: includes/PDFOstdgGRNsPageHeader.inc:37 +msgid "Value" +msgstr "Vrijednost" + +#: BankAccounts.php:8 +msgid "Bank Accounts Maintenance" +msgstr "Održavanje bankovnih računa" + +#: BankAccounts.php:12 +#: TaxAuthorities.php:148 +msgid "Bank" +msgstr "Banka" + +#: BankAccounts.php:13 +msgid "Update Bank Account details. Account Code is for SWIFT or BSB type Bank Codes. Set Default for Invoices to \"yes\" to print Account details on Invoices (only one account can be set to \"yes\")." +msgstr "" + +#: BankAccounts.php:45 +msgid "The bank account code already exists in the database" +msgstr "" + +#: BankAccounts.php:51 +msgid "The bank account name must be fifty characters or less long" +msgstr "" + +#: BankAccounts.php:57 +msgid "The bank account name may not be empty." +msgstr "" + +#: BankAccounts.php:63 +msgid "The bank account number may not be empty." +msgstr "" + +#: BankAccounts.php:69 +msgid "The bank account number must be fifty characters or less long" +msgstr "" + +#: BankAccounts.php:75 +msgid "The bank address must be fifty characters or less long" +msgstr "" + +#: BankAccounts.php:94 +msgid "Note that it is not possible to change the currency of the account once there are transactions against it" +msgstr "" + +#: BankAccounts.php:107 +msgid "The bank account details have been updated" +msgstr "" + +#: BankAccounts.php:128 +msgid "The new bank account has been entered" +msgstr "" + +#: BankAccounts.php:133 +msgid "The bank account could not be inserted or modified because" +msgstr "" + +#: BankAccounts.php:134 +msgid "The SQL used to insert/modify the bank account details was" +msgstr "" + +#: BankAccounts.php:161 +msgid "Cannot delete this bank account because transactions have been created using this account" +msgstr "" + +#: BankAccounts.php:162 +msgid "transactions with this bank account code" +msgstr "" + +#: BankAccounts.php:168 +msgid "Bank account deleted" +msgstr "" + +#: BankAccounts.php:189 +msgid "The bank accounts set up could not be retrieved because" +msgstr "" + +#: BankAccounts.php:190 +msgid "The SQL used to retrieve the bank account details was" +msgstr "" + +#: BankAccounts.php:195 +#: GLJournal.php:271 +msgid "GL Account Code" +msgstr "" + +#: BankAccounts.php:196 +#: BankAccounts.php:324 +msgid "Bank Account Name" +msgstr "" + +#: BankAccounts.php:197 +#: BankAccounts.php:326 +msgid "Bank Account Code" +msgstr "" + +#: BankAccounts.php:198 +#: BankAccounts.php:328 +msgid "Bank Account Number" +msgstr "" + +#: BankAccounts.php:199 +#: BankAccounts.php:330 +msgid "Bank Address" +msgstr "" + +#: BankAccounts.php:200 +#: CustomerReceipt.php:728 +#: CustomerTransInquiry.php:93 +#: PO_AuthorisationLevels.php:86 +#: PO_AuthorisationLevels.php:124 +#: PO_AuthoriseMyOrders.php:103 +#: PO_Header.php:667 +#: PO_SelectOSPurchOrder.php:414 +#: PO_SelectPurchOrder.php:372 +#: Prices.php:156 +#: Prices.php:222 +#: PurchData.php:208 +#: PurchData.php:353 +#: PurchData.php:482 +#: SelectSupplier.php:305 +#: SupplierCredit.php:209 +#: SupplierInvoice.php:203 +#: SupplierTransInquiry.php:93 +#: SuppPriceList.php:268 +#: includes/PDFBankingSummaryPageHeader.inc:42 +#: includes/PDFDebtorBalsPageHeader.inc:36 +#: includes/PDFSupplierBalsPageHeader.inc:36 +msgid "Currency" +msgstr "Valuta" + +#: BankAccounts.php:201 +#: BankAccounts.php:349 +msgid "Default for Invoices" +msgstr "" + +#: BankAccounts.php:250 +msgid "Show All Bank Accounts Defined" +msgstr "" + +#: BankAccounts.php:282 +#: BankAccounts.php:285 +msgid "Bank Account GL Code" +msgstr "" + +#: BankAccounts.php:332 +msgid "Currency Of Account" +msgstr "" + +#: BankMatching.php:7 +msgid "Bank Account Matching" +msgstr "" + +#: BankMatching.php:12 +#: Z_CheckDebtorsControl.php:79 +msgid "Receipts" +msgstr "" + +#: BankMatching.php:13 +#: BankMatching.php:17 +msgid "Bank Matching" +msgstr "" + +#: BankMatching.php:13 +msgid "Bank Account Matching - Receipts" +msgstr "" + +#: BankMatching.php:16 +#: PaymentAllocations.php:32 +msgid "Payments" +msgstr "Plaćanja" + +#: BankMatching.php:17 +msgid "Bank Account Matching - Payments" +msgstr "" + +#: BankMatching.php:19 +msgid "This page must be called with a bank transaction type" +msgstr "" + +#: BankMatching.php:19 +msgid "It should not be called directly" +msgstr "" + +#: BankMatching.php:32 +msgid "Could not retrieve transaction information" +msgstr "" + +#: BankMatching.php:39 +msgid "Could not match off this payment because" +msgstr "" + +#: BankMatching.php:49 +msgid "Could not update the amount matched off this bank transaction because" +msgstr "" + +#: BankMatching.php:55 +msgid "Could not unclear this bank transaction because" +msgstr "" + +#: BankMatching.php:63 +msgid "Use this screen to match webERP Receipts and Payments to your Bank Statement. Check your bank statement and click the check-box when you find the matching transaction." +msgstr "" + +#: BankMatching.php:70 +#: BankReconciliation.php:94 +#: CustomerReceipt.php:698 +#: Payments.php:705 +#: PDFChequeListing.php:40 +#: TaxAuthorities.php:149 +#: TaxAuthorities.php:296 +msgid "Bank Account" +msgstr "" + +#: BankMatching.php:92 +#: PO_SelectOSPurchOrder.php:455 +msgid "Show" +msgstr "Prikaži" + +#: BankMatching.php:92 +#: CreditItemsControlled.php:77 +#: FreightCosts.php:267 +#: GoodsReceivedControlled.php:55 +#: GoodsReceived.php:60 +#: StockLocTransferReceive.php:412 +#: SupplierAllocations.php:443 +#: SuppShiptChgs.php:125 +msgid "from" +msgstr "od" + +#: BankMatching.php:95 +#: ConfirmDispatchControlled_Invoice.php:57 +#: EmailCustTrans.php:65 +#: FixedAssetItems.php:227 +#: FixedAssetItems.php:232 +#: FTP_RadioBeacon.php:280 +#: Payments.php:680 +#: PDFChequeListing.php:102 +#: PDFChequeListing.php:112 +#: PDFChequeListing.php:198 +#: PDFDeliveryDifferences.php:160 +#: PDFDeliveryDifferences.php:173 +#: PDFDeliveryDifferences.php:280 +#: PDFDIFOT.php:166 +#: PDFDIFOT.php:179 +#: PDFDIFOT.php:292 +#: PDFOrdersInvoiced.php:221 +#: PDFOrdersInvoiced.php:232 +#: PDFOrderStatus.php:200 +#: PDFOrderStatus.php:209 +#: PO_PDFPurchOrder.php:308 +#: PricesBasedOnMarkUp.php:179 +#: PricesBasedOnMarkUp.php:284 +#: PricesBasedOnMarkUp.php:296 +#: PrintCustStatements.php:44 +#: PrintCustTrans.php:69 +#: PrintCustTrans.php:72 +#: PrintCustTransPortrait.php:63 +#: PrintCustTransPortrait.php:66 +#: SalesGraph.php:184 +#: SalesGraph.php:213 +#: SalesGraph.php:217 +#: StockLocTransferReceive.php:306 +#: StockLocTransferReceive.php:412 +#: Stocks.php:230 +#: Stocks.php:235 +#: StockStatus.php:297 +#: StockStatus.php:339 +#: StockTransfers.php:392 +#: includes/PDFAgedDebtorsPageHeader.inc:18 +#: includes/PDFAgedSuppliersPageHeader.inc:17 +#: includes/PDFChequeListingPageHeader.inc:17 +#: includes/PDFDeliveryDifferencesPageHeader.inc:19 +#: includes/PDFDeliveryDifferencesPageHeader.inc:21 +#: includes/PDFDIFOTPageHeader.inc:19 +#: includes/PDFDIFOTPageHeader.inc:21 +#: includes/PDFOrdersInvoicedPageHeader.inc:19 +#: includes/PDFOrdersInvoicedPageHeader.inc:21 +#: includes/PDFOrderStatusPageHeader.inc:19 +#: includes/PDFOrderStatusPageHeader.inc:21 +#: includes/PDFStockLocTransferHeader.inc:30 +msgid "to" +msgstr "do" + +#: BankMatching.php:97 +msgid "Choose outstanding" +msgstr "" + +#: BankMatching.php:97 +msgid "only or all" +msgstr "" + +#: BankMatching.php:97 +#: BankMatching.php:101 +#: BankMatching.php:104 +#: BankMatching.php:112 +#: BankMatching.php:115 +msgid "in the date range" +msgstr "" + +#: BankMatching.php:101 +#: BankMatching.php:104 +#: BankMatching.php:112 +#: BankMatching.php:115 +msgid "Show all" +msgstr "" + +#: BankMatching.php:102 +#: BankMatching.php:105 +msgid "Show unmatched" +msgstr "" + +#: BankMatching.php:102 +#: BankMatching.php:105 +#: ReverseGRN.php:102 +#: includes/PDFCustomerListPageHeader.inc:46 +#: includes/PDFDeliveryDifferencesPageHeader.inc:24 +#: includes/PDFDIFOTPageHeader.inc:24 +#: includes/PDFOrdersInvoicedPageHeader.inc:24 +#: includes/PDFOrderStatusPageHeader.inc:24 +msgid "only" +msgstr "samo" + +#: BankMatching.php:109 +msgid "Choose to display only the first 20 matching" +msgstr "" + +#: BankMatching.php:110 +msgid "or all" +msgstr "ili sve" + +#: BankMatching.php:110 +msgid "meeting the criteria" +msgstr "koji zadovoljavaju kriterij" + +#: BankMatching.php:113 +#: BankMatching.php:116 +msgid "Show only the first 20" +msgstr "Prikaži samo prvih 20" + +#: BankMatching.php:121 +msgid "Show selected" +msgstr "Prikaži odabrane" + +#: BankMatching.php:122 +msgid "Show reconciliation" +msgstr "" + +#: BankMatching.php:128 +#: BankMatching.php:134 +msgid "The date entered for the field to show" +msgstr "" + +#: BankMatching.php:128 +msgid "before" +msgstr "" + +#: BankMatching.php:129 +#: BankMatching.php:135 +msgid "is not entered in a recognised date format" +msgstr "" + +#: BankMatching.php:129 +#: BankMatching.php:135 +msgid "Entry is expected in the format" +msgstr "" + +#: BankMatching.php:134 +msgid "after" +msgstr "nakon" + +#: BankMatching.php:208 +msgid "The payments with the selected criteria could not be retrieved because" +msgstr "" + +#: BankMatching.php:211 +#: ShipmentCosting.php:493 +#: ShipmentCosting.php:564 +#: SupplierAllocations.php:467 +msgid "Ref" +msgstr "" + +#: BankMatching.php:214 +#: ConfirmDispatch_Invoice.php:267 +#: Credit_Invoice.php:275 +#: CustomerAllocations.php:374 +#: CustomerReceipt.php:815 +#: CustomerTransInquiry.php:92 +#: CustWhereAlloc.php:84 +#: PaymentAllocations.php:77 +#: Payments.php:838 +#: Payments.php:934 +#: Payments.php:936 +#: PrintCheque.php:65 +#: PrintCheque.php:79 +#: SelectCreditItems.php:676 +#: SuppInvGLAnalysis.php:50 +#: SuppInvGLAnalysis.php:74 +#: SupplierAllocations.php:468 +#: SupplierCredit.php:306 +#: SupplierInvoice.php:280 +#: SupplierInvoice.php:310 +#: SupplierTransInquiry.php:92 +#: SuppShiptChgs.php:71 +#: SuppShiptChgs.php:133 +#: SuppTransGLAnalysis.php:92 +#: SuppTransGLAnalysis.php:168 +#: Z_CheckAllocs.php:63 +#: includes/PDFBankingSummaryPageHeader.inc:55 +#: includes/PDFChequeListingPageHeader.inc:37 +#, fuzzy +msgid "Amount" +msgstr "Količina" + +#: BankMatching.php:215 +#: BankReconciliation.php:186 +#: BankReconciliation.php:258 +#: PDFOrdersInvoiced.php:286 +#: PDFOrderStatus.php:259 +#: PO_SelectOSPurchOrder.php:202 +#: PO_SelectPurchOrder.php:194 +#: Shipt_Select.php:193 +#: SuppCreditGRNs.php:216 +#: includes/PDFStatementPageHeader.inc:173 +#: includes/PDFStatementPageHeader.inc:180 +msgid "Outstanding" +msgstr "" + +#: BankMatching.php:216 +msgid "Clear" +msgstr "" + +#: BankMatching.php:216 +#: BankMatching.php:245 +msgid "Unclear" +msgstr "" + +#: BankMatching.php:289 +msgid "Update Matching" +msgstr "" + +#: BankReconciliation.php:9 +msgid "Bank Reconciliation" +msgstr "" + +#: BankReconciliation.php:18 +msgid "The entry in the bank statement balance is not numeric. The balance on the bank statement should be entered. The exchange difference has not been calculated and no general ledger journal has been created" +msgstr "" + +#: BankReconciliation.php:27 +msgid "Could not retrieve the exchange rate for the selected bank account" +msgstr "" + +#: BankReconciliation.php:57 +#: BankReconciliation.php:74 +msgid "reconciliation on" +msgstr "" + +#: BankReconciliation.php:59 +msgid "Cannot insert a GL entry for the exchange difference because" +msgstr "" + +#: BankReconciliation.php:60 +msgid "The SQL that failed to insert the exchange difference GL entry was" +msgstr "" + +#: BankReconciliation.php:80 +msgid "Exchange difference of" +msgstr "" + +#: BankReconciliation.php:80 +msgid "has been posted" +msgstr "" + +#: BankReconciliation.php:90 +#: SuppPaymentRun.php:303 +msgid "The bank accounts could not be retrieved by the SQL because" +msgstr "" + +#: BankReconciliation.php:91 +#: CustomerReceipt.php:693 +#: Payments.php:702 +#: SuppPaymentRun.php:305 +msgid "The SQL used to retrieve the bank accounts was" +msgstr "" + +#: BankReconciliation.php:97 +#: CustomerReceipt.php:703 +msgid "Bank Accounts have not yet been defined" +msgstr "" + +#: BankReconciliation.php:97 +#: CustomerReceipt.php:703 +msgid "You must first" +msgstr "Prvo morate" + +#: BankReconciliation.php:97 +#: CustomerReceipt.php:703 +#: Payments.php:709 +#: SuppPaymentRun.php:313 +msgid "define the bank accounts" +msgstr "" + +#: BankReconciliation.php:97 +#: CustomerReceipt.php:703 +#: Payments.php:709 +#: SuppPaymentRun.php:313 +msgid "and general ledger accounts to be affected" +msgstr "" + +#: BankReconciliation.php:116 +msgid "Show bank reconciliation statement" +msgstr "" + +#: BankReconciliation.php:131 +msgid "The bank account balance could not be returned by the SQL because" +msgstr "" + +#: BankReconciliation.php:144 +msgid "Could not retrieve the currency and exchange rate for the selected bank account" +msgstr "" + +#: BankReconciliation.php:152 +msgid "Balance as at" +msgstr "" + +#: BankReconciliation.php:175 +msgid "The unpresented cheques could not be retrieved by the SQL because" +msgstr "" + +#: BankReconciliation.php:178 +msgid "Add back unpresented cheques" +msgstr "" + +#: BankReconciliation.php:183 +#: BankReconciliation.php:255 +#: CustomerAllocations.php:346 +#: CustomerAllocations.php:372 +#: CustomerInquiry.php:187 +#: CustomerTransInquiry.php:84 +#: CustWhereAlloc.php:81 +#: EmailCustTrans.php:15 +#: GLAccountInquiry.php:156 +#: PrintCustTrans.php:555 +#: PrintCustTrans.php:759 +#: PrintCustTrans.php:948 +#: PrintCustTrans.php:994 +#: PrintCustTransPortrait.php:600 +#: PrintCustTransPortrait.php:805 +#: PrintCustTransPortrait.php:995 +#: PrintCustTransPortrait.php:1040 +#: StockMovements.php:97 +#: SupplierAllocations.php:465 +#: SupplierAllocations.php:577 +#: SupplierAllocations.php:647 +#: SupplierTransInquiry.php:85 +#: Z_CheckAllocs.php:60 +#: Z_CheckGLTransBalance.php:13 +#: includes/PDFQuotationPageHeader.inc:87 +#: includes/PDFStatementPageHeader.inc:168 +#: includes/PDFStatementPageHeader.inc:179 +#: includes/PDFTransPageHeader.inc:46 +#: includes/PDFTransPageHeaderPortrait.inc:53 +msgid "Number" +msgstr "" + +#: BankReconciliation.php:184 +#: BankReconciliation.php:256 +#: CustomerInquiry.php:190 +#: CustomerTransInquiry.php:88 +#: CustWhereAlloc.php:82 +#: PaymentAllocations.php:74 +#: PaymentAllocations.php:75 +#: ShiptsList.php:36 +#: StockCounts.php:95 +#: StockCounts.php:131 +#: StockLocMovements.php:82 +#: StockMovements.php:100 +#: Z_CheckAllocs.php:61 +#: includes/PDFBankingSummaryPageHeader.inc:40 +#: includes/PDFStockComparisonPageHeader.inc:36 +msgid "Reference" +msgstr "" + +#: BankReconciliation.php:185 +#: BankReconciliation.php:257 +msgid "Orig Amount" +msgstr "" + +#: BankReconcili... [truncated message content] |
From: <tim...@us...> - 2010-01-24 20:13:05
|
Revision: 3321 http://web-erp.svn.sourceforge.net/web-erp/?rev=3321&view=rev Author: tim_schofield Date: 2010-01-24 20:12:56 +0000 (Sun, 24 Jan 2010) Log Message: ----------- Typo correction in string Modified Paths: -------------- trunk/api/api_xml-rpc.php trunk/doc/Change.log.html Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2010-01-24 20:04:35 UTC (rev 3320) +++ trunk/api/api_xml-rpc.php 2010-01-24 20:12:56 UTC (rev 3321) @@ -377,7 +377,7 @@ unset($Parameter); unset($ReturnValue); unset($Description); - $Description = _('This function takes a hold reason code and returns details of that sales type.'); + $Description = _('This function takes a hold reason code and returns details of that hold reason.'); $Parameter[0]['name'] = _('Hold reason code'); $Parameter[0]['description'] = _('A hold reason abbreviation as returned by the GetHoldReasonList function.'); $Parameter[1]['name'] = _('User name'); Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-24 20:04:35 UTC (rev 3320) +++ trunk/doc/Change.log.html 2010-01-24 20:12:56 UTC (rev 3321) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>24/01/10 Harald: api_xml-rpc.php - Typo correction in string</p> <p>24/01/10 Miki: Croatian translation files</p> <p>24/01/10 Harald: api_xml-rpc.php - Typo correction in string</p> <p>23/01/10 Tim: DateFunctions.inc - Correction to DateAdd() function for the d.m.Y date format</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-24 21:06:54
|
Revision: 3323 http://web-erp.svn.sourceforge.net/web-erp/?rev=3323&view=rev Author: tim_schofield Date: 2010-01-24 21:06:26 +0000 (Sun, 24 Jan 2010) Log Message: ----------- Typo correction in string Modified Paths: -------------- trunk/api/api_xml-rpc.php trunk/doc/Change.log.html Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2010-01-24 20:19:48 UTC (rev 3322) +++ trunk/api/api_xml-rpc.php 2010-01-24 21:06:26 UTC (rev 3323) @@ -945,7 +945,7 @@ unset($Description); $Description = _('This function takes a stock shipper id and returns details of that shipper.'); $Parameter[0]['name'] = _('Stock Shipper ID'); - $Parameter[0]['description'] = _('A stock location code as returned by the GetShippersList function.'); + $Parameter[0]['description'] = _('A stock shipper ID as returned by the GetShippersList function.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-24 20:19:48 UTC (rev 3322) +++ trunk/doc/Change.log.html 2010-01-24 21:06:26 UTC (rev 3323) @@ -1,6 +1,7 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> <p>24/01/10 Harald: api_xml-rpc.php - Typo correction in string</p> +<p>24/01/10 Harald: api_xml-rpc.php - Typo correction in string</p> <p>24/01/10 Miki: Croatian translation files</p> <p>24/01/10 Harald: api_xml-rpc.php - Typo correction in string</p> <p>23/01/10 Tim: DateFunctions.inc - Correction to DateAdd() function for the d.m.Y date format</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lin...@us...> - 2010-01-25 10:41:32
|
Revision: 3324 http://web-erp.svn.sourceforge.net/web-erp/?rev=3324&view=rev Author: lindsayh Date: 2010-01-25 10:41:16 +0000 (Mon, 25 Jan 2010) Log Message: ----------- Mangled the api_xml-rpc.php file to make the username and password parameters unnecessary if the login method has been used. Works quite well with my limited testing of both styles (i.e. with and without login()). Modified Paths: -------------- trunk/api/api_xml-rpc.php trunk/doc/Change.log.html Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2010-01-24 21:06:26 UTC (rev 3323) +++ trunk/api/api_xml-rpc.php 2010-01-25 10:41:16 UTC (rev 3324) @@ -31,29 +31,37 @@ $Login_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); function xmlrpc_Login($xmlrpcmsg) { - ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(LoginAPI($xmlrpcmsg->getParam(0)->scalarval(), + ob_start('ob_file_callback'); + $rtn = new xmlrpcresp(php_xmlrpc_encode(LoginAPI($xmlrpcmsg->getParam(0)->scalarval(), $xmlrpcmsg->getParam(1)->scalarval(), $xmlrpcmsg->getParam(2)->scalarval()))); + ob_end_flush(); + return $rtn; } + + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to logout from the API methods.'); - $ReturnValue[0] = _('This function returns an integer. '). - _('Zero means the function was successful. '). - _('Otherwise an error code is returned. '); - + $ReturnValue[0] = _('This function returns an integer. ') + ._('Zero means the function was successful. ') + ._('Otherwise an error code is returned. '); $Logout_sig = array(array($xmlrpcStruct)); - $Logout_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); + $Logout_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_Logout($xmlrpcmsg) { + function xmlrpc_Logout($xmlrpcmsg){ + ob_start('ob_file_callback'); + $rtn = new xmlrpcresp( php_xmlrpc_encode(LogoutAPI()) ); ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(LogoutAPI())); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to insert a new customer into the webERP database.'); $Parameter[0]['name'] = _('Customer Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -65,26 +73,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $InsertCustomer_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString), array($xmlrpcStruct, $xmlrpcStruct)); - $InsertCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertCustomer_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertCustomer_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_InsertCustomer($xmlrpcmsg) { + function xmlrpc_InsertCustomer($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - if ($xmlrpcmsg->getNumParams() == 3) { - return new xmlrpcresp(php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); - } else { - return new xmlrpcresp(php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0))))); - } + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to insert a new customer branch into the webERP database.'); $Parameter[0]['name'] = _('Branch Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -95,22 +109,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $InsertBranch_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertBranch_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertBranch_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_InsertBranch($xmlrpcmsg) { + function xmlrpc_InsertBranch($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to modify a customer which is already setup in the webERP database.'); $Parameter[0]['name'] = _('Customer Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -122,23 +146,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); +/*E*/ $ModifyCustomer_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $ModifyCustomer_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - $ModifyCustomer_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifyCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - - function xmlrpc_ModifyCustomer($xmlrpcmsg) { + function xmlrpc_ModifyCustomer($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to modify a customer branch which is already setup in the webERP database.'); $Parameter[0]['name'] = _('Branch Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -150,22 +183,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $ModifyBranch_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifyBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $ModifyBranch_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $ModifyBranch_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_ModifyBranch($xmlrpcmsg) { + function xmlrpc_ModifyBranch($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to retrieve the details of a customer branch from the webERP database.'); $Parameter[0]['name'] = _('Debtor number'); $Parameter[0]['description'] = _('This is a string value. It must be a valid debtor number that is already in the webERP database.'); @@ -175,24 +218,34 @@ $Parameter[2]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[3]['name'] = _('User password'); $Parameter[3]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('If successful this function returns a set of key/value pairs containing the details of this branch. '). - _('The key will be identical with field name from the custbranch table. All fields will be in the set regardless of whether the value was set.').'<p>'. - _('Otherwise an array of error codes is returned. '); + $ReturnValue[0] = _('If successful this function returns a set of key/value pairs containing the details of this branch. ') + ._('The key will be identical with field name from the custbranch table. All fields will be in the set regardless of whether the value was set.').'<p>' + ._('Otherwise an array of error codes is returned. '); +/*E*/ $GetCustomerBranch_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetCustomerBranch_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - $GetCustomerBranch_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetCustomerBranch_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - - function xmlrpc_GetCustomerBranch($xmlrpcmsg) { + function xmlrpc_GetCustomerBranch($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 4) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to retrieve the details of a customer from the webERP database.'); $Parameter[0]['name'] = _('Debtor number'); $Parameter[0]['description'] = _('This is a string value. It must be a valid debtor number that is already in the webERP database.'); @@ -200,22 +253,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('If successful this function returns a set of key/value pairs containing the details of this customer. '). - _('The key will be identical with field name from the debtorsmaster table. All fields will be in the set regardless of whether the value was set.').'<p>'. - _('Otherwise an array of error codes is returned. '); + $ReturnValue[0] = _('If successful this function returns a set of key/value pairs containing the details of this customer. ') + ._('The key will be identical with field name from the debtorsmaster table. All fields will be in the set regardless of whether the value was set.').'<p>' + ._('Otherwise an array of error codes is returned. '); - $GetCustomer_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetCustomer_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetCustomer_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetCustomer_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetCustomer($xmlrpcmsg) { + function xmlrpc_GetCustomer($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function is used to retrieve the details of a customer from the webERP database.'); $Parameter[0]['name'] = _('Field Name'); $Parameter[0]['description'] = _('The name of a database field to search on. ') @@ -227,45 +290,64 @@ $Parameter[2]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[3]['name'] = _('User password'); $Parameter[3]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of customer IDs, which may be integers or strings. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of customer IDs, which may be integers or strings. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $SearchCustomers_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SearchCustomers_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $SearchCustomers_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $SearchCustomers_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_SearchCustomers($xmlrpcmsg) { + function xmlrpc_SearchCustomers($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 4) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function returns a list of currency abbreviations.'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[1]['name'] = _('User password'); $Parameter[1]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of currency abbreviations. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of currency abbreviations. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $GetCurrencyList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetCurrencyList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetCurrencyList_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetCurrencyList_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetCurrencyList($xmlrpcmsg) { + function xmlrpc_GetCurrencyList($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyList($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyList( '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetCurrencyList($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function takes a currency abbreviation and returns details of that currency.'); $Parameter[0]['name'] = _('Currency abbreviation'); $Parameter[0]['description'] = _('A currency abbreviation as returned by the GetCurrencyList function.'); @@ -275,40 +357,58 @@ $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of currency details.'); - $GetCurrencyDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetCurrencyDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetCurrencyDetails_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetCurrencyDetails_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetCurrencyDetails($xmlrpcmsg) { + function xmlrpc_GetCurrencyDetails($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function returns a list of sales type abbreviations.'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[1]['name'] = _('User password'); $Parameter[1]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of sales type abbreviations. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of sales type abbreviations. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $GetSalesTypeList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetSalesTypeList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetSalesTypeList_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetSalesTypeList_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetSalesTypeList($xmlrpcmsg) { + function xmlrpc_GetSalesTypeList($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeList($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeList( '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetSalesTypeList($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function takes a sales type abbreviation and returns details of that sales type.'); $Parameter[0]['name'] = _('Sales type abbreviation'); $Parameter[0]['description'] = _('A sales type abbreviation as returned by the GetSalesTypeList function.'); @@ -318,19 +418,28 @@ $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of sales type details.'); - $GetSalesTypeDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetSalesTypeDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetSalesTypeDetails_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetSalesTypeDetails_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetSalesTypeDetails($xmlrpcmsg) { + function xmlrpc_GetSalesTypeDetails($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function is used to insert sales type details into the webERP database.'); $Parameter[0]['name'] = _('Sales Type Details'); $Parameter[0]['description'] = _('A set of key/value pairs where the key must be identical to the name of the field to be updated. ') @@ -341,23 +450,32 @@ $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ReturnValue[0] = _('This function returns an array of integers. '). - _('If the first element is zero then the function was successful. '). - _('Otherwise an array of error codes is returned and no insertion takes place. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); - $InsertSalesType_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesType_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertSalesType_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertSalesType_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_InsertSalesType($xmlrpcmsg) { + function xmlrpc_InsertSalesType($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function returns a list of hold reason codes.'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); @@ -365,18 +483,27 @@ $Parameter[1]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of hold reason codes.'); - $GetHoldReasonList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetHoldReasonList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetHoldReasonList_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetHoldReasonList_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetHoldReasonList($xmlrpcmsg) { + function xmlrpc_GetHoldReasonList($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonList($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonList( '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetHoldReasonList($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function takes a hold reason code and returns details of that hold reason.'); $Parameter[0]['name'] = _('Hold reason code'); $Parameter[0]['description'] = _('A hold reason abbreviation as returned by the GetHoldReasonList function.'); @@ -386,19 +513,28 @@ $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of hold reason details.'); - $GetHoldReasonDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetHoldReasonDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetHoldReasonDetails_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetHoldReasonDetails_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetHoldReasonDetails($xmlrpcmsg) { + function xmlrpc_GetHoldReasonDetails($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function returns a list of payment terms abbreviations.'); $Parameter[0]['name'] = _('User name'); $Parameter[0]['description'] = _('A valid weberp username. This user should have security access to this data.'); @@ -406,18 +542,27 @@ $Parameter[1]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of payment terms abbreviations.'); - $GetPaymentTermsList_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $GetPaymentTermsList_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetPaymentTermsList_sig = array(array($xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $GetPaymentTermsList_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetPaymentTermsList($xmlrpcmsg) { + function xmlrpc_GetPaymentTermsList($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsList($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsList( '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetPaymentTermsList($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Description = _('This function takes a payment terms abbreviation and returns details of that payment terms type.'); $Parameter[0]['name'] = _('Hold reason code'); $Parameter[0]['description'] = _('A payment terms abbreviation as returned by the GetPaymentTermsList function.'); @@ -427,75 +572,115 @@ $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of payment terms details.'); - $GetPaymentTermsDetails_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetPaymentTermsDetails_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetPaymentTermsDetails_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetPaymentTermsDetails_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetPaymentTermsDetails($xmlrpcmsg) { + function xmlrpc_GetPaymentTermsDetails($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock Item Details'); $Parameter[0]['description'] = _('Key/value pairs of data to insert.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $InsertStockItem_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_InsertStockItem($xmlrpcmsg) { +/*E*/ $InsertStockItem_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertStockItem_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_InsertStockItem($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock Item Details'); $Parameter[0]['description'] = _('Key/value pairs of data to modify.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $ModifyStockItem_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $ModifyStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_ModifyStockItem($xmlrpcmsg) { +/*E*/ $ModifyStockItem_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $ModifyStockItem_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_ModifyStockItem($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify the item in the database.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $GetStockItem_sig = array(array($xmlrpcStruct, $xmlrpcString)); - $GetStockItem_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetStockItem($xmlrpcmsg) { +/*E*/ $GetStockItem_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetStockItem_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetStockItem($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam(0)->scalarval(), - '', ''))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Field Name'); $Parameter[0]['description'] = _('The field name to search on.'); $Parameter[1]['name'] = _('Match Criteria'); @@ -504,21 +689,32 @@ $Parameter[2]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[3]['name'] = _('User password'); $Parameter[3]['description'] = _('The weberp password associated with this user name. '); - $SearchStockItems_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SearchStockItems_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_SearchStockItems($xmlrpcmsg) { +/*E*/ $SearchStockItems_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $SearchStockItems_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_SearchStockItems($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 4) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); - $Description='This function returns the stock balance for the given stockid.'; + unset($ReturnValue); + + $Description = 'This function returns the stock balance for the given stockid.'; $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('A string field containing a valid stockid that must already be setup in the stockmaster table. The api will check this before making the enquiry.'); $Parameter[1]['name'] = _('User name'); @@ -526,25 +722,30 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of stock quantities by location for this stock item. '); - $GetStockBalance_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString),array($xmlrpcStruct, $xmlrpcString)); - $GetStockBalance_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetStockBalance($xmlrpcmsg) { +/*E*/ $GetStockBalance_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetStockBalance_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetStockBalance($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - if ($xmlrpcmsg->getNumParams() == 3) - { - return new xmlrpcresp(php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); - } else { - return new xmlrpcresp(php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam(0)->scalarval()), '', '')); - } + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); - $Description='This function returns the reorder levels by location.'; + unset($ReturnValue); + + $Description = 'This function returns the reorder levels by location.'; $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('A string field containing a valid stockid that must already be setup in the stockmaster table. The api will check this before making the enquiry.'); $Parameter[1]['name'] = _('User name'); @@ -552,20 +753,30 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of stock reorder levels by location for this stock item.'); - $GetStockReorderLevel_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetStockReorderLevel_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetStockReorderLevel($xmlrpcmsg) { +/*E*/ $GetStockReorderLevel_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetStockReorderLevel_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetStockReorderLevel($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); - $Description='This function sets the reorder level for the given stockid in the given location.'; + unset($ReturnValue); + + $Description = 'This function sets the reorder level for the given stockid in the given location.'; $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('A string field containing a valid stockid that must already be setup in the stockmaster table. The api will check this before making the enquiry.'); $Parameter[1]['name'] = _('Location Code'); @@ -577,58 +788,91 @@ $Parameter[4]['name'] = _('User password'); $Parameter[4]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns zero if the transaction was successful or an array of error codes if not. '); - $SetStockReorderLevel_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SetStockReorderLevel_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_SetStockReorderLevel($xmlrpcmsg) { +/*E*/ $SetStockReorderLevel_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $SetStockReorderLevel_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_SetStockReorderLevel($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 5) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), + $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval(), - $xmlrpcmsg->getParam(4)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify items ordered but not yet shipped.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $GetAllocatedStock_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetAllocatedStock_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetAllocatedStock($xmlrpcmsg) { +/*E*/ $GetAllocatedStock_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetAllocatedStock_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetAllocatedStock($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify items in the database on order, but not yet received.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $GetOrderedStock_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetOrderedStock_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); - function xmlrpc_GetOrderedStock($xmlrpcmsg) { + +/*E*/ $GetOrderedStock_sig = array(array($xmlrpcStruct,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetOrderedStock_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); + + function xmlrpc_GetOrderedStock($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify the item in the database.'); $Parameter[1]['name'] = _('Currency Code'); @@ -642,22 +886,34 @@ $Parameter[5]['name'] = _('User password'); $Parameter[5]['description'] = _('The weberp password associated with this user name. '); - $SetStockPrice_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $SetStockPrice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $SetStockPrice_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $SetStockPrice_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_SetStockPrice($xmlrpcmsg) { + function xmlrpc_SetStockPrice($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 6) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 5 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), + $xmlrpcmsg->getParam( 1 )->scalarval( ), + $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval(), - $xmlrpcmsg->getParam(4)->scalarval(), - $xmlrpcmsg->getParam(5)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify the item in the database.'); $Parameter[1]['name'] = _('Currency Code'); @@ -669,21 +925,32 @@ $Parameter[4]['name'] = _('User password'); $Parameter[4]['description'] = _('The weberp password associated with this user name. '); - $GetStockPrice_sig = array(array($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)); - $GetStockPrice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $GetStockPrice_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString), +/*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); + $GetStockPrice_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_GetStockPrice($xmlrpcmsg) { + function xmlrpc_GetStockPrice($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 5) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ))) ); +/*x*/ } else { + $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), + $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*e*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam(0)->scalarval(), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval(), - $xmlrpcmsg->getParam(3)->scalarval(), - $xmlrpcmsg->getParam(4)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Invoice Details'); $Parameter[0]['description'] = _('An array of index/value items describing the invoice.'); $Parameter[1]['name'] = _('User name'); @@ -691,19 +958,28 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $InsertSalesInvoice_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesInvoice_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertSalesInvoice_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertSalesInvoice_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - function xmlrpc_InsertSalesInvoice($xmlrpcmsg) { + function xmlrpc_InsertSalesInvoice($xmlrpcmsg){ + ob_start('ob_file_callback'); +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { +/*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { +/*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); +/*x*/ } ob_end_flush(); - return new xmlrpcresp(php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam(0)), - $xmlrpcmsg->getParam(1)->scalarval(), - $xmlrpcmsg->getParam(2)->scalarval()))); + return $rtn; } + unset($Description); unset($Parameter); - unset($ReturnValue); - unset($Description); + unset($ReturnValue); + $Parameter[0]['name'] = _('Credit Details'); $Parameter[0]['description'] = _('An array of index/value items describing the credit. All values must be negative.'); $Parameter[1]['name'] = _('User name'); @@ -711,19 +987,28 @@ $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); - $InsertSalesCredit_sig = array(array($xmlrpcStruct, $xmlrpcStruct, $xmlrpcString, $xmlrpcString)); - $InsertSalesCredit_doc = apiBuildDocHTML( $Description, $Parameter, $ReturnValue ); +/*E*/ $InsertSalesCredit_sig = array(array($xmlrpcStruct,$xmlrpcStruct), +/*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); + $InsertSalesCredit_doc = apiBuildDocHTML( $Description,$Parameter,$ReturnValue ); - functi... [truncated message content] |
From: <tim...@us...> - 2010-01-25 16:50:39
|
Revision: 3325 http://web-erp.svn.sourceforge.net/web-erp/?rev=3325&view=rev Author: tim_schofield Date: 2010-01-25 16:50:32 +0000 (Mon, 25 Jan 2010) Log Message: ----------- Paul Thursby: Simplify and shorten the code for wildcard selection criteria Modified Paths: -------------- trunk/BOMInquiry.php trunk/BOMs.php trunk/CustomerReceipt.php trunk/MRPDemands.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PurchData.php trunk/SelectCompletedOrder.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/SelectWorkOrder.php trunk/Shipt_Select.php trunk/WorkOrderEntry.php trunk/WorkOrderIssue.php trunk/doc/Change.log.html Modified: trunk/BOMInquiry.php =================================================================== --- trunk/BOMInquiry.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/BOMInquiry.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -39,17 +39,8 @@ } else { if (strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - - $sql = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units, Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/BOMs.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -741,17 +741,8 @@ } else { If (strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - - $sql = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units, Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/CustomerReceipt.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -514,15 +514,8 @@ } else { if (strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces - - $i=0; - $SearchString = "%"; - while (strpos($_POST['Keywords'], " ", $i)) { - $wrdlen=strpos($_POST['Keywords']," ",$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . "%"; - $i=strpos($_POST['Keywords']," ",$i) +1; - } - $SearchString = $SearchString . substr($_POST['Keywords'],$i)."%"; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + $SQL = "SELECT debtorsmaster.debtorno, debtorsmaster.name FROM debtorsmaster Modified: trunk/MRPDemands.php =================================================================== --- trunk/MRPDemands.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/MRPDemands.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -58,16 +58,8 @@ } else { if (strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + $sql = "SELECT stockmaster.stockid, stockmaster.description FROM stockmaster Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/PO_Header.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -414,15 +414,8 @@ } else { if (strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + $SQL = "SELECT suppliers.supplierid, suppliers.suppname, suppliers.address1, Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/PO_Items.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -412,16 +412,8 @@ } If ($_POST['Keywords']) { //insert wildcard characters in spaces - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + if ($_POST['StockCat']=='All'){ $sql = "SELECT stockmaster.stockid, stockmaster.description, Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/PO_SelectOSPurchOrder.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -63,15 +63,7 @@ } If ($_POST['Keywords']) { //insert wildcard characters in spaces -// $completed = "purchorderdetails.completed=0 AND "; - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; $SQL = "SELECT stockmaster.stockid, stockmaster.description, Modified: trunk/PO_SelectPurchOrder.php =================================================================== --- trunk/PO_SelectPurchOrder.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/PO_SelectPurchOrder.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -59,14 +59,7 @@ } If ($_POST['Keywords']) { //insert wildcard characters in spaces - $i=0; - $SearchString = "%"; - while (strpos($_POST['Keywords'], " ", $i)) { - $wrdlen=strpos($_POST['Keywords']," ",$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . "%"; - $i=strpos($_POST['Keywords']," ",$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i)."%"; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; $SQL = "SELECT stockmaster.stockid, stockmaster.description, Modified: trunk/PurchData.php =================================================================== --- trunk/PurchData.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/PurchData.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -241,15 +241,9 @@ } if (strlen($_POST['Keywords']) > 0) { //insert wildcard characters in spaces - $i = 0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen = strpos($_POST['Keywords'], ' ', $i) -$i; - $SearchString = $SearchString . substr($_POST['Keywords'], $i, $wrdlen) . '%'; - $i = strpos($_POST['Keywords'], ' ', $i) +1; - } - $SearchString = $SearchString . substr($_POST['Keywords'], $i) . '%'; - $SQL = "SELECT suppliers.supplierid, + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + + $SQL = "SELECT suppliers.supplierid, suppliers.suppname, suppliers.currcode, suppliers.address1, Modified: trunk/SelectCompletedOrder.php =================================================================== --- trunk/SelectCompletedOrder.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/SelectCompletedOrder.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -84,15 +84,7 @@ } if ($_POST['Keywords']!='') { //insert wildcard characters in spaces - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; if (isset($_POST['completed'])) { $SQL = "SELECT stockmaster.stockid, Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/SelectCreditItems.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -70,17 +70,9 @@ } else { If (strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces - $msg=''; - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + $msg=''; - $SQL = 'SELECT custbranch.debtorno, custbranch.brname, @@ -288,16 +280,8 @@ If ($_POST['Keywords']!="") { //insert wildcard characters in spaces - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + if ($_POST['StockCat']=='All'){ $SQL = "SELECT stockmaster.stockid, stockmaster.description, Modified: trunk/SelectCustomer.php =================================================================== --- trunk/SelectCustomer.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/SelectCustomer.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -130,17 +130,8 @@ $_POST['Keywords'] = strtoupper(trim($_POST['Keywords'])); //insert wildcard characters in spaces - - $i=0; - $SearchString = "%"; - - while (strpos($_POST['Keywords'], " ", $i)) { - $wrdlen=strpos($_POST['Keywords']," ",$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . "%"; - $i=strpos($_POST['Keywords']," ",$i) +1; - } - $SearchString = $SearchString . substr($_POST['Keywords'],$i)."%"; - + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + $SQL = "SELECT debtorsmaster.debtorno, debtorsmaster.name, debtorsmaster.address1, Modified: trunk/SelectGLAccount.php =================================================================== --- trunk/SelectGLAccount.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/SelectGLAccount.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -36,16 +36,8 @@ } else { If (strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i) . '%'; - + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + $SQL = "SELECT chartmaster.accountcode, chartmaster.accountname, chartmaster.group_, Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/SelectOrderItems.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -307,14 +307,7 @@ if (strlen($_POST['CustKeywords'])>0) { //insert wildcard characters in spaces $_POST['CustKeywords'] = strtoupper(trim($_POST['CustKeywords'])); - $i=0; - $SearchString = '%'; - while (strpos($_POST['CustKeywords'], ' ', $i)) { - $wrdlen=strpos($_POST['CustKeywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['CustKeywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['CustKeywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['CustKeywords'],$i).'%'; + $SearchString = '%' . str_replace(' ', '%', $_POST['CustKeywords']) . '%'; $SQL = "SELECT custbranch.brname, custbranch.contactname, @@ -758,16 +751,8 @@ if (isset($_POST['Keywords']) AND strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $_POST['Keywords'] = strtoupper($_POST['Keywords']); - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + if ($_POST['StockCat']=='All'){ $SQL = "SELECT stockmaster.stockid, stockmaster.description, Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/SelectProduct.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -118,14 +118,7 @@ if ($_POST['Keywords']) { //insert wildcard characters in spaces $_POST['Keywords'] = strtoupper($_POST['Keywords']); - $i = 0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen = strpos($_POST['Keywords'], ' ', $i) - $i; - $SearchString = $SearchString . substr($_POST['Keywords'], $i, $wrdlen) . '%'; - $i = strpos($_POST['Keywords'], ' ', $i) + 1; - } - $SearchString = $SearchString. substr($_POST['Keywords'], $i) . '%'; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; if ($_POST['StockCat'] == 'All'){ $SQL = "SELECT stockmaster.stockid, Modified: trunk/SelectSalesOrder.php =================================================================== --- trunk/SelectSalesOrder.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/SelectSalesOrder.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -46,14 +46,7 @@ } if ($_POST['Keywords']) { //insert wildcard characters in spaces - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString . substr($_POST['Keywords'],$i).'%'; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; $SQL = "SELECT stockmaster.stockid, stockmaster.description, Modified: trunk/SelectSupplier.php =================================================================== --- trunk/SelectSupplier.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/SelectSupplier.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -112,16 +112,8 @@ $_POST['Keywords'] = strtoupper($_POST['Keywords']); //insert wildcard characters in spaces - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + $SQL = "SELECT supplierid, suppname, currcode, Modified: trunk/SelectWorkOrder.php =================================================================== --- trunk/SelectWorkOrder.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/SelectWorkOrder.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -39,14 +39,7 @@ } If ($_POST['Keywords']) { //insert wildcard characters in spaces - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString . substr($_POST['Keywords'],$i).'%'; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; $SQL = "SELECT stockmaster.stockid, stockmaster.description, Modified: trunk/Shipt_Select.php =================================================================== --- trunk/Shipt_Select.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/Shipt_Select.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -70,14 +70,7 @@ If ($_POST['Keywords']) { //insert wildcard characters in spaces - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; $SQL .= " WHERE purchorderdetails.shiptref IS NOT NULL AND purchorderdetails.shiptref<>0 Modified: trunk/WorkOrderEntry.php =================================================================== --- trunk/WorkOrderEntry.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/WorkOrderEntry.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -43,16 +43,8 @@ If (strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $_POST['Keywords'] = strtoupper($_POST['Keywords']); - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + if ($_POST['StockCat']=='All'){ $SQL = "SELECT stockmaster.stockid, stockmaster.description, Modified: trunk/WorkOrderIssue.php =================================================================== --- trunk/WorkOrderIssue.php 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/WorkOrderIssue.php 2010-01-25 16:50:32 UTC (rev 3325) @@ -372,16 +372,8 @@ If (strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $_POST['Keywords'] = strtoupper($_POST['Keywords']); - - $i=0; - $SearchString = '%'; - while (strpos($_POST['Keywords'], ' ', $i)) { - $wrdlen=strpos($_POST['Keywords'],' ',$i) - $i; - $SearchString=$SearchString . substr($_POST['Keywords'],$i,$wrdlen) . '%'; - $i=strpos($_POST['Keywords'],' ',$i) +1; - } - $SearchString = $SearchString. substr($_POST['Keywords'],$i).'%'; - + $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; + if ($_POST['StockCat']=='All'){ $SQL = "SELECT stockmaster.stockid, stockmaster.description, Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-25 10:41:16 UTC (rev 3324) +++ trunk/doc/Change.log.html 2010-01-25 16:50:32 UTC (rev 3325) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>25/01/10 Paul Thursby: Simplify and shorten the code for wildcard selection criteria</p> <p>25/01/10 Lindsay: api_xml-rpc.php - API now in 2 styles: name/password not required after login</p> <p>24/01/10 Harald: api_xml-rpc.php - Typo correction in string</p> <p>24/01/10 Harald: api_xml-rpc.php - Typo correction in string</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-01-26 16:46:46
|
Revision: 3329 http://web-erp.svn.sourceforge.net/web-erp/?rev=3329&view=rev Author: tim_schofield Date: 2010-01-26 16:46:34 +0000 (Tue, 26 Jan 2010) Log Message: ----------- Update the documentation Modified Paths: -------------- trunk/api/api_xml-rpc.php trunk/doc/Change.log.html trunk/doc/Manual/ManualAPIFunctions.php Modified: trunk/api/api_xml-rpc.php =================================================================== --- trunk/api/api_xml-rpc.php 2010-01-26 03:34:38 UTC (rev 3328) +++ trunk/api/api_xml-rpc.php 2010-01-26 16:46:34 UTC (rev 3329) @@ -5,17 +5,12 @@ * least it works */ } -// ob_start('ob_file_callback'); - include 'api_php.php'; include '../xmlrpc/lib/xmlrpc.inc'; include '../xmlrpc/lib/xmlrpcs.inc'; - - unset($Parameter); - unset($ReturnValue); $Description = _('This function is used to login into the API methods for the specified the database.') .'<p><b>' . _('NOTE: using this function means that the User Name and Password fields in the following functions are no longer required. When calling those functions, leave the last two parameters off.') . '</b>'; $Parameter[0]['name'] = _('Database Name'); @@ -42,11 +37,10 @@ unset($Description); - unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function is used to logout from the API methods. ') - . _('It terminates the user\'s session thus freeing the server resources.' ); + . _('It terminates the user\'s session thus freeing the server resources.' ); $ReturnValue[0] = _('This function returns an integer. ') ._('Zero means the function was successful. ') ._('Otherwise an error code is returned. '); @@ -55,14 +49,14 @@ function xmlrpc_Logout($xmlrpcmsg){ ob_start('ob_file_callback'); - $rtn = new xmlrpcresp( php_xmlrpc_encode(LogoutAPI()) ); + $rtn = new xmlrpcresp( php_xmlrpc_encode(LogoutAPI()) ); ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function is used to insert a new customer into the webERP database.'); $Parameter[0]['name'] = _('Customer Details'); @@ -85,21 +79,21 @@ function xmlrpc_InsertCustomer($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function is used to insert a new customer branch into the webERP database.'); $Parameter[0]['name'] = _('Branch Details'); @@ -121,21 +115,21 @@ function xmlrpc_InsertBranch($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function is used to modify a customer which is already setup in the webERP database.'); $Parameter[0]['name'] = _('Customer Details'); @@ -150,7 +144,7 @@ $Parameter[2]['description'] = _('The weberp password associated with this user name. '); $ReturnValue[0] = _('This function returns an array of integers. ') ._('If the first element is zero then the function was successful. ') - ._('Otherwise an array of error codes is returned and no insertion takes place. '); + ._('Otherwise an array of error codes is returned and no modification takes place. '); /*E*/ $ModifyCustomer_sig = array(array($xmlrpcStruct,$xmlrpcStruct), /*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); @@ -158,21 +152,21 @@ function xmlrpc_ModifyCustomer($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyCustomer(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function is used to modify a customer branch which is already setup in the webERP database.'); $Parameter[0]['name'] = _('Branch Details'); @@ -195,21 +189,21 @@ function xmlrpc_ModifyBranch($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyBranch(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function is used to retrieve the details of a customer branch from the webERP database.'); $Parameter[0]['name'] = _('Debtor number'); @@ -230,23 +224,23 @@ function xmlrpc_GetCustomerBranch($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 4) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 4) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); +/*x*/ } else { $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerBranch($xmlrpcmsg->getParam( 0 )->scalarval( ), /*e*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function is used to retrieve the details of a customer from the webERP database.'); $Parameter[0]['name'] = _('Debtor number'); @@ -265,21 +259,21 @@ function xmlrpc_GetCustomer($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomer($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function is used to retrieve the details of a customer from the webERP database.'); $Parameter[0]['name'] = _('Field Name'); @@ -302,23 +296,23 @@ function xmlrpc_SearchCustomers($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 4) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 4) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); +/*x*/ } else { $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchCustomers($xmlrpcmsg->getParam( 0 )->scalarval( ), /*e*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of currency abbreviations.'); $Parameter[0]['name'] = _('User name'); @@ -335,20 +329,20 @@ function xmlrpc_GetCurrencyList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a currency abbreviation and returns details of that currency.'); $Parameter[0]['name'] = _('Currency abbreviation'); @@ -365,21 +359,21 @@ function xmlrpc_GetCurrencyDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCurrencyDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of sales type abbreviations.'); $Parameter[0]['name'] = _('User name'); @@ -396,20 +390,20 @@ function xmlrpc_GetSalesTypeList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a sales type abbreviation and returns details of that sales type.'); $Parameter[0]['name'] = _('Sales type abbreviation'); @@ -426,21 +420,21 @@ function xmlrpc_GetSalesTypeDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesTypeDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function is used to insert sales type details into the webERP database.'); $Parameter[0]['name'] = _('Sales Type Details'); @@ -462,21 +456,21 @@ function xmlrpc_InsertSalesType($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesType(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of hold reason codes.'); $Parameter[0]['name'] = _('User name'); @@ -491,20 +485,20 @@ function xmlrpc_GetHoldReasonList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a hold reason code and returns details of that hold reason.'); $Parameter[0]['name'] = _('Hold reason code'); @@ -521,21 +515,21 @@ function xmlrpc_GetHoldReasonDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetHoldReasonDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of payment terms abbreviations.'); $Parameter[0]['name'] = _('User name'); @@ -550,20 +544,20 @@ function xmlrpc_GetPaymentTermsList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a payment terms abbreviation and returns details of that payment terms type.'); $Parameter[0]['name'] = _('Hold reason code'); @@ -580,28 +574,32 @@ function xmlrpc_GetPaymentTermsDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetPaymentTermsDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function inserts a new stock item into webERP, including updating the locstock table.'); $Parameter[0]['name'] = _('Stock Item Details'); - $Parameter[0]['description'] = _('Key/value pairs of data to insert.'); + $Parameter[0]['description'] = _('Key/value pairs of data to insert. The key must be identical with the database field name.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no insertion takes place. '); /*E*/ $InsertStockItem_sig = array(array($xmlrpcStruct,$xmlrpcStruct), /*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); @@ -609,28 +607,32 @@ function xmlrpc_InsertStockItem($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function modifies a stock item that already exists in webERP.'); $Parameter[0]['name'] = _('Stock Item Details'); $Parameter[0]['description'] = _('Key/value pairs of data to modify.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue[0] = _('This function returns an array of integers. ') + ._('If the first element is zero then the function was successful. ') + ._('Otherwise an array of error codes is returned and no modification takes place. '); /*E*/ $ModifyStockItem_sig = array(array($xmlrpcStruct,$xmlrpcStruct), /*x*/ array($xmlrpcStruct,$xmlrpcStruct,$xmlrpcString,$xmlrpcString)); @@ -638,28 +640,33 @@ function xmlrpc_ModifyStockItem($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifyStockItem(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function takes a stock item code and returns an array of key/value pairs.'). + _('The keys represent the database field names, and the values are the value of that field.'); $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify the item in the database.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue[0] = _('If successful this function returns a set of key/value pairs containing the details of this stock item. ') + ._('The key will be identical with field name from the stockmaster table. All fields will be in the set regardless of whether the value was set.').'<p>' + ._('Otherwise an array of error codes is returned. '); /*E*/ $GetStockItem_sig = array(array($xmlrpcStruct,$xmlrpcString), /*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); @@ -667,22 +674,23 @@ function xmlrpc_GetStockItem($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockItem($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function searches the stockmaster table and returns an array of stock items matching that criteria.'); $Parameter[0]['name'] = _('Field Name'); $Parameter[0]['description'] = _('The field name to search on.'); $Parameter[1]['name'] = _('Match Criteria'); @@ -691,6 +699,7 @@ $Parameter[2]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[3]['name'] = _('User password'); $Parameter[3]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue[0]=_('Returns an array of stock codes matching the criteria send, or an array of error codes'); /*E*/ $SearchStockItems_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString), /*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); @@ -698,23 +707,23 @@ function xmlrpc_SearchStockItems($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 4) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 4) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ))) ); +/*x*/ } else { $rtn = new xmlrpcresp( php_xmlrpc_encode(SearchStockItems($xmlrpcmsg->getParam( 0 )->scalarval( ), /*e*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = 'This function returns the stock balance for the given stockid.'; $Parameter[0]['name'] = _('Stock ID'); @@ -731,21 +740,21 @@ function xmlrpc_GetStockBalance($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockBalance($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = 'This function returns the reorder levels by location.'; $Parameter[0]['name'] = _('Stock ID'); @@ -762,21 +771,21 @@ function xmlrpc_GetStockReorderLevel($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = 'This function sets the reorder level for the given stockid in the given location.'; $Parameter[0]['name'] = _('Stock ID'); @@ -797,32 +806,34 @@ function xmlrpc_SetStockReorderLevel($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 5) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 5) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ))) ); +/*x*/ } else { $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockReorderLevel($xmlrpcmsg->getParam( 0 )->scalarval( ), $xmlrpcmsg->getParam( 1 )->scalarval( ), /*e*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function returns the quantity allocated of the stock item id sent as a parameter.'); $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify items ordered but not yet shipped.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue[0] = _('This function returns an integer value of the quantity allocated or an array of error codes if not. '); /*E*/ $GetAllocatedStock_sig = array(array($xmlrpcStruct,$xmlrpcString), /*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); @@ -830,28 +841,30 @@ function xmlrpc_GetAllocatedStock($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetAllocatedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function takes a stock ID and returns the quantity of this stock that is currently on outstanding purchase orders.'); $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify items in the database on order, but not yet received.'); $Parameter[1]['name'] = _('User name'); $Parameter[1]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[2]['name'] = _('User password'); $Parameter[2]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue[0] = _('This function returns an integer value of the quantity on order or an array of error codes if not.'); /*E*/ $GetOrderedStock_sig = array(array($xmlrpcStruct,$xmlrpcString), /*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString)); @@ -859,34 +872,36 @@ function xmlrpc_GetOrderedStock($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetOrderedStock($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function sets the sales price for a stock ID in the sales type and currency passed to the function'); $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify the item in the database.'); $Parameter[1]['name'] = _('Currency Code'); $Parameter[1]['description'] = _('The currency involved.'); $Parameter[2]['name'] = _('Sales Type'); - $Parameter[2]['description'] = _('The StockID code to identify the item in the database.'); + $Parameter[2]['description'] = _('The sales type to identify the item in the database.'); $Parameter[3]['name'] = _('Price'); $Parameter[3]['description'] = _('The price to apply to this item.'); $Parameter[4]['name'] = _('User name'); $Parameter[4]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[5]['name'] = _('User password'); $Parameter[5]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue = _('Returns a zero if successful or else an array of error codes'); /*E*/ $SetStockPrice_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString), /*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); @@ -894,38 +909,40 @@ function xmlrpc_SetStockPrice($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 6) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 6) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 5 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 5 )->scalarval( ))) ); +/*x*/ } else { $rtn = new xmlrpcresp( php_xmlrpc_encode(SetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), $xmlrpcmsg->getParam( 1 )->scalarval( ), $xmlrpcmsg->getParam( 2 )->scalarval( ), /*e*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _('This function gets the sales price for a stock ID in the sales type and currency passed to the function'); $Parameter[0]['name'] = _('Stock ID'); $Parameter[0]['description'] = _('The StockID code to identify the item in the database.'); $Parameter[1]['name'] = _('Currency Code'); $Parameter[1]['description'] = _('The currency involved.'); $Parameter[2]['name'] = _('Sales Type'); - $Parameter[2]['description'] = _('The StockID code to identify the item in the database.'); + $Parameter[2]['description'] = _('The sales type of the item in the database.'); $Parameter[3]['name'] = _('User name'); $Parameter[3]['description'] = _('A valid weberp username. This user should have security access to this data.'); $Parameter[4]['name'] = _('User password'); $Parameter[4]['description'] = _('The weberp password associated with this user name. '); + $ReturnValue = _('Returns the sales price for he stock item whose ID is passed in the function'); /*E*/ $GetStockPrice_sig = array(array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString), /*x*/ array($xmlrpcStruct,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString,$xmlrpcString)); @@ -933,26 +950,27 @@ function xmlrpc_GetStockPrice($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 5) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 5) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 3 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 4 )->scalarval( ))) ); +/*x*/ } else { $rtn = new xmlrpcresp( php_xmlrpc_encode(GetStockPrice($xmlrpcmsg->getParam( 0 )->scalarval( ), $xmlrpcmsg->getParam( 1 )->scalarval( ), /*e*/ $xmlrpcmsg->getParam( 2 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); + $Description = _(''); $Parameter[0]['name'] = _('Invoice Details'); $Parameter[0]['description'] = _('An array of index/value items describing the invoice.'); $Parameter[1]['name'] = _('User name'); @@ -966,21 +984,21 @@ function xmlrpc_InsertSalesInvoice($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesInvoice(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Parameter[0]['name'] = _('Credit Details'); $Parameter[0]['description'] = _('An array of index/value items describing the credit. All values must be negative.'); @@ -995,21 +1013,21 @@ function xmlrpc_InsertSalesCredit($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesCedit(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesCedit(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = 'This function is used to start a new sales order.'; $Parameter[0]['name'] = _('Insert Sales Order Header'); @@ -1030,21 +1048,21 @@ function xmlrpc_InsertSalesOrderHeader($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesOrderHeader(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesOrderHeader(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = 'This function is used to modify the header details of a sales order'; $Parameter[0]['name'] = _('Modify Sales Order Header Details'); @@ -1064,21 +1082,21 @@ function xmlrpc_ModifySalesOrderHeader($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifySalesOrderHeader(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifySalesOrderHeader(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = 'This function is used to add line items to a sales order.'; $Parameter[0]['name'] = _('Insert Sales Order Line'); @@ -1099,21 +1117,21 @@ function xmlrpc_InsertSalesOrderLine($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesOrderLine(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesOrderLine(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = 'This function is used to modify line items on a sales order.'; $Parameter[0]['name'] = _('Modify Sales Order Line'); @@ -1134,21 +1152,21 @@ function xmlrpc_ModifySalesOrderLine($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifySalesOrderLine(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(ModifySalesOrderLine(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Parameter[0]['name'] = _('Account Details'); $Parameter[0]['description'] = _('An array of index/value items describing the GL Account and fields to set.'); @@ -1163,21 +1181,21 @@ function xmlrpc_InsertGLAccount($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertGLAccount(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertGLAccount(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Parameter[0]['name'] = _('Account Section Details'); $Parameter[0]['description'] = _('An array of index/value items describing the account section to insert.'); @@ -1192,21 +1210,21 @@ function xmlrpc_InsertGLAccountSection($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertGLAccountSection(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertGLAccountSection(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Parameter[0]['name'] = _('Account Group Details'); $Parameter[0]['description'] = _('An array of index/value items describing the account group to insert.'); @@ -1221,21 +1239,21 @@ function xmlrpc_InsertGLAccountGroup($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertGLAccountGroup(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertGLAccountGroup(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of stock location ids.'); $Parameter[0]['name'] = _('User name'); @@ -1250,20 +1268,20 @@ function xmlrpc_GetLocationList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetLocationList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetLocationList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a stock location id and returns details of that stock location.'); $Parameter[0]['name'] = _('Stock Location Code'); @@ -1280,21 +1298,21 @@ function xmlrpc_GetLocationDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetLocationDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetLocationDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of stock shipper ids.'); $Parameter[0]['name'] = _('User name'); @@ -1309,20 +1327,20 @@ function xmlrpc_GetShipperList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetShipperList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetShipperList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a stock shipper id and returns details of that shipper.'); $Parameter[0]['name'] = _('Stock Shipper ID'); @@ -1339,21 +1357,21 @@ function xmlrpc_GetShipperDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetShipperDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetShipperDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of sales area codes.'); $Parameter[0]['name'] = _('User name'); @@ -1368,20 +1386,20 @@ function xmlrpc_GetSalesAreasList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesAreasList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesAreasList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a sales area code and returns details of that sales area.'); $Parameter[0]['name'] = _('Sales Area Code'); @@ -1398,21 +1416,21 @@ function xmlrpc_GetSalesAreaDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesAreaDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesAreaDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a sales area description and returns details of that sales area.'); $Parameter[0]['name'] = _('Sales Area Description'); @@ -1429,21 +1447,21 @@ function xmlrpc_GetSalesAreaDetailsFromName($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesAreaDetailsFromName($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesAreaDetailsFromName($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Parameter[0]['name'] = _('Sales Area Details'); $Parameter[0]['description'] = _('An array of index/value items describing the sales area to insert.'); @@ -1458,21 +1476,21 @@ function xmlrpc_InsertSalesArea($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesArea(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesArea(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of salesman codes.'); $Parameter[0]['name'] = _('User name'); @@ -1487,20 +1505,20 @@ function xmlrpc_GetSalesmanList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesmanList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesmanList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a salesman code and returns details of that salesman.'); $Parameter[0]['name'] = _('Sales Area Code'); @@ -1517,21 +1535,21 @@ function xmlrpc_GetSalesmanDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesmanDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesmanDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a salesman\'s name and returns details of that salesman.'); $Parameter[0]['name'] = _('Salesman Name'); @@ -1548,21 +1566,21 @@ function xmlrpc_GetSalesmanDetailsFromName($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesmanDetailsFromName($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetSalesmanDetailsFromName($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Parameter[0]['name'] = _('Salesman Details'); $Parameter[0]['description'] = _('An array of index/value items describing the salesman to insert.'); @@ -1577,21 +1595,21 @@ function xmlrpc_InsertSalesman($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesman(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertSalesman(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of tax group IDs.'); $Parameter[0]['name'] = _('User name'); @@ -1606,20 +1624,20 @@ function xmlrpc_GetTaxgroupList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetTaxgroupList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetTaxgroupList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a tax group ID and returns details of that tax group.'); $Parameter[0]['name'] = _('Tax Group ID'); @@ -1636,21 +1654,21 @@ function xmlrpc_GetTaxgroupDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetTaxgroupDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetTaxgroupDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function returns a list of customer types.'); $Parameter[0]['name'] = _('User name'); @@ -1665,20 +1683,20 @@ function xmlrpc_GetCustomerTypeList($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 2) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 2) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerTypeList($xmlrpcmsg->getParam( 0 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerTypeList( '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Description = _('This function takes a customer type ID and returns details of that customer type.'); $Parameter[0]['name'] = _('Customer Type ID'); @@ -1695,21 +1713,21 @@ function xmlrpc_GetCustomerTypeDetails($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerTypeDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(GetCustomerTypeDetails($xmlrpcmsg->getParam( 0 )->scalarval( ), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Parameter[0]['name'] = _('Category Details'); $Parameter[0]['description'] = _('An array of index/value items describing the stock category to insert.'); @@ -1724,21 +1742,21 @@ function xmlrpc_InsertStockCategory($xmlrpcmsg){ ob_start('ob_file_callback'); -/*x*/ if ($xmlrpcmsg->getNumParams() == 3) -/*x*/ { +/*x*/ if ($xmlrpcmsg->getNumParams() == 3) +/*x*/ { /*x*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertStockCategory(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), /*x*/ $xmlrpcmsg->getParam( 1 )->scalarval( ), -/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); -/*x*/ } else { +/*x*/ $xmlrpcmsg->getParam( 2 )->scalarval( ))) ); +/*x*/ } else { /*e*/ $rtn = new xmlrpcresp( php_xmlrpc_encode(InsertStockCategory(php_xmlrpc_decode($xmlrpcmsg->getParam( 0 )), '', ''))); -/*x*/ } +/*x*/ } ob_end_flush(); return $rtn; } unset($Description); unset($Parameter); - unset($ReturnValue); + unset($ReturnValue); $Parameter[0]['name'] = _('Category Details'); $Parameter[0]['description'] ... [truncated message content] |
From: <tim...@us...> - 2010-01-27 14:59:37
|
Revision: 3330 http://web-erp.svn.sourceforge.net/web-erp/?rev=3330&view=rev Author: tim_schofield Date: 2010-01-27 14:59:17 +0000 (Wed, 27 Jan 2010) Log Message: ----------- Sajatmiko Akbar Wibowo: Updated Indonesian translation files Modified Paths: -------------- trunk/doc/Change.log.html trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-26 16:46:34 UTC (rev 3329) +++ trunk/doc/Change.log.html 2010-01-27 14:59:17 UTC (rev 3330) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>27/01/10 Sajatmiko Akbar Wibowo: Updated Indonesian translation files</p> <p>26/01/10 Tim: api_xml-rpc.php - Update the documentation</p> <p>26/01/10 Lindsay: Expand description for API Login and Logout functions</p> <p>25/01/10 Paul Thursby: Simplify and shorten the code for wildcard selection criteria</p> Modified: trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po 2010-01-26 16:46:34 UTC (rev 3329) +++ trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po 2010-01-27 14:59:17 UTC (rev 3330) @@ -1,33950 +1,28149 @@ # Indonesian translation for weberp # Copyright (c) (c) 2005 Canonical Ltd, and Rosetta Contributors 2005 # This file is distributed under the same license as the weberp package. -# FIRST AUTHOR <EMAIL@ADDRESS>, 2005. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2005. # msgid "" msgstr "" -"Project-Id-Version: weberp\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-12-28 14:43+1200\n" -"PO-Revision-Date: 2006-05-01 23:21+0800\n" -"Last-Translator: Hendrikus Postma <po...@he...>\n" -"Language-Team: www.OpenSynergy.org <in...@op...>\n" -"MIME-Version: 1.0\n" +"Project-Id-Version: weberp\\n" +"Report-Msgid-Bugs-To: \\n" +"POT-Creation-Date: 2009-02-09 09:25+0000\\n" +"PO-Revision-Date: 2006-05-01 23:21+0800\\n" +"Last-Translator: Sajatmiko<saj...@gm...>\\n" +"Language-Team: \\n" +"MIME-Version: 1.0\\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Rosetta-Version: 0.1\n" -"Plural-Forms: nplurals=1; plural=0\n" -"X-Generator: Rosetta (http://launchpad.ubuntu.com/rosetta/)\n" -"X-Poedit-Language: Indonesian\n" -"X-Poedit-Country: INDONESIA\n" - -#: AccountGroups.php:9 index.php:1156 -msgid "Account Groups" -msgstr "Rekening Grup" - -#: AccountGroups.php:19 -#, fuzzy -msgid "" -"An error occurred in retrieving the account groups of the parent account " -"group during the check for recursion" -msgstr "" -"Sebuah kesalahan muncul ketika mengambil komponen dari BOM selama " -"pemeriksaan untuk rekursi" - -#: AccountGroups.php:20 -#, fuzzy -msgid "" -"The SQL that was used to retrieve the account groups of the parent account " -"group and that failed in the process was" -msgstr "" -"SQL yang digunakan untuk mengambil komponen dari BOM dan yang gagal dalam " -"proses adalah" - -#: AccountGroups.php:57 AccountGroups.php:94 AccountGroups.php:177 -#: AccountGroups.php:187 -#, fuzzy -msgid "The SQL that was used to retrieve the information was" -msgstr "SQL yang digunakan untuk mengambil informasi transaksi adalah" - -#: AccountGroups.php:58 -#, fuzzy -msgid "Could not check whether the group exists because" -msgstr "Tidak dapat menentukan apakah barang ada karena" - -#: AccountGroups.php:65 -#, fuzzy -msgid "The account group name already exists in the database" -msgstr "Nama rekening grup tidak berisi karakter yang dimaksud" - -#: AccountGroups.php:71 -msgid "The account group name cannot contain the character" -msgstr "Nama rekening grup tidak berisi karakter yang dimaksud" - -#: AccountGroups.php:71 AccountSections.php:75 PaymentMethods.php:38 -#: TaxCategories.php:30 TaxProvinces.php:30 UnitsOfMeasure.php:30 -msgid "or the character" -msgstr "atau karakter" - -#: AccountGroups.php:77 -#, fuzzy -msgid "The account group name must be at least one character long" -msgstr "Nama kontak harus lebih dari satu karakter" - -#: AccountGroups.php:84 -msgid "" -"The parent account group selected appears to result in a recursive account " -"structure - select an alternative parent account group or make this group a " -"top level account group" -msgstr "" - -#: AccountGroups.php:95 -#, fuzzy -msgid "Could not check whether the group is recursive because" -msgstr "Tidak dapat menghapus catatan stok lokasi karena" - -#: AccountGroups.php:107 -msgid "The section in accounts must be an integer" -msgstr "Bagian dalam rekening-rekening harus dalam bentuk integer" - -#: AccountGroups.php:113 -msgid "The sequence in the trial balance must be an integer" -msgstr "Urutan dari neraca percobaan harus dalam bentuk integer." - -#: AccountGroups.php:119 -#, fuzzy -msgid "The sequence in the TB must be numeric and less than" -msgstr "Urutan dari neraca saldo harus kurang dari" - -#: AccountGroups.php:136 -#, fuzzy -msgid "An error occurred in updating the account group" -msgstr "Kesalahan terjadi saat memperbarui" - -#: AccountGroups.php:137 -#, fuzzy -msgid "The SQL that was used to update the account group was" -msgstr "SQL yang gagal memperbarui pemasok adalah" - -#: AccountGroups.php:139 AccountSections.php:106 PaymentMethods.php:88 -msgid "Record Updated" -msgstr "Catatan telah diperbarui" - -#: AccountGroups.php:157 -#, fuzzy -msgid "An error occurred in inserting the account group" -msgstr "Kesalahan terjadi saat memasukkan catatan tempat yang baru karena" - -#: AccountGroups.php:158 -#, fuzzy -msgid "The SQL that was used to insert the account group was" -msgstr "SQL yang gagal memasukkan pemasok adalah" - -#: AccountGroups.php:159 AccountSections.php:118 PaymentMethods.php:110 -msgid "Record inserted" -msgstr "Catatan telah masukkan" - -#: AccountGroups.php:176 -#, fuzzy -msgid "An error occurred in retrieving the group information from chartmaster" -msgstr "Sebuah kesalahan timbul ketika mengambil informasi mata uang" - -#: AccountGroups.php:181 -msgid "" -"Cannot delete this account group because general ledger accounts have been " -"created using this group" -msgstr "" -"Tidak dapat menghapus grup rekening ini karena rekenging buku besar telah " -"diciptakan dengan grup ini" - -#: AccountGroups.php:182 AccountGroups.php:192 AccountSections.php:139 -#: Areas.php:117 Areas.php:126 BankAccounts.php:163 CreditStatus.php:124 -#: Currencies.php:142 Currencies.php:150 Currencies.php:157 -#: CustomerBranches.php:294 CustomerBranches.php:304 CustomerBranches.php:314 -#: CustomerBranches.php:324 Customers.php:291 Customers.php:300 -#: Customers.php:308 Customers.php:316 CustomerTypes.php:151 -#: CustomerTypes.php:161 Factors.php:107 FixedAssetCategories.php:175 -#: FixedAssetItems.php:483 FixedAssetItems.php:492 FixedAssetItems.php:500 -#: FixedAssetItems.php:508 FixedAssetItems.php:516 FixedAssetItems.php:524 -#: GLAccounts.php:91 GLAccounts.php:105 Locations.php:218 Locations.php:226 -#: Locations.php:235 Locations.php:243 Locations.php:251 Locations.php:259 -#: Locations.php:267 Locations.php:275 MRPDemandTypes.php:85 -#: PaymentMethods.php:142 PaymentTerms.php:149 PaymentTerms.php:156 -#: SalesCategories.php:125 SalesCategories.php:133 SalesPeople.php:142 -#: SalesPeople.php:149 SalesTypes.php:145 SalesTypes.php:155 Shippers.php:82 -#: Shippers.php:94 StockCategories.php:153 Stocks.php:467 Stocks.php:476 -#: Stocks.php:484 Stocks.php:492 Stocks.php:500 Stocks.php:508 -#: Suppliers.php:569 Suppliers.php:578 Suppliers.php:586 TaxCategories.php:130 -#: TaxGroups.php:128 TaxGroups.php:135 TaxProvinces.php:125 -#: UnitsOfMeasure.php:140 UnitsOfMeasure.php:147 WorkCentres.php:90 -#: WorkCentres.php:96 WWW_Access.php:84 -msgid "There are" -msgstr "Ada / Terdapat" - -#: AccountGroups.php:182 -msgid "general ledger accounts that refer to this account group" -msgstr "Rekening-rekening buku besar yang merujuk pada grup rekening ini" - -#: AccountGroups.php:186 -#, fuzzy -msgid "An error occurred in retrieving the parent group information" -msgstr "Sebuah kesalahan timbul ketika mengambil informasi mata uang" - -#: AccountGroups.php:191 -#, fuzzy -msgid "" -"Cannot delete this account group because it is a parent account group of " -"other account group(s)" -msgstr "" -"Tidak dapat menghapus rekening ini karena dipakai sebagai salah satu " -"rekening otoritas pajak" - -#: AccountGroups.php:192 -msgid "account groups that have this group as its/there parent account group" -msgstr "" - -#: AccountGroups.php:195 -#, fuzzy -msgid "An error occurred in deleting the account group" -msgstr "Kesalahan terjadi dalam mengambil pembayaran" - -#: AccountGroups.php:196 -#, fuzzy -msgid "The SQL that was used to delete the account group was" -msgstr "SQL yang gagal memperbarui pemasok adalah" - -#: AccountGroups.php:198 -msgid "group has been deleted" -msgstr "grup telah dihapus" - -#: AccountGroups.php:223 -#, fuzzy -msgid "The sql that was used to retrieve the account group information was " -msgstr "SQL yang digunakan untuk mengambil informasi transaksi adalah" - -#: AccountGroups.php:224 -msgid "Could not get account groups because" -msgstr "tidak dapat mengambil grup rekening karena" - -#: AccountGroups.php:226 AccountSections.php:177 AddCustomerContacts.php:21 -#: AgedDebtors.php:467 AgedSuppliers.php:276 BOMListing.php:128 BOMs.php:214 -#: BOMs.php:801 DiscountCategories.php:12 DiscountCategories.php:119 -#: DiscountMatrix.php:18 Factors.php:7 FixedAssetJournal.php:335 -#: FixedAssetLocations.php:10 FixedAssetRegister.php:12 -#: FixedAssetTransfer.php:32 GLBalanceSheet.php:349 GLBudgets.php:30 -#: GLJournal.php:237 PO_AuthorisationLevels.php:12 -#: PO_SelectOSPurchOrder.php:141 PurchData.php:133 PurchData.php:218 -#: SelectCompletedOrder.php:13 SelectCustomer.php:331 SelectGLAccount.php:19 -#: SelectGLAccount.php:87 SelectOrderItems.php:607 SelectOrderItems.php:1352 -#: SelectOrderItems.php:1472 SelectProduct.php:55 SelectSalesOrder.php:159 -#: SelectSupplier.php:12 SelectSupplier.php:227 SelectWorkOrder.php:11 -#: SelectWorkOrder.php:154 Suppliers.php:306 TaxGroups.php:16 TopItems.php:57 -#: WhereUsedInquiry.php:18 WorkCentres.php:111 WorkCentres.php:158 -#: WorkOrderEntry.php:11 WWW_Users.php:37 -#, fuzzy -msgid "Search" -msgstr "setiap" - -#: AccountGroups.php:230 -msgid "Group Name" -msgstr "Nama Grup" - -#: AccountGroups.php:231 EDIMessageFormat.php:141 -msgid "Section" -msgstr "Bagian" - -#: AccountGroups.php:232 AccountGroups.php:389 -msgid "Sequence In TB" -msgstr "Urutan di Neraca Saldo" - -#: AccountGroups.php:233 AccountGroups.php:373 GLProfit_Loss.php:8 -#: GLProfit_Loss.php:104 GLProfit_Loss.php:105 GLProfit_Loss.php:156 -#: SelectGLAccount.php:53 SelectGLAccount.php:67 -msgid "Profit and Loss" -msgstr "Laba dan Rugi" - -#: AccountGroups.php:234 AccountGroups.php:334 -#, fuzzy -msgid "Parent Group" -msgstr "Grup Segmen" - -#: AccountGroups.php:250 AccountGroups.php:253 AccountGroups.php:377 -#: AccountGroups.php:379 BankAccounts.php:217 BankAccounts.php:360 -#: BankAccounts.php:362 BankAccounts.php:366 BOMs.php:128 BOMs.php:712 -#: BOMs.php:714 CompanyPreferences.php:437 CompanyPreferences.php:439 -#: CompanyPreferences.php:449 CompanyPreferences.php:451 -#: CompanyPreferences.php:461 CompanyPreferences.php:463 -#: CustLoginSetup.php:574 CustLoginSetup.php:576 CustomerBranches.php:407 -#: Customers.php:563 Customers.php:804 Customers.php:811 Customers.php:814 -#: DeliveryDetails.php:967 DeliveryDetails.php:1007 DeliveryDetails.php:1010 -#: GLTransInquiry.php:72 Locations.php:342 MRPCalendar.php:218 MRP.php:543 -#: MRP.php:547 MRP.php:551 PaymentMethods.php:198 PaymentMethods.php:199 -#: PaymentMethods.php:258 PaymentMethods.php:264 PDFChequeListing.php:59 -#: PDFDeliveryDifferences.php:60 PDFDIFOT.php:63 PO_AuthorisationLevels.php:95 -#: PO_Header.php:908 PO_PDFPurchOrder.php:356 PO_PDFPurchOrder.php:359 -#: PurchData.php:177 PurchData.php:446 PurchData.php:449 -#: RecurringSalesOrders.php:473 RecurringSalesOrders.php:476 -#: SalesAnalReptCols.php:278 SalesAnalReptCols.php:383 -#: SalesAnalReptCols.php:386 SalesAnalRepts.php:404 SalesAnalRepts.php:407 -#: SalesAnalRepts.php:430 SalesAnalRepts.php:433 SalesAnalRepts.php:456 -#: SalesAnalRepts.php:459 SelectProduct.php:733 ShipmentCosting.php:612 -#: Stocks.php:837 Stocks.php:839 Stocks.php:857 Stocks.php:859 -#: SystemParameters.php:361 SystemParameters.php:437 SystemParameters.php:445 -#: SystemParameters.php:485 SystemParameters.php:558 SystemParameters.php:566 -#: SystemParameters.php:584 SystemParameters.php:591 SystemParameters.php:715 -#: SystemParameters.php:846 SystemParameters.php:848 SystemParameters.php:858 -#: SystemParameters.php:860 SystemParameters.php:914 SystemParameters.php:926 -#: SystemParameters.php:928 TaxGroups.php:291 TaxGroups.php:294 -#: TaxGroups.php:343 WWW_Users.php:592 WWW_Users.php:594 -msgid "Yes" -msgstr "Ya" - -#: AccountGroups.php:256 AccountGroups.php:382 AccountGroups.php:384 -#: BankAccounts.php:215 BankAccounts.php:360 BankAccounts.php:362 -#: BankAccounts.php:366 BOMs.php:130 BOMs.php:711 BOMs.php:715 -#: CompanyPreferences.php:436 CompanyPreferences.php:440 -#: CompanyPreferences.php:448 CompanyPreferences.php:452 -#: CompanyPreferences.php:460 CompanyPreferences.php:464 -#: CustLoginSetup.php:573 CustLoginSetup.php:577 CustomerBranches.php:407 -#: Customers.php:562 Customers.php:802 Customers.php:810 Customers.php:813 -#: DeliveryDetails.php:968 DeliveryDetails.php:1008 DeliveryDetails.php:1011 -#: GLTransInquiry.php:126 Locations.php:344 MRPCalendar.php:220 MRP.php:537 -#: MRP.php:541 MRP.php:545 MRP.php:549 PaymentMethods.php:198 -#: PaymentMethods.php:199 PaymentMethods.php:259 PaymentMethods.php:265 -#: PDFChequeListing.php:58 PDFDeliveryDifferences.php:59 PDFDIFOT.php:62 -#: PO_AuthorisationLevels.php:97 PO_Header.php:908 PO_PDFPurchOrder.php:357 -#: PO_PDFPurchOrder.php:360 PurchData.php:180 PurchData.php:447 -#: PurchData.php:450 RecurringSalesOrders.php:472 RecurringSalesOrders.php:475 -#: SalesAnalReptCols.php:276 SalesAnalReptCols.php:384 -#: SalesAnalReptCols.php:387 SalesAnalRepts.php:403 SalesAnalRepts.php:406 -#: SalesAnalRepts.php:429 SalesAnalRepts.php:432 SalesAnalRepts.php:455 -#: SalesAnalRepts.php:458 SelectProduct.php:736 ShipmentCosting.php:613 -#: Stocks.php:832 Stocks.php:834 Stocks.php:852 Stocks.php:854 -#: SystemParameters.php:362 SystemParameters.php:438 SystemParameters.php:446 -#: SystemParameters.php:486 SystemParameters.php:559 SystemParameters.php:567 -#: SystemParameters.php:585 SystemParameters.php:592 SystemParameters.php:716 -#: SystemParameters.php:845 SystemParameters.php:849 SystemParameters.php:857 -#: SystemParameters.php:861 SystemParameters.php:915 SystemParameters.php:925 -#: SystemParameters.php:929 TaxGroups.php:292 TaxGroups.php:295 -#: TaxGroups.php:345 WWW_Users.php:591 WWW_Users.php:595 -#: includes/PDFLowGPPageHeader.inc:31 includes/PDFTaxPageHeader.inc:35 -msgid "No" -msgstr "Tidak" - -#: AccountGroups.php:265 AccountSections.php:197 AddCustomerContacts.php:126 -#: AddCustomerNotes.php:125 AddCustomerTypeNotes.php:122 Areas.php:162 -#: BankAccounts.php:226 BOMs.php:150 COGSGLPostings.php:108 -#: COGSGLPostings.php:213 CreditStatus.php:173 Currencies.php:233 -#: CustLoginSetup.php:297 CustomerBranches.php:411 Customers.php:856 -#: Customers.php:888 CustomerTypes.php:206 EDIMessageFormat.php:162 -#: FixedAssetCategories.php:235 FixedAssetLocations.php:81 -#: FreightCosts.php:242 GeocodeSetup.php:166 GLAccounts.php:318 GLTags.php:59 -#: Locations.php:351 MRPDemands.php:309 MRPDemandTypes.php:117 -#: PaymentMethods.php:200 PaymentTerms.php:204 PO_AuthorisationLevels.php:105 -#: Prices_Customer.php:201 Prices.php:179 PurchData.php:189 -#: SalesCategories.php:261 SalesGLPostings.php:133 SalesGLPostings.php:245 -#: SalesPeople.php:201 SalesTypes.php:204 SelectCustomer.php:688 -#: SelectCustomer.php:704 SelectCustomer.php:736 SelectCustomer.php:752 -#: SelectCustomer.php:783 SelectCustomer.php:799 Shippers.php:142 -#: StockCategories.php:215 SupplierContacts.php:153 TaxAuthorities.php:164 -#: TaxCategories.php:181 TaxGroups.php:179 TaxProvinces.php:176 -#: UnitsOfMeasure.php:199 WorkCentres.php:138 WWW_Access.php:124 -#: WWW_Users.php:304 includes/InputSerialItems.php:82 -#, php-format -msgid "Edit" +"X-Rosetta-Version: 0.1\\n" +"Plural-Forms: nplurals=1; plural=0\n" +"X-Generator: Rosetta (http://launchpad.ubuntu.com/rosetta/)\n" +"X-Poedit-Language: Indonesian\n" +"X-Poedit-Country: INDONESIA\n" + +#: AccountGroups.php:8 index.php:1038 +msgid "Account Groups" +msgstr "Rekening Grup" + +#: AccountGroups.php:18 +#, fuzzy +msgid "" +"An error occurred in retrieving the account groups of the parent account " +"group during the check for recursion" +msgstr "" +"Sebuah kesalahan muncul ketika mengambil komponen dari BOM selama " +"pemeriksaan untuk rekursi" + +#: AccountGroups.php:19 +#, fuzzy +msgid "" +"The SQL that was used to retrieve the account groups of the parent account " +"group and that failed in the process was" +msgstr "" +"SQL yang digunakan untuk mengambil komponen dari BOM dan yang gagal dalam " +"proses adalah" + +#: AccountGroups.php:61 +#, fuzzy +msgid "The account group name already exists in the database" +msgstr "Nama rekening grup tidak berisi karakter yang dimaksud" + +#: AccountGroups.php:67 +msgid "The account group name cannot contain the character" +msgstr "Nama rekening grup tidak berisi karakter yang dimaksud" + +#: AccountGroups.php:67 AccountSections.php:74 PaymentMethods.php:37 +#: TaxCategories.php:30 TaxProvinces.php:30 UnitsOfMeasure.php:30 +msgid "or the character" +msgstr "atau karakter" + +#: AccountGroups.php:73 +#, fuzzy +msgid "The account group name must be at least one character long" +msgstr "Nama kontak harus lebih dari satu karakter" + +#: AccountGroups.php:80 +msgid "" +"The parent account group selected appears to result in a recursive account " +"structure - select an alternative parent account group or make this group a " +"top level account group" +msgstr "" + +#: AccountGroups.php:99 +msgid "The section in accounts must be an integer" +msgstr "Bagian dalam rekening-rekening harus dalam bentuk integer" + +#: AccountGroups.php:105 +msgid "The sequence in the trial balance must be an integer" +msgstr "Urutan dari neraca percobaan harus dalam bentuk integer." + +#: AccountGroups.php:111 +#, fuzzy +msgid "The sequence in the TB must be numeric and less than" +msgstr "Urutan dari neraca saldo harus kurang dari" + +#: AccountGroups.php:129 AccountSections.php:105 PaymentMethods.php:87 +msgid "Record Updated" +msgstr "Catatan telah diperbarui" + +#: AccountGroups.php:147 AccountSections.php:117 PaymentMethods.php:109 +msgid "Record inserted" +msgstr "Catatan telah masukkan" + +#: AccountGroups.php:167 +msgid "" +"Cannot delete this account group because general ledger accounts have been " +"created using this group" +msgstr "" +"Tidak dapat menghapus grup rekening ini karena rekenging buku besar telah " +"diciptakan dengan grup ini" + +#: AccountGroups.php:168 AccountGroups.php:176 AccountSections.php:138 +#: Areas.php:117 Areas.php:126 BankAccounts.php:149 CreditStatus.php:123 +#: Currencies.php:141 Currencies.php:149 Currencies.php:156 +#: CustomerBranches.php:284 CustomerBranches.php:294 CustomerBranches.php:304 +#: CustomerBranches.php:314 Customers.php:287 Customers.php:296 +#: Customers.php:304 Customers.php:312 CustomerTypes.php:131 +#: CustomerTypes.php:141 Factors.php:129 GLAccounts.php:90 GLAccounts.php:104 +#: Locations.php:217 Locations.php:225 Locations.php:234 Locations.php:242 +#: Locations.php:250 Locations.php:258 Locations.php:266 Locations.php:274 +#: PaymentMethods.php:141 PaymentTerms.php:145 PaymentTerms.php:152 +#: SalesCategories.php:125 SalesCategories.php:133 SalesPeople.php:142 +#: SalesPeople.php:149 SalesTypes.php:145 SalesTypes.php:155 Shippers.php:82 +#: Shippers.php:94 StockCategories.php:165 Stocks.php:442 Stocks.php:451 +#: Stocks.php:459 Stocks.php:467 Stocks.php:475 Stocks.php:483 +#: Suppliers.php:562 Suppliers.php:571 Suppliers.php:579 TaxCategories.php:130 +#: TaxGroups.php:126 TaxGroups.php:133 TaxProvinces.php:125 +#: UnitsOfMeasure.php:140 UnitsOfMeasure.php:147 WorkCentres.php:90 +#: WorkCentres.php:96 WWW_Access.php:84 +msgid "There are" +msgstr "Ada / Terdapat" + +#: AccountGroups.php:168 +msgid "general ledger accounts that refer to this account group" +msgstr "Rekening-rekening buku besar yang merujuk pada grup rekening ini" + +#: AccountGroups.php:175 +#, fuzzy +msgid "" +"Cannot delete this account group because it is a parent account group of " +"other account group(s)" +msgstr "" +"Tidak dapat menghapus rekening ini karena dipakai sebagai salah satu " +"rekening otoritas pajak" + +#: AccountGroups.php:176 +msgid "account groups that have this group as its/there parent account group" +msgstr "" + +#: AccountGroups.php:180 +msgid "group has been deleted" +msgstr "grup telah dihapus" + +#: AccountGroups.php:205 +msgid "Could not get account groups because" +msgstr "tidak dapat mengambil grup rekening karena" + +#: AccountGroups.php:210 +msgid "Group Name" +msgstr "Nama Grup" + +#: AccountGroups.php:211 EDIMessageFormat.php:140 +msgid "Section" +msgstr "Bagian" + +#: AccountGroups.php:212 AccountGroups.php:367 +msgid "Sequence In TB" +msgstr "Urutan di Neraca Saldo" + +#: AccountGroups.php:213 AccountGroups.php:351 GLProfit_Loss.php:8 +#: GLProfit_Loss.php:101 GLProfit_Loss.php:102 GLProfit_Loss.php:149 +#: SelectGLAccount.php:51 SelectGLAccount.php:65 +msgid "Profit and Loss" +msgstr "Laba dan Rugi" + +#: AccountGroups.php:214 AccountGroups.php:312 +#, fuzzy +msgid "Parent Group" +msgstr "Grup Segmen" + +#: AccountGroups.php:230 AccountGroups.php:233 AccountGroups.php:355 +#: AccountGroups.php:357 BOMs.php:127 BOMs.php:689 BOMs.php:691 +#: CompanyPreferences.php:436 CompanyPreferences.php:438 +#: CompanyPreferences.php:448 CompanyPreferences.php:450 +#: CompanyPreferences.php:460 CompanyPreferences.php:462 +#: CustomerBranches.php:398 Customers.php:526 Customers.php:723 +#: Customers.php:726 DeliveryDetails.php:750 DeliveryDetails.php:790 +#: DeliveryDetails.php:793 GLTransInquiry.php:71 Locations.php:341 +#: PaymentMethods.php:197 PaymentMethods.php:198 PaymentMethods.php:257 +#: PaymentMethods.php:263 PDFChequeListing.php:57 +#: PDFDeliveryDifferences.php:55 PDFDIFOT.php:61 PO_Header.php:555 +#: PO_PDFPurchOrder.php:325 PO_PDFPurchOrder.php:328 PurchData.php:229 +#: PurchData.php:375 PurchData.php:378 RecurringSalesOrders.php:469 +#: RecurringSalesOrders.php:472 SalesAnalReptCols.php:278 +#: SalesAnalReptCols.php:383 SalesAnalReptCols.php:386 SalesAnalRepts.php:404 +#: SalesAnalRepts.php:407 SalesAnalRepts.php:430 SalesAnalRepts.php:433 +#: SalesAnalRepts.php:456 SalesAnalRepts.php:459 SelectProduct.php:734 +#: ShipmentCosting.php:612 Stocks.php:795 Stocks.php:797 Stocks.php:809 +#: Stocks.php:811 SystemParameters.php:329 SystemParameters.php:400 +#: SystemParameters.php:408 SystemParameters.php:448 SystemParameters.php:521 +#: SystemParameters.php:529 SystemParameters.php:547 SystemParameters.php:554 +#: SystemParameters.php:663 SystemParameters.php:794 SystemParameters.php:796 +#: SystemParameters.php:806 SystemParameters.php:808 TaxGroups.php:295 +#: TaxGroups.php:364 TaxGroups.php:367 WWW_Users.php:536 WWW_Users.php:538 +msgid "Yes" +msgstr "Ya" + +#: AccountGroups.php:236 AccountGroups.php:360 AccountGroups.php:362 +#: BOMs.php:129 BOMs.php:688 BOMs.php:692 CompanyPreferences.php:435 +#: CompanyPreferences.php:439 CompanyPreferences.php:447 +#: CompanyPreferences.php:451 CompanyPreferences.php:459 +#: CompanyPreferences.php:463 CustomerBranches.php:398 Customers.php:525 +#: Customers.php:722 Customers.php:725 DeliveryDetails.php:751 +#: DeliveryDetails.php:791 DeliveryDetails.php:794 GLTransInquiry.php:125 +#: Locations.php:343 PaymentMethods.php:197 PaymentMethods.php:198 +#: PaymentMethods.php:258 PaymentMethods.php:264 PDFChequeListing.php:56 +#: PDFDeliveryDifferences.php:54 PDFDIFOT.php:60 PO_Header.php:555 +#: PO_PDFPurchOrder.php:326 PO_PDFPurchOrder.php:329 PurchData.php:232 +#: PurchData.php:376 PurchData.php:379 RecurringSalesOrders.php:468 +#: RecurringSalesOrders.php:471 SalesAnalReptCols.php:276 +#: SalesAnalReptCols.php:384 SalesAnalReptCols.php:387 SalesAnalRepts.php:403 +#: SalesAnalRepts.php:406 SalesAnalRepts.php:429 SalesAnalRepts.php:432 +#: SalesAnalRepts.php:455 SalesAnalRepts.php:458 SelectProduct.php:737 +#: ShipmentCosting.php:613 Stocks.php:790 Stocks.php:792 Stocks.php:804 +#: Stocks.php:806 SystemParameters.php:330 SystemParameters.php:401 +#: SystemParameters.php:409 SystemParameters.php:449 SystemParameters.php:522 +#: SystemParameters.php:530 SystemParameters.php:548 SystemParameters.php:555 +#: SystemParameters.php:664 SystemParameters.php:793 SystemParameters.php:797 +#: SystemParameters.php:805 SystemParameters.php:809 TaxGroups.php:297 +#: TaxGroups.php:365 TaxGroups.php:368 WWW_Users.php:535 WWW_Users.php:539 +#: includes/PDFLowGPPageHeader.inc:31 includes/PDFTaxPageHeader.inc:34 +msgid "No" +msgstr "Tidak" + +#: AccountGroups.php:245 AccountSections.php:195 AddCustomerContacts.php:121 +#: AddCustomerNotes.php:121 AddCustomerTypeNotes.php:121 Areas.php:162 +#: BankAccounts.php:202 BOMs.php:149 COGSGLPostings.php:107 +#: COGSGLPostings.php:212 CreditStatus.php:172 Currencies.php:232 +#: CustomerBranches.php:402 Customers.php:752 Customers.php:770 +#: CustomerTypes.php:184 EDIMessageFormat.php:161 FreightCosts.php:240 +#: GeocodeSetup.php:169 GLAccounts.php:317 GLTags.php:58 Locations.php:350 +#: PaymentMethods.php:199 PaymentTerms.php:200 Prices_Customer.php:200 +#: Prices.php:178 PurchData.php:242 SalesCategories.php:261 +#: SalesGLPostings.php:132 SalesGLPostings.php:244 SalesPeople.php:201 +#: SalesTypes.php:204 SelectCustomer.php:620 SelectCustomer.php:636 +#: SelectCustomer.php:668 SelectCustomer.php:684 SelectCustomer.php:715 +#: SelectCustomer.php:731 Shippers.php:142 StockCategories.php:227 +#: SupplierContacts.php:153 TaxAuthorities.php:165 TaxCategories.php:181 +#: TaxGroups.php:177 TaxProvinces.php:176 UnitsOfMeasure.php:199 +#: WorkCentres.php:138 WWW_Access.php:124 WWW_Users.php:276 +#: includes/InputSerialItems.php:82 +#, php-format +msgid "Edit" msgstr "Edit" - -#: AccountGroups.php:266 AccountSections.php:201 AddCustomerContacts.php:127 -#: AddCustomerNotes.php:126 AddCustomerTypeNotes.php:123 Areas.php:163 -#: BankAccounts.php:227 BOMs.php:152 COGSGLPostings.php:109 -#: COGSGLPostings.php:214 Credit_Invoice.php:372 CreditStatus.php:174 -#: Currencies.php:236 CustLoginSetup.php:298 CustomerReceipt.php:830 -#: Customers.php:889 CustomerTypes.php:207 DiscountCategories.php:201 -#: DiscountMatrix.php:173 EDIMessageFormat.php:163 -#: FixedAssetCategories.php:236 FixedAssetJournal.php:393 -#: FixedAssetLocations.php:83 FreightCosts.php:243 GeocodeSetup.php:167 -#: GLAccounts.php:319 GLJournal.php:394 Locations.php:352 MRPDemands.php:310 -#: MRPDemandTypes.php:118 PaymentMethods.php:201 Payments.php:861 -#: PaymentTerms.php:205 PO_AuthorisationLevels.php:107 PO_Items.php:961 -#: Prices_Customer.php:202 Prices.php:180 PurchData.php:190 -#: SalesAnalReptCols.php:293 SalesAnalRepts.php:303 SalesCategories.php:262 -#: SalesGLPostings.php:134 SalesGLPostings.php:246 SalesPeople.php:202 -#: SalesTypes.php:205 SelectCreditItems.php:762 SelectCustomer.php:689 -#: SelectCustomer.php:705 SelectCustomer.php:737 SelectCustomer.php:753 -#: SelectCustomer.php:784 SelectCustomer.php:800 SelectOrderItems.php:1286 -#: Shipments.php:422 Shippers.php:143 SpecialOrder.php:587 -#: StockCategories.php:216 StockCategories.php:497 SuppCreditGRNs.php:89 -#: SuppInvGLAnalysis.php:65 SuppInvGRNs.php:129 SupplierContacts.php:154 -#: SuppShiptChgs.php:79 SuppTransGLAnalysis.php:107 TaxAuthorities.php:165 -#: TaxCategories.php:182 TaxGroups.php:180 TaxProvinces.php:177 -#: UnitsOfMeasure.php:200 WorkCentres.php:139 WOSerialNos.php:296 -#: WWW_Access.php:125 WWW_Users.php:305 includes/InputSerialItemsKeyed.php:53 -#, php-format -msgid "Delete" + +#: AccountGroups.php:246 AccountSections.php:199 AddCustomerContacts.php:122 +#: AddCustomerNotes.php:122 AddCustomerTypeNotes.php:122 Areas.php:163 +#: BankAccounts.php:203 BOMs.php:151 COGSGLPostings.php:108 +#: COGSGLPostings.php:213 Credit_Invoice.php:369 CreditStatus.php:173 +#: Currencies.php:235 CustomerReceipt.php:793 Customers.php:771 +#: CustomerTypes.php:185 DiscountCategories.php:115 DiscountMatrix.php:116 +#: EDIMessageFormat.php:162 FreightCosts.php:241 GeocodeSetup.php:170 +#: GLAccounts.php:318 GLJournal.php:395 Locations.php:351 +#: PaymentMethods.php:200 Payments.php:829 PaymentTerms.php:201 +#: PO_Items.php:858 Prices_Customer.php:201 Prices.php:179 PurchData.php:243 +#: SalesAnalReptCols.php:293 SalesAnalRepts.php:303 SalesCategories.php:262 +#: SalesGLPostings.php:133 SalesGLPostings.php:245 SalesPeople.php:202 +#: SalesTypes.php:205 SelectCreditItems.php:757 SelectCustomer.php:621 +#: SelectCustomer.php:637 SelectCustomer.php:669 SelectCustomer.php:685 +#: SelectCustomer.php:716 SelectCustomer.php:732 SelectOrderItems.php:1182 +#: Shipments.php:418 Shippers.php:143 SpecialOrder.php:580 +#: StockCategories.php:228 StockCategories.php:509 SuppCreditGRNs.php:89 +#: SuppInvGLAnalysis.php:65 SuppInvGRNs.php:128 SupplierContacts.php:154 +#: SuppShiptChgs.php:80 SuppTransGLAnalysis.php:107 TaxAuthorities.php:166 +#: TaxCategories.php:182 TaxGroups.php:178 TaxProvinces.php:177 +#: UnitsOfMeasure.php:200 WorkCentres.php:139 WWW_Access.php:125 +#: WWW_Users.php:277 includes/InputSerialItemsKeyed.php:53 +#, php-format +msgid "Delete" msgstr "Hapus" - -#: AccountGroups.php:274 -msgid "Review Account Groups" -msgstr "Tinjau Grup-grup rekening" - -#: AccountGroups.php:292 -#, fuzzy -msgid "An error occurred in retrieving the account group information" -msgstr "Sebuah kesalahan timbul ketika mengambil informasi mata uang" - -#: AccountGroups.php:293 -#, fuzzy -msgid "" -"The SQL that was used to retrieve the account group and that failed in the " -"process was" -msgstr "" -"SQL yang digunakan untuk mengambil komponen dari BOM dan yang gagal dalam " -"proses adalah" - -#: AccountGroups.php:307 GLAccounts.php:245 GLAccounts.php:298 -#: Z_ImportGLAccountGroups.php:28 -msgid "Account Group" -msgstr "Grup Rekening" - -#: AccountGroups.php:331 -#, fuzzy -msgid "Account Group Name" -msgstr "Nama Grup Rekening" - -#: AccountGroups.php:341 AccountGroups.php:343 -msgid "Top Level Group" -msgstr "" - -#: AccountGroups.php:357 -msgid "Section In Accounts" -msgstr "Bagian dalam Rekening-rekening" - -#: AccountGroups.php:396 AccountSections.php:263 AddCustomerContacts.php:202 -#: AddCustomerNotes.php:201 AddCustomerTypeNotes.php:184 Areas.php:218 -#: BankAccounts.php:372 BOMs.php:724 COGSGLPostings.php:342 -#: CreditStatus.php:244 Currencies.php:332 CustLoginSetup.php:595 -#: DiscountMatrix.php:136 EDIMessageFormat.php:254 -#: FixedAssetCategories.php:459 FixedAssetLocations.php:127 -#: FreightCosts.php:338 GeocodeSetup.php:262 GLAccounts.php:268 -#: Locations.php:517 MRPDemands.php:425 MRPDemandTypes.php:176 -#: PaymentMethods.php:270 PaymentTerms.php:278 PO_AuthorisationLevels.php:166 -#: Prices_Customer.php:244 SalesAnalReptCols.php:465 SalesAnalRepts.php:494 -#: SalesGLPostings.php:412 SalesPeople.php:292 Shippers.php:195 -#: StockCategories.php:516 SupplierContacts.php:249 TaxAuthorities.php:302 -#: TaxCategories.php:231 TaxProvinces.php:226 UnitsOfMeasure.php:250 -#: WorkCentres.php:260 WWW_Users.php:625 -msgid "Enter Information" -msgstr "Masukkan Informasi" - -#: AccountSections.php:9 index.php:1161 -msgid "Account Sections" -msgstr "Tahap pengitungan" - -#: AccountSections.php:68 -#, fuzzy -msgid "The account section already exists in the database" -msgstr "Bagian kode yang dimasukkan tidak ada dalam database" - -#: AccountSections.php:75 -msgid "The account section name cannot contain the character" -msgstr "Nama rekening grup tidak dapat berisi karakter yang dimaksud" - -#: AccountSections.php:81 -#, fuzzy -msgid "The account section name must contain at least one character" -msgstr "Nama rekening grup tidak dapat berisi karakter yang dimaksud" - -#: AccountSections.php:87 AccountSections.php:93 -msgid "The section number must be an integer" -msgstr "Bagian dalam rekening-rekening harus dalam bentuk bilangan bulat" - -#: AccountSections.php:138 -msgid "" -"Cannot delete this account section because general ledger accounts groups " -"have been created using this section" -msgstr "" -"Tidak dapat menghapus grup rekening ini karena rekening buku besar telah " -"diciptakan dalam grup ini" - -#: AccountSections.php:139 -msgid "general ledger accounts groups that refer to this account section" -msgstr "" -"Kode-kode pada buku kas besar yang termasuk dalam code keuangan tersebut" - -#: AccountSections.php:150 -msgid "section has been deleted" -msgstr "section telah dihapus" - -#: AccountSections.php:175 -msgid "Could not get account group sections because" -msgstr "kode keuangan tidak dapat di temukan karena" - -#: AccountSections.php:181 AccountSections.php:239 AccountSections.php:256 -msgid "Section Number" -msgstr "Nomor Nagian" - -#: AccountSections.php:182 AccountSections.php:259 -msgid "Section Description" -msgstr "Keterangan barang" - -#: AccountSections.php:199 -msgid "Restricted" -msgstr "terbatas" - -#: AccountSections.php:210 -msgid "Review Account Sections" -msgstr "Tinjau ulang Grup-grup rekening" - -#: AccountSections.php:229 -msgid "Could not retrieve the requested section please try again." -msgstr "Tidak dapat mengambil informasi yang diminta karena" - -#: AddCustomerContacts.php:6 AddCustomerContacts.php:50 SelectCustomer.php:681 -#: SelectCustomer.php:721 -#, fuzzy -msgid "Customer Contacts" + +#: AccountGroups.php:254 +msgid "Review Account Groups" +msgstr "Tinjau Grup-grup rekening" + +#: AccountGroups.php:285 GLAccounts.php:244 GLAccounts.php:297 +#: Z_ImportGLAccountGroups.php:27 +msgid "Account Group" +msgstr "Grup Rekening" + +#: AccountGroups.php:309 +#, fuzzy +msgid "Account Group Name" +msgstr "Nama Grup Rekening" + +#: AccountGroups.php:319 AccountGroups.php:321 +msgid "Top Level Group" +msgstr "" + +#: AccountGroups.php:335 +msgid "Section In Accounts" +msgstr "Bagian dalam Rekening-rekening" + +#: AccountGroups.php:374 AccountSections.php:262 AddCustomerContacts.php:182 +#: AddCustomerNotes.php:182 AddCustomerTypeNotes.php:182 Areas.php:218 +#: BankAccounts.php:316 BOMs.php:701 COGSGLPostings.php:341 +#: CreditStatus.php:240 Currencies.php:331 DiscountCategories.php:143 +#: DiscountMatrix.php:167 EDIMessageFormat.php:253 FreightCosts.php:336 +#: GeocodeSetup.php:265 GLAccounts.php:267 Locations.php:516 +#: PaymentMethods.php:269 PaymentTerms.php:274 Prices_Customer.php:243 +#: SalesAnalReptCols.php:465 SalesAnalRepts.php:494 SalesGLPostings.php:411 +#: SalesPeople.php:292 Shippers.php:195 StockCategories.php:528 +#: SupplierContacts.php:249 TaxAuthorities.php:303 TaxCategories.php:231 +#: TaxProvinces.php:226 UnitsOfMeasure.php:250 WorkCentres.php:260 +#: WWW_Users.php:557 +msgid "Enter Information" +msgstr "Masukkan Informasi" + +#: AccountSections.php:8 index.php:1043 +msgid "Account Sections" +msgstr "Tahap pengitungan" + +#: AccountSections.php:67 +#, fuzzy +msgid "The account section already exists in the database" +msgstr "Bagian kode yang dimasukkan tidak ada dalam database" + +#: AccountSections.php:74 +msgid "The account section name cannot contain the character" +msgstr "Nama rekening grup tidak dapat berisi karakter yang dimaksud" + +#: AccountSections.php:80 +#, fuzzy +msgid "The account section name must contain at least one character" +msgstr "Nama rekening grup tidak dapat berisi karakter yang dimaksud" + +#: AccountSections.php:86 AccountSections.php:92 +msgid "The section number must be an integer" +msgstr "Bagian dalam rekening-rekening harus dalam bentuk bilangan bulat" + +#: AccountSections.php:137 +msgid "" +"Cannot delete this account section because general ledger accounts groups " +"have been created using this section" +msgstr "" +"Tidak dapat menghapus grup rekening ini karena rekening buku besar telah " +"diciptakan dalam grup ini" + +#: AccountSections.php:138 +msgid "general ledger accounts groups that refer to this account section" +msgstr "" +"Kode-kode pada buku kas besar yang termasuk dalam code keuangan tersebut" + +#: AccountSections.php:149 +msgid "section has been deleted" +msgstr "section telah dihapus" + +#: AccountSections.php:174 +msgid "Could not get account group sections because" +msgstr "kode keuangan tidak dapat di temukan karena" + +#: AccountSections.php:179 AccountSections.php:237 AccountSections.php:254 +msgid "Section Number" +msgstr "Nomor Nagian" + +#: AccountSections.php:180 AccountSections.php:257 +msgid "Section Description" +msgstr "Keterangan barang" + +#: AccountSections.php:197 +msgid "Restricted" +msgstr "terbatas" + +#: AccountSections.php:208 +msgid "Review Account Sections" +msgstr "Tinjau ulang Grup-grup rekening" + +#: AccountSections.php:227 +msgid "Could not retrieve the requested section please try again." +msgstr "Tidak dapat mengambil informasi yang diminta karena" + +#: AddCustomerContacts.php:5 AddCustomerContacts.php:48 SelectCustomer.php:613 +#: SelectCustomer.php:653 +#, fuzzy +msgid "Customer Contacts" msgstr "permintaan konsumen" - -#: AddCustomerContacts.php:20 CustEDISetup.php:11 CustLoginSetup.php:21 -#: Z_CheckDebtorsControl.php:20 -#, fuzzy -msgid "Back to Customers" -msgstr "Cari Pelanggan" - -#: AddCustomerContacts.php:32 -#, fuzzy -msgid "The Contact must be an integer." -msgstr "Kode rekening harus berupa integer" - -#: AddCustomerContacts.php:35 -#, fuzzy -msgid "The contact's name must be forty characters or less long" -msgstr "Nama rekening maksimum lima puluh karakter" - -#: AddCustomerContacts.php:38 -#, fuzzy -msgid "The contact's name may not be empty" -msgstr "Nama rekening bank tidak boleh kosong karena" - -#: AddCustomerContacts.php:50 AddCustomerNotes.php:49 -#: AddCustomerTypeNotes.php:49 Areas.php:74 CustomerTypes.php:68 -#: DeliveryDetails.php:673 Factors.php:47 FixedAssetItems.php:351 -#: PO_Items.php:391 SalesAnalReptCols.php:128 SalesPeople.php:92 -#: SalesTypes.php:61 Stocks.php:353 Suppliers.php:482 -msgid "has been updated" -msgstr "telah diperbarui" - -#: AddCustomerContacts.php:61 -#, fuzzy -msgid "The contact record has been added" -msgstr "Rekaman matriks diskon telah ditambahkan" - -#: AddCustomerContacts.php:88 -#, fuzzy -msgid "The contact record has been deleted" -msgstr "Rekaman matriks diskon telah dihapus" - -#: AddCustomerContacts.php:98 -#, fuzzy -msgid "Contacts for Customer: <b>" -msgstr "dan untuk Pelanggan" - -#: AddCustomerContacts.php:107 CompanyPreferences.php:227 -#: CustomerBranches.php:374 Customers.php:846 Customers.php:852 -#: Customers.php:917 SalesPeople.php:183 SelectCustomer.php:684 -#: StockDispatch.php:181 StockDispatch.php:193 SuppInvGLAnalysis.php:49 -#: SuppInvGLAnalysis.php:73 SupplierContacts.php:141 SupplierCredit.php:304 -#: SupplierInvoice.php:308 SuppTransGLAnalysis.php:91 -#: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 -#: includes/PDFTaxPageHeader.inc:37 -msgid "Name" + +#: AddCustomerContacts.php:19 CustEDISetup.php:10 Customers.php:385 +#: Z_CheckDebtorsControl.php:20 +#, fuzzy +msgid "Back to Customers" +msgstr "Cari Pelanggan" + +#: AddCustomerContacts.php:30 +#, fuzzy +msgid "The Contact must be an integer." +msgstr "Kode rekening harus berupa integer" + +#: AddCustomerContacts.php:33 +#, fuzzy +msgid "The contact's name must be forty characters or less long" +msgstr "Nama rekening maksimum lima puluh karakter" + +#: AddCustomerContacts.php:36 +#, fuzzy +msgid "The contact's name may not be empty" +msgstr "Nama rekening bank tidak boleh kosong karena" + +#: AddCustomerContacts.php:48 AddCustomerNotes.php:48 +#: AddCustomerTypeNotes.php:48 Areas.php:74 CustomerTypes.php:48 +#: DeliveryDetails.php:476 Factors.php:59 PO_Items.php:208 +#: SalesAnalReptCols.php:128 SalesPeople.php:92 SalesTypes.php:61 +#: Stocks.php:335 Suppliers.php:475 +msgid "has been updated" +msgstr "telah diperbarui" + +#: AddCustomerContacts.php:59 +#, fuzzy +msgid "The contact record has been added" +msgstr "Rekaman matriks diskon telah ditambahkan" + +#: AddCustomerContacts.php:83 +#, fuzzy +msgid "The contact record has been deleted" +msgstr "Rekaman matriks diskon telah dihapus" + +#: AddCustomerContacts.php:93 +#, fuzzy +msgid "Contacts for Customer: <b>" +msgstr "dan untuk Pelanggan" + +#: AddCustomerContacts.php:102 CompanyPreferences.php:226 +#: CustomerBranches.php:365 Customers.php:748 Customers.php:799 +#: SalesPeople.php:183 SelectCustomer.php:616 SuppInvGLAnalysis.php:49 +#: SuppInvGLAnalysis.php:73 SupplierContacts.php:141 SupplierCredit.php:303 +#: SupplierInvoice.php:298 SuppTransGLAnalysis.php:91 +#: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 +#: includes/PDFTaxPageHeader.inc:36 +msgid "Name" msgstr "Nama" - -#: AddCustomerContacts.php:108 AddCustomerContacts.php:184 Customers.php:847 -#: Customers.php:853 Customers.php:918 SelectCustomer.php:685 -#: WWW_Access.php:108 WWW_Access.php:168 -msgid "Role" + +#: AddCustomerContacts.php:103 AddCustomerContacts.php:175 Customers.php:749 +#: Customers.php:800 SelectCustomer.php:617 WWW_Access.php:108 +#: WWW_Access.php:168 +msgid "Role" msgstr "Pengaturan" - -#: AddCustomerContacts.php:109 Customers.php:919 -#, fuzzy -msgid "Phone no" -msgstr "No. Telp." - -#: AddCustomerContacts.php:110 AddCustomerContacts.php:196 Customers.php:849 -#: Customers.php:855 Customers.php:920 SelectCustomer.php:687 -#: SystemParameters.php:301 WOSerialNos.php:273 WOSerialNos.php:275 -msgid "Notes" + +#: AddCustomerContacts.php:104 Customers.php:801 +#, fuzzy +msgid "Phone no" +msgstr "No. Telp." + +#: AddCustomerContacts.php:105 AddCustomerContacts.php:179 Customers.php:751 +#: Customers.php:802 SelectCustomer.php:619 SystemParameters.php:270 +msgid "Notes" msgstr "Catatan " - -#: AddCustomerContacts.php:144 -msgid "Review all contacts for this Customer" -msgstr "" - -#: AddCustomerContacts.php:173 -#, fuzzy -msgid "Contact Code" -msgstr "Kode Kat" - -#: AddCustomerContacts.php:178 Factors.php:180 Factors.php:195 -#: SupplierContacts.php:217 -msgid "Contact Name" -msgstr "Nama Kontak" - -#: AddCustomerContacts.php:190 PDFRemittanceAdvice.php:248 PO_Header.php:1113 -#: PO_Header.php:1188 SelectCreditItems.php:234 SelectCustomer.php:504 -#: SelectOrderItems.php:637 includes/PDFStatementPageHeader.inc:63 -#: includes/PDFTransPageHeader.inc:82 -#: includes/PDFTransPageHeaderPortrait.inc:105 -msgid "Phone" -msgstr "Telefon" - -#: AddCustomerNotes.php:6 AddCustomerNotes.php:49 SelectCustomer.php:729 -#: SelectCustomer.php:768 -#, fuzzy -msgid "Customer Notes" + +#: AddCustomerContacts.php:139 +msgid "Review all contacts for this Customer" +msgstr "" + +#: AddCustomerContacts.php:168 +#, fuzzy +msgid "Contact Code" +msgstr "Kode Kat" + +#: AddCustomerContacts.php:173 Factors.php:212 Factors.php:230 +#: SupplierContacts.php:217 +msgid "Contact Name" +msgstr "Nama Kontak" + +#: AddCustomerContacts.php:177 PO_Header.php:511 SelectCreditItems.php:234 +#: SelectCustomer.php:444 SelectOrderItems.php:583 +#: includes/PDFStatementPageHeader.inc:63 includes/PDFTransPageHeader.inc:81 +#: includes/PDFTransPageHeaderPortrait.inc:104 +msgid "Phone" +msgstr "Telepon" + +#: AddCustomerNotes.php:5 AddCustomerNotes.php:48 SelectCustomer.php:661 +#: SelectCustomer.php:700 +#, fuzzy +msgid "Customer Notes" msgstr "Kode Pelanggan" - -#: AddCustomerNotes.php:20 AddCustomerTypeNotes.php:20 -#, fuzzy -msgid "Back to Select Customer" -msgstr "Cari Pelanggan" - -#: AddCustomerNotes.php:31 -#, fuzzy -msgid "The contact priority must be an integer." -msgstr "Kode rekening harus berupa integer" - -#: AddCustomerNotes.php:34 AddCustomerTypeNotes.php:34 -#, fuzzy -msgid "The contact's notes must be two hundred characters or less long" -msgstr "Nama rekening maksimum lima puluh karakter" - -#: AddCustomerNotes.php:37 AddCustomerTypeNotes.php:37 -#, fuzzy -msgid "The contact's notes may not be empty" -msgstr "Nama rekening bank tidak boleh kosong karena" - -#: AddCustomerNotes.php:60 -#, fuzzy -msgid "The contact notes record has been added" -msgstr "Rekaman matriks diskon telah ditambahkan" - -#: AddCustomerNotes.php:87 -#, fuzzy -msgid "The contact note record has been deleted" -msgstr "Rekaman matriks diskon telah dihapus" - -#: AddCustomerNotes.php:97 -#, fuzzy -msgid "Notes for Customer: <b>" -msgstr "dan untuk Pelanggan" - -#: AddCustomerNotes.php:106 AddCustomerNotes.php:188 -#: AddCustomerTypeNotes.php:103 AddCustomerTypeNotes.php:178 -#: BankMatching.php:214 BankReconciliation.php:182 BankReconciliation.php:254 -#: CustomerAllocations.php:348 CustomerAllocations.php:374 -#: CustomerInquiry.php:190 CustomerTransInquiry.php:86 -#: GLAccountInquiry.php:157 GLTransInquiry.php:47 MRPCalendar.php:213 -#: PaymentAllocations.php:77 PDFRemittanceAdvice.php:309 -#: PrintCustTrans.php:846 PrintCustTransPortrait.php:910 ReverseGRN.php:329 -#: ShipmentCosting.php:494 ShipmentCosting.php:565 Shipments.php:463 -#: StockDispatch.php:183 StockDispatch.php:195 StockLocMovements.php:80 -#: StockMovements.php:98 StockSerialItemResearch.php:74 -#: SupplierAllocations.php:465 SupplierAllocations.php:577 -#: SupplierAllocations.php:647 SupplierInquiry.php:192 -#: SupplierTransInquiry.php:87 includes/PDFQuotationPageHeader.inc:91 -#: includes/PDFStatementPageHeader.inc:169 includes/PDFTaxPageHeader.inc:36 -#: includes/PDFTransPageHeader.inc:49 -#: includes/PDFTransPageHeaderPortrait.inc:58 -msgid "Date" -msgstr "Tanggal" - -#: AddCustomerNotes.php:107 AddCustomerTypeNotes.php:104 Stocks.php:841 -#: Z_Upgrade_3.10-3.11.php:61 Z_Upgrade_3.10-3.11.php:65 -#: Z_Upgrade_3.10-3.11.php:69 Z_Upgrade_3.10-3.11.php:73 -#: Z_Upgrade_3.10-3.11.php:77 -msgid "Note" -msgstr "Catatan" - -#: AddCustomerNotes.php:108 AddCustomerNotes.php:182 -msgid "WWW" -msgstr "" - -#: AddCustomerNotes.php:109 AddCustomerNotes.php:194 -#: AddCustomerTypeNotes.php:106 AddCustomerTypeNotes.php:181 -#, fuzzy -msgid "Priority" -msgstr "Laba" - -#: AddCustomerNotes.php:143 -#, fuzzy -msgid "Review all notes for this Customer" -msgstr "Order penjualan untuk Cabang/Pelanggan ini" - -#: AddCustomerNotes.php:171 AddCustomerTypeNotes.php:169 -#, fuzzy -msgid "Note ID" -msgstr "Catatan" - -#: AddCustomerNotes.php:176 -#, fuzzy -msgid "Contact Note" -msgstr "Kode Kat" - -#: AddCustomerTypeNotes.php:6 SelectCustomer.php:776 -#, fuzzy -msgid "Customer Type (Group) Notes" + +#: AddCustomerNotes.php:19 AddCustomerTypeNotes.php:19 +#, fuzzy +msgid "Back to Select Customer" +msgstr "Cari Pelanggan" + +#: AddCustomerNotes.php:30 +#, fuzzy +msgid "The contact priority must be an integer." +msgstr "Kode rekening harus berupa integer" + +#: AddCustomerNotes.php:33 AddCustomerTypeNotes.php:33 +#, fuzzy +msgid "The contact's notes must be two hundred characters or less long" +msgstr "Nama rekening maksimum lima puluh karakter" + +#: AddCustomerNotes.php:36 AddCustomerTypeNotes.php:36 +#, fuzzy +msgid "The contact's notes may not be empty" +msgstr "Nama rekening bank tidak boleh kosong karena" + +#: AddCustomerNotes.php:59 +#, fuzzy +msgid "The contact notes record has been added" +msgstr "Rekaman matriks diskon telah ditambahkan" + +#: AddCustomerNotes.php:83 +#, fuzzy +msgid "The contact note record has been deleted" +msgstr "Rekaman matriks diskon telah dihapus" + +#: AddCustomerNotes.php:93 +#, fuzzy +msgid "Notes for Customer: <b>" +msgstr "dan untuk Pelanggan" + +#: AddCustomerNotes.php:102 AddCustomerNotes.php:177 +#: AddCustomerTypeNotes.php:102 AddCustomerTypeNotes.php:177 +#: BankMatching.php:212 BankReconciliation.php:181 BankReconciliation.php:253 +#: CustomerAllocations.php:347 CustomerAllocations.php:373 +#: CustomerInquiry.php:184 CustomerTransInquiry.php:85 +#: GLAccountInquiry.php:153 GLTransInquiry.php:46 PaymentAllocations.php:73 +#: PrintCustTrans.php:838 PrintCustTransPortrait.php:850 ReverseGRN.php:330 +#: ShipmentCosting.php:494 ShipmentCosting.php:565 Shipments.php:459 +#: StockLocMovements.php:79 StockMovements.php:98 +#: StockSerialItemResearch.php:74 SupplierAllocations.php:466 +#: SupplierAllocations.php:578 SupplierAllocations.php:648 +#: SupplierInquiry.php:191 SupplierTransInquiry.php:87 +#: includes/PDFQuotationPageHeader.inc:91 +#: includes/PDFStatementPageHeader.inc:169 includes/PDFTaxPageHeader.inc:35 +#: includes/PDFTransPageHeader.inc:48 +#: includes/PDFTransPageHeaderPortrait.inc:57 +msgid "Date" +msgstr "Tanggal" + +#: AddCustomerNotes.php:103 AddCustomerTypeNotes.php:103 Stocks.php:799 +msgid "Note" +msgstr "Catatan" + +#: AddCustomerNotes.php:104 AddCustomerNotes.php:175 +msgid "WWW" +msgstr "" + +#: AddCustomerNotes.php:105 AddCustomerNotes.php:179 +#: AddCustomerTypeNotes.php:105 AddCustomerTypeNotes.php:179 +#, fuzzy +msgid "Priority" +msgstr "Laba" + +#: AddCustomerNotes.php:139 +#, fuzzy +msgid "Review all notes for this Customer" +msgstr "Order penjualan untuk Cabang/Pelanggan ini" + +#: AddCustomerNotes.php:168 AddCustomerTypeNotes.php:168 +#, fuzzy +msgid "Note ID" +msgstr "Catatan" + +#: AddCustomerNotes.php:173 +#, fuzzy +msgid "Contact Note" +msgstr "Kode Kat" + +#: AddCustomerTypeNotes.php:5 SelectCustomer.php:708 +#, fuzzy +msgid "Customer Type (Group) Notes" msgstr "Pelanggan diperbarui" - -#: AddCustomerTypeNotes.php:31 -#, fuzzy -msgid "The Contact priority must be an integer." -msgstr "Kode rekening harus berupa integer" - -#: AddCustomerTypeNotes.php:49 SelectCustomer.php:816 -#, fuzzy -msgid "Customer Group Notes" + +#: AddCustomerTypeNotes.php:30 +#, fuzzy +msgid "The Contact priority must be an integer." +msgstr "Kode rekening harus berupa integer" + +#: AddCustomerTypeNotes.php:48 SelectCustomer.php:748 +#, fuzzy +msgid "Customer Group Notes" msgstr "Pelanggan diperbarui" - -#: AddCustomerTypeNotes.php:60 -#, fuzzy -msgid "The contact group notes record has been added" -msgstr "Rekaman matriks diskon telah ditambahkan" - -#: AddCustomerTypeNotes.php:84 -#, fuzzy -msgid "The contact group note record has been deleted" -msgstr "Rekaman matriks diskon telah dihapus" - -#: AddCustomerTypeNotes.php:94 -#, fuzzy -msgid "Notes for Customer Type: <b>" -msgstr "dan untuk Pelanggan" - -#: AddCustomerTypeNotes.php:105 AddCustomerTypeNotes.php:176 -#, fuzzy -msgid "href" -msgstr "Yang diinginkan" - -#: AddCustomerTypeNotes.php:140 -#, fuzzy -msgid "Review all notes for this Customer Type" -msgstr "Order penjualan untuk Cabang/Pelanggan ini" - -#: AddCustomerTypeNotes.php:174 -#, fuzzy -msgid "Contact Group Note" -msgstr "Nama Grup Rekening" - -#: AgedDebtors.php:17 -msgid "Aged Customer Balance Listing" -msgstr "Daftar Neraca Pelanggan yang lama" - -#: AgedDebtors.php:18 -msgid "Aged Customer Balances" -msgstr "Neraca Pelanggan yang lama" - -#: AgedDebtors.php:267 AgedDebtors.php:365 AgedDebtors.php:436 -msgid "Aged Customer Account Analysis" -msgstr "Analisa Rekening Pelanggan yang lama" - -#: AgedDebtors.php:267 AgedDebtors.php:365 AgedDebtors.php:436 -#: AgedSuppliers.php:105 BOMExtendedQty.php:156 BOMIndented.php:149 -#: BOMIndentedReverse.php:148 BOMListing.php:48 BOMListing.php:59 -#: DebtorsAtPeriodEnd.php:58 DebtorsAtPeriodEnd.php:70 GLBalanceSheet.php:88 -#: GLBalanceSheet.php:126 GLProfit_Loss.php:156 GLTagProfit_Loss.php:167 -#: GLTrialBalance.php:140 InventoryPlanning.php:97 InventoryPlanning.php:172 -#: InventoryPlanning.php:207 InventoryPlanning.php:250 -#: InventoryPlanning.php:284 InventoryPlanningPrefSupplier.php:208 -#: InventoryPlanningPrefSupplier.php:276 InventoryPlanningPrefSupplier.php:310 -#: InventoryPlanningPrefSupplier.php:353 InventoryPlanningPrefSupplier.php:387 -#: InventoryQuantities.php:81 InventoryValuation.php:76 -#: MailInventoryValuation.php:115 MRPPlannedPurchaseOrders.php:100 -#: MRPPlannedWorkOrders.php:103 MRPReport.php:133 MRPReschedules.php:35 -#: MRPReschedules.php:47 MRPShortages.php:112 MRPShortages.php:124 -#: OutstandingGRNs.php:51 OutstandingGRNs.php:63 PDFCustomerList.php:20 -#: PDFCustomerList.php:232 PDFCustomerList.php:244 PDFLowGP.php:23 -#: PDFStockCheckComparison.php:35 PDFStockCheckComparison.php:61 -#: PDFStockCheckComparison.php:262 ReorderLevel.php:57 SelectProduct.php:48 -#: StockCheck.php:63 StockCheck.php:135 SuppPriceList.php:118 -#: includes/PDFPaymentRun_PymtFooter.php:146 -msgid "Problem Report" -msgstr "Laporan Problem" - -#: AgedDebtors.php:269 CustomerInquiry.php:87 CustomerInquiry.php:108 -#: DebtorsAtPeriodEnd.php:60 -msgid "The customer details could not be retrieved by the SQL because" -msgstr "Detil pelanggan tidak dapat diambil oleh SQL karena" - -#: AgedDebtors.php:270 AgedDebtors.php:368 AgedDebtors.php:442 -#: AgedSuppliers.php:108 AgedSuppliers.php:190 BOMExtendedQty.php:159 -#: BOMExtendedQty.php:263 BOMIndented.php:152 BOMIndented.php:238 -#: BOMIndentedReverse.php:151 BOMIndentedReverse.php:235 BOMListing.php:51 -#: Credit_Invoice.php:186 DebtorsAtPeriodEnd.php:61 DebtorsAtPeriodEnd.php:73 -#: FTP_RadioBeacon.php:188 GetStockImage.php:154 GLBalanceSheet.php:91 -#: GLBalanceSheet.php:129 GLBalanceSheet.php:292 GLProfit_Loss.php:159 -#: GLProfit_Loss.php:171 GLTagProfit_Loss.php:170 GLTagProfit_Loss.php:182 -#: GLTrialBalance.php:143 GLTrialBalance.php:155 InventoryPlanning.php:100 -#: InventoryPlanning.php:175 InventoryPlanning.php:210 -#: InventoryPlanning.php:253 InventoryPlanning.php:287 -#: InventoryPlanning.php:350 InventoryPlanningPrefSupplier.php:211 -#: InventoryPlanningPrefSupplier.php:279 InventoryPlanningPrefSupplier.php:313 -#: InventoryPlanningPrefSupplier.php:356 InventoryPlanningPrefSupplier.php:390 -#: InventoryPlanningPrefSupplier.php:446 InventoryQuantities.php:84 -#: InventoryQuantities.php:95 InventoryValuation.php:79 -#: InventoryValuation.php:90 MailInventoryValuation.php:118 -#: MailInventoryValuation.php:214 MRPPlannedPurchaseOrders.php:103 -#: MRPPlannedPurchaseOrders.php:114 MRPPlannedWorkOrders.php:106 -#: MRPPlannedWorkOrders.php:117 MRPReport.php:36 MRPReport.php:47 -#: MRPReport.php:136 MRPReschedules.php:38 MRPReschedules.php:50 -#: MRPShortages.php:115 MRPShortages.php:127 OutstandingGRNs.php:54 -#: OutstandingGRNs.php:66 PDFCustomerList.php:235 PDFCustomerList.php:247 -#: PDFGrn.php:63 PDFLowGP.php:62 PDFLowGP.php:74 PDFPriceList.php:106 -#: PDFPriceList.php:189 PDFQuotation.php:235 PDFRemittanceAdvice.php:76 -#: PDFStockCheckComparison.php:39 PDFStockCheckComparison.php:65 -#: PDFStockCheckComparison.php:266 PDFTopItems.php:161 PO_PDFPurchOrder.php:27 -#: PO_PDFPurchOrder.php:135 PrintCustOrder_generic.php:182 -#: PrintCustOrder.php:198 PrintSalesOrder_generic.php:183 ReorderLevel.php:60 -#: ReorderLevel.php:149 SalesAnalysis_UserDefined.php:37 -#: SelectCreditItems.php:25 StockCheck.php:45 StockCheck.php:66 -#: StockCheck.php:95 StockCheck.php:138 StockCheck.php:149 StockCheck.php:190 -#: StockDispatch.php:89 StockDispatch.php:100 SupplierBalsAtPeriodEnd.php:57 -#: SupplierBalsAtPeriodEnd.php:68 SuppPaymentRun.php:109 -#: SuppPaymentRun.php:120 SuppPaymentRun.php:184 SuppPaymentRun.php:214 -#: SuppPriceList.php:121 Tax.php:64 Tax.php:177 Tax.php:286 -#: Z_DataExport.php:73 Z_DataExport.php:169 Z_DataExport.php:260 -#: Z_DataExport.php:309 Z_DataExport.php:348 Z_DataExport.php:384 -#: Z_DataExport.php:420 Z_DataExport.php:474 Z_poRebuildDefault.php:37 -#: includes/PDFPaymentRun_PymtFooter.php:55 -#: includes/PDFPaymentRun_PymtFooter.php:84 -#: includes/PDFPaymentRun_PymtFooter.php:113 -#: includes/PDFPaymentRun_PymtFooter.php:149 -#: includes/PDFPaymentRun_PymtFooter.php:180 -#: includes/PDFPaymentRun_PymtFooter.php:212 -#: includes/ConstructSQLForUserDefinedSalesReport.inc:180 -#: includes/ConstructSQLForUserDefinedSalesReport.inc:188 -#: includes/ConstructSQLForUserDefinedSalesReport.inc:340 -msgid "Back to the menu" -msgstr "Kembali ke menu" - -#: AgedDebtors.php:367 -msgid "The details of outstanding transactions for customer" -msgstr "Detil dari transaksi yang belum diselesaikan untuk pelanggan" - -#: AgedDebtors.php:367 AgedSuppliers.php:189 GLAccountInquiry.php:149 -#: PO_Items.php:546 PO_Items.php:576 PO_Items.php:656 PO_Items.php:794 -#: SalesAnalReptCols.php:349 SpecialOrder.php:368 -#: StockLocTransferReceive.php:370 StockQuantityByDate.php:102 -#: includes/SelectOrderItems_IntoCart.inc:52 -msgid "could not be retrieved because" -msgstr "Tidak dapat diambil karena" - -#: AgedDebtors.php:370 AgedSuppliers.php:192 Areas.php:96 -#: ConfirmDispatch_Invoice.php:154 ConfirmDispatch_Invoice.php:914 -#: ConfirmDispatch_Invoice.php:928 Credit_Invoice.php:686 -#: Credit_Invoice.php:708 CustomerReceipt.php:491 CustomerReceipt.php:632 -#: CustomerReceipt.php:660 CustomerTransInquiry.php:78 DeliveryDetails.php:397 -#: GLProfit_Loss.php:539 GLTagProfit_Loss.php:480 Payments.php:294 -#: PDFRemittanceAdvice.php:78 PurchData.php:83 PurchData.php:101 -#: PurchData.php:206 ReverseGRN.php:142 ReverseGRN.php:156 ReverseGRN.php:317 -#: SelectCreditItems.php:1393 StockCheck.php:220 StockCostUpdate.php:78 -#: StockCostUpdate.php:88 StockLocStatus.php:144 StockMovements.php:91 -#: StockQuantityByDate.php:78 StockReorderLevel.php:39 StockStatus.php:262 -#: StockTransfers.php:153 StockUsageGraph.php:53 StockUsage.php:124 -#: SupplierInquiry.php:78 SupplierInquiry.php:99 SupplierInquiry.php:129 -#: SupplierInquiry.php:174 SupplierTransInquiry.php:79 SuppPaymentRun.php:111 -#: SuppPaymentRun.php:186 SuppPaymentRun.php:216 WorkOrderCosting.php:391 -#: WorkOrderReceive.php:261 WOSerialNos.php:44 Z_ChangeBranchCode.php:108 -#: Z_ChangeCustomerCode.php:90 Z_DeleteCreditNote.php:57 -#: Z_DeleteInvoice.php:83 includes/PDFPaymentRun_PymtFooter.php:57 -#: includes/PDFPaymentRun_PymtFooter.php:86 -#: includes/PDFPaymentRun_PymtFooter.php:115 -#: includes/PDFPaymentRun_PymtFooter.php:151 -#: includes/PDFPaymentRun_PymtFooter.php:182 includes/ConnectDB_mysqli.inc:55 -#: includes/ConnectDB_mysql.inc:38 -msgid "The SQL that failed was" -msgstr "SQL yang gagal adalah" - -#: AgedDebtors.php:438 -#, fuzzy -msgid "There are no customers meeting the criteria specified to list" -msgstr "Tidak ada pelanggan yang memenuhi kriteria pada daftar" - -#: AgedDebtors.php:464 -msgid "Aged Debtor Analysis" -msgstr "Analisa Penerima pinjaman berdasarkan Jatuh tempo." - -#: AgedDebtors.php:475 DebtorsAtPeriodEnd.php:143 -msgid "From Customer Code" -msgstr "Dari Kode Pelanggan" - -#: AgedDebtors.php:476 DebtorsAtPeriodEnd.php:144 -msgid "To Customer Code" -msgstr "Ke Kode Pelanggan" - -#: AgedDebtors.php:478 AgedSuppliers.php:291 -msgid "All balances or overdues only" -msgstr "Semua Neraca atau yang terlambat" - -#: AgedDebtors.php:479 -msgid "All customers with balances" -msgstr "Semua pelanggan dengan saldo" - -#: AgedDebtors.php:480 AgedSuppliers.php:294 -msgid "Overdue accounts only" -msgstr "Hanya rekening yang telah jatuh tempo" - -#: AgedDebtors.php:481 -msgid "Held accounts only" -msgstr "Pengirim tidak jelas" - -#: AgedDebtors.php:484 -#, fuzzy -msgid "Only Show Customers Of" -msgstr "Tunjukkan hanya pelanggan yang berdagang dalam" - -#: AgedDebtors.php:496 -msgid "Only show customers trading in" -msgstr "Tunjukkan hanya pelanggan yang berdagang dalam" - -#: AgedDebtors.php:512 -msgid "Summary or detailed report" -msgstr "Laporan umum atau laporan detil" - -#: AgedDebtors.php:514 AgedSuppliers.php:314 InventoryValuation.php:235 -msgid "Summary Report" -msgstr "Laporan Lengkap" - -#: AgedDebtors.php:515 AgedSuppliers.php:315 InventoryValuation.php:236 -msgid "Detailed Report" -msgstr "Laporan Detil" - -#: AgedDebtors.php:518 AgedSuppliers.php:318 BOMExtendedQty.php:297 -#: BOMIndented.php:275 BOMIndentedReverse.php:263 BOMListing.php:140 -#: DebtorsAtPeriodEnd.php:161 InventoryPlanning.php:429 -#: InventoryPlanningPrefSupplier.php:502 InventoryQuantities.php:186 -#: InventoryValuation.php:239 MRPPlannedPurchaseOrders.php:263 -#: MRPPlannedWorkOrders.php:241 MRPReport.php:512 MRPReschedules.php:150 -#: MRPShortages.php:232 OutstandingGRNs.php:181 PDFCustomerList.php:409 -#: PDFLowGP.php:164 PDFPriceList.php:258 PDFRemittanceAdvice.php:153 -#: PDFStockCheckComparison.php:375 PrintCustTrans.php:618 -#: PrintCustTransPortrait.php:680 ReorderLevel.php:226 StockDispatch.php:293 -#: SupplierBalsAtPeriodEnd.php:148 SuppPriceList.php:231 Tax.php:348... [truncated message content] |
From: <tim...@us...> - 2010-01-29 10:04:08
|
Revision: 3331 http://web-erp.svn.sourceforge.net/web-erp/?rev=3331&view=rev Author: tim_schofield Date: 2010-01-29 10:03:57 +0000 (Fri, 29 Jan 2010) Log Message: ----------- Victor Onofrei: Partial Romanian translation and rename Latvian translation Modified Paths: -------------- trunk/doc/Change.log.html Added Paths: ----------- trunk/locale/lv_LV.utf8/ trunk/locale/ro_RO.utf8/ trunk/locale/ro_RO.utf8/LC_MESSAGES/ trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po Removed Paths: ------------- trunk/locale/lv_LV/ Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-27 14:59:17 UTC (rev 3330) +++ trunk/doc/Change.log.html 2010-01-29 10:03:57 UTC (rev 3331) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>29/01/10 Victor Onofrei: Partial Romanian translation</p> <p>27/01/10 Sajatmiko Akbar Wibowo: Updated Indonesian translation files</p> <p>26/01/10 Tim: api_xml-rpc.php - Update the documentation</p> <p>26/01/10 Lindsay: Expand description for API Login and Logout functions</p> Added: trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Property changes on: trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po (rev 0) +++ trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po 2010-01-29 10:03:57 UTC (rev 3331) @@ -0,0 +1,27344 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: Victor's-webERP romanian translation\n" +"POT-Creation-Date: 2009-02-09 09:02+0000\n" +"PO-Revision-Date: 2010-01-14 19:36-0500\n" +"Last-Translator: Victor Onofrei <in...@on...>\n" +"Language-Team: Victor <in...@on...>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Report-Msgid-Bugs-To: \n" +"X-Poedit-Language: Romanian\n" +"X-Poedit-Country: MOLDOVA, REPUBLIC OF\n" + +#: AccountGroups.php:8 +#: index.php:1038 +msgid "Account Groups" +msgstr "Grupurile de conturi" + +#: AccountGroups.php:18 +msgid "An error occurred in retrieving the account groups of the parent account group during the check for recursion" +msgstr "" + +#: AccountGroups.php:19 +msgid "The SQL that was used to retrieve the account groups of the parent account group and that failed in the process was" +msgstr "" + +#: AccountGroups.php:61 +msgid "The account group name already exists in the database" +msgstr "" + +#: AccountGroups.php:67 +msgid "The account group name cannot contain the character" +msgstr "" + +#: AccountGroups.php:67 +#: AccountSections.php:74 +#: PaymentMethods.php:37 +#: TaxCategories.php:30 +#: TaxProvinces.php:30 +#: UnitsOfMeasure.php:30 +msgid "or the character" +msgstr "" + +#: AccountGroups.php:73 +msgid "The account group name must be at least one character long" +msgstr "" + +#: AccountGroups.php:80 +msgid "The parent account group selected appears to result in a recursive account structure - select an alternative parent account group or make this group a top level account group" +msgstr "" + +#: AccountGroups.php:99 +msgid "The section in accounts must be an integer" +msgstr "" + +#: AccountGroups.php:105 +msgid "The sequence in the trial balance must be an integer" +msgstr "" + +#: AccountGroups.php:111 +msgid "The sequence in the TB must be numeric and less than" +msgstr "" + +#: AccountGroups.php:129 +#: AccountSections.php:105 +#: PaymentMethods.php:87 +msgid "Record Updated" +msgstr "Inregistrare actualizata" + +#: AccountGroups.php:147 +#: AccountSections.php:117 +#: PaymentMethods.php:109 +msgid "Record inserted" +msgstr "Inregistrare inserata" + +#: AccountGroups.php:167 +msgid "Cannot delete this account group because general ledger accounts have been created using this group" +msgstr "" + +#: AccountGroups.php:168 +#: AccountGroups.php:176 +#: AccountSections.php:138 +#: Areas.php:117 +#: Areas.php:126 +#: BankAccounts.php:149 +#: CreditStatus.php:123 +#: Currencies.php:141 +#: Currencies.php:149 +#: Currencies.php:156 +#: CustomerBranches.php:284 +#: CustomerBranches.php:294 +#: CustomerBranches.php:304 +#: CustomerBranches.php:314 +#: Customers.php:287 +#: Customers.php:296 +#: Customers.php:304 +#: Customers.php:312 +#: CustomerTypes.php:131 +#: CustomerTypes.php:141 +#: Factors.php:129 +#: GLAccounts.php:90 +#: GLAccounts.php:104 +#: Locations.php:217 +#: Locations.php:225 +#: Locations.php:234 +#: Locations.php:242 +#: Locations.php:250 +#: Locations.php:258 +#: Locations.php:266 +#: Locations.php:274 +#: PaymentMethods.php:141 +#: PaymentTerms.php:145 +#: PaymentTerms.php:152 +#: SalesCategories.php:125 +#: SalesCategories.php:133 +#: SalesPeople.php:142 +#: SalesPeople.php:149 +#: SalesTypes.php:145 +#: SalesTypes.php:155 +#: Shippers.php:82 +#: Shippers.php:94 +#: StockCategories.php:165 +#: Stocks.php:442 +#: Stocks.php:451 +#: Stocks.php:459 +#: Stocks.php:467 +#: Stocks.php:475 +#: Stocks.php:483 +#: Suppliers.php:562 +#: Suppliers.php:571 +#: Suppliers.php:579 +#: TaxCategories.php:130 +#: TaxGroups.php:126 +#: TaxGroups.php:133 +#: TaxProvinces.php:125 +#: UnitsOfMeasure.php:140 +#: UnitsOfMeasure.php:147 +#: WorkCentres.php:90 +#: WorkCentres.php:96 +#: WWW_Access.php:84 +msgid "There are" +msgstr "" + +#: AccountGroups.php:168 +msgid "general ledger accounts that refer to this account group" +msgstr "" + +#: AccountGroups.php:175 +msgid "Cannot delete this account group because it is a parent account group of other account group(s)" +msgstr "" + +#: AccountGroups.php:176 +msgid "account groups that have this group as its/there parent account group" +msgstr "" + +#: AccountGroups.php:180 +msgid "group has been deleted" +msgstr "" + +#: AccountGroups.php:205 +msgid "Could not get account groups because" +msgstr "" + +#: AccountGroups.php:210 +msgid "Group Name" +msgstr "Nume grup" + +#: AccountGroups.php:211 +#: EDIMessageFormat.php:140 +msgid "Section" +msgstr "Sectiune" + +#: AccountGroups.php:212 +#: AccountGroups.php:367 +msgid "Sequence In TB" +msgstr "" + +#: AccountGroups.php:213 +#: AccountGroups.php:351 +#: GLProfit_Loss.php:8 +#: GLProfit_Loss.php:101 +#: GLProfit_Loss.php:102 +#: GLProfit_Loss.php:149 +#: SelectGLAccount.php:51 +#: SelectGLAccount.php:65 +msgid "Profit and Loss" +msgstr "" + +#: AccountGroups.php:214 +#: AccountGroups.php:312 +msgid "Parent Group" +msgstr "" + +#: AccountGroups.php:230 +#: AccountGroups.php:233 +#: AccountGroups.php:355 +#: AccountGroups.php:357 +#: BOMs.php:127 +#: BOMs.php:689 +#: BOMs.php:691 +#: CompanyPreferences.php:436 +#: CompanyPreferences.php:438 +#: CompanyPreferences.php:448 +#: CompanyPreferences.php:450 +#: CompanyPreferences.php:460 +#: CompanyPreferences.php:462 +#: CustomerBranches.php:398 +#: Customers.php:526 +#: Customers.php:723 +#: Customers.php:726 +#: DeliveryDetails.php:750 +#: DeliveryDetails.php:790 +#: DeliveryDetails.php:793 +#: GLTransInquiry.php:71 +#: Locations.php:341 +#: PaymentMethods.php:197 +#: PaymentMethods.php:198 +#: PaymentMethods.php:257 +#: PaymentMethods.php:263 +#: PDFChequeListing.php:57 +#: PDFDeliveryDifferences.php:55 +#: PDFDIFOT.php:61 +#: PO_Header.php:555 +#: PO_PDFPurchOrder.php:325 +#: PO_PDFPurchOrder.php:328 +#: PurchData.php:229 +#: PurchData.php:375 +#: PurchData.php:378 +#: RecurringSalesOrders.php:469 +#: RecurringSalesOrders.php:472 +#: SalesAnalReptCols.php:278 +#: SalesAnalReptCols.php:383 +#: SalesAnalReptCols.php:386 +#: SalesAnalRepts.php:404 +#: SalesAnalRepts.php:407 +#: SalesAnalRepts.php:430 +#: SalesAnalRepts.php:433 +#: SalesAnalRepts.php:456 +#: SalesAnalRepts.php:459 +#: SelectProduct.php:734 +#: ShipmentCosting.php:612 +#: Stocks.php:795 +#: Stocks.php:797 +#: Stocks.php:809 +#: Stocks.php:811 +#: SystemParameters.php:329 +#: SystemParameters.php:400 +#: SystemParameters.php:408 +#: SystemParameters.php:448 +#: SystemParameters.php:521 +#: SystemParameters.php:529 +#: SystemParameters.php:547 +#: SystemParameters.php:554 +#: SystemParameters.php:663 +#: SystemParameters.php:794 +#: SystemParameters.php:796 +#: SystemParameters.php:806 +#: SystemParameters.php:808 +#: TaxGroups.php:295 +#: TaxGroups.php:364 +#: TaxGroups.php:367 +#: WWW_Users.php:536 +#: WWW_Users.php:538 +msgid "Yes" +msgstr "Da" + +#: AccountGroups.php:236 +#: AccountGroups.php:360 +#: AccountGroups.php:362 +#: BOMs.php:129 +#: BOMs.php:688 +#: BOMs.php:692 +#: CompanyPreferences.php:435 +#: CompanyPreferences.php:439 +#: CompanyPreferences.php:447 +#: CompanyPreferences.php:451 +#: CompanyPreferences.php:459 +#: CompanyPreferences.php:463 +#: CustomerBranches.php:398 +#: Customers.php:525 +#: Customers.php:722 +#: Customers.php:725 +#: DeliveryDetails.php:751 +#: DeliveryDetails.php:791 +#: DeliveryDetails.php:794 +#: GLTransInquiry.php:125 +#: Locations.php:343 +#: PaymentMethods.php:197 +#: PaymentMethods.php:198 +#: PaymentMethods.php:258 +#: PaymentMethods.php:264 +#: PDFChequeListing.php:56 +#: PDFDeliveryDifferences.php:54 +#: PDFDIFOT.php:60 +#: PO_Header.php:555 +#: PO_PDFPurchOrder.php:326 +#: PO_PDFPurchOrder.php:329 +#: PurchData.php:232 +#: PurchData.php:376 +#: PurchData.php:379 +#: RecurringSalesOrders.php:468 +#: RecurringSalesOrders.php:471 +#: SalesAnalReptCols.php:276 +#: SalesAnalReptCols.php:384 +#: SalesAnalReptCols.php:387 +#: SalesAnalRepts.php:403 +#: SalesAnalRepts.php:406 +#: SalesAnalRepts.php:429 +#: SalesAnalRepts.php:432 +#: SalesAnalRepts.php:455 +#: SalesAnalRepts.php:458 +#: SelectProduct.php:737 +#: ShipmentCosting.php:613 +#: Stocks.php:790 +#: Stocks.php:792 +#: Stocks.php:804 +#: Stocks.php:806 +#: SystemParameters.php:330 +#: SystemParameters.php:401 +#: SystemParameters.php:409 +#: SystemParameters.php:449 +#: SystemParameters.php:522 +#: SystemParameters.php:530 +#: SystemParameters.php:548 +#: SystemParameters.php:555 +#: SystemParameters.php:664 +#: SystemParameters.php:793 +#: SystemParameters.php:797 +#: SystemParameters.php:805 +#: SystemParameters.php:809 +#: TaxGroups.php:297 +#: TaxGroups.php:365 +#: TaxGroups.php:368 +#: WWW_Users.php:535 +#: WWW_Users.php:539 +#: includes/PDFLowGPPageHeader.inc:31 +#: includes/PDFTaxPageHeader.inc:34 +msgid "No" +msgstr "Nu" + +#: AccountGroups.php:245 +#: AccountSections.php:195 +#: AddCustomerContacts.php:121 +#: AddCustomerNotes.php:121 +#: AddCustomerTypeNotes.php:121 +#: Areas.php:162 +#: BankAccounts.php:202 +#: BOMs.php:149 +#: COGSGLPostings.php:107 +#: COGSGLPostings.php:212 +#: CreditStatus.php:172 +#: Currencies.php:232 +#: CustomerBranches.php:402 +#: Customers.php:752 +#: Customers.php:770 +#: CustomerTypes.php:184 +#: EDIMessageFormat.php:161 +#: FreightCosts.php:240 +#: GeocodeSetup.php:169 +#: GLAccounts.php:317 +#: GLTags.php:58 +#: Locations.php:350 +#: PaymentMethods.php:199 +#: PaymentTerms.php:200 +#: Prices_Customer.php:200 +#: Prices.php:178 +#: PurchData.php:242 +#: SalesCategories.php:261 +#: SalesGLPostings.php:132 +#: SalesGLPostings.php:244 +#: SalesPeople.php:201 +#: SalesTypes.php:204 +#: SelectCustomer.php:620 +#: SelectCustomer.php:636 +#: SelectCustomer.php:668 +#: SelectCustomer.php:684 +#: SelectCustomer.php:715 +#: SelectCustomer.php:731 +#: Shippers.php:142 +#: StockCategories.php:227 +#: SupplierContacts.php:153 +#: TaxAuthorities.php:165 +#: TaxCategories.php:181 +#: TaxGroups.php:177 +#: TaxProvinces.php:176 +#: UnitsOfMeasure.php:199 +#: WorkCentres.php:138 +#: WWW_Access.php:124 +#: WWW_Users.php:276 +#: includes/InputSerialItems.php:82 +msgid "Edit" +msgstr "Editeaza" + +#: AccountGroups.php:246 +#: AccountSections.php:199 +#: AddCustomerContacts.php:122 +#: AddCustomerNotes.php:122 +#: AddCustomerTypeNotes.php:122 +#: Areas.php:163 +#: BankAccounts.php:203 +#: BOMs.php:151 +#: COGSGLPostings.php:108 +#: COGSGLPostings.php:213 +#: Credit_Invoice.php:369 +#: CreditStatus.php:173 +#: Currencies.php:235 +#: CustomerReceipt.php:793 +#: Customers.php:771 +#: CustomerTypes.php:185 +#: DiscountCategories.php:115 +#: DiscountMatrix.php:116 +#: EDIMessageFormat.php:162 +#: FreightCosts.php:241 +#: GeocodeSetup.php:170 +#: GLAccounts.php:318 +#: GLJournal.php:395 +#: Locations.php:351 +#: PaymentMethods.php:200 +#: Payments.php:829 +#: PaymentTerms.php:201 +#: PO_Items.php:858 +#: Prices_Customer.php:201 +#: Prices.php:179 +#: PurchData.php:243 +#: SalesAnalReptCols.php:293 +#: SalesAnalRepts.php:303 +#: SalesCategories.php:262 +#: SalesGLPostings.php:133 +#: SalesGLPostings.php:245 +#: SalesPeople.php:202 +#: SalesTypes.php:205 +#: SelectCreditItems.php:757 +#: SelectCustomer.php:621 +#: SelectCustomer.php:637 +#: SelectCustomer.php:669 +#: SelectCustomer.php:685 +#: SelectCustomer.php:716 +#: SelectCustomer.php:732 +#: SelectOrderItems.php:1182 +#: Shipments.php:418 +#: Shippers.php:143 +#: SpecialOrder.php:580 +#: StockCategories.php:228 +#: StockCategories.php:509 +#: SuppCreditGRNs.php:89 +#: SuppInvGLAnalysis.php:65 +#: SuppInvGRNs.php:128 +#: SupplierContacts.php:154 +#: SuppShiptChgs.php:80 +#: SuppTransGLAnalysis.php:107 +#: TaxAuthorities.php:166 +#: TaxCategories.php:182 +#: TaxGroups.php:178 +#: TaxProvinces.php:177 +#: UnitsOfMeasure.php:200 +#: WorkCentres.php:139 +#: WWW_Access.php:125 +#: WWW_Users.php:277 +#: includes/InputSerialItemsKeyed.php:53 +msgid "Delete" +msgstr "Sterge" + +#: AccountGroups.php:254 +msgid "Review Account Groups" +msgstr "" + +#: AccountGroups.php:285 +#: GLAccounts.php:244 +#: GLAccounts.php:297 +#: Z_ImportGLAccountGroups.php:27 +msgid "Account Group" +msgstr "" + +#: AccountGroups.php:309 +msgid "Account Group Name" +msgstr "" + +#: AccountGroups.php:319 +#: AccountGroups.php:321 +msgid "Top Level Group" +msgstr "" + +#: AccountGroups.php:335 +msgid "Section In Accounts" +msgstr "" + +#: AccountGroups.php:374 +#: AccountSections.php:262 +#: AddCustomerContacts.php:182 +#: AddCustomerNotes.php:182 +#: AddCustomerTypeNotes.php:182 +#: Areas.php:218 +#: BankAccounts.php:316 +#: BOMs.php:701 +#: COGSGLPostings.php:341 +#: CreditStatus.php:240 +#: Currencies.php:331 +#: DiscountCategories.php:143 +#: DiscountMatrix.php:167 +#: EDIMessageFormat.php:253 +#: FreightCosts.php:336 +#: GeocodeSetup.php:265 +#: GLAccounts.php:267 +#: Locations.php:516 +#: PaymentMethods.php:269 +#: PaymentTerms.php:274 +#: Prices_Customer.php:243 +#: SalesAnalReptCols.php:465 +#: SalesAnalRepts.php:494 +#: SalesGLPostings.php:411 +#: SalesPeople.php:292 +#: Shippers.php:195 +#: StockCategories.php:528 +#: SupplierContacts.php:249 +#: TaxAuthorities.php:303 +#: TaxCategories.php:231 +#: TaxProvinces.php:226 +#: UnitsOfMeasure.php:250 +#: WorkCentres.php:260 +#: WWW_Users.php:557 +msgid "Enter Information" +msgstr "" + +#: AccountSections.php:8 +#: index.php:1043 +msgid "Account Sections" +msgstr "" + +#: AccountSections.php:67 +msgid "The account section already exists in the database" +msgstr "" + +#: AccountSections.php:74 +msgid "The account section name cannot contain the character" +msgstr "" + +#: AccountSections.php:80 +msgid "The account section name must contain at least one character" +msgstr "" + +#: AccountSections.php:86 +#: AccountSections.php:92 +msgid "The section number must be an integer" +msgstr "" + +#: AccountSections.php:137 +msgid "Cannot delete this account section because general ledger accounts groups have been created using this section" +msgstr "" + +#: AccountSections.php:138 +msgid "general ledger accounts groups that refer to this account section" +msgstr "" + +#: AccountSections.php:149 +msgid "section has been deleted" +msgstr "" + +#: AccountSections.php:174 +msgid "Could not get account group sections because" +msgstr "" + +#: AccountSections.php:179 +#: AccountSections.php:237 +#: AccountSections.php:254 +msgid "Section Number" +msgstr "" + +#: AccountSections.php:180 +#: AccountSections.php:257 +msgid "Section Description" +msgstr "" + +#: AccountSections.php:197 +msgid "Restricted" +msgstr "" + +#: AccountSections.php:208 +msgid "Review Account Sections" +msgstr "" + +#: AccountSections.php:227 +msgid "Could not retrieve the requested section please try again." +msgstr "" + +#: AddCustomerContacts.php:5 +#: AddCustomerContacts.php:48 +#: SelectCustomer.php:613 +#: SelectCustomer.php:653 +msgid "Customer Contacts" +msgstr "" + +#: AddCustomerContacts.php:19 +#: CustEDISetup.php:10 +#: Customers.php:385 +#: Z_CheckDebtorsControl.php:20 +msgid "Back to Customers" +msgstr "" + +#: AddCustomerContacts.php:30 +msgid "The Contact must be an integer." +msgstr "" + +#: AddCustomerContacts.php:33 +msgid "The contact's name must be forty characters or less long" +msgstr "" + +#: AddCustomerContacts.php:36 +msgid "The contact's name may not be empty" +msgstr "" + +#: AddCustomerContacts.php:48 +#: AddCustomerNotes.php:48 +#: AddCustomerTypeNotes.php:48 +#: Areas.php:74 +#: CustomerTypes.php:48 +#: DeliveryDetails.php:476 +#: Factors.php:59 +#: PO_Items.php:208 +#: SalesAnalReptCols.php:128 +#: SalesPeople.php:92 +#: SalesTypes.php:61 +#: Stocks.php:335 +#: Suppliers.php:475 +msgid "has been updated" +msgstr "" + +#: AddCustomerContacts.php:59 +msgid "The contact record has been added" +msgstr "" + +#: AddCustomerContacts.php:83 +msgid "The contact record has been deleted" +msgstr "" + +#: AddCustomerContacts.php:93 +msgid "Contacts for Customer: <b>" +msgstr "" + +#: AddCustomerContacts.php:102 +#: CompanyPreferences.php:226 +#: CustomerBranches.php:365 +#: Customers.php:748 +#: Customers.php:799 +#: SalesPeople.php:183 +#: SelectCustomer.php:616 +#: SuppInvGLAnalysis.php:49 +#: SuppInvGLAnalysis.php:73 +#: SupplierContacts.php:141 +#: SupplierCredit.php:303 +#: SupplierInvoice.php:298 +#: SuppTransGLAnalysis.php:91 +#: includes/InputSerialItemsFile.php:84 +#: includes/InputSerialItemsFile.php:124 +#: includes/PDFTaxPageHeader.inc:36 +msgid "Name" +msgstr "Nume" + +#: AddCustomerContacts.php:103 +#: AddCustomerContacts.php:175 +#: Customers.php:749 +#: Customers.php:800 +#: SelectCustomer.php:617 +#: WWW_Access.php:108 +#: WWW_Access.php:168 +msgid "Role" +msgstr "" + +#: AddCustomerContacts.php:104 +#: Customers.php:801 +msgid "Phone no" +msgstr "" + +#: AddCustomerContacts.php:105 +#: AddCustomerContacts.php:179 +#: Customers.php:751 +#: Customers.php:802 +#: SelectCustomer.php:619 +#: SystemParameters.php:270 +msgid "Notes" +msgstr "" + +#: AddCustomerContacts.php:139 +msgid "Review all contacts for this Customer" +msgstr "" + +#: AddCustomerContacts.php:168 +msgid "Contact Code" +msgstr "" + +#: AddCustomerContacts.php:173 +#: Factors.php:212 +#: Factors.php:230 +#: SupplierContacts.php:217 +msgid "Contact Name" +msgstr "" + +#: AddCustomerContacts.php:177 +#: PO_Header.php:511 +#: SelectCreditItems.php:234 +#: SelectCustomer.php:444 +#: SelectOrderItems.php:583 +#: includes/PDFStatementPageHeader.inc:63 +#: includes/PDFTransPageHeader.inc:81 +#: includes/PDFTransPageHeaderPortrait.inc:104 +msgid "Phone" +msgstr "Telefon" + +#: AddCustomerNotes.php:5 +#: AddCustomerNotes.php:48 +#: SelectCustomer.php:661 +#: SelectCustomer.php:700 +msgid "Customer Notes" +msgstr "" + +#: AddCustomerNotes.php:19 +#: AddCustomerTypeNotes.php:19 +msgid "Back to Select Customer" +msgstr "" + +#: AddCustomerNotes.php:30 +msgid "The contact priority must be an integer." +msgstr "" + +#: AddCustomerNotes.php:33 +#: AddCustomerTypeNotes.php:33 +msgid "The contact's notes must be two hundred characters or less long" +msgstr "" + +#: AddCustomerNotes.php:36 +#: AddCustomerTypeNotes.php:36 +msgid "The contact's notes may not be empty" +msgstr "" + +#: AddCustomerNotes.php:59 +msgid "The contact notes record has been added" +msgstr "" + +#: AddCustomerNotes.php:83 +msgid "The contact note record has been deleted" +msgstr "" + +#: AddCustomerNotes.php:93 +msgid "Notes for Customer: <b>" +msgstr "" + +#: AddCustomerNotes.php:102 +#: AddCustomerNotes.php:177 +#: AddCustomerTypeNotes.php:102 +#: AddCustomerTypeNotes.php:177 +#: BankMatching.php:212 +#: BankReconciliation.php:181 +#: BankReconciliation.php:253 +#: CustomerAllocations.php:347 +#: CustomerAllocations.php:373 +#: CustomerInquiry.php:184 +#: CustomerTransInquiry.php:85 +#: GLAccountInquiry.php:153 +#: GLTransInquiry.php:46 +#: PaymentAllocations.php:73 +#: PrintCustTrans.php:838 +#: PrintCustTransPortrait.php:850 +#: ReverseGRN.php:330 +#: ShipmentCosting.php:494 +#: ShipmentCosting.php:565 +#: Shipments.php:459 +#: StockLocMovements.php:79 +#: StockMovements.php:98 +#: StockSerialItemResearch.php:74 +#: SupplierAllocations.php:466 +#: SupplierAllocations.php:578 +#: SupplierAllocations.php:648 +#: SupplierInquiry.php:191 +#: SupplierTransInquiry.php:87 +#: includes/PDFQuotationPageHeader.inc:91 +#: includes/PDFStatementPageHeader.inc:169 +#: includes/PDFTaxPageHeader.inc:35 +#: includes/PDFTransPageHeader.inc:48 +#: includes/PDFTransPageHeaderPortrait.inc:57 +msgid "Date" +msgstr "Data" + +#: AddCustomerNotes.php:103 +#: AddCustomerTypeNotes.php:103 +#: Stocks.php:799 +msgid "Note" +msgstr "" + +#: AddCustomerNotes.php:104 +#: AddCustomerNotes.php:175 +msgid "WWW" +msgstr "" + +#: AddCustomerNotes.php:105 +#: AddCustomerNotes.php:179 +#: AddCustomerTypeNotes.php:105 +#: AddCustomerTypeNotes.php:179 +msgid "Priority" +msgstr "" + +#: AddCustomerNotes.php:139 +msgid "Review all notes for this Customer" +msgstr "" + +#: AddCustomerNotes.php:168 +#: AddCustomerTypeNotes.php:168 +msgid "Note ID" +msgstr "" + +#: AddCustomerNotes.php:173 +msgid "Contact Note" +msgstr "" + +#: AddCustomerTypeNotes.php:5 +#: SelectCustomer.php:708 +msgid "Customer Type (Group) Notes" +msgstr "" + +#: AddCustomerTypeNotes.php:30 +msgid "The Contact priority must be an integer." +msgstr "" + +#: AddCustomerTypeNotes.php:48 +#: SelectCustomer.php:748 +msgid "Customer Group Notes" +msgstr "" + +#: AddCustomerTypeNotes.php:59 +msgid "The contact group notes record has been added" +msgstr "" + +#: AddCustomerTypeNotes.php:83 +msgid "The contact group note record has been deleted" +msgstr "" + +#: AddCustomerTypeNotes.php:93 +msgid "Notes for Customer Type: <b>" +msgstr "" + +#: AddCustomerTypeNotes.php:104 +#: AddCustomerTypeNotes.php:175 +msgid "href" +msgstr "" + +#: AddCustomerTypeNotes.php:139 +msgid "Review all notes for this Customer Type" +msgstr "" + +#: AddCustomerTypeNotes.php:173 +msgid "Contact Group Note" +msgstr "" + +#: AgedDebtors.php:18 +msgid "Aged Customer Balance Listing" +msgstr "" + +#: AgedDebtors.php:19 +msgid "Aged Customer Balances" +msgstr "" + +#: AgedDebtors.php:266 +#: AgedDebtors.php:362 +#: AgedDebtors.php:430 +msgid "Aged Customer Account Analysis" +msgstr "" + +#: AgedDebtors.php:266 +#: AgedDebtors.php:362 +#: AgedDebtors.php:430 +#: AgedSuppliers.php:104 +#: BOMListing.php:46 +#: BOMListing.php:57 +#: DebtorsAtPeriodEnd.php:59 +#: GLBalanceSheet.php:80 +#: GLBalanceSheet.php:117 +#: GLProfit_Loss.php:149 +#: GLTrialBalance.php:138 +#: InventoryPlanning.php:89 +#: InventoryPlanning.php:159 +#: InventoryPlanning.php:192 +#: InventoryPlanning.php:235 +#: InventoryPlanning.php:269 +#: InventoryValuation.php:71 +#: MailInventoryValuation.php:100 +#: OutstandingGRNs.php:50 +#: PDFCustomerList.php:13 +#: PDFCustomerList.php:233 +#: PDFLowGP.php:17 +#: PDFStockCheckComparison.php:25 +#: PDFStockCheckComparison.php:51 +#: PDFStockCheckComparison.php:258 +#: SelectProduct.php:49 +#: StockCheck.php:38 +#: StockCheck.php:59 +#: StockCheck.php:88 +#: StockCheck.php:138 +#: StockCheck.php:182 +#: SupplierBalsAtPeriodEnd.php:56 +#: SuppPaymentRun.php:106 +#: includes/PDFPaymentRun_PymtFooter.php:52 +#: includes/PDFPaymentRun_PymtFooter.php:111 +#: includes/PDFPaymentRun_PymtFooter.php:149 +#: includes/PDFPaymentRun_PymtFooter.php:181 +#: includes/PDFPaymentRun_PymtFooter.php:213 +msgid "Problem Report" +msgstr "" + +#: AgedDebtors.php:268 +#: CustomerInquiry.php:81 +#: CustomerInquiry.php:102 +#: DebtorsAtPeriodEnd.php:61 +msgid "The customer details could not be retrieved by the SQL because" +msgstr "" + +#: AgedDebtors.php:269 +#: AgedDebtors.php:365 +#: AgedDebtors.php:436 +#: AgedSuppliers.php:107 +#: AgedSuppliers.php:187 +#: BOMListing.php:49 +#: Credit_Invoice.php:183 +#: DebtorsAtPeriodEnd.php:62 +#: FTP_RadioBeacon.php:187 +#: GetStockImage.php:152 +#: GLBalanceSheet.php:83 +#: GLBalanceSheet.php:120 +#: GLBalanceSheet.php:288 +#: GLProfit_Loss.php:152 +#: GLProfit_Loss.php:480 +#: GLTrialBalance.php:141 +#: GLTrialBalance.php:337 +#: InventoryPlanning.php:92 +#: InventoryPlanning.php:162 +#: InventoryPlanning.php:195 +#: InventoryPlanning.php:238 +#: InventoryPlanning.php:272 +#: InventoryPlanning.php:327 +#: InventoryValuation.php:74 +#: InventoryValuation.php:182 +#: MailInventoryValuation.php:103 +#: MailInventoryValuation.php:202 +#: OutstandingGRNs.php:53 +#: OutstandingGRNs.php:140 +#: PDFCustomerList.php:236 +#: PDFCustomerList.php:363 +#: PDFGrn.php:58 +#: PDFLowGP.php:61 +#: PDFLowGP.php:110 +#: PDFPriceList.php:104 +#: PDFPriceList.php:183 +#: PDFQuotation.php:233 +#: PDFStockCheckComparison.php:29 +#: PDFStockCheckComparison.php:55 +#: PDFStockCheckComparison.php:262 +#: PDFStockCheckComparison.php:314 +#: PDFStockLocTransfer.php:82 +#: PDFStockNegatives.php:67 +#: PDFStockTransfer.php:66 +#: PO_PDFPurchOrder.php:23 +#: PO_PDFPurchOrder.php:115 +#: PrintCustOrder_generic.php:178 +#: PrintCustOrder.php:179 +#: PrintDeliveryNote.php:175 +#: SalesAnalysis_UserDefined.php:36 +#: SalesAnalysis_UserDefined.php:54 +#: SelectCreditItems.php:25 +#: StockCheck.php:41 +#: StockCheck.php:62 +#: StockCheck.php:91 +#: StockCheck.php:141 +#: StockCheck.php:185 +#: StockCheck.php:254 +#: SupplierBalsAtPeriodEnd.php:59 +#: SuppPaymentRun.php:109 +#: SuppPaymentRun.php:177 +#: SuppPaymentRun.php:208 +#: Tax.php:64 +#: Tax.php:159 +#: Z_DataExport.php:73 +#: Z_DataExport.php:169 +#: Z_DataExport.php:260 +#: Z_DataExport.php:309 +#: Z_DataExport.php:348 +#: Z_DataExport.php:384 +#: Z_DataExport.php:420 +#: Z_DataExport.php:474 +#: Z_poRebuildDefault.php:38 +#: includes/PDFPaymentRun_PymtFooter.php:55 +#: includes/PDFPaymentRun_PymtFooter.php:85 +#: includes/PDFPaymentRun_PymtFooter.php:114 +#: includes/PDFPaymentRun_PymtFooter.php:152 +#: includes/PDFPaymentRun_PymtFooter.php:184 +#: includes/PDFPaymentRun_PymtFooter.php:216 +#: includes/ConstructSQLForUserDefinedSalesReport.inc:180 +#: includes/ConstructSQLForUserDefinedSalesReport.inc:188 +#: includes/ConstructSQLForUserDefinedSalesReport.inc:340 +msgid "Back to the menu" +msgstr "Inapoi la meniu" + +#: AgedDebtors.php:364 +msgid "The details of outstanding transactions for customer" +msgstr "" + +#: AgedDebtors.php:364 +#: AgedSuppliers.php:186 +#: GLAccountInquiry.php:145 +#: PO_Items.php:364 +#: PO_Items.php:394 +#: PO_Items.php:496 +#: PO_Items.php:568 +#: PO_Items.php:659 +#: SalesAnalReptCols.php:349 +#: SpecialOrder.php:363 +#: StockLocTransferReceive.php:369 +#: StockQuantityByDate.php:103 +#: includes/SelectOrderItems_IntoCart.inc:49 +msgid "could not be retrieved because" +msgstr "" + +#: AgedDebtors.php:367 +#: AgedSuppliers.php:189 +#: Areas.php:96 +#: ConfirmDispatch_Invoice.php:153 +#: ConfirmDispatch_Invoice.php:905 +#: ConfirmDispatch_Invoice.php:919 +#: Credit_Invoice.php:678 +#: Credit_Invoice.php:700 +#: CustomerReceipt.php:460 +#: CustomerReceipt.php:595 +#: CustomerReceipt.php:623 +#: CustomerTransInquiry.php:77 +#: DeliveryNote.php:151 +#: GLProfit_Loss.php:542 +#: Payments.php:292 +#: PurchData.php:36 +#: PurchData.php:94 +#: PurchData.php:115 +#: ReverseGRN.php:143 +#: ReverseGRN.php:157 +#: ReverseGRN.php:318 +#: SelectCreditItems.php:1388 +#: StockCheck.php:215 +#: StockCostUpdate.php:78 +#: StockCostUpdate.php:88 +#: StockLocStatus.php:126 +#: StockMovements.php:91 +#: StockQuantityByDate.php:79 +#: StockReorderLevel.php:40 +#: StockStatus.php:263 +#: StockTransfers.php:153 +#: StockUsageGraph.php:52 +#: StockUsage.php:124 +#: SupplierInquiry.php:78 +#: SupplierInquiry.php:99 +#: SupplierInquiry.php:129 +#: SupplierInquiry.php:174 +#: SupplierTransInquiry.php:79 +#: SuppPaymentRun.php:112 +#: SuppPaymentRun.php:179 +#: SuppPaymentRun.php:210 +#: WorkOrderCosting.php:381 +#: WorkOrderReceive.php:264 +#: Z_ChangeBranchCode.php:108 +#: Z_ChangeCustomerCode.php:90 +#: Z_DeleteCreditNote.php:57 +#: Z_DeleteInvoice.php:83 +#: includes/PDFPaymentRun_PymtFooter.php:57 +#: includes/PDFPaymentRun_PymtFooter.php:87 +#: includes/PDFPaymentRun_PymtFooter.php:116 +#: includes/PDFPaymentRun_PymtFooter.php:154 +#: includes/PDFPaymentRun_PymtFooter.php:186 +#: includes/PDFPaymentRun_PymtFooter.php:218 +#: includes/ConnectDB_mysqli.inc:55 +#: includes/ConnectDB_mysql.inc:38 +msgid "The SQL that failed was" +msgstr "" + +#: AgedDebtors.php:432 +msgid "There are no customers meeting the critiera specified to list" +msgstr "" + +#: AgedDebtors.php:452 +msgid "Aged Debtor Analysis" +msgstr "" + +#: AgedDebtors.php:461 +#: DebtorsAtPeriodEnd.php:132 +msgid "From Customer Code" +msgstr "" + +#: AgedDebtors.php:462 +#: DebtorsAtPeriodEnd.php:133 +msgid "To Customer Code" +msgstr "" + +#: AgedDebtors.php:464 +#: AgedSuppliers.php:280 +msgid "All balances or overdues only" +msgstr "" + +#: AgedDebtors.php:465 +msgid "All customers with balances" +msgstr "" + +#: AgedDebtors.php:466 +#: AgedSuppliers.php:283 +msgid "Overdue accounts only" +msgstr "" + +#: AgedDebtors.php:467 +msgid "Held accounts only" +msgstr "" + +#: AgedDebtors.php:470 +msgid "Only Show Customers Of" +msgstr "" + +#: AgedDebtors.php:482 +msgid "Only show customers trading in" +msgstr "" + +#: AgedDebtors.php:498 +msgid "Summary or detailed report" +msgstr "" + +#: AgedDebtors.php:500 +#: AgedSuppliers.php:303 +#: InventoryValuation.php:239 +msgid "Summary Report" +msgstr "" + +#: AgedDebtors.php:501 +#: AgedSuppliers.php:304 +#: InventoryValuation.php:240 +msgid "Detailed Report" +msgstr "" + +#: AgedDebtors.php:504 +#: AgedSuppliers.php:307 +#: BOMListing.php:136 +#: DebtorsAtPeriodEnd.php:150 +#: GLBalanceSheet.php:48 +#: InventoryPlanning.php:389 +#: InventoryValuation.php:243 +#: OutstandingGRNs.php:165 +#: PDFCustomerList.php:422 +#: PDFLowGP.php:146 +#: PDFPriceList.php:245 +#: PDFStockCheckComparison.php:370 +#: PrintCustTrans.php:609 +#: PrintCustTransPortrait.php:620 +#: SupplierBalsAtPeriodEnd.php:152 +#: Tax.php:331 +msgid "Print PDF" +msgstr "Afiseaza PDF" + +#: AgedSuppliers.php:17 +msgid "Aged Supplier Listing" +msgstr "" + +#: AgedSuppliers.php:18 +msgid "Aged Suppliers" +msgstr "" + +#: AgedSuppliers.php:104 +msgid "Aged Supplier Account Analysis" +msgstr "" + +#: AgedSuppliers.php:106 +#: SupplierBalsAtPeriodEnd.php:58 +msgid "The Supplier details could not be retrieved by the SQL because" +msgstr "" + +#: AgedSuppliers.php:184 +msgid "Aged Supplier Account Analysis - Problem Report" +msgstr "" + +#: AgedSuppliers.php:186 +msgid "The details of outstanding transactions for Supplier" +msgstr "" + +#: AgedSuppliers.php:264 +msgid "Aged Supplier Analysis" +msgstr "" + +#: AgedSuppliers.php:273 +#: OutstandingGRNs.php:160 +#: SupplierBalsAtPeriodEnd.php:129 +#: SuppPaymentRun.php:262 +msgid "From Supplier Code" +msgstr "" + +#: AgedSuppliers.php:276 +#: OutstandingGRNs.php:162 +#: SupplierBalsAtPeriodEnd.php:131 +#: SuppPaymentRun.php:264 +msgid "To Supplier Code" +msgstr "" + +#: AgedSuppliers.php:282 +msgid "All suppliers with balances" +msgstr "" + +#: AgedSuppliers.php:286 +msgid "For suppliers trading in" +msgstr "" + +#: AgedSuppliers.php:301 +#: InventoryValuation.php:238 +msgid "Summary or Detailed Report" +msgstr "" + +#: Areas.php:7 +msgid "Sales Area Maintenance" +msgstr "Reglaje Vanzari" + +#: Areas.php:40 +msgid "The area code must be three characters or less long" +msgstr "" + +#: Areas.php:45 +msgid "The area code entered already exists" +msgstr "" + +#: Areas.php:50 +msgid "The area description must be twenty five characters or less long" +msgstr "" + +#: Areas.php:55 +msgid "The area code may not be empty" +msgstr "" + +#: Areas.php:60 +msgid "The area description may not be empty" +msgstr "" + +#: Areas.php:74 +msgid "Area code" +msgstr "" + +#: Areas.php:88 +msgid "New area code" +msgstr "" + +#: Areas.php:88 +msgid "has been inserted" +msgstr "" + +#: Areas.php:95 +msgid "The area could not be added or updated because" +msgstr "" + +#: Areas.php:116 +msgid "Cannot delete this area because customer branches have been created using this area" +msgstr "" + +#: Areas.php:117 +msgid "branches using this area code" +msgstr "" + +#: Areas.php:125 +msgid "Cannot delete this area because sales analysis ecords exist that use this area" +msgstr "" + +#: Areas.php:126 +msgid "sales analysis records referring this area code" +msgstr "" + +#: Areas.php:133 +#: Areas.php:146 +#: Areas.php:197 +#: Areas.php:208 +msgid "Area Code" +msgstr "" + +#: Areas.php:133 +#: CustomerTypes.php:147 +#: Factors.php:135 +#: GLAccounts.php:203 +#: Locations.php:298 +#: SalesAnalReptCols.php:214 +#: SalesCategories.php:137 +#: SalesTypes.php:161 +#: StockCategories.php:182 +#: Suppliers.php:588 +#: Z_DeleteInvoice.php:142 +msgid "has been deleted" +msgstr "" + +#: Areas.php:147 +#: Areas.php:213 +msgid "Area Name" +msgstr "" + +#: Areas.php:173 +msgid "Review Areas Defined" +msgstr "" + +#: AuditTrail.php:7 +msgid "Audit Trail" +msgstr "" + +#: AuditTrail.php:19 +msgid "Incorrerct date format used, please re-enter" +msgstr "" + +#: AuditTrail.php:32 +msgid "From Date" +msgstr "Din Data" + +#: AuditTrail.php:34 +msgid "To Date" +msgstr "In Data" + +#: AuditTrail.php:38 +#: UserSettings.php:100 +msgid "User ID" +msgstr "ID Utilizator" + +#: AuditTrail.php:51 +msgid "Table " +msgstr "Tabel" + +#: AuditTrail.php:62 +#: PO_SelectPurchOrder.php:376 +msgid "View" +msgstr "Vizionare" + +#: AuditTrail.php:139 +msgid "Date/Time" +msgstr "Data/Ora" + +#: AuditTrail.php:140 +msgid "User" +msgstr "Utilizator" + +#: AuditTrail.php:141 +#: BankReconciliation.php:182 +#: BankReconciliation.php:254 +#: CustomerAllocations.php:371 +#: CustomerInquiry.php:182 +#: CustomerTransInquiry.php:18 +#: CustomerTransInquiry.php:83 +#: CustWhereAlloc.php:13 +#: CustWhereAlloc.php:80 +#: GLAccountInquiry.php:151 +#: GLJournal.php:250 +#: SelectCustomer.php:443 +#: ShipmentCosting.php:492 +#: ShipmentCosting.php:563 +#: StockCategories.php:202 +#: StockLocMovements.php:77 +#: StockMovements.php:97 +#: SupplierAllocations.php:464 +#: SupplierInquiry.php:189 +#: SupplierTransInquiry.php:16 +#: SupplierTransInquiry.php:84 +#: Z_CheckAllocationsFrom.php:27 +#: Z_CheckAllocationsFrom.php:50 +#: Z_CheckAllocs.php:59 +#: Z_CheckGLTransBalance.php:12 +#: includes/InputSerialItemsFile.php:86 +#: includes/InputSerialItemsFile.php:126 +#: includes/PDFTaxPageHeader.inc:33 +msgid "Type" +msgstr "Tip" + +#: AuditTrail.php:142 +msgid "Table" +msgstr "Tabel" + +#: AuditTrail.php:143 +msgid "Field Name" +msgstr "Nume de camp" + +#: AuditTrail.php:144 +#: SystemParameters.php:269 +#: includes/PDFInventoryValnPageHeader.inc:38 +#: includes/PDFOstdgGRNsPageHeader.inc:37 +msgid "Value" +msgstr "" + +#: AuditTrail.php:181 +#: Logout.php:11 +#: SalesCategories.php:171 +#: SalesCategories.php:186 +#: SalesCategories.php:388 +#: SalesCategories.php:390 +#: SalesCategories.php:437 +#: SalesCategories.php:438 +#: Stocks.php:614 +#: includes/Login.php:16 +#: includes/ConnectDB_postgres.inc:124 +msgid "ISO-8859-1" +msgstr "" + +#: BankAccounts.php:8 +msgid "Bank Accounts Maintenance" +msgstr "" + +#: BankAccounts.php:43 +msgid "The bank account code already exists in the database" +msgstr "" + +#: BankAccounts.php:49 +msgid "The bank account name must be fifty characters or less long" +msgstr "" + +#: BankAccounts.php:55 +msgid "The bank account name may not be empty." +msgstr "" + +#: BankAccounts.php:61 +msgid "The bank account number may not be empty." +msgstr "" + +#: BankAccounts.php:67 +msgid "The bank account number must be fifty characters or less long" +msgstr "" + +#: BankAccounts.php:73 +msgid "The bank address must be fifty characters or less long" +msgstr "" + +#: BankAccounts.php:90 +msgid "Note that it is not possible to change the currency of the account once there are transactions against it" +msgstr "" + +#: BankAccounts.php:100 +msgid "The bank account details have been updated" +msgstr "" + +#: BankAccounts.php:117 +msgid "The new bank account has been entered" +msgstr "" + +#: BankAccounts.php:122 +msgid "The bank account could not be inserted or modified because" +msgstr "" + +#: BankAccounts.php:123 +msgid "The SQL used to insert/modify the bank account details was" +msgstr "" + +#: BankAccounts.php:148 +msgid "Cannot delete this bank account because transactions have been created using this account" +msgstr "" + +#: BankAccounts.php:149 +msgid "transactions with this bank account code" +msgstr "" + +#: BankAccounts.php:155 +msgid "Bank account deleted" +msgstr "" + +#: BankAccounts.php:174 +msgid "The bank accounts set up could not be retreived because" +msgstr "" + +#: BankAccounts.php:175 +msgid "The SQL used to retrieve the bank account details was" +msgstr "" + +#: BankAccounts.php:180 +#: COGSGLPostings.php:194 +#: CustomerReceipt.php:886 +#: GLJournal.php:352 +#: GLTransInquiry.php:48 +#: index.php:1028 +#: Payments.php:808 +#: SupplierTransInquiry.php:144 +#: TaxAuthorities.php:146 +#: TaxAuthorities.php:147 +msgid "GL Account" +msgstr "" + +#: BankAccounts.php:181 +#: GLAccounts.php:239 +#: GLAccounts.php:296 +#: GLBalanceSheet.php:356 +#: GLCodesInquiry.php:28 +#: GLCodesInquiry.php:66 +#: GLProfit_Loss.php:554 +#: GLTrialBalance.php:405 +#: SelectGLAccount.php:111 +#: includes/PDFProfitAndLossPageHeader.inc:31 +#: includes/PDFTrialBalancePageHeader.inc:28 +msgid "Account Name" +msgstr "Nume Cont" + +#: BankAccounts.php:182 +#: includes/PDFBankingSummaryPageHeader.inc:38 +msgid "Account Number" +msgstr "Numar Cont" + +#: BankAccounts.php:183 +#: BankAccounts.php:296 +msgid "Bank Address" +msgstr "Adresa Bancii" + +#: BankAccounts.php:184 +#: CustomerReceipt.php:691 +#: CustomerTransInquiry.php:93 +#: PO_Header.php:313 +#: PO_SelectOSPurchOrder.php:391 +#: PO_SelectPurchOrder.php:378 +#: Prices.php:156 +#: Prices.php:222 +#: PurchData.php:206 +#: PurchData.php:351 +#: PurchData.php:465 +#: SelectSupplier.php:305 +#: SupplierCredit.php:207 +#: SupplierInvoice.php:192 +#: SupplierTransInquiry.php:93 +#: includes/PDFBankingSummaryPageHeader.inc:42 +#: includes/PDFDebtorBalsPageHeader.inc:36 +#: includes/PDFSupplierBalsPageHeader.inc:36 +msgid "Currency" +msgstr "" + +#: BankAccounts.php:225 +msgid "Show All Bank Accounts Defined" +msgstr "" + +#: BankAccounts.php:253 +#: BankAccounts.php:256 +msgid "Bank Account GL Code" +msgstr "" + +#: BankAccounts.php:292 +msgid "Bank Account Name" +msgstr "" + +#: BankAccounts.php:294 +msgid "Bank Account Number" +msgstr "" + +#: BankAccounts.php:298 +msgid "Currency Of Account" +msgstr "Valuta contului" + +#: BankMatching.php:10 +#: Z_CheckDebtorsControl.php:79 +msgid "Receipts" +msgstr "Plati" + +#: BankMatching.php:11 +msgid "Bank Account Deposits Matching" +msgstr "" + +#: BankMatching.php:14 +msgid "Payments" +msgstr "Achitari" + +#: BankMatching.php:15 +#: index.php:970 +msgid "Bank Account Payments Matching" +msgstr "" + +#: BankMatching.php:17 +msgid "This page must be called with a bank transaction type" +msgstr "" + +#: BankMatching.php:17 +msgid "It should not be called directly" +msgstr "" + +#: BankMatching.php:32 +msgid "Could not retrieve transaction information" +msgstr "" + +#: BankMatching.php:39 +msgid "Could not match off this payment beacause" +msgstr "" + +#: BankMatching.php:49 +msgid "Could not update the amount matched off this bank transaction because" +msgstr "" + +#: BankMatching.php:55 +msgid "Could not unclear this bank transaction because" +msgstr "" + +#: BankMatching.php:63 +msgid "Bank Matching" +msgstr "" + +#: BankMatching.php:63 +msgid "Bank Account Matching" +msgstr "" + +#: BankMatching.php:64 +msgid "Use this screen to match webERP deposits and receipts to your Bank Statement." +msgstr "" + +#: BankMatching.php:71 +#: BankReconciliation.php:94 +#: CustomerReceipt.php:661 +#: Payments.php:674 +#: PDFChequeListing.php:40 +#: TaxAuthorities.php:149 +#: TaxAuthorities.php:296 +msgid "Bank Account" +msgstr "" + +#: BankMatching.php:92 +msgid "Show" +msgstr "Vizionare" + +#: BankMatching.php:92 +#: BankMatching.php:127 +msgid "before" +msgstr "Inainte" + +#: BankMatching.php:94 +msgid "but after" +msgstr "" + +#: BankMatching.php:96 +msgid "Choose outstanding" +msgstr "" + +#: BankMatching.php:96 +msgid "only or all" +msgstr "" + +#: BankMatching.php:96 +#: BankMatching.php:100 +#: BankMatching.php:103 +#: BankMatching.php:111 +#: BankMatching.php:114 +msgid "in the date range" +msgstr "" + +#: BankMatching.php:100 +#: BankMatching.php:103 +#: BankMatching.php:111 +#: BankMatching.php:114 +msgid "Show all" +msgstr "Vizionare integrala" + +#: BankMatching.php:101 +#: BankMatching.php:104 +msgid "Show unmatched" +msgstr "" + +#: BankMatching.php:101 +#: BankMatching.php:104 +#: ReverseGRN.php:102 +#: includes/PDFCustomerListPageHeader.inc:46 +#: includes/PDFDeliveryDifferencesPageHeader.inc:24 +#: includes/PDFDIFOTPageHeader.inc:24 +#: includes/PDFOrdersInvoicedPageHeader.inc:24 +#: includes/PDFOrderStatusPageHeader.inc:24 +msgid "only" +msgstr "" + +#: BankMatching.php:108 +msgid "Choose to display only the first 20 matching" +msgstr "" + +#: BankMatching.php:109 +msgid "or all" +msgstr "" + +#: BankMatching.php:109 +msgid "meeting the criteria" +msgstr "" + +#: BankMatching.php:112 +#: BankMatching.php:115 +msgid "Show only the first 20" +msgstr "" + +#: BankMatching.php:120 +msgid "Show selected" +msgstr "Afiseaza selectia" + +#: BankMatching.php:121 +msgid "Show reconciliation" +msgstr "" + +#: BankMatching.php:127 +#: BankMatching.php:133 +msgid "The date entered for the field to show" +msgstr "" + +#: BankMatching.php:128 +#: BankMatching.php:134 +msgid "is not entered in a recognised date format" +msgstr "" + +#: BankMatching.php:128 +#: BankMatching.php:134 +msgid "Entry is expected in the format" +msgstr "" + +#: BankMatching.php:133 +msgid "after" +msgstr "dupa" + +#: BankMatching.php:207 +msgid "The payments with the selected criteria could not be retrieved because" +msgstr "" + +#: BankMatching.php:210 +#: ShipmentCosting.php:493 +#: ShipmentCosting.php:564 +#: SupplierAllocations.php:467 +msgid "Ref" +msgstr "" + +#: BankMatching.php:213 +#: ConfirmDispatch_Invoice.php:268 +#: Credit_Invoice.php:273 +#: CustomerAllocations.php:374 +#: CustomerReceipt.php:778 +#: CustomerTransInquiry.php:92 +#: CustWhereAlloc.php:84 +#: PaymentAllocations.php:74 +#: Payments.php:807 +#: Payments.php:903 +#: Payments.php:905 +#: PrintCheque.php:65 +#: PrintCheque.php:79 +#: SelectCreditItems.php:671 +#: SuppInvGLAnalysis.php:50 +#: SuppInvGLAnalysis.php:74 +#: SupplierAllocations.php:468 +#: SupplierCredit.php:304 +#: SupplierInvoice.php:269 +#: SupplierInvoice.php:299 +#: SupplierTransInquiry.php:92 +#: SuppShiptChgs.php:71 +#: SuppShiptChgs.php:133 +#: SuppTransGLAnalysis.php:92 +#: SuppTransGLAnalysis.php:168 +#: Z_CheckAllocs.php:63 +#: includes/PDFBankingSummaryPageHeader.inc:55 +#: includes/PDFChequeListingPageHeader.inc:37 +msgid "Amount" +msgstr "Suma" + +#: BankMatching.php:214 +#: BankReconciliation.php:186 +#: BankReconciliation.php:258 +#: PDFOrdersInvoiced.php:286 +#: PDFOrderStatus.php:258 +#: PO_SelectOSPurchOrder.php:199 +#: PO_SelectPurchOrder.php:194 +#: Shipt_Select.php:193 +#: SuppCreditGRNs.php:216 +#: includes/PDFStatementPageHeader.inc:173 +#: includes/PDFStatementPageHeader.inc:180 +msgid "Outstanding" +msgstr "" + +#: BankMatching.php:215 +msgid "Clear" +msgstr "" + +#: BankMatching.php:215 +#: BankMatching.php:244 +msgid "Unclear" +msgstr "" + +#: BankMatching.php:288 +msgid "Update Matching" +msgstr "" + +#: BankReconciliation.php:9 +msgid "Bank Reconciliation" +msgstr "" + +#: BankReconciliation.php:18 +msgid "The entry in the bank statement balance is not numeric. The balance on the bank statement should be entered. The exchange difference has not been calculated and no general ledger journal has been created" +msgstr "" + +#: BankReconciliation.php:27 +msgid "Could not retrieve the exchange rate for the selected bank account" +msgstr "" + +#: BankReconciliation.php:57 +#: BankReconciliation.php:74 +msgid "reconciliation on" +msgstr "" + +#: BankReconciliation.php:59 +msgid "Cannot insert a GL entry for the exchange difference because" +msgstr "" + +#: BankReconciliation.php:60 +msgid "The SQL that failed to insert the exchange difference GL entry was" +msgstr "" + +#: BankReconciliation.php:80 +msgid "Exchange difference of" +msgstr "" + +#: BankReconciliation.php:80 +msgid "has been posted" +msgstr "" + +#: BankReconciliation.php:90 +#: SuppPaymentRun.php:303 +msgid "The bank accounts could not be retrieved by the SQL because" +msgstr "" + +#: BankReconciliation.php:91 +#: CustomerReceipt.php:656 +#: Payments.php:671 +#: SuppPaymentRun.php:305 +msgid "The SQL used to retrieve the bank acconts was" +msgstr "" + +#: BankReconciliation.php:97 +#: CustomerReceipt.php:666 +msgid "Bank Accounts have not yet been defined" +msgstr "" + +#: BankReconciliation.php:97 +#: CustomerReceipt.php:666 +msgid "You must first" +msgstr "" + +#: BankReconciliation.php:97 +#: CustomerReceipt.php:666 +#: Payments.php:678 +#: SuppPaymentRun.php:313 +msgid "define the bank accounts" +msgstr "" + +#: BankReconciliation.php:97 +#: CustomerReceipt.php:666 +#: Payments.php:678 +#: SuppPaymentRun.php:313 +msgid "and general ledger accounts to be affected" +msgstr "" + +#: BankReconciliation.php:116 +msgid "Show bank reconciliation statement" +msgstr "" + +#: BankReconciliation.php:131 +msgid "The bank account balance could not be returned by the SQL because" +msgstr "" + +#: BankReconciliation.php:144 +msgid "Could not retrieve the currency and exchange rate for the selected bank account" +msgstr "" + +#: BankReconciliation.php:152 +msgid "Balance as at" +msgstr "" + +#: BankReconciliation.php:175 +msgid "The unpresented cheques could not be retrieved by the SQL because" +msgstr "" + +#: BankReconciliation.php:178 +msgid "Add back unpresented cheques" +msgstr "" + +#: BankReconciliation.php:183 +#: BankReconciliation.php:255 +#: CustomerAllocations.php:346 +#: CustomerAllocations.php:372 +#: CustomerInquiry.php:183 +#: CustomerTransInquiry.php:84 +#: CustWhereAlloc.php:81 +#: EmailCustTrans.php:15 +#: GLAccountInquiry.php:152 +#: PrintCustTrans.php:549 +#: PrintCustTrans.php:753 +#: PrintCustTrans.php:942 +#: PrintCustTrans.php:988 +#: PrintCustTransPortrait.php:559 +#: PrintCustTransPortrait.php:764 +#: PrintCustTransPortrait.php:953 +#: PrintCustTransPortrait.php:998 +#: StockMovements.php:97 +#: SupplierAllocations.php:465 +#: SupplierAllocations.php:577 +#: SupplierAllocations.php:647 +#: SupplierTransInquiry.php:85 +#: Z_CheckAllocs.php:60 +#: Z_CheckGLTransBalance.php:13 +#: includes/PDFQuotationPageHeader.inc:87 +#: includes/PDFStatementPageHeader.inc:168 +#: includes/PDFStatementPageHeader.inc:179 +#: includes/PDFTransPageHeader.inc:44 +#: includes/PDFTransPageHeaderPortrait.inc:51 +msgid "Number" +msgstr "Numar" + +#: BankReconciliation.php:184 +#: BankReconciliation.php:256 +#: CustomerInquiry.php:186 +#: CustomerTransInquiry.php:88 +#: CustWhereAlloc.php:82 +#: PaymentAllocations.php:71 +#: PaymentAllocations.php:72 +#: ShiptsList.php:36 +#: StockCounts.php:95 +#: StockCounts.php:131 +#: StockLocMovements.php:82 +#: StockMovements.php:100 +#: Z_CheckAllocs.php:61 +#: includes/PDFBankingSummaryPageHeader.inc:40 +#: includes/PDFStockComparisonPageHeader.inc:36 +msgid "Reference" +msgstr "" + +#: BankReconciliation.php:185 +#: BankReconciliation.php:257 +msgid "Orig Amount" +msgstr "" + +#: BankReconciliation.php:228 +msgid "Total of all unpresented cheques" +msgstr "" + +#: BankReconciliation.php:246 +msgid "The uncleared deposits could not be retrieved by the SQL because" +msgstr "" + +#: BankReconciliation.php:250 +msgid "Less deposits not cleared" +msgstr "" + +#: BankReconciliation.php:300 +msgid "Total of all uncleared deposits" +msgstr "" + +#: BankReconciliation.php:302 +msgid "Bank statement balance should be" +msgstr "" + +#: BankReconciliation.php:306 +msgid "Enter the actual bank statement balance" +msgstr "" + +#: BankReconciliation.php:308 +#: BankReconciliation.php:318 +msgid "Calculate and Post Exchange Difference" +msgstr "" + +#: BankReconciliation.php:308 +msgid "This will create a general ledger journal to write off the exchange difference in the current balance of the account. It is important that the exchange rate above reflects the current value of the bank account currency" +msgstr "" + +#: BankReconciliation.php:308 +#: Customers.php:840 +#: SelectOrderItems.php:1193 +#: Stocks.php:940 +#: WorkOrderCosting.php:495 +#: WorkOrderEntry.php:485 +msgid "Are You Sure?" +msgstr "" + +#: BankReconciliation.php:317 +msgid "It is normal for foreign currency accounts to have exchange differences that need to be reflected as the exchange rate varies. This reconciliation is prepared using the exchange rate set up in the currencies table (see the set-up tab). This table must be maintained with the current exchange rate before running the reconciliation. If you wish to create a journal to reflect the exchange difference based on the current exchange rate to correct the reconciliation to the actual bank statment balance click below." +msgstr "" + +#: BankReconciliation.php:323 +msgid "Match off cleared payments" +msgstr "" + +#: BankReconciliation.php:324 +msgid "Match off cleared deposits" +msgstr "" + +#: BOMInquiry.php:6 +msgid "Costed Bill Of Material" +msgstr "" + +#: BOMInquiry.php:17 +#: BOMs.php:779 +msgid "Select a manufactured part" +msgstr "" + +#: BOMInquiry.php:17 +#: BOMs.php:779 +msgid "or Assembly or Kit part" +msgstr "" + +#: BOMInquiry.php:18 +msgid "to view the costed bill of materials" +msgstr "" + +#: BOMInquiry.php:19 +#: BOMs.php:781 +msgid "Parts must be defined in the stock item entry" +msgstr "" + +#: BOMInquiry.php:19 +#: BOMs.php:781 +msgid "modification screen as manufactured" +msgstr "" + +#: BOMInquiry.php:20 +#: BOMs.php:782 +msgid "kits or assemblies to be available for construction of a bill of material" +msgstr "" + +#: BOMInquiry.php:21 +#: BOMs.php:783 +#: PO_SelectOSPurchOrder.php:179 +#: PO_SelectPurchOrder.php:176 +#: Shipt_Select.php:174 +#: WorkOrderEntry.php:516 +#: WorkOrderIssue.php:633 +msgid "Enter text extracts in the" +msgstr "" + +#: BOMInquiry.php:22 +#: BOMs.php:784 +#: PO_SelectOSPurchOrder.php:179 +#: PO_SelectPurchOrder.php:176 +#: Shipt_Select.php:174 +#: WorkOrderEntry.php:516 +#: WorkOrderIssue.php:633 +msgid "description" +msgstr "" + +#: BOMInquiry.php:23 +#: BOMs.php:785 +#: CustomerReceipt.php:954 +#: PO_Header.php:298 +#: PO_SelectOSPurchOrder.php:182 +#: PO_SelectPurchOrder.php:179 +#: PurchData.php:449 +#: SelectCompletedOrder.php:398 +#: SelectCreditItems.php:219 +#: SelectCreditItems.php:953 +#: SelectCustomer.php:313 +#: SelectCustomer.php:328 +#: SelectCustomer.php:344 +#: SelectGLAccount.php:96 +#: SelectOrderItems.php:563 +#: SelectOrderItems.php:566 +#: SelectOrderItems.php:1262 +#: SelectProduct.php:98 +#: SelectSalesOrder.php:186 +#: SelectSupplier.php:244 +#: SelectWorkOrder.php:183 +#: Shipt_Select.php:177 +#: WorkOrderEntry.php:519 +#: WorkOrderIssue.php:636 +msgid "OR" +msgstr "" + +#: BOMInquiry.php:23 +#: BOMs.php:785 +#: PO_SelectOSPurchOrder.php:182 +#: PO_SelectPurchOrder.php:179 +#: Shipt_Select.php:177 +#: WorkOrderEntry.php:519 +#: WorkOrderIssue.php:636 +msgid "Enter extract of the" +msgstr "" + +#: BOMInquiry.php:24 +#: BOMs.php:786 +#: DiscountCategories.php:139 +#: PO_SelectOSPurchOrder.php:182 +#: PO_SelectPurchOrder.php:179 +#: PurchData.php:176 +#: SalesCategories.php:423 +#: SelectOrderItems.php:1262 +#: SelectProduct.php:98 +#: Shipt_Select.php:177 +#: StockAdjustments.php:306 +#: StockCounts.php:93 +#: StockCounts.php:128 +#: StockMovements.php:29 +#: StockReorderLevel.php:26 +#: StockStatus.php:60 +#: StockTransfers.php:24 +#: StockTransfers.php:423 +#: StockUsage.php:55 +#: WorkOrderEntry.php:519 +#: WorkOrderIssue.php:636 +#: Z_ChangeStockCode.php:231 +msgid "Stock Code" +msgstr "Cod Inventar" + +#: BOMInquiry.php:25 +#: BOMs.php:787 +#: CustomerReceipt.php:959 +#: PO_Header.php:303 +#: PO_Items.php:970 +#: SelectCreditItems.php:224 +#: SelectCreditItems.php:958 +#: SelectCustomer.php:390 +#: SelectGLAccount.php:102 +#: SelectOrderItems.php:571 +#: SelectOrderItems.php:1266 +#: SelectProduct.php:114 +#: SelectSupplier.php:262 +#: SelectSupplier.php:299 +#: WorkOrderEntry.php:523 +#: WorkOrderIssue.php:640 +msgid "Search Now" +msgstr "Cautare" + +#: BOMInquiry.php:34 +#: BOMs.php:714 +#: PO_Items.php:229 +#: PO_SelectOSPurchOrder.php:58 +#: PO_SelectPurchOrder.php:58 +#: SelectCompletedOrder.php:76 +#: SelectCreditItems.php:286 +#: SelectProduct.php:132 +#: SelectSalesOrder.php:45 +#: SelectWorkOrder.php:38 +#: Shipt_Select.php:59 +#: WorkOrderEntry.php:43 +#: WorkOrderIssue.php:368 +msgid "Stock description keywords have been used in preference to the Stock code extract entered" +msgstr "" + +#: BOMInquiry.php:37 +#: BOMs.php:717 +msgid "At least one stock description keyword or an extract of a stock code must be entered for the search" +msgstr "Introduceti cel putin un cuvant din descriere sau o parte a codului de inventar" + +#: BOMInquiry.php:89 +#: BOMs.php:769 +msgid "The SQL to find the parts selected failed with the message" +msgstr "" + +#: BOMInquiry.php:98 +#: BOMs.php:498 +#: BOMs.php:792 +#: CustomerBranches.php:364 +#: CustomerReceipt.php:969 +#: GLCodesInquiry.php:27 +#: GLCodesInquiry.php:65 +#: PDFOrdersInvoiced.php:282 +#: PDFOrderStatus.php:254 +#: PO_Header.php:311 +#: PO_Items.php:980 +#: PO_SelectOSPurchOrder.php:196 +#: PO_SelectPurchOrder.php:191 +#: PurchData.php:463 +#: SalesPeople.php:182 +#: SelectCompletedOrder.php:411 +#: SelectCreditItems.php:231 +#: SelectCreditItems.php:966 +#: SelectCustomer.php:439 +#: SelectGLAccount.php:110 +#: SelectOrderItems.php:580 +#: SelectOrderItems.php:1281 +#: SelectProduct.php:312 +#: SelectSalesOrder.php:196 +#: SelectSupplier.php:303 +#: SelectWorkOrder.php:193 +#: Shipt_Select.php:190 +#: SpecialOrder.php:129 +#: WorkOrderEntry.php:534 +#: WorkOrderIssue.php:657 +#: includes/PDFTaxPageHeader.inc:37 +#: includes/PO_PDFOrderPageHeader.inc:142 +msgid "Code" +msgstr "Cod" + +#: BOMInquiry.php:99 +#: BOMInquiry.php:168 +#: BOMs.php:499 +#: BOMs.php:793 +#: CreditStatus.php:150 +#: CreditStatus.php:233 +#: GLTags.php:35 +#: GLTags.php:51 +#: GLTransInquiry.php:51 +#: GoodsReceived.php:51 +#: PaymentTerms.php:177 +#: PDFOrdersInvoiced.php:283 +#: PDFOrderStatus.php:255 +#: PO_Items.php:831 +#: PO_Items.php:981 +#: PO_SelectOSPurchOrder.php:197 +#: PO_SelectPurchOrder.php:192 +#: ReverseGRN.php:329 +#: SalesCategories.php:424 +#: SelectCompletedOrder.php:412 +#: SelectCreditItems.php:967 +#: SelectOrderItems.php:1259 +#: SelectOrderItems.php:1282 +#: SelectProduct.php:82 +#: SelectProduct.php:313 +#: SelectSalesOrder.php:197 +#: SelectWorkOrder.php:194 +#: Shipt_Select.php:191 +#: StockCategories.php:201 +#: StockLocStatus.php:133 +#: StockQuantityByDate.php:89 +#: SuppCreditGRNs.php:72 +#: SuppCreditGRNs.php:144 +#: SuppInvGRNs.php:110 +#: SuppInvGRNs.php:268 +#: SupplierCredit.php:250 +#: SupplierInvoice.php:239 +#: TaxAuthorities.php:145 +#: WorkCentres.php:125 +#: WorkOrderCosting.php:80 +#: WorkOrderCosting.php:110 +#: WorkOrderEntry.php:535 +#: WorkOrderIssue.php:658 +#: includes/PDFGrnHeader.inc:37 +#: includes/PDFOstdgGRNsPageHeader.inc:32 +#: includes/PDFStockLocTransferHeader.inc:48 +#: includes/PDFStockTransferHeader.inc:36 +#: includes/PDFTransPageHeader.inc:207 +#: includes/PDFTransPageHeaderPortrait.inc:259 +msgid "Description" +msgstr "Descriere" + +#: BOMInquiry.php:100 +#: BOMs.php:794 +#: PO_SelectOSPurchOrder.php:198 +#: PO_SelectPurchOrder.php:193 +#: SelectCompletedOrder.php:413 +#: SelectOrderItems.php:1284 +#: SelectSalesOrder.php:198 +#: SelectWorkOrder.php:195 +#: Shipt_Select.php:192 +msgid "On Hand" +msgstr "In depozit" + +#: BOMInquiry.php:101 +#: BOMs.php:795 +#: ConfirmDispatch_Invoice.php:260 +#: Credit_Invoice.php:266 +#: DeliveryNote.php:226 +#: GoodsReceived.php:53 +#: PO_Items.php:982 +#: PO_SelectOSPurchOrder.php:200 +#: PO_SelectPurchOrder.php:195 +#: SelectCompletedOrder.php:416 +#: SelectCreditItems.php:968 +#: SelectOrderItems.php:1283 +#: SelectProduct.php:315 +#: SelectProduct.php:465 +#: SelectSalesOrder.php:199 +#: SelectWorkOrder.php:196 +#: Shipments.php:381 +#: Shipments.php:457 +#: Shipt_Select.php:194 +#: StockLocTransferReceive.php:426 +#: WorkOrderCosting.php:82 +#: WorkOrderEntry.php:536 +#: WorkOrderIssue.php:659 +#: WorkOrderIssue.php:731 +msgid "Units" +msgstr "Unitati" + +#: BOMInquiry.php:144 +msgid "per" +msgstr "" + +#: BOMInquiry.php:158 +msgid "The bill of material could not be retrieved because" +msgstr "" + +#: BOMInquiry.php:162 +msgid "The bill of material for this part is not set up" +msgstr "" + +#: BOMInquiry.php:162 +msgid "there are no components defined for it" +msgstr "" + +#: BOMInquiry.php:167 +#: BOMs.php:563 +#: WorkOrderReceive.php:140 +#: WorkOrderReceive.php:367 +msgid "Component" +msgstr "Component" + +#: BOMInquiry.php:169 +#: BOMs.php:502 +#: BOMs.php:654 +#: Credit_Invoice.php:267 +#: DeliveryDetails.php:512 +#: DeliveryDetails.php:577 +#: GoodsReceived.php:52 +#: GoodsReceived.php:55 +#: OrderDetails.php:149 +#: PDFOrdersInvoiced.php:326 +#: PO_Items.php:733 +#: PrintCustTrans.php:876 +#: PrintCustTrans.php:960 +#: PrintCustTrans.php:1005 +#: PrintCustTransPortrait.php:888 +#: PrintCustTransPortrait.php:971 +#: PrintCustTransPortrait.php:1015 +#: RecurringSalesOrders.php:311 +#: ReverseGRN.php:331 +#: ReverseGRN.php:332 +#: SalesAnalReptCols.php:18 +#: SalesAnalReptCols.php:20 +#: SalesGraph.php:162 +#: SalesGraph.php:242 +#: SelectCreditItems.php:663 +#: SelectCreditItems.php:1012 +#: SelectOrderItems.php:1120 +#: SelectOrderItems.php:1288 +#: SelectOrderItems.php:1422 +#: ShipmentCosting.php:135 +#: ShipmentCosting.php:136 +#: Shipments.php:380 +#: Shipments.php:382 +#: Shipments.php:383 +#: Shipments.php:456 +#: Shipments.php:458 +#: SpecialOrder.php:541 +#: StockCounts.php:94 +#: StockLocMovements.php:81 +#: StockLocTransfer.php:170 +#: StockMovements.php:99 +#: StockStatus.php:301 +#: StockUsageGraph.php:11 +#: SuppCreditGRNs.php:216 +#: SuppCreditGRNs.php:217 +#: SupplierCredit.php:251 +#: includes/InputSerialItems.php:92 +#: includes/PDFBOMListingPageHeader.inc:44 +#: includes/PDFDeliveryDifferencesPageHeader.inc:43 +#: includes/PDFDIFOTPageHeader.inc:42 +#: includes/PDFGrnHeader.inc:40 +#: includes/PDFInventoryValnPageHeader.inc:33 +#: includes/PDFOrderPageHeader_generic.inc:93 +#: includes/PDFQuotationPageHeader.inc:102 +#: includes/PDFStockNegativesHeader.inc:32 +#: includes/PDFStockTransferHeader.inc:39 +#: includes/PDFTransPageHeader.inc:209 +#: includes/PO_PDFOrderPageHeader.inc:144 +msgid "Quantity" +msgstr "Numar/cantitate" + +#: BOMInquiry.php:170 +#: SpecialOrder.php:627 +#: StockAdjustments.php:309 +#: includes/PDFInventoryValnPageHeader.inc:34 +msgid "Unit Cost" +msgstr "Costul unitatii" + +#: BOMInquiry.php:171 +#: BOMInquiry.php:213 +#: SpecialOrder.php:544 +#: SpecialOrder.php:546 +msgid "Total Cost" +msgstr "Costul total" + +#: BOMInquiry.php:220 +msgid "Enter a stock item code above" +msgstr "" + +#: BOMInquiry.php:220 +msgid "to view the costed bill of material for" +msgstr "" + +#: BOMListing.php:16 +#: BOMListing.php:17 +#: BOMListing.php:122 +msgid "Bill Of Material Listing" +msgstr "Vizionare bon de producere" + +#: BOMListing.php:46 +#: BOMListing.php:57 +msgid "Bill of Materials Listing" +msgstr "Vizionare bonuri de producere" + +#: BOMListing.php:48 +msgid "The Bill of Material listing could not be retrieved by the SQL because" +msgstr "" + +#: BOMListing.php:59 +msgid "The Bill of Material listing has no bills to report on" +msgstr "" + +#: BOMListing.php:124 +#: BOMs.php:213 +#: BOMs.php:777 +#: GLBudgets.php:29 +#: GLJournal.php:236 +#: PO_SelectOSPurchOrder.php:136 +#: SelectCompletedOrder.php:13 +#: SelectCustomer.php:295 +#: SelectGLAccount.php:85 +#: SelectOrderItems.php:553 +#: SelectProduct.php:58 +#: SelectSalesOrder.php:159 +#: SelectSupplier.php:13 +#: Sel... [truncated message content] |
From: <tim...@us...> - 2010-01-29 10:21:06
|
Revision: 3332 http://web-erp.svn.sourceforge.net/web-erp/?rev=3332&view=rev Author: tim_schofield Date: 2010-01-29 10:21:00 +0000 (Fri, 29 Jan 2010) Log Message: ----------- Zhiguo Yuan: SupplierCredit.php - Bring credit note scrpt in line with the invoice script Modified Paths: -------------- trunk/SupplierCredit.php trunk/doc/Change.log.html Modified: trunk/SupplierCredit.php =================================================================== --- trunk/SupplierCredit.php 2010-01-29 10:03:57 UTC (rev 3331) +++ trunk/SupplierCredit.php 2010-01-29 10:21:00 UTC (rev 3332) @@ -32,10 +32,23 @@ include('includes/header.inc'); include('includes/SQL_CommonFunctions.inc'); -echo "<a href='" . $rootpath . '/SelectSupplier.php?' . SID . "'>" . _('Back to Suppliers') . '</a><br>'; +//this is available from the menu on this page already +//echo "<a href='" . $rootpath . '/SelectSupplier.php?' . SID . "'>" . _('Back to Suppliers') . '</a><br>'; -if (isset($_GET['SupplierID'])){ +if (!isset($_SESSION['SuppTrans']->SupplierName)) { + $sql='SELECT suppname FROM suppliers WHERE supplierid="'.$_GET['SupplierID'].'"'; + $result = DB_query($sql,$db); + $myrow = DB_fetch_row($result); + $SupplierName=$myrow[0]; +} else { + $SupplierName=$_SESSION['SuppTrans']->SupplierName; +} +echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Supplier Credit Note') . '" alt="">' . ' ' + . _('Enter Supplier Credit Note:') . ' ' . $SupplierName; +echo '</div>'; +if (isset($_GET['SupplierID']) and $_GET['SupplierID']!=''){ + /*It must be a new credit note entry - clear any existing credit note details from the SuppTrans object and initiate a newy*/ if (isset($_SESSION['SuppTrans'])){ @@ -45,11 +58,17 @@ unset ($_SESSION['SuppTrans']); } + if (isset( $_SESSION['SuppTransTmp'])){ + unset ( $_SESSION['SuppTransTmp']->GRNs); + unset ( $_SESSION['SuppTransTmp']->GLCodes); + unset ( $_SESSION['SuppTransTmp']); + } $_SESSION['SuppTrans'] = new SuppTrans; /*Now retrieve supplier information - name, currency, default ex rate, terms, tax rate etc */ $sql = "SELECT suppliers.suppname, + suppliers.supplierid, paymentterms.terms, paymentterms.daysbeforedue, paymentterms.dayinfollowingmonth, @@ -67,20 +86,23 @@ AND suppliers.paymentterms=paymentterms.termsindicator AND suppliers.supplierid = '" . $_GET['SupplierID'] . "'"; - $ErrMsg = _('The supplier record selected') . ': ' . $_GET['SupplierID'] . ' ' . _('cannot be retrieved because'); - $DbgMsg = _('The SQL used to retrieve the supplier details and failed was'); - $result = DB_query($sql, $db, $ErrMsg, $DbgMsg); + $ErrMsg = _('The supplier record selected') . ': ' . $_GET['SupplierID'] . ' ' ._('cannot be retrieved because'); + $DbgMsg = _('The SQL used to retrieve the supplier details and failed was'); - $myrow = DB_fetch_array($result); + $result = DB_query($sql, $db, $ErrMsg, $DbgMsg); - $_SESSION['SuppTrans']->SupplierName = $myrow['suppname']; - $_SESSION['SuppTrans']->TermsDescription = $myrow['terms']; - $_SESSION['SuppTrans']->CurrCode = $myrow['currcode']; - $_SESSION['SuppTrans']->ExRate = $myrow['exrate']; + + $myrow = DB_fetch_array($result); + + $_SESSION['SuppTrans']->SupplierName = $myrow['suppname']; + $_SESSION['SuppTrans']->TermsDescription = $myrow['terms']; + $_SESSION['SuppTrans']->CurrCode = $myrow['currcode']; + $_SESSION['SuppTrans']->ExRate = $myrow['exrate']; $_SESSION['SuppTrans']->TaxGroup = $myrow['taxgroupid']; $_SESSION['SuppTrans']->TaxGroupDescription = $myrow['taxgroupdescription']; + $_SESSION['SuppTrans']->SupplierID = $myrow['supplierid']; - if ($myrow['daysbeforedue'] == 0){ + if ($myrow['daysbeforedue'] == 0){ $_SESSION['SuppTrans']->Terms = '1' . $myrow['dayinfollowingmonth']; } else { $_SESSION['SuppTrans']->Terms = '0' . $myrow['daysbeforedue']; @@ -106,11 +128,14 @@ $_SESSION['SuppTrans']->GLLink_Creditors = $_SESSION['CompanyRecord']['gllink_creditors']; $_SESSION['SuppTrans']->GRNAct = $_SESSION['CompanyRecord']['grnact']; $_SESSION['SuppTrans']->CreditorsAct = $_SESSION['CompanyRecord']['creditorsact']; + $_SESSION['SuppTrans']->InvoiceOrCredit = 'Credit Note'; } elseif (!isset($_SESSION['SuppTrans'])){ + prnMsg(_('To enter a supplier credit note the supplier must first be selected from the supplier selection screen'),'warn'); echo "<br><a href='$rootpath/SelectSupplier.php?" . SID ."'>" . _('Select A Supplier to Enter an Credit Note For') . '</a>'; + include('includes/footer.inc'); exit; /*It all stops here if there aint no supplier selected */ @@ -131,9 +156,9 @@ $_SESSION['SuppTrans']->SuppReference = $_POST['SuppReference']; - if (!isset($_POST['OvAmount'])) { + /*if (!isset($_POST['OvAmount'])) { $_POST['OvAmount'] = 0; - } + }*/ if ( $_SESSION['SuppTrans']->GLLink_Creditors == 1){ @@ -221,14 +246,14 @@ echo '<table>'; echo '<tr><td><font color=red>' . _('Supplier Credit Note Reference') . ":</font></td> - <td><font size=2><input type=TEXT size=20 maxlength=20 name=SuppReference VALUE='" . $_SESSION['SuppTrans']->SuppReference . "'></td></tr>"; + <td><font size=2><input type=TEXT size=20 maxlength=20 name=SuppReference VALUE='" . $_SESSION['SuppTrans']->SuppReference . "'></td>"; if (!isset($_SESSION['SuppTrans']->TranDate)){ $_SESSION['SuppTrans']->TranDate= Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))); } -echo '<tr><td><font color=red>' . _('Credit Note Date') . ' (' . _('in format') . ' ' . $_SESSION['DefaultDateFormat'] . ") :</font></td> - <td><input type=TEXT class='date' alt='".$_SESSION['DefaultDateFormat']. "' size=11 maxlength=10 name='TranDate' VALUE=" . $_SESSION['SuppTrans']->TranDate . '></td></tr>'; -echo '<tr><td><font color=red>' . _('Exchange Rate') . ":</font></td> +echo '<td><font color=red>' . _('Credit Note Date') . ' (' . _('in format') . ' ' . $_SESSION['DefaultDateFormat'] . ") :</font></td> + <td><input type=TEXT class='date' alt='".$_SESSION['DefaultDateFormat']. "' size=11 maxlength=10 name='TranDate' VALUE=" . $_SESSION['SuppTrans']->TranDate . '></td>'; +echo '<td><font color=red>' . _('Exchange Rate') . ":</font></td> <td><input type=TEXT class='number' size=11 maxlength=10 name='ExRate' VALUE=" . $_SESSION['SuppTrans']->ExRate . '></td></tr>'; echo '</table>'; @@ -276,8 +301,10 @@ if (count($_SESSION['SuppTrans']->Shipts)>0){ /*if there are any Shipment charges on the credit note*/ - echo "<table cellpadding=2><tr><th>" . _('Shipment') . "</th> - <th>" . _('Credit Amount') . '</b></th></tr>'; + echo '<table cellpadding=2>'; + $TableHeader = "<tr><th>" . _('Shipment') . "</th> + <th>" . _('Amount') . '</th></tr>'; + echo $TableHeader; $TotalShiptValue=0; @@ -409,7 +436,7 @@ echo '</td></tr>'; -} + } $DisplayTotal = number_format($_SESSION['SuppTrans']->OvAmount + $TaxTotal,2); @@ -427,6 +454,44 @@ /*First do input reasonableness checks then do the updates and inserts to process the credit note entered */ + foreach ($_SESSION['SuppTrans']->Taxes as $Tax) { + + + /*Set the tax rate to what was entered */ + if (isset($_POST['TaxRate' . $Tax->TaxCalculationOrder])){ + $_SESSION['SuppTrans']->Taxes[$Tax->TaxCalculationOrder]->TaxRate = $_POST['TaxRate' . $Tax->TaxCalculationOrder]/100; + } + + + if ($_POST['OverRideTax']=='Auto' OR !isset($_POST['OverRideTax'])){ + + /*Now recaluclate the tax depending on the method */ + if ($Tax->TaxOnTax ==1){ + + $_SESSION['SuppTrans']->Taxes[$Tax->TaxCalculationOrder]->TaxOvAmount = $_SESSION['SuppTrans']->Taxes[$Tax->TaxCalculationOrder]->TaxRate * ($_SESSION['SuppTrans']->OvAmount + $TaxTotal); + + } else { /*Calculate tax without the tax on tax */ + + $_SESSION['SuppTrans']->Taxes[$Tax->TaxCalculationOrder]->TaxOvAmount = $_SESSION['SuppTrans']->Taxes[$Tax->TaxCalculationOrder]->TaxRate * $_SESSION['SuppTrans']->OvAmount; + + } + + + } else { /*Tax being entered manually accept the taxamount entered as is*/ + + $_SESSION['SuppTrans']->Taxes[$Tax->TaxCalculationOrder]->TaxOvAmount = $_POST['TaxAmount' . $Tax->TaxCalculationOrder]; + + } + + } + +/*Need to recalc the taxtotal */ + + $TaxTotal=0; + foreach ($_SESSION['SuppTrans']->Taxes as $Tax){ + $TaxTotal += $Tax->TaxOvAmount; + } + $InputError = False; if ( $TaxTotal + $_SESSION['SuppTrans']->OvAmount <= 0){ $InputError = True; @@ -558,42 +623,173 @@ foreach ($_SESSION['SuppTrans']->GRNs as $EnteredGRN){ if (strlen($EnteredGRN->ShiptRef)==0 OR $EnteredGRN->ShiptRef=="" OR $EnteredGRN->ShiptRef==0){ /*so its not a shipment item */ + /*so its not a shipment item + enter the GL entry to reverse the GRN suspense entry created on delivery at standard cost used on delivery */ + + if ($EnteredGRN->StdCostUnit * $EnteredGRN->This_QuantityInv != 0) { + $SQL = 'INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount) + VALUES (21, ' . $CreditNoteNo . ", + '" . $SQLCreditNoteDate . "', + " . $PeriodNo . ', + ' . $_SESSION['SuppTrans']->GRNAct . ", + '" . $_SESSION['SuppTrans']->SupplierID . ' - ' . _('GRN Credit Note') . ' ' . $EnteredGRN->GRNNo . ' - ' . $EnteredGRN->ItemCode . ' x ' . $EnteredGRN->This_QuantityInv . ' @ ' . + _('std cost of') . ' ' . $EnteredGRN->StdCostUnit . "', + " . (-$EnteredGRN->StdCostUnit * $EnteredGRN->This_QuantityInv) . ')'; - $PurchPriceVar = round($EnteredGRN->This_QuantityInv * ($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate),2); + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction could not be added because'); + $DbgMsg = _('The following SQL to insert the GL transaction was used'); + + $Result = DB_query($SQL, $db, $ErrMsg, $Dbg, True); + + } + + + $PurchPriceVar = round($EnteredGRN->This_QuantityInv * (($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate) - $EnteredGRN->StdCostUnit),2); /*Yes but where to post this difference to - if its a stock item the variance account must be retrieved from the stock category record if its a nominal purchase order item with no stock item then post it to the account specified in the purchase order detail record */ - if ($PurchPriceVar !=0){ /* don't bother with this lot if there is no value to post ! */ - if (strlen($EnteredGRN->ItemCode)>0 OR $EnteredGRN->ItemCode!=""){ /*so it is a stock item */ + if ($PurchPriceVar !=0){ /* don't bother with this lot if there is no difference ! */ + if (strlen($EnteredGRN->ItemCode)>0 OR $EnteredGRN->ItemCode != ''){ /*so it is a stock item */ /*need to get the stock category record for this stock item - this is function in SQL_CommonFunctions.inc */ - $StockGLCode = GetStockGLCode($EnteredGRN->ItemCode,$db); - $SQL = 'INSERT INTO gltrans (type, + /*We have stock item and a purchase price variance need to see whether we are using Standard or WeightedAverageCosting */ + + if ($_SESSION['WeightedAverageCosting']==1){ /*Weighted Average costing */ + + /* + First off figure out the new weighted average cost Need the following data: + + How many in stock now + The quantity being invoiced here - $EnteredGRN->This_QuantityInv + The cost of these items - $EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate + */ + + $sql ="SELECT SUM(quantity) FROM locstock WHERE stockid='" . $EnteredGRN->ItemCode . "'"; + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The quantity on hand could not be retrieved from the database'); + $DbgMsg = _('The following SQL to retrieve the total stock quantity was used'); + $Result = DB_query($sql, $db, $ErrMsg, $DbgMsg, True); + $QtyRow = DB_fetch_row($Result); + $TotalQuantityOnHand = $QtyRow[0]; + + + /*The cost adjustment is the price variance / the total quantity in stock + But that's only provided that the total quantity in stock is > the quantity charged on this invoice + + If the quantity on hand is less the amount charged on this invoice then some must have been sold and the price variance on these must be written off to price variances*/ + + $WriteOffToVariances =0; + + if ($EnteredGRN->This_QuantityInv > $TotalQuantityOnHand){ + + /*So we need to write off some of the variance to variances and only the balance of the quantity in stock to go to stock value */ + + $WriteOffToVariances = ($EnteredGRN->This_QuantityInv + - $TotalQuantityOnHand) + * (($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate) - $EnteredGRN->StdCostUnit); + + $SQL = 'INSERT INTO gltrans (type, typeno, trandate, periodno, account, narrative, amount) - VALUES (21, - ' . $CreditNoteNo . ", - '" . $SQLCreditNoteDate . "', - " . $PeriodNo . ', - ' . $StockGLCode['purchpricevaract'] . ", - '" . $_SESSION['SuppTrans']->SupplierID . ' - ' . _('GRN Credit Note') . ' ' . $EnteredGRN->GRNNo . ' - ' . $EnteredGRN->ItemCode . ' x ' . $EnteredGRN->This_QuantityInv . ' x ' . number_format(($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate),2) . "', - " . (-$PurchPriceVar) . ')'; + VALUES (21, ' . + $CreditNoteNo . ", '" . $SQLCreditNoteDate . "', " . $PeriodNo . ', ' . $StockGLCode['purchpricevaract'] . + ", '" . $_SESSION['SuppTrans']->SupplierID . ' - ' . _('GRN Credit Note') . ' ' . $EnteredGRN->GRNNo . + ' - ' . $EnteredGRN->ItemCode . ' x ' . ($EnteredGRN->This_QuantityInv-$TotalQuantityOnHand) . ' x ' . _('price var of') . ' ' . + number_format(($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate) - $EnteredGRN->StdCostUnit,2) . + "', " . (-$WriteOffToVariances) . ')'; - $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction could not be added for the price variance of the stock item because'); - $DbgMsg = _('The following SQL to insert the GL transaction was used'); - $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, True); + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction could not be added for the price variance of the stock item because'); + $DbgMsg = _('The following SQL to insert the GL transaction was used'); + + $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, True); + } + /*Now post any remaining price variance to stock rather than price variances */ + + $SQL = 'INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount) + VALUES (21, ' . + $CreditNoteNo . ", + '" . $SQLCreditNoteDate . "', + " . $PeriodNo . ', + ' . $StockGLCode['stockact'] . ", + '" . $_SESSION['SuppTrans']->SupplierID . ' - ' . _('Average Cost Adj') . + ' - ' . $EnteredGRN->ItemCode . ' x ' . $TotalQuantityOnHand . ' x ' . + number_format(($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate) - $EnteredGRN->StdCostUnit,2) . + "', " . (-($PurchPriceVar - $WriteOffToVariances)) . ')'; + + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction could not be added for the price variance of the stock item because'); + $DbgMsg = _('The following SQL to insert the GL transaction was used'); + + $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, True); + + /*Now to update the stock cost with the new weighted average */ + + /*Need to consider what to do if the cost has been changed manually between receiving the stock and entering the invoice - this code assumes there has been no cost updates made manually and all the price variance is posted to stock. + + A nicety or important?? */ + + + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The cost could not be updated because'); + $DbgMsg = _('The following SQL to update the cost was used'); + + if ($TotalQuantityOnHand>0) { + + + $CostIncrement = ($PurchPriceVar - $WriteOffToVariances) / $TotalQuantityOnHand; + + $sql = "UPDATE stockmaster SET lastcost=materialcost+overheadcost+labourcost, + materialcost=materialcost+" . $CostIncrement . " WHERE stockid='" . $EnteredGRN->ItemCode . "'"; + $Result = DB_query($sql, $db, $ErrMsg, $DbgMsg, True); + } else { + $sql = "UPDATE stockmaster SET lastcost=materialcost+overheadcost+labourcost, + materialcost=" . ($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate) . " WHERE stockid='" . $EnteredGRN->ItemCode . "'"; + $Result = DB_query($sql, $db, $ErrMsg, $DbgMsg, True); + } + /* End of Weighted Average Costing Code */ + + } else { //It must be Standard Costing + + $SQL = 'INSERT INTO gltrans (type, + typeno, + trandate, + periodno, + account, + narrative, + amount) + VALUES (21, ' . + $CreditNoteNo . ", '" . $SQLCreditNoteDate . "', " . $PeriodNo . ', ' . $StockGLCode['purchpricevaract'] . + ", '" . $_SESSION['SuppTrans']->SupplierID . ' - ' . _('GRN') . ' ' . $EnteredGRN->GRNNo . + ' - ' . $EnteredGRN->ItemCode . ' x ' . $EnteredGRN->This_QuantityInv . ' x ' . _('price var of') . ' ' . + number_format(($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate) - $EnteredGRN->StdCostUnit,2) . + "', " . (-$PurchPriceVar) . ')'; + + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction could not be added for the price variance of the stock item because'); + $DbgMsg = _('The following SQL to insert the GL transaction was used'); + + $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, True); + } } else { /* its a nominal purchase order item that is not on a shipment so post the whole lot to the GLCode specified in the order, the purchase price var is actually the diff between the - order price and the actual credit note price since the std cost was made equal to the order price in local currency at the time + order price and the actual invoice price since the std cost was made equal to the order price in local currency at the time the goods were received */ $SQL = 'INSERT INTO gltrans (type, @@ -604,22 +800,22 @@ narrative, amount) VALUES (21, - ' . $CreditNoteNo . ", - '" . $SQLCreditNoteDate . "', - " . $PeriodNo . ', - ' . $EnteredGRN->GLCode . ", - '" . $_SESSION['SuppTrans']->SupplierID . ' - ' . - _('GRN Credit Note') . ' ' . $EnteredGRN->GRNNo . " - " . $EnteredGRN->ItemDescription . ' x ' . $EnteredGRN->This_QuantityInv . ' x ' . _('price var') . ' ' . number_format(($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate),2) . "', - " . (-$PurchPriceVar) . ')'; + ' . $CreditNoteNo . ", + '" . $SQLCreditNoteDate . "', + " . $PeriodNo . ', + ' . $EnteredGRN->GLCode . ", + '" . $_SESSION['SuppTrans']->SupplierID . ' - ' . _('GRN') . ' ' . $EnteredGRN->GRNNo . ' - ' . + $EnteredGRN->ItemDescription . ' x ' . $EnteredGRN->This_QuantityInv . ' x ' . _('price var') . + ' ' . number_format(($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate) - $EnteredGRN->StdCostUnit,2) . "', + " . (-$PurchPriceVar) . ')'; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction could not be added for the price variance of the stock item because'); + $DbgMsg = _('The following SQL to insert the GL transaction was used'); + $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, True); - } - } - } else { /*then its a purchase order item on a shipment - whole charge amount to GRN suspense pending closure of the shipment when the variance is calculated and the GRN act cleared up for the shipment */ @@ -818,15 +1014,15 @@ $SQL='COMMIT'; $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg); - + + prnMsg(_('Supplier credit note number') . ' ' . $CreditNoteNo . ' ' . _('has been processed'),'success'); + echo '<br><div class="centre"><a href="' . $rootpath . '/SupplierCredit.php?&SupplierID=' .$_SESSION['SuppTrans']->SupplierID . '">' . _('Enter another Credit Note for this Supplier') . '</a></div>'; unset($_SESSION['SuppTrans']->GRNs); unset($_SESSION['SuppTrans']->Shipts); unset($_SESSION['SuppTrans']->GLCodes); unset($_SESSION['SuppTrans']); - prnMsg(_('Supplier credit note number') . ' ' . $CreditNoteNo . ' ' . _('has been processed'),'success'); - echo "<p><a href='$rootpath/SelectSupplier.php'>" . _('Enter Another Credit Note') . '</a>'; } } /*end of process credit note */ Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-01-29 10:03:57 UTC (rev 3331) +++ trunk/doc/Change.log.html 2010-01-29 10:21:00 UTC (rev 3332) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>29/01/10 Zhiguo Yuan: SupplierCredit.php - Bring credit note scrpt in line with the invoice script</p> <p>29/01/10 Victor Onofrei: Partial Romanian translation</p> <p>27/01/10 Sajatmiko Akbar Wibowo: Updated Indonesian translation files</p> <p>26/01/10 Tim: api_xml-rpc.php - Update the documentation</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |