From: <tim...@us...> - 2010-06-24 08:31:47
|
Revision: 3516 http://web-erp.svn.sourceforge.net/web-erp/?rev=3516&view=rev Author: tim_schofield Date: 2010-06-24 08:31:39 +0000 (Thu, 24 Jun 2010) Log Message: ----------- Update SMTP server details from the UI rather than hard code into the scripts. Modified Paths: -------------- trunk/doc/Change.log.html trunk/includes/GetConfig.php trunk/includes/htmlMimeMail.php trunk/includes/smtp.php trunk/index.php trunk/sql/mysql/upgrade3.11.1-3.12.sql Added Paths: ----------- trunk/SMTPServer.php Added: trunk/SMTPServer.php =================================================================== --- trunk/SMTPServer.php (rev 0) +++ trunk/SMTPServer.php 2010-06-24 08:31:39 UTC (rev 3516) @@ -0,0 +1,67 @@ +<?php + +$PageSecurity =15; + +include('includes/session.inc'); + +$title = _('SMTP Server details'); + +include('includes/header.inc'); + +echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/email.gif" title="' . + _('SMTP Server') . '" alt="">' . ' ' . _('SMTP Server Settings') . '</p>'; + +if (isset($_POST['submit'])) { + $sql='UPDATE emailsettings SET + host="'.$_POST['host'].'", + port='.$_POST['port'].', + heloaddress="'.$_POST['heloaddress'].'", + username="'.$_POST['username'].'", + password="'.$_POST['password'].'", + auth='.$_POST['auth']; + $result=DB_query($sql, $db); + prnMsg(_('The settings for the SMTP server have been successfully updated'), 'success'); + echo '<br>'; +} + +$sql='SELECT id, + host, + port, + heloaddress, + username, + password, + timeout, + auth + FROM emailsettings'; +$result=DB_query($sql, $db); +$myrow=DB_fetch_array($result); +echo "<form method='post' action=" . $_SERVER['PHP_SELF'] . "?" . SID . ">"; +echo '<table class=selection>'; +echo '<tr><td>'._('Server Host Name').'</td> + <td><input type=text name=host value='.$myrow['host'].'></td></tr>'; +echo '<tr><td>'._('SMTP port').'</td> + <td><input type=text name=port size=4 class=number value='.$myrow['port'].'></td></tr>'; +echo '<tr><td>'._('Helo Command').'</td> + <td><input type=text name=heloaddress value='.$myrow['heloaddress'].'></td></tr>'; +echo '<tr><td>'._('Authorisation Required').'</td><td>'; +echo '<select name=auth>'; +if ($myrow['auth']==1) { + echo '<option selected value=1>'._('True').'</option>'; + echo '<option value=0>'._('False').'</option>'; +} else { + echo '<option value=1>'._('True').'</option>'; + echo '<option selected value=0>'._('False').'</option>'; +} +echo '</select></td></tr>'; +echo '<tr><td>'._('User Name').'</td> + <td><input type=text name=username value='.$myrow['username'].'></td></tr>'; +echo '<tr><td>'._('Password').'</td> + <td><input type=password name=password value='.$myrow['password'].'></td></tr>'; +echo '<tr><td>'._('Timeout (seconds)').'</td> + <td><input type=text size=5 name=timeout class=number value='.$myrow['timeout'].'></td></tr>'; +echo '<tr><td colspan=2><div class=centre><input type="submit" name="submit" value="' . _('Update') . '"></div></td></tr>'; +echo '</table></form>'; + +include('includes/footer.inc'); + +?> \ No newline at end of file Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-23 15:52:46 UTC (rev 3515) +++ trunk/doc/Change.log.html 2010-06-24 08:31:39 UTC (rev 3516) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>24/06/10 Tim: Update SMTP server details from the UI rather than hard code into the scripts.</p> <p>23/06/10 Tim: View, accept, or reject any offers made.</p> <p>21/06/10 Pak Ricard: Z_ChangeStockCode.php - updated Z_ChangeStockCode.php as the last one broke due to the recent changes in contractBOM table (just changed the field name).</p> <p>18/06/10 Tim: AddCustomerNotes.php - Layout improvements</p> Modified: trunk/includes/GetConfig.php =================================================================== --- trunk/includes/GetConfig.php 2010-06-23 15:52:46 UTC (rev 3515) +++ trunk/includes/GetConfig.php 2010-06-24 08:31:39 UTC (rev 3516) @@ -62,6 +62,26 @@ } } //end if force reload or not set already +$sql='SELECT id, + host, + port, + heloaddress, + username, + password, + timeout, + auth + FROM emailsettings'; +$result=DB_query($sql, $db); +$myrow=DB_fetch_array($result); + +$_SESSION['SMTPSettings']['host']=$myrow['host']; +$_SESSION['SMTPSettings']['port']=$myrow['port']; +$_SESSION['SMTPSettings']['heloaddress']=$myrow['heloaddress']; +$_SESSION['SMTPSettings']['username']=$myrow['username']; +$_SESSION['SMTPSettings']['password']=$myrow['password']; +$_SESSION['SMTPSettings']['timeout']=$myrow['timeout']; +$_SESSION['SMTPSettings']['auth']=$myrow['auth']; + /* Modified: trunk/includes/htmlMimeMail.php =================================================================== --- trunk/includes/htmlMimeMail.php 2010-06-23 15:52:46 UTC (rev 3515) +++ trunk/includes/htmlMimeMail.php 2010-06-24 08:31:39 UTC (rev 3516) @@ -137,12 +137,12 @@ $helo = 'localhost'; } - $this->smtp_params['host'] = 'localhost'; - $this->smtp_params['port'] = 25; - $this->smtp_params['helo'] = $helo; - $this->smtp_params['auth'] = false; - $this->smtp_params['user'] = ''; - $this->smtp_params['pass'] = ''; + $this->smtp_params['host'] = $_SESSION['SMTPSettings']['host']; + $this->smtp_params['port'] = $_SESSION['SMTPSettings']['port']; + $this->smtp_params['helo'] = $_SESSION['SMTPSettings']['heloaddress']; + $this->smtp_params['auth'] = $_SESSION['SMTPSettings']['auth']; + $this->smtp_params['user'] = html_entity_decode($_SESSION['SMTPSettings']['username']); + $this->smtp_params['pass'] = html_entity_decode($_SESSION['SMTPSettings']['password']); /** * Make sure the MIME version header is first. @@ -609,8 +609,8 @@ // Add message ID header srand((double)microtime()*10000000); - $message_id = sprintf('<%s.%s@%s>', base_convert(time(), 10, 36), base_convert(rand(), 10, 36), !empty($GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST']) ? $GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST'] : $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME']); - $this->headers['Message-ID'] = $message_id; +// $message_id = sprintf('<%s.%s@%s>', base_convert(time(), 10, 36), base_convert(rand(), 10, 36), !empty($GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST']) ? $GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST'] : $GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME']); +// $this->headers['Message-ID'] = $message_id; $this->is_built = true; return true; Modified: trunk/includes/smtp.php =================================================================== --- trunk/includes/smtp.php 2010-06-23 15:52:46 UTC (rev 3515) +++ trunk/includes/smtp.php 2010-06-24 08:31:39 UTC (rev 3516) @@ -49,15 +49,15 @@ if(!defined('CRLF')) define('CRLF', "\r\n", TRUE); - $this->authenticated = FALSE; - $this->timeout = 5; + $this->authenticated = FALSE; + $this->timeout = $_SESSION['SMTPSettings']['timeout']; $this->status = SMTP_STATUS_NOT_CONNECTED; - $this->host = 'localhost'; - $this->port = 25; - $this->helo = 'localhost'; - $this->auth = FALSE; - $this->user = ''; - $this->pass = ''; + $this->host = $_SESSION['SMTPSettings']['host']; + $this->port = $_SESSION['SMTPSettings']['port']; + $this->helo = $_SESSION['SMTPSettings']['heloaddress']; + $this->auth = $_SESSION['SMTPSettings']['auth']; + $this->user = html_entity_decode($_SESSION['SMTPSettings']['username']); + $this->pass = html_entity_decode($_SESSION['SMTPSettings']['password']); $this->errors = array(); foreach($params as $key => $value){ @@ -67,7 +67,7 @@ /** * Connect function. This will, when called - * statically, create a new smtp object, + * statically, create a new smtp object, * call the connect function (ie this function) * and return it. When not called statically, * it will connect to the server and send @@ -92,7 +92,8 @@ $greeting = $this->get_data(); if(is_resource($this->connection)){ - return $this->auth ? $this->ehlo() : $this->helo(); + $return=$this->auth ? $this->ehlo() : $this->helo(); + return $return; }else{ $this->errors[] = 'Failed to connect to server: '.$errstr; return FALSE; @@ -156,7 +157,7 @@ return FALSE; } } - + /** * Function to implement HELO cmd */ @@ -173,7 +174,7 @@ return FALSE; } } - + /** * Function to implement EHLO cmd */ @@ -190,7 +191,7 @@ return FALSE; } } - + /** * Function to implement RSET cmd */ @@ -207,7 +208,7 @@ return FALSE; } } - + /** * Function to implement QUIT cmd */ @@ -226,7 +227,7 @@ return FALSE; } } - + /** * Function to implement AUTH cmd */ @@ -252,7 +253,7 @@ /** * Function that handles the MAIL FROM: cmd */ - + function mail($from){ if($this->is_connected() @@ -268,7 +269,7 @@ /** * Function that handles the RCPT TO: cmd */ - + function rcpt($to){ if($this->is_connected() @@ -292,7 +293,7 @@ if($this->is_connected() AND $this->send_data('DATA') AND substr(trim($error = $this->get_data()), 0, 3) === '354' ){ - + return TRUE; }else{ @@ -319,7 +320,7 @@ if(is_resource($this->connection)){ return fwrite($this->connection, $data.CRLF, strlen($data)+2); - + }else return FALSE; } @@ -349,7 +350,7 @@ /** * Sets a variable */ - + function set($var, $value){ $this->$var = $value; Modified: trunk/index.php =================================================================== --- trunk/index.php 2010-06-23 15:52:46 UTC (rev 3515) +++ trunk/index.php 2010-06-24 08:31:39 UTC (rev 3516) @@ -991,6 +991,11 @@ <?php echo '<p>• <a href="' . $rootpath . '/FormDesigner.php">' . _('Form Layout Editor') . '</a></p>'; ?> </td> </tr> + <tr> + <td class="menu_group_item"> + <?php echo '<p>• <a href="' . $rootpath . '/SMTPServer.php">' . _('SMTP Server Details') . '</a></p>'; ?> + </td> + </tr> </table> </td> Modified: trunk/sql/mysql/upgrade3.11.1-3.12.sql =================================================================== --- trunk/sql/mysql/upgrade3.11.1-3.12.sql 2010-06-23 15:52:46 UTC (rev 3515) +++ trunk/sql/mysql/upgrade3.11.1-3.12.sql 2010-06-24 08:31:39 UTC (rev 3516) @@ -248,4 +248,19 @@ CONSTRAINT `offers_ibfk_2` FOREIGN KEY (`stockid`) REFERENCES `stockmaster` (`stockid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -INSERT INTO `config` VALUES('PurchasingManagerEmail', ''); \ No newline at end of file +INSERT INTO `config` VALUES('PurchasingManagerEmail', ''); + +CREATE TABLE `emailsettings` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `host` varchar(30) NOT NULL, + `port` char(5) NOT NULL, + `heloaddress` varchar(20) NOT NULL, + `username` varchar(30) DEFAULT NULL, + `password` varchar(30) DEFAULT NULL, + `timeout` int(11) DEFAULT '5', + `companyname` varchar(50) DEFAULT NULL, + `auth` tinyint(1) DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +INSERT INTO emailsettings VALUES(Null, 'localhost', 25, 'helo', '', '', 5, '', 0); \ 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: <dai...@us...> - 2010-06-24 08:44:12
|
Revision: 3517 http://web-erp.svn.sourceforge.net/web-erp/?rev=3517&view=rev Author: daintree Date: 2010-06-24 08:44:04 +0000 (Thu, 24 Jun 2010) Log Message: ----------- fix to WO costing variances should be based on quantites of the manufactured item received Modified Paths: -------------- trunk/Numbers/Words.php trunk/WorkOrderCosting.php trunk/doc/Change.log.html trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po trunk/locale/el_GR.utf8/LC_MESSAGES/messages.mo trunk/locale/el_GR.utf8/LC_MESSAGES/messages.po trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.mo trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.mo trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.po trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po trunk/locale/it_IT.utf8/LC_MESSAGES/messages.mo trunk/locale/it_IT.utf8/LC_MESSAGES/messages.po trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.mo trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.po trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.mo trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.po trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.mo trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.po trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.mo trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.po trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.po trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.mo trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.po trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.mo trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/upgrade3.11.1-3.12.sql trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/Numbers/Words.php =================================================================== --- trunk/Numbers/Words.php 2010-06-24 08:31:39 UTC (rev 3516) +++ trunk/Numbers/Words.php 2010-06-24 08:44:04 UTC (rev 3517) @@ -57,11 +57,25 @@ * @since PHP 4.2.3 */ function toWords($num, $locale) { + global $rootpath; if ($locale=='') { $locale='en_US'; } - include_once("Numbers/Words/lang.$locale.php"); - +//Phil mods to ensure correct translation used. + if (!file_exists('Numbers/Words/lang.' . $locale . '.php')){ + //try to drop off the .utf8 suffix then recheck + if (strpos($locale,'.utf8')){ + $locale = substr($locale, 0,strpos($locale,'.utf8')); + } + if (!file_exists('Numbers/Words/lang.' . $locale . '.php')){ + $locale = substr($locale,0,2); + } + if (!file_exists('Numbers/Words/lang.' . $locale . '.php')){ + $locale = 'en_US'; + } + } + + include_once("Numbers/Words/lang.$locale.php"); $classname = "Numbers_Words_$locale"; if (!class_exists($classname)) { Modified: trunk/WorkOrderCosting.php =================================================================== --- trunk/WorkOrderCosting.php 2010-06-24 08:31:39 UTC (rev 3516) +++ trunk/WorkOrderCosting.php 2010-06-24 08:44:04 UTC (rev 3517) @@ -117,23 +117,21 @@ <th>' . _('Cost Variance') . '</th> </tr>'; -$RequirementsResult = DB_query("SELECT t.stockid, t.description, t.decimalplaces, - (t.requiredqty) as requiredqty, - (t.expectedcost) as expectedcost, - (t.stdcost) AS costperqty - FROM (SELECT worequirements.stockid, - stockmaster.description, - stockmaster.decimalplaces, - (stockmaster.materialcost) as stdcost, - SUM(worequirements.qtypu*woitems.qtyreqd) AS requiredqty, - SUM(worequirements.stdcost*worequirements.qtypu*woitems.qtyreqd) AS expectedcost, - AVG(worequirements.qtypu) as qtypu - FROM worequirements INNER JOIN stockmaster - ON worequirements.stockid=stockmaster.stockid - INNER JOIN woitems ON woitems.stockid=worequirements.parentstockid - WHERE worequirements.wo=" . $_POST['WO'] . " and woitems.wo=worequirements.wo - GROUP BY worequirements.stockid) AS t - GROUP BY t.stockid", $db); +$RequirementsResult = DB_query('SELECT worequirements.stockid, + stockmaster.description, + stockmaster.decimalplaces, + worequirements.stdcost, + SUM(worequirements.qtypu*woitems.qtyrecd) AS requiredqty, + SUM(worequirements.stdcost*worequirements.qtypu*woitems.qtyrecd) AS expectedcost, + AVG(worequirements.qtypu) as qtypu + FROM worequirements INNER JOIN stockmaster + ON worequirements.stockid=stockmaster.stockid + INNER JOIN woitems ON woitems.stockid=worequirements.parentstockid AND woitems.wo=worequirements.wo + WHERE worequirements.wo=' . $_POST['WO'] . ' + GROUP BY worequirements.stockid, + stockmaster.description, + stockmaster.decimalplaces, + worequirements.stdcost', $db); $k=0; $TotalUsageVar =0; @@ -193,11 +191,12 @@ } if ($IssueQty != 0){ - $CostVar = $IssueQty *(($RequirementsRow['costperqty']) -($IssueCost/$IssueQty)); + $CostVar = $IssueQty *(($RequirementsRow['stdcost']) -($IssueCost/$IssueQty)); } else { $CostVar = 0; } - $UsageVar =($RequirementsRow['requiredqty']-$IssueQty)*($RequirementsRow['costperqty']); + /*Required quantity is the quantity required of the component based on the quantity of the finished item received */ + $UsageVar =($RequirementsRow['requiredqty']-$IssueQty)*($RequirementsRow['stdcost']); echo '<td colspan="2"></td><td align="right">' . number_format($RequirementsRow['requiredqty'],$RequirementsRow['decimalplaces']) . '</td> <td align="right">' . number_format($RequirementsRow['expectedcost'],2) . '</td> @@ -299,9 +298,9 @@ */ $TotOnHandResult =DB_query("SELECT SUM(quantity) - FROM locstock - WHERE stockid='" . $WORow['stockid'] . "'", - $db); + FROM locstock + WHERE stockid='" . $WORow['stockid'] . "'", + $db); $TotOnHandRow = DB_fetch_row($TotOnHandResult); $TotalOnHand = $TotOnHandRow[0]; @@ -313,25 +312,24 @@ if ($_SESSION['CompanyRecord']['gllink_stock']==1 AND $TotalVariance!=0){ - //need to get the current cost of the item if ($ProportionOnHand < 1){ $SQL = "INSERT INTO gltrans (type, - typeno, - trandate, - periodno, - account, - narrative, - amount) - VALUES (29, - " . $WOCloseNo . ", - '" . Date('Y-m-d') . "', - " . $PeriodNo . ", - " . $WORow['materialuseagevarac'] . ", - '" . $_POST['WO'] . ' - ' . $WORow['stockid'] . ' ' . _('share of variance') . "', - " . (-$TotalVariance*$ShareProportion*(1-$ProportionOnHand)) . ")"; - + typeno, + trandate, + periodno, + account, + narrative, + amount) + VALUES (29, + " . $WOCloseNo . ", + '" . Date('Y-m-d') . "', + " . $PeriodNo . ", + " . $WORow['materialuseagevarac'] . ", + '" . $_POST['WO'] . ' - ' . $WORow['stockid'] . ' ' . _('share of variance') . "', + " . (-$TotalVariance*$ShareProportion*(1-$ProportionOnHand)) . ")"; + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The GL posting for the work order variance could not be inserted because'); $DbgMsg = _('The following SQL to insert the GLTrans record was used'); $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-24 08:31:39 UTC (rev 3516) +++ trunk/doc/Change.log.html 2010-06-24 08:44:04 UTC (rev 3517) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>24/6/10 Phil: WOCosting.php fix to variances calculation were based on total quantity of the work order items required not the actual quantity of the work order items received as finished!!! Was correct when first released but has been wrong for several years</p> <p>24/06/10 Tim: Update SMTP server details from the UI rather than hard code into the scripts.</p> <p>23/06/10 Tim: View, accept, or reject any offers made.</p> <p>21/06/10 Pak Ricard: Z_ChangeStockCode.php - updated Z_ChangeStockCode.php as the last one broke due to the recent changes in contractBOM table (just changed the field name).</p> Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2010-06-24 08:31:39 UTC (rev 3516) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2010-06-24 08:44:04 UTC (rev 3517) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-12-28 14:43+1200\n" +"POT-Creation-Date: 2010-06-14 19:49+1200\n" "PO-Revision-Date: 2008-03-19 14:54+0100\n" "Last-Translator: Milan Horák <str...@ti...>\n" "Language-Team: Czech <cs...@li...>\n" @@ -18,7 +18,7 @@ "X-Poedit-Country: CZECH REPUBLIC\n" "X-Poedit-SourceCharset: utf-8\n" -#: AccountGroups.php:9 index.php:1156 +#: AccountGroups.php:9 index.php:1203 msgid "Account Groups" msgstr "Účetní skupiny" @@ -141,23 +141,23 @@ #: 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 +#: CustomerBranches.php:324 Customers.php:328 Customers.php:337 +#: Customers.php:345 Customers.php:353 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 +#: GLAccounts.php:91 GLAccounts.php:105 Locations.php:246 Locations.php:254 +#: Locations.php:263 Locations.php:271 Locations.php:279 Locations.php:287 +#: Locations.php:295 Locations.php:303 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 +#: PcExpenses.php:116 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:608 Suppliers.php:617 Suppliers.php:625 +#: 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 "Jsou zde" @@ -210,19 +210,21 @@ #: 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 +#: BOMs.php:792 CounterSales.php:1931 CounterSales.php:2053 +#: DiscountCategories.php:12 DiscountCategories.php:119 DiscountMatrix.php:18 +#: Factors.php:7 FixedAssetJournal.php:335 FixedAssetLocations.php:10 +#: FixedAssetRegister.php:20 FixedAssetRegister.php:212 +#: FixedAssetTransfer.php:32 FormDesigner.php:132 GLBalanceSheet.php:349 +#: GLBudgets.php:30 GLJournal.php:238 PDFPickingList.php:30 +#: PDFStockLocTransfer.php:21 PO_AuthorisationLevels.php:12 +#: PO_SelectOSPurchOrder.php:134 PurchData.php:133 PurchData.php:220 +#: SelectCompletedOrder.php:13 SelectCustomer.php:287 SelectGLAccount.php:19 +#: SelectGLAccount.php:79 SelectOrderItems.php:605 SelectOrderItems.php:1338 +#: SelectOrderItems.php:1458 SelectProduct.php:457 SelectSalesOrder.php:152 +#: SelectSupplier.php:9 SelectSupplier.php:194 SelectWorkOrder.php:11 +#: SelectWorkOrder.php:147 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 +#: WorkOrderEntry.php:13 WWW_Users.php:38 Z_BottomUpCosts.php:50 msgid "Search" msgstr "" @@ -240,7 +242,7 @@ #: 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 +#: SelectGLAccount.php:45 SelectGLAccount.php:59 msgid "Profit and Loss" msgstr "Zisky a ztráty" @@ -255,27 +257,29 @@ #: 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 +#: Customers.php:609 Customers.php:865 Customers.php:872 Customers.php:875 +#: DeliveryDetails.php:956 DeliveryDetails.php:996 DeliveryDetails.php:999 +#: GLTransInquiry.php:72 Locations.php:370 MRPCalendar.php:218 MRP.php:539 +#: 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:132 PO_AuthorisationLevels.php:137 +#: PO_Header.php:873 PO_PDFPurchOrder.php:367 PO_PDFPurchOrder.php:370 +#: PurchData.php:179 PurchData.php:442 PurchData.php:445 #: 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 +#: SalesAnalRepts.php:459 SelectProduct.php:346 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 +#: SystemParameters.php:363 SystemParameters.php:395 SystemParameters.php:440 +#: SystemParameters.php:458 SystemParameters.php:466 SystemParameters.php:506 +#: SystemParameters.php:579 SystemParameters.php:587 SystemParameters.php:605 +#: SystemParameters.php:612 SystemParameters.php:736 SystemParameters.php:867 +#: SystemParameters.php:869 SystemParameters.php:879 SystemParameters.php:881 +#: SystemParameters.php:935 SystemParameters.php:947 SystemParameters.php:949 +#: TaxGroups.php:290 TaxGroups.php:293 TaxGroups.php:342 WWW_Users.php:593 +#: WWW_Users.php:595 msgid "Yes" msgstr "Ano" @@ -286,50 +290,54 @@ #: 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 +#: Customers.php:608 Customers.php:863 Customers.php:871 Customers.php:874 +#: DeliveryDetails.php:957 DeliveryDetails.php:997 DeliveryDetails.php:1000 +#: GLTransInquiry.php:126 Locations.php:372 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 +#: PO_AuthorisationLevels.php:134 PO_AuthorisationLevels.php:139 +#: PO_Header.php:873 PO_PDFPurchOrder.php:368 PO_PDFPurchOrder.php:371 +#: PurchData.php:182 PurchData.php:443 PurchData.php:446 +#: 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 +#: SalesAnalRepts.php:458 SelectProduct.php:349 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 +#: SystemParameters.php:364 SystemParameters.php:396 SystemParameters.php:441 +#: SystemParameters.php:459 SystemParameters.php:467 SystemParameters.php:507 +#: SystemParameters.php:580 SystemParameters.php:588 SystemParameters.php:606 +#: SystemParameters.php:613 SystemParameters.php:737 SystemParameters.php:866 +#: SystemParameters.php:870 SystemParameters.php:878 SystemParameters.php:882 +#: SystemParameters.php:936 SystemParameters.php:946 SystemParameters.php:950 +#: TaxGroups.php:291 TaxGroups.php:294 TaxGroups.php:344 WWW_Users.php:592 +#: WWW_Users.php:596 includes/PDFLowGPPageHeader.inc:31 +#: includes/PDFTaxPageHeader.inc:35 msgid "No" msgstr "Ne" #: 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 +#: COGSGLPostings.php:213 CreditStatus.php:173 Currencies.php:235 +#: CustLoginSetup.php:297 CustomerBranches.php:411 Customers.php:917 +#: Customers.php:949 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 +#: Locations.php:379 MRPDemands.php:301 MRPDemandTypes.php:117 +#: PaymentMethods.php:200 PaymentTerms.php:204 PcAssignCashToTab.php:239 +#: PcClaimExpensesFromTab.php:227 PcExpenses.php:173 PcTabs.php:185 +#: PcTypeTabs.php:168 PO_AuthorisationLevels.php:148 Prices_Customer.php:271 +#: Prices.php:220 PurchData.php:191 SalesCategories.php:261 +#: SalesGLPostings.php:133 SalesGLPostings.php:245 SalesPeople.php:201 +#: SalesTypes.php:204 SelectCustomer.php:553 SelectCustomer.php:569 +#: SelectCustomer.php:591 SelectCustomer.php:607 SelectCustomer.php:629 +#: SelectCustomer.php:645 Shippers.php:142 StockCategories.php:215 +#: SupplierContacts.php:154 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:305 +#: includes/InputSerialItems.php:82 #, php-format msgid "Edit" msgstr "Upravit" @@ -337,28 +345,30 @@ #: 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 +#: COGSGLPostings.php:214 CounterSales.php:737 Credit_Invoice.php:372 +#: CreditStatus.php:174 Currencies.php:238 CustLoginSetup.php:298 +#: CustomerReceipt.php:825 Customers.php:950 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 +#: GLAccounts.php:319 GLJournal.php:395 Locations.php:380 MRPDemands.php:302 +#: MRPDemandTypes.php:118 PaymentMethods.php:201 Payments.php:863 +#: PaymentTerms.php:205 PcAssignCashToTab.php:240 +#: PcClaimExpensesFromTab.php:228 PcExpenses.php:174 PcExpensesTypeTab.php:158 +#: PcTabs.php:186 PcTypeTabs.php:169 PO_AuthorisationLevels.php:150 +#: PO_Items.php:960 Prices_Customer.php:272 Prices.php:221 PurchData.php:192 #: 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 +#: SalesTypes.php:205 SelectCreditItems.php:746 SelectCustomer.php:554 +#: SelectCustomer.php:570 SelectCustomer.php:592 SelectCustomer.php:608 +#: SelectCustomer.php:630 SelectCustomer.php:646 SelectOrderItems.php:1272 #: 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 +#: SuppInvGLAnalysis.php:65 SuppInvGRNs.php:132 SupplierContacts.php:155 #: 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 +#: WWW_Access.php:125 WWW_Users.php:306 includes/InputSerialItemsKeyed.php:53 #, php-format msgid "Delete" msgstr "Smazat" @@ -404,21 +414,21 @@ #: 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 +#: CreditStatus.php:244 Currencies.php:334 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 +#: Locations.php:557 MRPDemands.php:417 MRPDemandTypes.php:176 +#: PaymentMethods.php:270 PaymentTerms.php:278 PO_AuthorisationLevels.php:216 +#: Prices_Customer.php:344 SalesAnalReptCols.php:465 SalesAnalRepts.php:494 #: SalesGLPostings.php:412 SalesPeople.php:292 Shippers.php:195 -#: StockCategories.php:516 SupplierContacts.php:249 TaxAuthorities.php:302 +#: StockCategories.php:516 SupplierContacts.php:248 TaxAuthorities.php:302 #: TaxCategories.php:231 TaxProvinces.php:226 UnitsOfMeasure.php:250 -#: WorkCentres.php:260 WWW_Users.php:625 +#: WorkCentres.php:260 WWW_Users.php:626 msgid "Enter Information" msgstr "Vložit informace" -#: AccountSections.php:9 index.php:1161 +#: AccountSections.php:9 index.php:1208 msgid "Account Sections" msgstr "Sekce účtu" @@ -478,8 +488,8 @@ msgid "Could not retrieve the requested section please try again." msgstr "" -#: AddCustomerContacts.php:6 AddCustomerContacts.php:50 SelectCustomer.php:681 -#: SelectCustomer.php:721 +#: AddCustomerContacts.php:6 AddCustomerContacts.php:50 SelectCustomer.php:547 +#: SelectCustomer.php:576 #, fuzzy msgid "Customer Contacts" msgstr "Kód zákazníka" @@ -506,9 +516,10 @@ #: 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 +#: DeliveryDetails.php:671 Factors.php:47 FixedAssetItems.php:351 +#: PcAssignCashToTab.php:70 PcClaimExpensesFromTab.php:61 PcExpenses.php:57 +#: PcTabs.php:57 PcTypeTabs.php:56 PO_Items.php:393 SalesAnalReptCols.php:128 +#: SalesPeople.php:92 SalesTypes.php:61 Stocks.php:353 Suppliers.php:512 msgid "has been updated" msgstr "" @@ -527,30 +538,33 @@ msgstr "Kontaktní telefonní číslo" #: AddCustomerContacts.php:107 CompanyPreferences.php:227 -#: CustomerBranches.php:374 Customers.php:846 Customers.php:852 -#: Customers.php:917 SalesPeople.php:183 SelectCustomer.php:684 +#: CustomerBranches.php:374 Customers.php:907 Customers.php:913 +#: Customers.php:978 SalesPeople.php:183 SelectCustomer.php:549 #: StockDispatch.php:181 StockDispatch.php:193 SuppInvGLAnalysis.php:49 -#: SuppInvGLAnalysis.php:73 SupplierContacts.php:141 SupplierCredit.php:304 +#: SuppInvGLAnalysis.php:73 SupplierContacts.php:142 SupplierCredit.php:331 #: SupplierInvoice.php:308 SuppTransGLAnalysis.php:91 #: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 #: includes/PDFTaxPageHeader.inc:37 msgid "Name" msgstr "Název" -#: AddCustomerContacts.php:108 AddCustomerContacts.php:184 Customers.php:847 -#: Customers.php:853 Customers.php:918 SelectCustomer.php:685 +#: AddCustomerContacts.php:108 AddCustomerContacts.php:184 Customers.php:908 +#: Customers.php:914 Customers.php:979 SelectCustomer.php:550 #: WWW_Access.php:108 WWW_Access.php:168 msgid "Role" msgstr "" -#: AddCustomerContacts.php:109 Customers.php:919 +#: AddCustomerContacts.php:109 Customers.php:980 #, fuzzy msgid "Phone no" msgstr "Telefon" -#: 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 +#: AddCustomerContacts.php:110 AddCustomerContacts.php:196 Customers.php:910 +#: Customers.php:916 Customers.php:981 PcAssignCashToTab.php:205 +#: PcAssignCashToTab.php:332 PcAuthorizeExpenses.php:84 +#: PcClaimExpensesFromTab.php:193 PcClaimExpensesFromTab.php:345 +#: PcReportTab.php:340 SelectCustomer.php:552 SystemParameters.php:303 +#: WOSerialNos.php:273 WOSerialNos.php:275 msgid "Notes" msgstr "" @@ -564,20 +578,20 @@ msgstr "Kontakt" #: AddCustomerContacts.php:178 Factors.php:180 Factors.php:195 -#: SupplierContacts.php:217 +#: SupplierContacts.php:216 msgid "Contact Name" msgstr "" -#: 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 +#: AddCustomerContacts.php:190 Contracts.php:672 PDFRemittanceAdvice.php:246 +#: PO_Header.php:1078 PO_Header.php:1153 SelectCreditItems.php:226 +#: SelectCustomer.php:407 SelectOrderItems.php:635 +#: includes/PDFStatementPageHeader.inc:63 includes/PDFTransPageHeader.inc:113 #: includes/PDFTransPageHeaderPortrait.inc:105 msgid "Phone" msgstr "Telefon" -#: AddCustomerNotes.php:6 AddCustomerNotes.php:49 SelectCustomer.php:729 -#: SelectCustomer.php:768 +#: AddCustomerNotes.php:6 AddCustomerNotes.php:49 SelectCustomer.php:584 +#: SelectCustomer.php:614 #, fuzzy msgid "Customer Notes" msgstr "Kód zákazníka" @@ -619,26 +633,27 @@ #: AddCustomerNotes.php:106 AddCustomerNotes.php:188 #: AddCustomerTypeNotes.php:103 AddCustomerTypeNotes.php:178 -#: BankMatching.php:214 BankReconciliation.php:182 BankReconciliation.php:254 +#: BankMatching.php:222 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 +#: GLAccountInquiry.php:157 GLAccountReport.php:368 GLTransInquiry.php:47 +#: MRPCalendar.php:213 PaymentAllocations.php:77 PcAssignCashToTab.php:201 +#: PcAuthorizeExpenses.php:80 PDFRemittanceAdvice.php:307 +#: PrintCustTrans.php:674 PrintCustTransPortrait.php:859 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 +#: SupplierAllocations.php:647 SupplierInquiry.php:194 #: SupplierTransInquiry.php:87 includes/PDFQuotationPageHeader.inc:91 #: includes/PDFStatementPageHeader.inc:169 includes/PDFTaxPageHeader.inc:36 -#: includes/PDFTransPageHeader.inc:49 +#: includes/PDFTransPageHeader.inc:80 #: includes/PDFTransPageHeaderPortrait.inc:58 msgid "Date" msgstr "Datum" -#: 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 +#: AddCustomerNotes.php:107 AddCustomerTypeNotes.php:104 PcReportTab.php:171 +#: 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" @@ -668,7 +683,7 @@ msgid "Contact Note" msgstr "Kontakt" -#: AddCustomerTypeNotes.php:6 SelectCustomer.php:776 +#: AddCustomerTypeNotes.php:6 SelectCustomer.php:622 #, fuzzy msgid "Customer Type (Group) Notes" msgstr "Zákazník aktualizován" @@ -678,7 +693,7 @@ msgid "The Contact priority must be an integer." msgstr "Sekce v účtech musí být celé kladné číslo" -#: AddCustomerTypeNotes.php:49 SelectCustomer.php:816 +#: AddCustomerTypeNotes.php:49 SelectCustomer.php:652 #, fuzzy msgid "Customer Group Notes" msgstr "Zákazník aktualizován" @@ -728,21 +743,21 @@ #: 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 +#: GLTrialBalance.php:140 InventoryPlanning.php:99 InventoryPlanning.php:174 +#: InventoryPlanning.php:209 InventoryPlanning.php:252 +#: InventoryPlanning.php:286 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 +#: MailInventoryValuation.php:115 MRPPlannedPurchaseOrders.php:111 +#: MRPPlannedWorkOrders.php:105 MRPReport.php:133 MRPReschedules.php:46 +#: MRPReschedules.php:58 MRPShortages.php:137 MRPShortages.php:149 #: 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 +#: PDFStockCheckComparison.php:262 ReorderLevel.php:57 SelectProduct.php:37 #: StockCheck.php:63 StockCheck.php:135 SuppPriceList.php:118 -#: includes/PDFPaymentRun_PymtFooter.php:146 +#: includes/PDFPaymentRun_PymtFooter.php:148 msgid "Problem Report" msgstr "Problém" @@ -759,43 +774,43 @@ #: 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 +#: GLTrialBalance.php:143 GLTrialBalance.php:155 InventoryPlanning.php:102 +#: InventoryPlanning.php:177 InventoryPlanning.php:212 +#: InventoryPlanning.php:255 InventoryPlanning.php:289 +#: InventoryPlanning.php:352 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 +#: MailInventoryValuation.php:214 MRPPlannedPurchaseOrders.php:114 +#: MRPPlannedPurchaseOrders.php:125 MRPPlannedWorkOrders.php:108 +#: MRPPlannedWorkOrders.php:119 MRPPlannedWorkOrders.php:312 MRPReport.php:36 +#: MRPReport.php:47 MRPReport.php:136 MRPReschedules.php:49 +#: MRPReschedules.php:61 MRPShortages.php:140 MRPShortages.php:152 +#: OutstandingGRNs.php:54 OutstandingGRNs.php:66 PcReportTab.php:231 +#: PDFCustomerList.php:235 PDFCustomerList.php:247 PDFGrn.php:138 +#: PDFLowGP.php:62 PDFLowGP.php:74 PDFPriceList.php:124 PDFQuotation.php:237 +#: PDFRemittanceAdvice.php:84 PDFStockCheckComparison.php:39 +#: PDFStockCheckComparison.php:65 PDFStockCheckComparison.php:266 +#: PDFTopItems.php:123 PO_PDFPurchOrder.php:22 PO_PDFPurchOrder.php:132 +#: PrintCustOrder_generic.php:182 PrintCustOrder.php:198 +#: PrintSalesOrder_generic.php:183 ReorderLevel.php:60 ReorderLevel.php:149 +#: SalesAnalysis_UserDefined.php:28 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 +#: Z_DataExport.php:420 Z_DataExport.php:472 Z_poRebuildDefault.php:37 +#: 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/PDFPaymentRun_PymtFooter.php:214 #: includes/ConstructSQLForUserDefinedSalesReport.inc:180 #: includes/ConstructSQLForUserDefinedSalesReport.inc:188 #: includes/ConstructSQLForUserDefinedSalesReport.inc:340 @@ -806,37 +821,39 @@ msgid "The details of outstanding transactions for customer" msgstr "" -#: 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 +#: AgedDebtors.php:367 AgedSuppliers.php:189 GLAccountCSV.php:168 +#: GLAccountInquiry.php:149 GLAccountReport.php:93 PO_Items.php:540 +#: PO_Items.php:570 PO_Items.php:650 PO_Items.php:791 #: SalesAnalReptCols.php:349 SpecialOrder.php:368 #: StockLocTransferReceive.php:370 StockQuantityByDate.php:102 -#: includes/SelectOrderItems_IntoCart.inc:52 +#: includes/SelectOrderItems_IntoCart.inc:53 msgid "could not be retrieved because" msgstr "" #: 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 +#: ConfirmDispatch_Invoice.php:154 ConfirmDispatch_Invoice.php:920 +#: ConfirmDispatch_Invoice.php:934 CounterSales.php:1275 CounterSales.php:1289 +#: Credit_Invoice.php:688 Credit_Invoice.php:710 CustomerReceipt.php:493 +#: CustomerReceipt.php:627 CustomerReceipt.php:655 CustomerTransInquiry.php:78 +#: DeliveryDetails.php:395 GLProfit_Loss.php:564 GLTagProfit_Loss.php:480 +#: Payments.php:294 PDFRemittanceAdvice.php:86 PurchData.php:83 +#: PurchData.php:101 PurchData.php:208 ReverseGRN.php:142 ReverseGRN.php:156 +#: ReverseGRN.php:317 SelectCreditItems.php:1380 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:79 SupplierInquiry.php:101 +#: SupplierInquiry.php:131 SupplierInquiry.php:176 SupplierTransInquiry.php:79 +#: SuppPaymentRun.php:111 SuppPaymentRun.php:186 SuppPaymentRun.php:216 +#: WorkOrderCosting.php:391 WorkOrderReceive.php:263 WOSerialNos.php:44 +#: Z_ChangeBranchCode.php:108 Z_ChangeCustomerCode.php:90 +#: Z_DeleteCreditNote.php:57 Z_DeleteInvoice.php:83 +#: includes/PDFPaymentRun_PymtFooter.php:59 +#: includes/PDFPaymentRun_PymtFooter.php:88 +#: includes/PDFPaymentRun_PymtFooter.php:117 +#: includes/PDFPaymentRun_PymtFooter.php:153 +#: includes/PDFPaymentRun_PymtFooter.php:184 includes/ConnectDB_mysqli.inc:66 +#: includes/ConnectDB_mysql.inc:48 msgid "The SQL that failed was" msgstr "SQL příkaz, který selhal, byl" @@ -894,15 +911,15 @@ #: AgedDebtors.php:518 AgedSuppliers.php:318 BOMExtendedQty.php:297 #: BOMIndented.php:275 BOMIndentedReverse.php:263 BOMListing.php:140 -#: DebtorsAtPeriodEnd.php:161 InventoryPlanning.php:429 +#: DebtorsAtPeriodEnd.php:161 InventoryPlanning.php:431 #: 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 +#: InventoryValuation.php:239 MRPPlannedPurchaseOrders.php:274 +#: MRPPlannedWorkOrders.php:335 MRPReport.php:512 MRPReschedules.php:161 +#: MRPShortages.php:257 OutstandingGRNs.php:181 PDFCustomerList.php:409 +#: PDFLowGP.php:164 PDFPriceList.php:296 PDFRemittanceAdvice.php:151 +#: PDFStockCheckComparison.php:375 PrintCustTrans.php:474 +#: PrintCustTransPortrait.php:629 ReorderLevel.php:226 StockDispatch.php:293 +#: SupplierBalsAtPeriodEnd.php:148 SuppPriceList.php:236 Tax.php:348 msgid "Print PDF" msgstr "Tisknout PDF" @@ -934,12 +951,12 @@ msgid "Aged Supplier Analysis" msgstr "" -#: AgedSuppliers.php:284 OutstandingGRNs.php:176 PDFRemittanceAdvice.php:139 +#: AgedSuppliers.php:284 OutstandingGRNs.php:176 PDFRemittanceAdvice.php:137 #: SupplierBalsAtPeriodEnd.php:125 SuppPaymentRun.php:255 msgid "From Supplier Code" msgstr "Od kódu dodavatele" -#: AgedSuppliers.php:287 OutstandingGRNs.php:178 PDFRemittanceAdvice.php:141 +#: AgedSuppliers.php:287 OutstandingGRNs.php:178 PDFRemittanceAdvice.php:139 #: SupplierBalsAtPeriodEnd.php:127 SuppPaymentRun.php:257 msgid "To Supplier Code" msgstr "Do kódu dodavatele" @@ -1021,9 +1038,11 @@ msgstr "" #: Areas.php:133 CustomerTypes.php:167 Factors.php:112 -#: FixedAssetCategories.php:192 GLAccounts.php:204 Locations.php:299 +#: FixedAssetCategories.php:192 GLAccounts.php:204 Locations.php:327 +#: PcAssignCashToTab.php:112 PcClaimExpensesFromTab.php:109 PcExpenses.php:124 +#: PcExpensesTypeTab.php:80 PcTabs.php:121 PcTypeTabs.php:131 #: SalesAnalReptCols.php:214 SalesCategories.php:137 SalesTypes.php:161 -#: StockCategories.php:170 Suppliers.php:595 Z_DeleteInvoice.php:142 +#: StockCategories.php:170 Suppliers.php:634 Z_DeleteInvoice.php:142 msgid "has been deleted" msgstr "" @@ -1055,8 +1074,8 @@ msgid "To Date" msgstr "Datum" -#: AuditTrail.php:40 PO_AuthorisationLevels.php:87 -#: PO_AuthorisationLevels.php:116 PO_AuthorisationLevels.php:119 +#: AuditTrail.php:40 PO_AuthorisationLevels.php:123 +#: PO_AuthorisationLevels.php:159 PO_AuthorisationLevels.php:162 #: UserSettings.php:114 msgid "User ID" msgstr "" @@ -1066,7 +1085,7 @@ msgid "Table " msgstr "Povoleno" -#: AuditTrail.php:64 PO_SelectPurchOrder.php:370 +#: AuditTrail.php:64 PO_SelectPurchOrder.php:306 SelectProduct.php:704 msgid "View" msgstr "" @@ -1075,7 +1094,7 @@ msgid "Date/Time" msgstr "Datum" -#: AuditTrail.php:142 includes/header.inc:42 +#: AuditTrail.php:142 PcReportTab.php:275 includes/header.inc:42 msgid "User" msgstr "" @@ -1083,10 +1102,10 @@ #: CustomerAllocations.php:372 CustomerInquiry.php:188 #: CustomerTransInquiry.php:19 CustomerTransInquiry.php:84 #: CustWhereAlloc.php:14 CustWhereAlloc.php:81 FixedAssetCategories.php:212 -#: GLAccountInquiry.php:155 GLJournal.php:250 MRPReschedules.php:188 -#: SelectCustomer.php:503 ShipmentCosting.php:492 ShipmentCosting.php:563 -#: StockCategories.php:190 StockLocMovements.php:78 StockMovements.php:97 -#: SupplierAllocations.php:463 SupplierInquiry.php:190 +#: GLAccountInquiry.php:155 GLAccountReport.php:366 GLJournal.php:251 +#: MRPReschedules.php:199 SelectCustomer.php:406 ShipmentCosting.php:492 +#: ShipmentCosting.php:563 StockCategories.php:190 StockLocMovements.php:78 +#: StockMovements.php:97 SupplierAllocations.php:463 SupplierInquiry.php:192 #: SupplierTransInquiry.php:16 SupplierTransInquiry.php:84 #: Z_CheckAllocationsFrom.php:27 Z_CheckAllocationsFrom.php:50 #: Z_CheckAllocs.php:59 Z_CheckGLTransBalance.php:12 @@ -1100,12 +1119,13 @@ msgid "Table" msgstr "Povoleno" -#: AuditTrail.php:145 +#: AuditTrail.php:145 api/api_xml-rpc.php:314 api/api_xml-rpc.php:729 +#: api/api_xml-rpc.php:1866 #, fuzzy msgid "Field Name" msgstr "Název dodavatele" -#: AuditTrail.php:146 SystemParameters.php:300 +#: AuditTrail.php:146 SystemParameters.php:302 #: includes/PDFInventoryValnPageHeader.inc:38 #: includes/PDFOstdgGRNsPageHeader.inc:37 msgid "Value" @@ -1197,7 +1217,7 @@ msgid "The SQL used to retrieve the bank account details was" msgstr "" -#: BankAccounts.php:196 GLJournal.php:272 +#: BankAccounts.php:196 GLJournal.php:273 #, fuzzy msgid "GL Account Code" msgstr "Kód slevy" @@ -1219,14 +1239,15 @@ msgid "Bank Address" msgstr "" -#: BankAccounts.php:201 CustomerReceipt.php:728 CustomerTransInquiry.php:94 -#: PO_AuthorisationLevels.php:89 PO_AuthorisationLevels.php:136 -#: PO_AuthorisationLevels.php:139 PO_AuthoriseMyOrders.php:105 -#: PO_Header.php:666 PO_SelectOSPurchOrder.php:416 PO_SelectPurchOrder.php:372 -#: Prices.php:157 Prices.php:223 PurchData.php:157 PurchData.php:301 -#: PurchData.php:407 SelectSupplier.php:305 SupplierCredit.php:208 -#: SupplierInvoice.php:202 SupplierTransInquiry.php:93 SuppPriceList.php:268 -#: includes/PDFBankingSummaryPageHeader.inc:42 +#: BankAccounts.php:201 CustomerReceipt.php:723 CustomerTransInquiry.php:94 +#: PcReportTab.php:283 PcTabs.php:144 PcTabs.php:292 +#: PO_AuthorisationLevels.php:125 PO_AuthorisationLevels.php:179 +#: PO_AuthorisationLevels.php:182 PO_AuthoriseMyOrders.php:105 +#: PO_Header.php:631 PO_SelectOSPurchOrder.php:408 PO_SelectPurchOrder.php:308 +#: PricesByCost.php:206 Prices.php:191 Prices.php:283 PurchData.php:159 +#: PurchData.php:297 PurchData.php:403 SelectSupplier.php:247 +#: SupplierCredit.php:233 SupplierInvoice.php:202 SupplierTransInquiry.php:93 +#: SuppPriceList.php:273 includes/PDFBankingSummaryPageHeader.inc:42 #: includes/PDFDebtorBalsPageHeader.inc:36 #: includes/PDFSupplierBalsPageHeader.inc:36 msgid "Currency" @@ -1255,90 +1276,91 @@ msgid "Bank Account Matching" msgstr "Výpisy z bankovního účtu" -#: BankMatching.php:13 Z_CheckDebtorsControl.php:79 +#: BankMatching.php:15 PDFCustTransListing.php:43 Z_CheckDebtorsControl.php:79 msgid "Receipts" msgstr "" -#: BankMatching.php:14 BankMatching.php:18 +#: BankMatching.php:16 BankMatching.php:23 #, fuzzy msgid "Bank Matching" msgstr "Výpisy z bankovního účtu" -#: BankMatching.php:14 +#: BankMatching.php:16 #, fuzzy msgid "Bank Account Matching - Receipts" msgstr "Výpisy z bankovního účtu" -#: BankMatching.php:17 PaymentAllocations.php:33 +#: BankMatching.php:22 PaymentAllocations.php:33 PDFSuppTransListing.php:43 msgid "Payments" msgstr "Platby" -#: BankMatching.php:18 +#: BankMatching.php:23 #, fuzzy msgid "Bank Account Matching - Payments" msgstr "Výpisy z bankovního účtu" -#: BankMatching.php:20 +#: BankMatching.php:27 msgid "This page must be called with a bank transaction type" msgstr "" -#: BankMatching.php:20 +#: BankMatching.php:27 msgid "It should not be called directly" msgstr "" -#: BankMatching.php:33 +#: BankMatching.php:40 msgid "Could not retrieve transaction information" msgstr "" -#: BankMatching.php:40 +#: BankMatching.php:47 #, fuzzy msgid "Could not match off this payment because" msgstr "Nemohu získat účetní skupiny, protože" -#: BankMatching.php:50 +#: BankMatching.php:58 msgid "Could not update the amount matched off this bank transaction because" msgstr "" -#: BankMatching.php:56 +#: BankMatching.php:64 msgid "Could not unclear this bank transaction because" msgstr "" -#: BankMatching.php:64 +#: BankMatching.php:72 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:71 BankReconciliation.php:95 CustomerReceipt.php:698 -#: Payments.php:706 PDFChequeListing.php:42 TaxAuthorities.php:148 +#: BankMatching.php:79 BankReconciliation.php:95 CustomerReceipt.php:693 +#: Payments.php:708 PDFChequeListing.php:42 TaxAuthorities.php:148 #: TaxAuthorities.php:295 msgid "Bank Account" msgstr "Bankovní účet" -#: BankMatching.php:93 PO_SelectOSPurchOrder.php:462 +#: BankMatching.php:101 PO_SelectOSPurchOrder.php:454 msgid "Show" msgstr "Zobrazit" -#: BankMatching.php:93 CreditItemsControlled.php:78 FreightCosts.php:269 -#: GoodsReceivedControlled.php:56 GoodsReceived.php:63 +#: BankMatching.php:101 CreditItemsControlled.php:78 FreightCosts.php:269 +#: GoodsReceivedControlled.php:56 GoodsReceived.php:65 #: StockLocTransferReceive.php:413 SupplierAllocations.php:442 #: SuppShiptChgs.php:124 msgid "from" msgstr "" -#: BankMatching.php:96 ConfirmDispatchControlled_Invoice.php:59 -#: EmailCustTrans.php:66 FixedAssetItems.php:227 FixedAssetItems.php:232 -#: FTP_RadioBeacon.php:281 Payments.php:681 PDFChequeListing.php:104 +#: BankMatching.php:104 ConfirmDispatchControlled_Invoice.php:59 +#: EmailCustTrans.php:64 FixedAssetItems.php:227 FixedAssetItems.php:232 +#: FTP_RadioBeacon.php:281 GLAccountCSV.php:171 GLAccountReport.php:102 +#: Payments.php:683 PcReportTab.php:100 PDFChequeListing.php:104 #: PDFChequeListing.php:114 PDFChequeListing.php:201 #: PDFDeliveryDifferences.php:162 PDFDeliveryDifferences.php:175 #: PDFDeliveryDifferences.php:283 PDFDIFOT.php:168 PDFDIFOT.php:181 -#: PDFDIFOT.php:296 PDFOrdersInvoiced.php:70 PDFOrdersInvoiced.php:227 -#: PDFOrderStatus.php:71 PDFOrderStatus.php:206 PO_PDFPurchOrder.php:293 -#: PricesBasedOnMarkUp.php:180 PricesBasedOnMarkUp.php:285 -#: PricesBasedOnMarkUp.php:297 PrintCustStatements.php:45 -#: PrintCustTrans.php:69 PrintCustTrans.php:72 PrintCustTransPortrait.php:67 -#: PrintCustTransPortrait.php:70 SalesGraph.php:186 SalesGraph.php:215 +#: PDFDIFOT.php:285 PDFOrdersInvoiced.php:70 PDFOrdersInvoiced.php:227 +#: PDFOrderStatus.php:71 PDFOrderStatus.php:206 PO_PDFPurchOrder.php:314 +#: PricesBasedOnMarkUp.php:204 PricesBasedOnMarkUp.php:322 +#: PricesBasedOnMarkUp.php:338 PrintCustStatements.php:50 +#: PrintCustTrans.php:36 PrintCustTrans.php:39 PrintCustTransPortrait.php:58 +#: PrintCustTransPortrait.php:61 SalesGraph.php:186 SalesGraph.php:215 #: SalesGraph.php:219 StockLocTransferReceive.php:307 #: StockLocTransferReceive.php:413 Stocks.php:229 Stocks.php:234 #: StockStatus.php:296 StockStatus.php:338 StockTransfers.php:392 @@ -1356,29 +1378,29 @@ msgid "to" msgstr "" -#: BankMatching.php:98 +#: BankMatching.php:106 msgid "Choose outstanding" msgstr "" -#: BankMatching.php:98 +#: BankMatching.php:106 msgid "only or all" msgstr "" -#: BankMatching.php:98 BankMatching.php:102 BankMatching.php:105 -#: BankMatching.php:113 BankMatching.php:116 +#: BankMatching.php:106 BankMatching.php:110 BankMatching.php:113 +#: BankMatching.php:121 BankMatching.php:124 msgid "in the date range" msgstr "v rozmezí dat" -#: BankMatching.php:102 BankMatching.php:105 BankMatching.php:113 -#: BankMatching.php:116 +#: BankMatching.php:110 BankMatching.php:113 BankMatching.php:121 +#: BankMatching.php:124 msgid "Show all" msgstr "" -#: BankMatching.php:103 BankMatching.php:106 +#: BankMatching.php:111 BankMatching.php:114 msgid "Show unmatched" msgstr "" -#: BankMatching.php:103 BankMatching.php:106 ReverseGRN.php:101 +#: BankMatching.php:111 BankMatching.php:114 ReverseGRN.php:101 #: includes/PDFCustomerListPageHeader.inc:46 #: includes/PDFDeliveryDifferencesPageHeader.inc:24 #: includes/PDFDIFOTPageHeader.inc:24 @@ -1387,65 +1409,69 @@ msgid "only" msgstr "jen" -#: BankMatching.php:110 +#: BankMatching.php:118 msgid "Choose to display only the first 20 matching" msgstr "" -#: BankMatching.php:111 +#: BankMatching.php:119 msgid "or all" msgstr "" -#: BankMatching.php:111 +#: BankMatching.php:119 msgid "meeting the criteria" msgstr "" -#: BankMatching.php:114 BankMatching.php:117 +#: BankMatching.php:122 BankMatching.php:125 msgid "Show only the first 20" msgstr "Zobrazit jen prvních 20" -#: BankMatching.php:122 +#: BankMatching.php:130 msgid "Show selected" msgstr "" -#: BankMatching.php:123 +#: BankMatching.php:131 msgid "Show reconciliation" msgstr "" -#: BankMatching.php:129 BankMatching.php:135 +#: BankMatching.php:137 BankMatching.php:143 msgid "The date entered for the field to show" msgstr "" -#: BankMatching.php:129 +#: BankMatching.php:137 msgid "before" msgstr "před" -#: BankMatching.php:130 BankMatching.php:136 +#: BankMatching.php:138 BankMatching.php:144 msgid "is not entered in a recognised date format" msgstr "" -#: BankMatching.php:130 BankMatching.php:136 +#: BankMatching.php:138 BankMatching.php:144 msgid "Entry is expected in the format" msgstr "" -#: BankMatching.php:135 +#: BankMatching.php:143 msgid "after" msgstr "po" -#: BankMatching.php:209 +#: BankMatching.php:217 msgid "The payments with the selected criteria could not be retrieved because" msgstr "" -#: BankMatching.php:212 ShipmentCosting.php:493 ShipmentCosting.php:564 +#: BankMatching.php:220 ShipmentCosting.php:493 ShipmentCosting.php:564 #: SupplierAllocations.php:466 msgid "Ref" msgstr "" -#: BankMatching.php:215 ConfirmDispatch_Invoice.php:268 Credit_Invoice.php:276 -#: CustomerAllocations.php:375 CustomerReceipt.php:815 +#: BankMatching.php:223 ConfirmDispatch_Invoice.php:268 Credit_Invoice.php:276 +#: CustomerAllocations.php:375 CustomerReceipt.php:810 #: CustomerTransInquiry.php:93 CustWhereAlloc.php:85 PaymentAllocations.php:78 -#: Payments.php:839 Payments.php:935 Payments.php:937 PrintCheque.php:70 -#: PrintCheque.php:84 SelectCreditItems.php:676 SuppInvGLAnalysis.php:50 -#: SuppInvGLAnalysis.php:74 SupplierAllocations.php:467 SupplierCredit.php:305 +#: Payments.php:841 Payments.php:936 Payments.php:938 +#: PcAssignCashToTab.php:203 PcAssignCashToTab.php:326 +#: PcAuthorizeExpenses.php:82 PcClaimExpensesFromTab.php:191 +#: PcClaimExpensesFromTab.php:339 PcReportTab.php:170 PcReportTab.php:339 +#: PrintCheque.php:70 PrintCheque.php:84 SelectCreditItems.php:660 +#: SuppInvGLAnalysis.php:50 SuppInvGLAnalysis.php:74 +#: SupplierAllocations.php:467 SupplierCredit.php:306 SupplierCredit.php:332 #: SupplierInvoice.php:279 SupplierInvoice.php:309 SupplierTransInquiry.php:92 #: SuppShiptChgs.php:70 SuppShiptChgs.php:132 SuppTransGLAnalysis.php:92 #: SuppTransGLAnalysis.php:168 Z_CheckAllocs.php:63 @@ -1454,24 +1480,24 @@ msgid "Amount" msgstr "" -#: BankMatching.php:216 BankReconciliation.php:187 BankReconciliation.php:259 +#: BankMatching.php:224 BankReconciliation.php:187 BankReconciliation.php:259 #: PDFOrdersInvoiced.php:281 PDFOrderStatus.php:254 -#: PO_SelectOSPurchOrder.php:204 PO_SelectPurchOrder.php:194 -#: Shipt_Select.php:193 SuppCreditGRNs.php:216 +#: PO_SelectOSPurchOrder.php:196 PO_SelectPurch... [truncated message content] |
From: <tim...@us...> - 2010-06-24 16:42:22
|
Revision: 3519 http://web-erp.svn.sourceforge.net/web-erp/?rev=3519&view=rev Author: tim_schofield Date: 2010-06-24 16:42:16 +0000 (Thu, 24 Jun 2010) Log Message: ----------- upgrade3.11.1-3.12.sql - Add fields in salesorderfdetails table to enable new salesman commission program Modified Paths: -------------- trunk/doc/Change.log.html trunk/sql/mysql/upgrade3.11.1-3.12.sql Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-24 11:15:00 UTC (rev 3518) +++ trunk/doc/Change.log.html 2010-06-24 16:42:16 UTC (rev 3519) @@ -1,6 +1,7 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> -<p>24/6/10 Phil: WOCosting.php fix to variances calculation were based on total quantity of the work order items required not the actual quantity of the work order items received as finished!!! Was correct when first released but has been wrong for several years</p> +<p>24/06/10 Tim: upgrade3.11.1-3.12.sql - Add fields in salesorderfdetails table to enable new salesman commission program</p> +<p>24/06/10 Phil: WOCosting.php fix to variances calculation were based on total quantity of the work order items required not the actual quantity of the work order items received as finished!!! Was correct when first released but has been wrong for several years</p> <p>24/06/10 Tim: Update SMTP server details from the UI rather than hard code into the scripts.</p> <p>23/06/10 Tim: View, accept, or reject any offers made.</p> <p>21/06/10 Pak Ricard: Z_ChangeStockCode.php - updated Z_ChangeStockCode.php as the last one broke due to the recent changes in contractBOM table (just changed the field name).</p> Modified: trunk/sql/mysql/upgrade3.11.1-3.12.sql =================================================================== --- trunk/sql/mysql/upgrade3.11.1-3.12.sql 2010-06-24 11:15:00 UTC (rev 3518) +++ trunk/sql/mysql/upgrade3.11.1-3.12.sql 2010-06-24 16:42:16 UTC (rev 3519) @@ -264,3 +264,6 @@ ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO emailsettings VALUES(Null, 'localhost', 25, 'helo', '', '', 5, '', 0); + +ALTER TABLE `salesorderdetails` ADD COLUMN `commissionrate` double NOT NULL DEFAULT 0.0; +ALTER TABLE `salesorderdetails` ADD COLUMN `commissionearned` double NOT NULL DEFAULT 0.0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-24 19:31:15
|
Revision: 3520 http://web-erp.svn.sourceforge.net/web-erp/?rev=3520&view=rev Author: tim_schofield Date: 2010-06-24 19:31:09 +0000 (Thu, 24 Jun 2010) Log Message: ----------- sql string must be unset before it can become an array Modified Paths: -------------- trunk/WorkOrderEntry.php trunk/doc/Change.log.html Modified: trunk/WorkOrderEntry.php =================================================================== --- trunk/WorkOrderEntry.php 2010-06-24 16:42:16 UTC (rev 3519) +++ trunk/WorkOrderEntry.php 2010-06-24 19:31:09 UTC (rev 3520) @@ -9,33 +9,37 @@ include('includes/header.inc'); include('includes/SQL_CommonFunctions.inc'); +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Search') . + '" alt="">' . ' ' . $title.'</p>'; -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Search') . '" alt="">' . ' ' . $title; - if (isset($_GET['ReqDate'])){ $ReqDate = $_GET['ReqDate']; +} else { + $ReqDate=Date('Y-m-d'); } if (isset($_GET['loccode'])){ $LocCode = $_GET['loccode']; +} else { + $LocCode=$_SESSION['UserStockLocation']; } // check for new or modify condition if (isset($_REQUEST['WO']) and $_REQUEST['WO']!=''){ // modify $_POST['WO'] = $_REQUEST['WO']; - $EditingExisting = true; + $EditingExisting = true; } else { // new - $_POST['WO'] = GetNextTransNo(40,$db); - $sql = "INSERT INTO workorders (wo, + $_POST['WO'] = GetNextTransNo(40,$db); + $sql = "INSERT INTO workorders (wo, loccode, requiredby, startdate) VALUES (" . $_POST['WO'] . ", - '" . (($LocCode) ? $LocCode : $_SESSION['UserStockLocation']) . "', - '" . (($ReqDate) ? $ReqDate : Date('Y-m-d')) . "', + '" . $LocCode . "', + '" . $ReqDate . "', '" . Date('Y-m-d'). "')"; - $InsWOResult = DB_query($sql,$db); + $InsWOResult = DB_query($sql,$db); } @@ -63,7 +67,7 @@ //insert wildcard characters in spaces $_POST['Keywords'] = strtoupper($_POST['Keywords']); $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; - + if ($_POST['StockCat']=='All'){ $SQL = "SELECT stockmaster.stockid, stockmaster.description, @@ -166,7 +170,8 @@ } //end of if search if (isset($NewItem) AND isset($_POST['WO'])){ - $InputError=false; + + $InputError=false; $CheckItemResult = DB_query("SELECT mbflag, eoq, controlled @@ -178,7 +183,10 @@ if ($CheckItemRow['controlled']==1 AND $_SESSION['DefineControlledOnWOEntry']==1){ //need to add serial nos or batches to determine quantity $EOQ = 0; } else { - $EOQ = ($ReqQty) ? $ReqQty : $CheckItemRow['eoq']; + if (!isset($ReqQty)) { + $ReqQty=$CheckItemRow['eoq']; + } + $EOQ = $ReqQty; } if ($CheckItemRow['mbflag']!='M'){ prnMsg(_('The item selected cannot be added to a work order because it is not a manufactured item'),'warn'); @@ -201,12 +209,12 @@ if ($InputError==false){ $CostResult = DB_query("SELECT SUM((materialcost+labourcost+overheadcost)*bom.quantity) AS cost - FROM stockmaster INNER JOIN bom - ON stockmaster.stockid=bom.component - WHERE bom.parent='" . $NewItem . "' - AND bom.loccode='" . $_POST['StockLocation'] . "'", - $db); - $CostRow = DB_fetch_row($CostResult); + FROM stockmaster INNER JOIN bom + ON stockmaster.stockid=bom.component + WHERE bom.parent='" . $NewItem . "' + AND bom.loccode='" . $_POST['StockLocation'] . "'", + $db); + $CostRow = DB_fetch_row($CostResult); if (is_null($CostRow[0]) OR $CostRow[0]==0){ $Cost =0; prnMsg(_('The cost of this item as accumulated from the sum of the component costs is nil. This could be because there is no bill of material set up ... you may wish to double check this'),'warn'); @@ -217,25 +225,25 @@ $EOQ=1; } - $Result = DB_Txn_Begin($db); + $Result = DB_Txn_Begin($db); // insert parent item info $sql = "INSERT INTO woitems (wo, - stockid, - qtyreqd, - stdcost) - VALUES ( " . $_POST['WO'] . ", - '" . $NewItem . "', - " . $EOQ . ", - " . $Cost . " - )"; + stockid, + qtyreqd, + stdcost) + VALUES ( " . $_POST['WO'] . ", + '" . $NewItem . "', + " . $EOQ . ", + " . $Cost . " + )"; $ErrMsg = _('The work order item could not be added'); $result = DB_query($sql,$db,$ErrMsg); //Recursively insert real component requirements - see includes/SQL_CommonFunctions.in for function WoRealRequirements WoRealRequirements($db, $_POST['WO'], $_POST['StockLocation'], $NewItem); - $result = DB_Txn_Commit($db); + $result = DB_Txn_Commit($db); unset($NewItem); } //end if there were no input errors @@ -244,20 +252,24 @@ if (isset($_POST['submit'])) { //The update button has been clicked + echo '<a href="' . $_SERVER['PHP_SELF'] . '?' . SID . "'>" . _('Enter a new work order') . '</a>'; + echo '<br><a href="' . $rootpath . '/SelectWorkOrder.php?' . SID . '">' . _('Select an existing work order') . '</a>'; + echo '<br><a href="'. $rootpath . '/WorkOrderCosting.php?' . SID . '&WO=' . $_REQUEST['WO'] . '">' . _('Go to Costing'). '</a>'; + $Input_Error = false; //hope for the best - for ($i=1;$i<=$_POST['NumberOfOutputs'];$i++){ - if (!is_numeric($_POST['OutputQty'.$i])){ - prnMsg(_('The quantity entered must be numeric'),'error'); - $Input_Error = true; - } elseif ($_POST['OutputQty'.$i]<=0){ - prnMsg(_('The quantity entered must be a positive number greater than zero'),'error'); - $Input_Error = true; - } - } - if (!Is_Date($_POST['RequiredBy'])){ - prnMsg(_('The required by date entered is in an invalid format'),'error'); - $Input_Error = true; + for ($i=1;$i<=$_POST['NumberOfOutputs'];$i++){ + if (!is_numeric($_POST['OutputQty'.$i])){ + prnMsg(_('The quantity entered must be numeric'),'error'); + $Input_Error = true; + } elseif ($_POST['OutputQty'.$i]<=0){ + prnMsg(_('The quantity entered must be a positive number greater than zero'),'error'); + $Input_Error = true; + } } + if (!Is_Date($_POST['RequiredBy'])){ + prnMsg(_('The required by date entered is in an invalid format'),'error'); + $Input_Error = true; + } if ($Input_Error == false) { @@ -267,32 +279,34 @@ for ($i=1;$i<=$_POST['NumberOfOutputs'];$i++){ $QtyRecd+=$_POST['RecdQty'.$i]; } + unset($sql); if ($QtyRecd==0){ //can only change factory location if Qty Recd is 0 $sql[] = "UPDATE workorders SET requiredby='" . $SQL_ReqDate . "', loccode='" . $_POST['StockLocation'] . "' - WHERE wo=" . $_POST['WO']; + WHERE wo=" . $_POST['WO']; } else { prnMsg(_('The factory where this work order is made can only be updated if the quantity received on all output items is 0'),'warn'); $sql[] = "UPDATE workorders SET requiredby='" . $SQL_ReqDate . "' WHERE wo=" . $_POST['WO']; } - for ($i=1;$i<=$_POST['NumberOfOutputs'];$i++){ - if (!isset($_POST['NextLotSNRef'.$i])) { - $_POST['NextLotSNRef'.$i]=''; - } - if (isset($_POST['QtyRecd'.$i]) and $_POST['QtyRecd'.$i]>$_POST['OutputQty'.$i]){ - $_POST['OutputQty'.$i]=$_POST['QtyRecd'.$i]; //OutputQty must be >= Qty already reced - } - if ($_POST['RecdQty'.$i]==0 AND $_POST['HasWOSerialNos'.$i]==false){ // can only change location cost if QtyRecd=0 - $CostResult = DB_query("SELECT SUM((materialcost+labourcost+overheadcost)*bom.quantity) AS cost - FROM stockmaster INNER JOIN bom - ON stockmaster.stockid=bom.component - WHERE bom.parent='" . $_POST['OutputItem'.$i] . "' - AND bom.loccode='" . $_POST['StockLocation'] . "'", - $db); - $CostRow = DB_fetch_row($CostResult); + for ($i=1;$i<=$_POST['NumberOfOutputs'];$i++){ + if (!isset($_POST['NextLotSNRef'.$i])) { + $_POST['NextLotSNRef'.$i]=''; + } + if (isset($_POST['QtyRecd'.$i]) and $_POST['QtyRecd'.$i]>$_POST['OutputQty'.$i]){ + $_POST['OutputQty'.$i]=$_POST['QtyRecd'.$i]; //OutputQty must be >= Qty already reced + } + if ($_POST['RecdQty'.$i]==0 AND $_POST['HasWOSerialNos'.$i]==false){ + /* can only change location cost if QtyRecd=0 */ + $CostResult = DB_query("SELECT SUM((materialcost+labourcost+overheadcost)*bom.quantity) AS cost + FROM stockmaster INNER JOIN bom + ON stockmaster.stockid=bom.component + WHERE bom.parent='" . $_POST['OutputItem'.$i] . "' + AND bom.loccode='" . $_POST['StockLocation'] . "'", + $db); + $CostRow = DB_fetch_row($CostResult); if (is_null($CostRow[0])){ $Cost =0; prnMsg(_('The cost of this item as accumulated from the sum of the component costs is nil. This could be because there is no bill of material set up ... you may wish to double check this'),'warn'); @@ -300,39 +314,35 @@ $Cost = $CostRow[0]; } $sql[] = "UPDATE woitems SET qtyreqd = ". $_POST['OutputQty' . $i] . ", - nextlotsnref = '". $_POST['NextLotSNRef'.$i] ."', - stdcost =" . $Cost . " - WHERE wo=" . $_POST['WO'] . " - AND stockid='" . $_POST['OutputItem'.$i] . "'"; - } elseif ($_POST['HasWOSerialNos'.$i]==false) { - $sql[] = "UPDATE woitems SET qtyreqd = ". $_POST['OutputQty' . $i] . ", - nextlotsnref = '". $_POST['NextLotSNRef'.$i] ."' - WHERE wo=" . $_POST['WO'] . " - AND stockid='" . $_POST['OutputItem'.$i] . "'"; - } - } + nextlotsnref = '". $_POST['NextLotSNRef'.$i] ."', + stdcost =" . $Cost . " + WHERE wo=" . $_POST['WO'] . " + AND stockid='" . $_POST['OutputItem'.$i] . "'"; + } elseif (isset($_POST['HasWOSerialNos'.$i]) and $_POST['HasWOSerialNos'.$i]==false) { + $sql[] = "UPDATE woitems SET qtyreqd = ". $_POST['OutputQty' . $i] . ", + nextlotsnref = '". $_POST['NextLotSNRef'.$i] ."' + WHERE wo=" . $_POST['WO'] . " + AND stockid='" . $_POST['OutputItem'.$i] . "'"; + } + } //run the SQL from either of the above possibilites - $ErrMsg = _('The work order could not be added/updated'); - foreach ($sql as $sql_stmt){ - // echo '<br>' . $sql_stmt; - $result = DB_query($sql_stmt,$db,$ErrMsg); + $ErrMsg = _('The work order could not be added/updated'); + foreach ($sql as $sql_stmt){ + // echo '<br>' . $sql_stmt; + $result = DB_query($sql_stmt,$db,$ErrMsg); - } + } - prnMsg(_('The work order has been updated'),'success'); + prnMsg(_('The work order has been updated'),'success'); - for ($i=1;$i<=$_POST['NumberOfOutputs'];$i++){ - unset($_POST['OutputItem'.$i]); - unset($_POST['OutputQty'.$i]); - unset($_POST['QtyRecd'.$i]); - unset($_POST['NetLotSNRef'.$i]); - unset($_POST['HasWOSerialNos'.$i]); - } - echo '<br><a href="' . $_SERVER['PHP_SELF'] . '?' . SID . "'>" . _('Enter a new work order') . '</a>'; - echo '<br><a href="' . $rootpath . '/SelectWorkOrder.php?' . SID . '">' . _('Select an existing work order') . '</a>'; - echo '<br><a href="'. $rootpath . '/WorkOrderCosting.php?' . SID . '&WO=' . $_REQUEST['WO'] . '">' . _('Go to Costing'). '</a>'; - echo '<br><br>'; + for ($i=1;$i<=$_POST['NumberOfOutputs'];$i++){ + unset($_POST['OutputItem'.$i]); + unset($_POST['OutputQty'.$i]); + unset($_POST['QtyRecd'.$i]); + unset($_POST['NetLotSNRef'.$i]); + unset($_POST['HasWOSerialNos'.$i]); + } } } elseif (isset($_POST['delete'])) { //the link to delete a selected record was clicked instead of the submit button @@ -341,8 +351,8 @@ // can't delete it there are open work issues $HasTransResult = DB_query("SELECT * FROM stockmoves - WHERE (stockmoves.type= 26 OR stockmoves.type=28) - AND reference LIKE '%" . $_POST['WO'] . "%'",$db); + WHERE (stockmoves.type= 26 OR stockmoves.type=28) + AND reference LIKE '%" . $_POST['WO'] . "%'",$db); if (DB_num_rows($HasTransResult)>0){ prnMsg(_('This work order cannot be deleted because it has issues or receipts related to it'),'error'); $CancelDelete=true; @@ -352,50 +362,49 @@ DB_Txn_Begin($db); //delete the worequirements $sql = "DELETE FROM worequirements WHERE wo=" . $_POST['WO']; - $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); + $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); //delete the items on the work order $sql = "DELETE FROM woitems WHERE wo=" . $_POST['WO']; - $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); - //delete the controlled items defined in wip + $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); + //delete the controlled items defined in wip $sql="DELETE FROM woserialnos WHERE wo=" . $_POST['WO']; - $ErrMsg=_('The work order serial numbers could not be deleted'); + $ErrMsg=_('The work order serial numbers could not be deleted'); $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); // delete the actual work order $sql="DELETE FROM workorders WHERE wo=" . $_POST['WO']; - $ErrMsg=_('The work order could not be deleted'); + $ErrMsg=_('The work order could not be deleted'); $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); DB_Txn_Commit($db); - prnMsg(_('The work order has been deleted'),'success'); + prnMsg(_('The work order has been deleted'),'success'); echo "<p><a href='" . $rootpath . "/SelectWorkOrder.php?" . SID . "'>" . _('Select an existing outstanding work order') . "</a>"; unset($_POST['WO']); for ($i=1;$i<=$_POST['NumberOfOutputs'];$i++){ - unset($_POST['OutputItem'.$i]); - unset($_POST['OutputQty'.$i]); - unset($_POST['QtyRecd'.$i]); - unset($_POST['NetLotSNRef'.$i]); - unset($_POST['HasWOSerialNos'.$i]); - } - include('includes/footer.inc'); - exit; - } + unset($_POST['OutputItem'.$i]); + unset($_POST['OutputQty'.$i]); + unset($_POST['QtyRecd'.$i]); + unset($_POST['NetLotSNRef'.$i]); + unset($_POST['HasWOSerialNos'.$i]); + } + include('includes/footer.inc'); + exit; + } } echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" name="form">'; -echo '<table>'; +echo '<br><table class=selection>'; - $sql="SELECT workorders.loccode, - requiredby, - startdate, - costissued, - closed - FROM workorders INNER JOIN locations - ON workorders.loccode=locations.loccode - WHERE workorders.wo=" . $_POST['WO']; + requiredby, + startdate, + costissued, + closed + FROM workorders INNER JOIN locations + ON workorders.loccode=locations.loccode + WHERE workorders.wo=" . $_POST['WO']; $WOResult = DB_query($sql,$db); if (DB_num_rows($WOResult)==1){ @@ -429,16 +438,16 @@ if ($WOItem['serialised']==1 AND $WOItem['nextserialno']>0){ $_POST['NextLotSNRef' .$i]=$WOItem['nextserialno']; } else { - $_POST['NextLotSNRef' .$i]=$WOItem['nextlotserialno']; - } + $_POST['NextLotSNRef' .$i]=$WOItem['nextlotsnref']; + } $_POST['Controlled'.$i] =$WOItem['controlled']; $_POST['Serialised'.$i] =$WOItem['serialised']; $HasWOSerialNosResult = DB_query('SELECT * FROM woserialnos WHERE wo=' . $_POST['WO'],$db); if (DB_num_rows($HasWOSerialNosResult)>0){ $_POST['HasWOSerialNos']=true; } else { - $_POST['HasWOSerialNos']=false; - } + $_POST['HasWOSerialNos']=false; + } $i++; } } @@ -469,11 +478,12 @@ } echo '<tr><td class="label">' . _('Required By') . ':</td> - <td><input type="textbox" name="RequiredBy" size=12 maxlength=12 value="' . $_POST['RequiredBy'] . '" onChange="return isDate(this, this.value, '."'".$_SESSION['DefaultDateFormat']."'".')'.'"'.'></td></tr>'; + <td><input type="textbox" name="RequiredBy" size=12 maxlength=12 value="' . $_POST['RequiredBy'] . + '" class="date" alt="'.$_SESSION['DefaultDateFormat'].'"></td></tr>'; if (isset($WOResult)){ echo '<tr><td class="label">' . _('Accumulated Costs') . ':</td> - <td>' . number_format($myrow['costissued'],2) . '</td></tr>'; + <td class=number>' . number_format($myrow['costissued'],2) . '</td></tr>'; } echo '</table> <p><table>'; @@ -483,22 +493,30 @@ <th>' . _('Balance Remaining') . '</th> <th>' . _('Next Lot/SN Ref') . '</th> </tr>'; +$j=0; - if (isset($NumberOfOutputs)){ for ($i=1;$i<=$NumberOfOutputs;$i++){ - echo '<tr><td><input type="hidden" name="OutputItem' . $i . '" value="' . $_POST['OutputItem' .$i] . '">' . $_POST['OutputItem' . $i] . ' - ' . $_POST['OutputItemDesc' .$i] . '</td>'; + if ($j==1) { + echo '<tr class="OddTableRows">'; + $j=0; + } else { + echo '<tr class="EvenTableRows">'; + $j++; + } + echo '<td><input type="hidden" name="OutputItem' . $i . '" value="' . $_POST['OutputItem' .$i] . '">' . + $_POST['OutputItem' . $i] . ' - ' . $_POST['OutputItemDesc' .$i] . '</td>'; 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" 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>'; + echo '<td class=number><input type="hidden" name="RecdQty' . $i . '" value=' . $_POST['RecdQty' .$i] . '>' . $_POST['RecdQty' .$i] .'</td> + <td class=number>' . ($_POST['OutputQty' . $i] - $_POST['RecdQty' .$i]) . '</td>'; if ($_POST['Controlled'.$i]==1){ echo '<td><input type="text" name="NextLotSNRef' .$i . '" value="' . $_POST['NextLotSNRef'.$i] . '"></td>'; - if ($_SESSION['DefineControlledOnWOEntry']==1){ + if ($_SESSION['DefineControlledOnWOEntry']==1){ if ($_POST['Serialised' . $i]==1){ $LotOrSN = _('S/Ns'); } else { @@ -511,9 +529,15 @@ wikiLink('WorkOrder', $_POST['WO'] . $_POST['OutputItem' .$i]); echo '</td>'; echo '</tr>'; - echo '<input type="hidden" name="Controlled' . $i .'" value="' . $_POST['Controlled' . $i] . '">'; - echo '<input type="hidden" name="Serialised' . $i .'" value="' . $_POST['Serialised' . $i] . '">'; - echo '<input type="hidden" name="HasWOSerialNos' . $i .'" value="' . $_POST['HasWOSerialNos' . $i] . '">'; + if (isset($_POST['Controlled' . $i])) { + echo '<input type="hidden" name="Controlled' . $i .'" value="' . $_POST['Controlled' . $i] . '">'; + } + if (isset( $_POST['Serialised' . $i])) { + echo '<input type="hidden" name="Serialised' . $i .'" value="' . $_POST['Serialised' . $i] . '">'; + } + if (isset($_POST['HasWOSerialNos' . $i])) { + echo '<input type="hidden" name="HasWOSerialNos' . $i .'" value="' . $_POST['HasWOSerialNos' . $i] . '">'; + } } echo '<input type=hidden name="NumberOfOutputs" value=' . ($i -1).'>'; } @@ -556,7 +580,7 @@ <td><input type="Text" name="Keywords" size=20 maxlength=25 VALUE="<?php if (isset($_POST['Keywords'])) echo $_POST['Keywords']; ?>"></td></tr> <tr><td></td> <td><font SIZE 3><b><?php echo _('OR'); ?> </b></font><font size=2><?php echo _('Enter extract of the'); ?> <b><?php echo _('Stock Code'); ?></b>:</font></td> - <td><input type="Text" name="StockCode" size=15 maxlength=18 VALUE="<?php if (isset($_POST['StockCode'])) echo $_POST['StockCode']; ?>"></td> + <td><input type="Text" name="StockCode" size=15 maxlength=18 VALUE="<?php if (isset($_POST['StockCode'])) echo $_POST['StockCode']; ?>"></td> </tr> </table> <div class="centre"><input type=submit name="Search" VALUE="<?php echo _('Search Now'); ?>"> @@ -571,8 +595,8 @@ echo '<table cellpadding=2 colspan=7 BORDER=1>'; $TableHeader = '<tr><th>' . _('Code') . '</th> - <th>' . _('Description') . '</th> - <th>' . _('Units') . '</th></tr>'; + <th>' . _('Description') . '</th> + <th>' . _('Units') . '</th></tr>'; echo $TableHeader; $j = 1; $k=0; //row colour counter Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-24 16:42:16 UTC (rev 3519) +++ trunk/doc/Change.log.html 2010-06-24 19:31:09 UTC (rev 3520) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>24/06/10 Tim: WorkOrderEntry.php - sql string must be unset before it can become an array</p> <p>24/06/10 Tim: upgrade3.11.1-3.12.sql - Add fields in salesorderfdetails table to enable new salesman commission program</p> <p>24/06/10 Phil: WOCosting.php fix to variances calculation were based on total quantity of the work order items required not the actual quantity of the work order items received as finished!!! Was correct when first released but has been wrong for several years</p> <p>24/06/10 Tim: Update SMTP server details from the UI rather than hard code into the scripts.</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-24 22:08:47
|
Revision: 3521 http://web-erp.svn.sourceforge.net/web-erp/?rev=3521&view=rev Author: tim_schofield Date: 2010-06-24 22:08:41 +0000 (Thu, 24 Jun 2010) Log Message: ----------- Layout changes Modified Paths: -------------- trunk/SelectWorkOrder.php trunk/doc/Change.log.html Modified: trunk/SelectWorkOrder.php =================================================================== --- trunk/SelectWorkOrder.php 2010-06-24 19:31:09 UTC (rev 3520) +++ trunk/SelectWorkOrder.php 2010-06-24 22:08:41 UTC (rev 3521) @@ -12,11 +12,11 @@ echo '<form action=' . $_SERVER['PHP_SELF'] .'?' .SID . ' method=post>'; -If (isset($_POST['ResetPart'])){ - unset($_REQUEST['SelectedStockItem']); +if (isset($_POST['ResetPart'])){ + unset($_REQUEST['SelectedStockItem']); } -If (isset($_REQUEST['WO']) AND $_REQUEST['WO']!='') { +if (isset($_REQUEST['WO']) AND $_REQUEST['WO']!='') { $_REQUEST['WO'] = trim($_REQUEST['WO']); if (!is_numeric($_REQUEST['WO'])){ prnMsg(_('The work order number entered MUST be numeric'),'warn'); @@ -34,10 +34,10 @@ if (isset($_POST['SearchParts'])){ - If ($_POST['Keywords'] AND $_POST['StockCode']) { + if ($_POST['Keywords'] AND $_POST['StockCode']) { echo _('Stock description keywords have been used in preference to the Stock code extract entered'); } - If ($_POST['Keywords']) { + if ($_POST['Keywords']) { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -101,13 +101,13 @@ if (!isset($StockID)) { - /* Not appropriate really to restrict search by date since may miss older - ouststanding orders + /* Not appropriate really to restrict search by date since may miss older + ouststanding orders $OrdersAfterDate = Date('d/m/Y',Mktime(0,0,0,Date('m')-2,Date('d'),Date('Y'))); - */ + */ if (!isset($_REQUEST['WO']) or ($_REQUEST['WO']=='')){ - + echo '<table class=selection><tr><td>'; echo _('Work Order number') . ": <input type=text name='WO' MAXLENGTH =8 size=9>  " . _('Processing at') . ":<select name='StockLocation'> "; $sql = 'SELECT loccode, locationname FROM locations'; @@ -117,9 +117,9 @@ while ($myrow=DB_fetch_array($resultStkLocs)){ if (isset($_POST['StockLocation'])){ if ($myrow['loccode'] == $_POST['StockLocation']){ - echo "<option selected Value='" . $myrow['loccode'] . "'>" . $myrow['locationname']; + echo "<option selected Value='" . $myrow['loccode'] . "'>" . $myrow['locationname']; } else { - echo "<option Value='" . $myrow['loccode'] . "'>" . $myrow['locationname']; + echo "<option Value='" . $myrow['loccode'] . "'>" . $myrow['locationname']; } } elseif ($myrow['loccode']==$_SESSION['UserStockLocation']){ echo "<option selected Value='" . $myrow['loccode'] . "'>" . $myrow['locationname']; @@ -145,7 +145,7 @@ echo '</select>   '; echo "<input type=submit name='SearchOrders' VALUE='" . _('Search') . "'>"; - echo ' <a href="' . $rootpath . '/WorkOrderEntry.php?' . SID . '">' . _('New Work Order') . '</a>'; + echo ' <a href="' . $rootpath . '/WorkOrderEntry.php?' . SID . '">' . _('New Work Order') . '</a></td></tr></table>'; } $SQL='SELECT categoryid, @@ -156,30 +156,30 @@ $result1 = DB_query($SQL,$db); echo '<hr> - <font size=1>' . _('To search for work orders for a specific item use the item selection facilities below') . "</font> + <table class=selection><tr><td><font size=1>' . _('To search for work orders for a specific item use the item selection facilities below') . "</font> <input type=submit name='SearchParts' VALUE='" . _('Search Items Now') . "'> - <input type=submit name='ResetPart' VALUE='" . _('Show All') . "'> - <table> - <tr> - <td><font size=1>" . _('Select a stock category') . ":</font> - <select name='StockCat'>"; + <input type=submit name='ResetPart' VALUE='" . _('Show All') . "'> </td></tr></table><br> + <table class=selection> + <tr> + <td><font size=1>" . _('Select a stock category') . ":</font> + <select name='StockCat'>"; while ($myrow1 = DB_fetch_array($result1)) { echo "<option VALUE='". $myrow1['categoryid'] . "'>" . $myrow1['categorydescription']; } - echo '</select> - <td><font size=1>' . _('Enter text extract(s) in the description') . ":</font></td> - <td><input type='Text' name='Keywords' size=20 maxlength=25></td> + echo '</select> + <td><font size=1>' . _('Enter text extract(s) in the description') . ":</font></td> + <td><input type='Text' name='Keywords' size=20 maxlength=25></td> </tr> - <tr><td></td> - <td><font SIZE 3><b>" . _('OR') . ' </b></font><font size=1>' . _('Enter extract of the Stock Code') . "</b>:</font></td> - <td><input type='Text' name='StockCode' size=15 maxlength=18></td> - </tr> - </table> - <hr>"; + <tr><td></td> + <td><font SIZE 3><b>" . _('OR') . ' </b></font><font size=1>' . _('Enter extract of the Stock Code') . "</b>:</font></td> + <td><input type='Text' name='StockCode' size=15 maxlength=18></td> + </tr> + </table> + <hr>"; -If (isset($StockItemsResult)) { +if (isset($StockItemsResult)) { echo '<table cellpadding=2 colspan=7 BORDER=2>'; $TableHeader = "<tr> @@ -214,7 +214,7 @@ $myrow['units']); $j++; - If ($j == 12){ + if ($j == 12){ $j=1; echo $TableHeader; } @@ -227,7 +227,7 @@ } //end if stock search results to show else { - + if (!isset($_POST['StockLocation'])) { $_POST['StockLocation'] = ''; } @@ -253,7 +253,7 @@ ORDER BY workorders.wo, woitems.stockid"; } else { - /* $DateAfterCriteria = FormatDateforSQL($OrdersAfterDate); */ + /* $DateAfterCriteria = FormatDateforSQL($OrdersAfterDate); */ if (isset($_REQUEST['SelectedStockItem'])) { $SQL = "SELECT workorders.wo, @@ -356,7 +356,7 @@ $FormatedRequiredByDate); $j++; - If ($j == 12){ + if ($j == 12){ $j=1; echo $tableheader; } Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-24 19:31:09 UTC (rev 3520) +++ trunk/doc/Change.log.html 2010-06-24 22:08:41 UTC (rev 3521) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>24/06/10 Tim: SelectWorkOrder.php - Layout changes</p> <p>24/06/10 Tim: WorkOrderEntry.php - sql string must be unset before it can become an array</p> <p>24/06/10 Tim: upgrade3.11.1-3.12.sql - Add fields in salesorderfdetails table to enable new salesman commission program</p> <p>24/06/10 Phil: WOCosting.php fix to variances calculation were based on total quantity of the work order items required not the actual quantity of the work order items received as finished!!! Was correct when first released but has been wrong for several years</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-24 22:32:28
|
Revision: 3522 http://web-erp.svn.sourceforge.net/web-erp/?rev=3522&view=rev Author: tim_schofield Date: 2010-06-24 22:32:20 +0000 (Thu, 24 Jun 2010) Log Message: ----------- OffersReceived.php - Deal correctly with case where the cancreate flag is turned off for user/currency Modified Paths: -------------- trunk/OffersReceived.php trunk/doc/Change.log.html Modified: trunk/OffersReceived.php =================================================================== --- trunk/OffersReceived.php 2010-06-24 22:08:41 UTC (rev 3521) +++ trunk/OffersReceived.php 2010-06-24 22:32:20 UTC (rev 3522) @@ -32,21 +32,26 @@ LEFT JOIN suppliers ON suppliers.supplierid=offers.supplierid WHERE purchorderauth.userid="'.$_SESSION['UserID'].'" - AND offers.expirydate>"'.date('Y-m-d').'"'; + AND offers.expirydate>"'.date('Y-m-d').'" + AND purchorderauth.cancreate=0'; $result=DB_query($sql, $db); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . - _('Select Supplier') . '" alt="">' . ' ' . _('Select Supplier') . '</p>'; - echo "<form method='post' action=" . $_SERVER['PHP_SELF'] . '?' . SID . '>'; - echo '<table class=selection>'; - echo '<tr><td>'._('Select Supplier').'</td>'; - echo '<td><select name=supplierid>'; - while ($myrow=DB_fetch_array($result)) { - echo '<option value="'.$myrow['supplierid'].'">'.$myrow['suppname'].'</option>'; + if (DB_num_rows($result)==0) { + prnMsg(_('There are no offers outstanding that you are authorised to deal with'), 'information'); + } else { + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . + _('Select Supplier') . '" alt="">' . ' ' . _('Select Supplier') . '</p>'; + echo "<form method='post' action=" . $_SERVER['PHP_SELF'] . '?' . SID . '>'; + echo '<table class=selection>'; + echo '<tr><td>'._('Select Supplier').'</td>'; + echo '<td><select name=supplierid>'; + while ($myrow=DB_fetch_array($result)) { + echo '<option value="'.$myrow['supplierid'].'">'.$myrow['suppname'].'</option>'; + } + echo '</select></td></tr>'; + echo '<tr><td colspan=12><div class="centre"><input type=submit name=select value=' . _('Enter Information') . '></div></td></tr>'; + echo '</table>'; + echo '</form>'; } - echo '</select></td></tr>'; - echo '<tr><td colspan=12><div class="centre"><input type=submit name=select value=' . _('Enter Information') . '></div></td></tr>'; - echo '</table>'; - echo '</form>'; } if (!isset($_POST['submit']) and isset($_POST['supplierid'])) { Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-24 22:08:41 UTC (rev 3521) +++ trunk/doc/Change.log.html 2010-06-24 22:32:20 UTC (rev 3522) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>24/06/10 Tim: OffersReceived.php - Deal correctly with case where the cancreate flag is turned off for user/currency</p> <p>24/06/10 Tim: SelectWorkOrder.php - Layout changes</p> <p>24/06/10 Tim: WorkOrderEntry.php - sql string must be unset before it can become an array</p> <p>24/06/10 Tim: upgrade3.11.1-3.12.sql - Add fields in salesorderfdetails table to enable new salesman commission program</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-25 23:46:22
|
Revision: 3523 http://web-erp.svn.sourceforge.net/web-erp/?rev=3523&view=rev Author: tim_schofield Date: 2010-06-25 23:46:16 +0000 (Fri, 25 Jun 2010) Log Message: ----------- Add facility of the supplier to view, amend, or remove offers. Modified Paths: -------------- trunk/SupplierTenders.php trunk/doc/Change.log.html Modified: trunk/SupplierTenders.php =================================================================== --- trunk/SupplierTenders.php 2010-06-24 22:32:20 UTC (rev 3522) +++ trunk/SupplierTenders.php 2010-06-25 23:46:16 UTC (rev 3523) @@ -48,7 +48,7 @@ echo '<table class=selection>'; echo'<tr><td>'._('Select option for tendering').'</td>'; echo '<td><select name=TenderType>'; -// echo '<option value=1>'._('View or Amend outstanding offers from').' '.$Supplier .'</option>'; + echo '<option value=1>'._('View or Amend outstanding offers from').' '.$Supplier .'</option>'; echo '<option value=2>'._('Create a new offer from').' '.$Supplier .'</option>'; // echo '<option value=3>'._('View any open tenders without an offer from').' '.$Supplier .'</option>'; echo '</select></td></tr>'; @@ -152,6 +152,37 @@ exit; } +/*The supplier has chosen option 1 + */ +if (isset($_POST['TenderType']) and $_POST['TenderType']==1) { + $sql='SELECT offers.offerid, + offers.stockid, + stockmaster.description, + offers.quantity, + offers.uom, + offers.price, + offers.expirydate, + stockmaster.decimalplaces + FROM offers + LEFT JOIN stockmaster + ON offers.stockid=stockmaster.stockid + WHERE offers.supplierid="'.$_POST['SupplierID'].'"'; + $result=DB_query($sql, $db); + $_SESSION['offer']=new Offer(); + $_SESSION['offer']->SupplierID=$_POST['SupplierID']; + $_SESSION['offer']->CurrCode=$Currency; + while ($myrow=DB_fetch_array($result)) { + $_SESSION['offer']->add_to_offer( + $myrow['offerid'], + $myrow['stockid'], + $myrow['quantity'], + $myrow['description'], + $myrow['price'], + $myrow['uom'], + $myrow['decimalplaces']); + } +} + if (isset($_SESSION['offer']) and $_SESSION['offer']->LinesOnOffer>0 or isset($_POST['Update'])) { echo "<form method='post' action=" . $_SERVER['PHP_SELF'] . "?" . SID . ">"; echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/supplier.png" title="' . @@ -192,11 +223,6 @@ echo '</form>'; } -/*The supplier has chosen option 1 - */ -if (isset($_POST['TenderType']) and $_POST['TenderType']==1) { -} - /*The supplier has chosen option 2 */ if (isset($_POST['TenderType']) and $_POST['TenderType']==2 and !isset($_POST['Search']) or isset($_GET['Delete'])) { Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-24 22:32:20 UTC (rev 3522) +++ trunk/doc/Change.log.html 2010-06-25 23:46:16 UTC (rev 3523) @@ -1,6 +1,7 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> -<p>24/06/10 Tim: OffersReceived.php - Deal correctly with case where the cancreate flag is turned off for user/currency</p> +<p>25/06/10 Tim: SupplierTender.php - Add facility of the supplier to view, amend, or remove offers.</p> +<p>24/06/10 Tim: OffersReceived.php - Deal correctly with case where the cancreate flag is turned off for user/currency combination</p> <p>24/06/10 Tim: SelectWorkOrder.php - Layout changes</p> <p>24/06/10 Tim: WorkOrderEntry.php - sql string must be unset before it can become an array</p> <p>24/06/10 Tim: upgrade3.11.1-3.12.sql - Add fields in salesorderfdetails table to enable new salesman commission program</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-25 23:46:43
|
Revision: 3524 http://web-erp.svn.sourceforge.net/web-erp/?rev=3524&view=rev Author: tim_schofield Date: 2010-06-25 23:46:36 +0000 (Fri, 25 Jun 2010) Log Message: ----------- Add in expiry date for offers. Modified Paths: -------------- trunk/SupplierTenders.php trunk/doc/Change.log.html trunk/includes/DefineOfferClass.php Modified: trunk/SupplierTenders.php =================================================================== --- trunk/SupplierTenders.php 2010-06-25 23:46:16 UTC (rev 3523) +++ trunk/SupplierTenders.php 2010-06-25 23:46:36 UTC (rev 3524) @@ -57,7 +57,7 @@ echo '</table></form>'; } -if (isset($_POST['NewItem']) and !isset($_POST['Update'])) { +if (isset($_POST['NewItem']) and !isset($_POST['Refresh'])) { foreach ($_POST as $key => $value) { if (substr($key,0,3)=='qty') { $StockID=substr($key,3); @@ -80,13 +80,14 @@ $myrow['description'], $Price, $UOM, - $myrow['decimalplaces']); + $myrow['decimalplaces'], + DateAdd(date($_SESSION['DefaultDateFormat']),'m',3)); unset($UOM); } } } -if (isset($_POST['Update']) and !isset($_POST['NewItem'])) { +if (isset($_POST['Refresh']) and !isset($_POST['NewItem'])) { foreach ($_POST as $key => $value) { if (substr($key,0,3)=='qty') { $LineNo=substr($key,3); @@ -95,18 +96,87 @@ if (substr($key,0,5)=='price') { $Price=$value; } - if (isset($Price)) { + if (substr($key,0,10)=='expirydate') { + $ExpiryDate=$value; + } + if (isset($ExpiryDate)) { $_SESSION['offer']->update_offer_item( $LineNo, $Quantity, - $Price); - unset($Price); + $Price, + $ExpiryDate); + unset($ExpiryDate); } } } +if (isset($_POST['Update'])) { + $MailText=''; + foreach ($_POST as $key => $value) { + if (substr($key,0,3)=='qty') { + $LineNo=substr($key,3); + $Quantity=$value; + } + if (substr($key,0,5)=='price') { + $Price=$value; + } + if (substr($key,0,10)=='expirydate') { + $ExpiryDate=$value; + } + if (isset($ExpiryDate)) { + $_SESSION['offer']->update_offer_item( + $LineNo, + $Quantity, + $Price, + $ExpiryDate); + unset($ExpiryDate); + } + } + foreach ($_SESSION['offer']->LineItems as $LineItems) { + $sql='UPDATE offers SET + quantity='.$LineItems->Quantity.', + price='.$LineItems->Price.', + expirydate="'.FormatDateForSQL($LineItems->ExpiryDate).'" + WHERE offerid='.$LineItems->LineNo; + $ErrMsg = _('The suppliers offer could not be updated on the database because'); + $DbgMsg = _('The SQL statement used to update the suppliers offer record and failed was'); + $result = DB_query($sql,$db,$ErrMsg,$DbgMsg,true); + if (DB_error_no($db)==0) { + prnMsg( _('The offer for').' '.$LineItems->StockID.' '._('has been updated in the database'), 'success'); + $MailText .= $LineItems->Quantity.$LineItems->Units.' '._('of').' '.$LineItems->StockID.' '._('at a price of'). + ' '.$Currency.$LineItems->Price."\n"; + } else { + prnMsg( _('The offer for').' '.$LineItems->StockID.' '._('could not be updated in the database'), 'error'); + include('includes/footer.inc'); + exit; + } + } + include('includes/footer.inc'); + exit; +} + if (isset($_POST['Save'])) { $MailText=''; + foreach ($_POST as $key => $value) { + if (substr($key,0,3)=='qty') { + $LineNo=substr($key,3); + $Quantity=$value; + } + if (substr($key,0,5)=='price') { + $Price=$value; + } + if (substr($key,0,10)=='expirydate') { + $ExpiryDate=$value; + } + if (isset($ExpiryDate)) { + $_SESSION['offer']->update_offer_item( + $LineNo, + $Quantity, + $Price, + $ExpiryDate); + unset($ExpiryDate); + } + } foreach ($_SESSION['offer']->LineItems as $LineItems) { if ($LineItems->Deleted==False) { $sql='INSERT INTO offers ( @@ -123,7 +193,7 @@ '.$LineItems->Quantity.', "'.$LineItems->Units.'", '.$LineItems->Price.', - "'.FormatDateForSQL(DateAdd(date($_SESSION['DefaultDateFormat']),'m',3)).'", + "'.FormatDateForSQL($LineItems->ExpiryDate).'", "'.$Currency.'" )'; $ErrMsg = _('The suppliers offer could not be inserted into the database because'); @@ -147,14 +217,13 @@ _('You have received the following offer from').' '.$Supplier."\n\n".$MailText); $mail->setFrom($_SESSION['CompanyRecord']['coyname'] . ' <' . $_SESSION['CompanyRecord']['email'] . '>'); $result = $mail->send(array($_SESSION['PurchasingManagerEmail']), 'smtp'); - echo 'x'.$result.'x'; include('includes/footer.inc'); exit; } /*The supplier has chosen option 1 */ -if (isset($_POST['TenderType']) and $_POST['TenderType']==1) { +if (isset($_POST['TenderType']) and $_POST['TenderType']==1 and !isset($_POST['Refresh'])) { $sql='SELECT offers.offerid, offers.stockid, stockmaster.description, @@ -179,7 +248,8 @@ $myrow['description'], $myrow['price'], $myrow['uom'], - $myrow['decimalplaces']); + $myrow['decimalplaces'], + ConvertSQLDate($myrow['expirydate'])); } } @@ -195,6 +265,7 @@ echo '<th>'._('UOM').'</th>'; echo '<th>'._('Price').' ('.$Currency.')</th>'; echo '<th>'._('Line Total').' ('.$Currency.')</th>'; + echo '<th>'._('Expiry Date').' ('.$Currency.')</th>'; echo '</tr>'; $k=0; foreach ($_SESSION['offer']->LineItems as $LineItems) { @@ -212,14 +283,20 @@ echo '<td>'.$LineItems->Units.'</td>'; echo '<td><input type=text class=number name="price'.$LineItems->LineNo.'" value='.number_format($LineItems->Price,2,'.','').'></td>'; echo '<td class=number>'.number_format($LineItems->Price*$LineItems->Quantity,2).'</td>'; + echo '<td><input type=text size=11 class=date alt='.$_SESSION['DefaultDateFormat'].' name="expirydate'.$LineItems->LineNo.'" value='.$LineItems->ExpiryDate.'></td>'; echo "<td><a href='" . $_SERVER['PHP_SELF'] . "?" . SID . "Delete=" . $LineItems->LineNo . "&Type=" . $_POST['TenderType'] . "'>" . _('Remove') . "</a></td></tr>"; echo '</tr>'; } } echo '</table>'; echo '<input type=hidden name=TenderType value="'.$_POST['TenderType'].'">'; - echo '<br><div class="centre"><input type="submit" name="Update" value="Update offer">'; - echo '<input type="submit" name="Save" value="Save offer"></div>'; + if ($_POST['TenderType']==1) { + echo '<br><div class="centre"><input type="submit" name="Update" value="Update offer">'; + echo '<input type="submit" name="Refresh" value="Refresh screen"></div>'; + } else if ($_POST['TenderType']==2) { + echo '<br><div class="centre"><input type="submit" name="Save" value="Save offer">'; + echo '<input type="submit" name="Refresh" value="Refresh screen"></div>'; + } echo '</form>'; } @@ -477,7 +554,7 @@ prnMsg( _('Only the first') . ' ' . $Maximum_Number_Of_Parts_To_Show . ' ' . _('can be displayed') . '. ' . _('Please restrict your search to only the parts required'),'info'); } - echo '<a name="end"></a><br><div class="centre"><input type="submit" name="NewItem" value="Update offer"></div>'; + echo '<a name="end"></a><br><div class="centre"><input type="submit" name="NewItem" value="Add to Offer"></div>'; }#end if SearchResults to show echo '<input type="hidden" name="TenderType" value='.$_POST['TenderType'].'>'; echo '<input type="hidden" name="SupplierID" value='.$_POST['SupplierID'].'>'; Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-25 23:46:16 UTC (rev 3523) +++ trunk/doc/Change.log.html 2010-06-25 23:46:36 UTC (rev 3524) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>25/06/10 Tim: SupplierTender.php - Add in expiry date for offers.</p> <p>25/06/10 Tim: SupplierTender.php - Add facility of the supplier to view, amend, or remove offers.</p> <p>24/06/10 Tim: OffersReceived.php - Deal correctly with case where the cancreate flag is turned off for user/currency combination</p> <p>24/06/10 Tim: SelectWorkOrder.php - Layout changes</p> Modified: trunk/includes/DefineOfferClass.php =================================================================== --- trunk/includes/DefineOfferClass.php 2010-06-25 23:46:16 UTC (rev 3523) +++ trunk/includes/DefineOfferClass.php 2010-06-25 23:46:36 UTC (rev 3524) @@ -63,7 +63,8 @@ $ItemDescr, $Price, $UOM, - $DecimalPlaces){ + $DecimalPlaces, + $ExpiryDate){ if (isset($Qty) and $Qty!=0){ @@ -73,7 +74,8 @@ $ItemDescr, $Price, $UOM, - $DecimalPlaces); + $DecimalPlaces, + $ExpiryDate); $this->LinesOnOffer++; Return 1; } @@ -82,10 +84,12 @@ function update_offer_item($LineNo, $Qty, - $Price){ + $Price, + $ExpiryDate){ $this->LineItems[$LineNo]->Quantity = $Qty; $this->LineItems[$LineNo]->Price = $Price; + $this->LineItems[$LineNo]->ExpiryDate = $ExpiryDate; } function remove_from_offer(&$LineNo){ @@ -112,6 +116,7 @@ var $Units; var $DecimalPlaces; var $Deleted; + var $ExpiryDate; function LineDetails ( $LineNo, @@ -120,7 +125,8 @@ $ItemDescr, $Prc, $UOM, - $DecimalPlaces) + $DecimalPlaces, + $ExpiryDate) { /* Constructor function to add a new LineDetail object with passed params */ @@ -131,6 +137,7 @@ $this->Price = $Prc; $this->Units = $UOM; $this->DecimalPlaces = $DecimalPlaces; + $this->ExpiryDate = $ExpiryDate; $this->Deleted = False; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-26 07:43:43
|
Revision: 3525 http://web-erp.svn.sourceforge.net/web-erp/?rev=3525&view=rev Author: tim_schofield Date: 2010-06-26 07:43:37 +0000 (Sat, 26 Jun 2010) Log Message: ----------- Highlight any expired offers. Modified Paths: -------------- trunk/SupplierTenders.php trunk/doc/Change.log.html Modified: trunk/SupplierTenders.php =================================================================== --- trunk/SupplierTenders.php 2010-06-25 23:46:36 UTC (rev 3524) +++ trunk/SupplierTenders.php 2010-06-26 07:43:37 UTC (rev 3525) @@ -265,7 +265,7 @@ echo '<th>'._('UOM').'</th>'; echo '<th>'._('Price').' ('.$Currency.')</th>'; echo '<th>'._('Line Total').' ('.$Currency.')</th>'; - echo '<th>'._('Expiry Date').' ('.$Currency.')</th>'; + echo '<th>'._('Expiry Date').'</th>'; echo '</tr>'; $k=0; foreach ($_SESSION['offer']->LineItems as $LineItems) { @@ -277,6 +277,9 @@ echo '<tr class="OddTableRows">'; $k=1; } + if ($LineItems->ExpiryDate < date('Y-m-d')) { + echo '<tr bgcolor=#F7A9A9>'; + } echo '<td>'.$LineItems->StockID.'</td>'; echo '<td>'.$LineItems->ItemDescription.'</td>'; echo '<td><input type=text class=number name="qty'.$LineItems->LineNo.'" value='.number_format($LineItems->Quantity,$LineItems->DecimalPlaces).'></td>'; Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-25 23:46:36 UTC (rev 3524) +++ trunk/doc/Change.log.html 2010-06-26 07:43:37 UTC (rev 3525) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>25/06/10 Tim: SupplierTender.php - Highlight any expired offers.</p> <p>25/06/10 Tim: SupplierTender.php - Add in expiry date for offers.</p> <p>25/06/10 Tim: SupplierTender.php - Add facility of the supplier to view, amend, or remove offers.</p> <p>24/06/10 Tim: OffersReceived.php - Deal correctly with case where the cancreate flag is turned off for user/currency combination</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-26 08:05:42
|
Revision: 3526 http://web-erp.svn.sourceforge.net/web-erp/?rev=3526&view=rev Author: tim_schofield Date: 2010-06-26 08:05:36 +0000 (Sat, 26 Jun 2010) Log Message: ----------- Add in A5 parameters. Modified Paths: -------------- trunk/doc/Change.log.html trunk/includes/PDFStarter.php Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-26 07:43:37 UTC (rev 3525) +++ trunk/doc/Change.log.html 2010-06-26 08:05:36 UTC (rev 3526) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>25/06/10 Tim: PDFStarter.php - Add in A5 parameters.</p> <p>25/06/10 Tim: SupplierTender.php - Highlight any expired offers.</p> <p>25/06/10 Tim: SupplierTender.php - Add in expiry date for offers.</p> <p>25/06/10 Tim: SupplierTender.php - Add facility of the supplier to view, amend, or remove offers.</p> Modified: trunk/includes/PDFStarter.php =================================================================== --- trunk/includes/PDFStarter.php 2010-06-26 07:43:37 UTC (rev 3525) +++ trunk/includes/PDFStarter.php 2010-06-26 08:05:36 UTC (rev 3526) @@ -54,6 +54,30 @@ $Right_Margin=30; break; + case 'A5': + + $DocumentPaper = 'A5'; $DocumentOrientation ='P'; + + $Page_Width=421; + $Page_Height=595; + $Top_Margin=30; + $Bottom_Margin=30; + $Left_Margin=40; + $Right_Margin=30; + break; + + case 'A5_Landscape': + + $DocumentPaper = 'A5'; $DocumentOrientation ='L'; + + $Page_Width=595; + $Page_Height=421; + $Top_Margin=30; + $Bottom_Margin=30; + $Left_Margin=40; + $Right_Margin=30; + break; + case 'A3': $DocumentPaper = 'A3'; $DocumentOrientation ='P'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-26 15:02:48
|
Revision: 3527 http://web-erp.svn.sourceforge.net/web-erp/?rev=3527&view=rev Author: tim_schofield Date: 2010-06-26 15:02:41 +0000 (Sat, 26 Jun 2010) Log Message: ----------- Add the ability to have supplier types. Modified Paths: -------------- trunk/Suppliers.php trunk/doc/Change.log.html trunk/sql/mysql/upgrade3.11.1-3.12.sql Added Paths: ----------- trunk/SupplierTypes.php Added: trunk/SupplierTypes.php =================================================================== --- trunk/SupplierTypes.php (rev 0) +++ trunk/SupplierTypes.php 2010-06-26 15:02:41 UTC (rev 3527) @@ -0,0 +1,256 @@ +<?php +/* $Revision: 1.6 $ */ +/* $Id$*/ + +$PageSecurity = 4; + +include('includes/session.inc'); +$title = _('Supplier Types') . ' / ' . _('Maintenance'); +include('includes/header.inc'); + +if (isset($_POST['SelectedType'])){ + $SelectedType = strtoupper($_POST['SelectedType']); +} elseif (isset($_GET['SelectedType'])){ + $SelectedType = strtoupper($_GET['SelectedType']); +} + +if (isset($Errors)) { + unset($Errors); +} + +$Errors = array(); + +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Supplier Types') + . '" alt="">' . _('Supplier Type Setup') . '</p>'; +echo '<div class="page_help_text">' . _('Add/edit/delete Supplier Types') . '</div><br>'; + +if (isset($_POST['submit'])) { + + //initialise no input errors assumed initially before we test + $InputError = 0; + + /* actions to take once the user has clicked the submit button + ie the page has called itself with some user input */ + + //first off validate inputs sensible + $i=1; + if (strlen($_POST['typename']) >100) { + $InputError = 1; + echo prnMsg(_('The supplier type name description must be 100 characters or less long'),'error'); + $Errors[$i] = 'SupplierType'; + $i++; + } + + if (strlen($_POST['typename'])==0) { + $InputError = 1; + echo prnMsg(_('The supplier type name description must contain at least one character'),'error'); + $Errors[$i] = 'SupplierType'; + $i++; + } + + $checksql = "SELECT count(*) + FROM suppliertype + WHERE typename = '" . $_POST['typename'] . "'"; + $checkresult=DB_query($checksql, $db); + $checkrow=DB_fetch_row($checkresult); + if ($checkrow[0]>0) { + $InputError = 1; + echo prnMsg(_('You already have a supplier type called').' '.$_POST['typename'],'error'); + $Errors[$i] = 'SupplierName'; + $i++; + } + + if (isset($SelectedType) AND $InputError !=1) { + + $sql = "UPDATE suppliertype + SET typename = '" . $_POST['typename'] . "' + WHERE typeid = '$SelectedType'"; + + $msg = _('The supplier type') . ' ' . $SelectedType . ' ' . _('has been updated'); + } elseif ( $InputError !=1 ) { + + // First check the type is not being duplicated + + $checkSql = "SELECT count(*) + FROM suppliertype + WHERE typeid = '" . $_POST['typeid'] . "'"; + + $checkresult = DB_query($checkSql,$db); + $checkrow = DB_fetch_row($checkresult); + + if ( $checkrow[0] > 0 ) { + $InputError = 1; + prnMsg( _('The supplier type ') . $_POST['typeid'] . _(' already exist.'),'error'); + } else { + + // Add new record on submit + + $sql = "INSERT INTO suppliertype + (typename) + VALUES ('" . $_POST['typename'] . "')"; + + + $msg = _('Supplier type') . ' ' . $_POST["typename"] . ' ' . _('has been created'); + $checkSql = "SELECT count(typeid) + FROM suppliertype"; + $result = DB_query($checkSql, $db); + $row = DB_fetch_row($result); + + } + } + + if ( $InputError !=1) { + //run the SQL from either of the above possibilites + $result = DB_query($sql,$db); + + + // Fetch the default price list. + $sql = "SELECT confvalue + FROM config + WHERE confname='DefaultSupplierType'"; + $result = DB_query($sql,$db); + $SupplierTypeRow = DB_fetch_row($result); + $DefaultSupplierType = $SupplierTypeRow[0]; + + // Does it exist + $checkSql = "SELECT count(*) + FROM suppliertype + WHERE typeid = '" . $DefaultSupplierType . "'"; + $checkresult = DB_query($checkSql,$db); + $checkrow = DB_fetch_row($checkresult); + + // If it doesnt then update config with newly created one. + if ($checkrow[0] == 0) { + $sql = "UPDATE config + SET confvalue='" . $_POST['typeid'] . "' + WHERE confname='DefaultSupplierType'"; + $result = DB_query($sql,$db); + $_SESSION['DefaultSupplierType'] = $_POST['typeid']; + } + + prnMsg($msg,'success'); + + unset($SelectedType); + unset($_POST['typeid']); + unset($_POST['typename']); + } + +} elseif ( isset($_GET['delete']) ) { + + $sql = "SELECT COUNT(*) FROM suppliers WHERE supptype='$SelectedType'"; + + $ErrMsg = _('The number of suppliers using this Type record could not be retrieved because'); + $result = DB_query($sql,$db,$ErrMsg); + $myrow = DB_fetch_row($result); + if ($myrow[0]>0) { + prnMsg (_('Cannot delete this type because suppliers are currently set up to use this type') . '<br>' . + _('There are') . ' ' . $myrow[0] . ' ' . _('suppliers with this type code')); + } else { + + $sql="DELETE FROM suppliertype WHERE typeid='$SelectedType'"; + $ErrMsg = _('The Type record could not be deleted because'); + $result = DB_query($sql,$db,$ErrMsg); + prnMsg(_('Supplier type') . $SelectedType . ' ' . _('has been deleted') ,'success'); + + unset ($SelectedType); + unset($_GET['delete']); + + } +} + +if (!isset($SelectedType)){ + +/* It could still be the second time the page has been run and a record has been selected for modification - SelectedType will + * exist because it was sent with the new call. If its the first time the page has been displayed with no parameters then + * none of the above are true and the list of sales types will be displayed with links to delete or edit each. These will call + * the same page again and allow update/input or deletion of the records + */ + + $sql = 'SELECT typeid, typename FROM suppliertype'; + $result = DB_query($sql,$db); + + echo '<br><table class=selection>'; + echo "<tr> + <th>" . _('Type ID') . "</th> + <th>" . _('Type Name') . "</th> + </tr>"; + +$k=0; //row colour counter + +while ($myrow = DB_fetch_row($result)) { + if ($k==1){ + echo '<tr class="EvenTableRows">'; + $k=0; + } else { + echo '<tr class="OddTableRows">'; + $k=1; + } + + printf(" + <td>%s</td> + <td>%s</td> + <td><a href='%sSelectedType=%s'>" . _('Edit') . "</td> + <td><a href='%sSelectedType=%s&delete=yes' onclick=\"return confirm('" . + _('Are you sure you wish to delete this Supplier Type?') . "');\">" . _('Delete') . "</td> + </tr>", + $myrow[0], + $myrow[1], + $_SERVER['PHP_SELF'] . '?' . SID, $myrow[0], + $_SERVER['PHP_SELF'] . '?' . SID, $myrow[0]); + } + //END WHILE LIST LOOP + echo '</table>'; +} + +//end of ifs and buts! +if (isset($SelectedType)) { + + echo '<div class="centre"><p><a href="' . $_SERVER['PHP_SELF'] . '?' . SID . '">' . _('Show All Types Defined') . '</a></div><p>'; +} +if (! isset($_GET['delete'])) { + + echo "<form method='post' action=" . $_SERVER['PHP_SELF'] . '?' . SID . '>'; + echo '<p><table class=selection>'; //Main table + echo '<td>'; // First column + + + // The user wish to EDIT an existing type + if ( isset($SelectedType) AND $SelectedType!='' ) + { + + $sql = "SELECT typeid, + typename + FROM suppliertype + WHERE typeid='$SelectedType'"; + + $result = DB_query($sql, $db); + $myrow = DB_fetch_array($result); + + $_POST['typeid'] = $myrow['typeid']; + $_POST['typename'] = $myrow['typename']; + + echo "<input type=hidden name='SelectedType' VALUE=" . $SelectedType . ">"; + echo "<input type=hidden name='typeid' VALUE=" . $_POST['typeid'] . ">"; + + // We dont allow the user to change an existing type code + + echo 'Type ID: </td><td>' . $_POST['typeid'] . '</td></tr>'; + + } + + if (!isset($_POST['typename'])) { + $_POST['typename']=''; + } + echo "<tr><td>" . _('Type Name') . ":</td><td><input type='Text' name='typename' value='" . $_POST['typename'] . "'></td></tr>"; + + echo '<tr><td colspan=2><p><div class="centre"><input type=submit name=submit VALUE="' . _('Accept') . '"></div>'; + + echo '</td></tr></table>'; // close main table + + echo '</form>'; + +} // end if user wish to delete + + +include('includes/footer.inc'); +?> \ No newline at end of file Modified: trunk/Suppliers.php =================================================================== --- trunk/Suppliers.php 2010-06-26 08:05:36 UTC (rev 3526) +++ trunk/Suppliers.php 2010-06-26 15:02:41 UTC (rev 3527) @@ -465,6 +465,7 @@ telephone='".$_POST['Phone']."', fax = '".$_POST['Fax']."', email = '".$_POST['Email']."', + supptype = ".$_POST['SupplierType'].", currcode='" . $_POST['CurrCode'] . "', suppliersince='$SQL_SupplierSince', paymentterms='" . $_POST['PaymentTerms'] . "', @@ -490,6 +491,7 @@ telephone='".$_POST['Phone']."', fax = '".$_POST['Fax']."', email = '".$_POST['Email']."', + supptype = ".$_POST['SupplierType'].", suppliersince='$SQL_SupplierSince', paymentterms='" . $_POST['PaymentTerms'] . "', bankpartics='" . $_POST['BankPartics'] . "', @@ -522,6 +524,7 @@ telephone, fax, email, + supptype, currcode, suppliersince, paymentterms, @@ -543,6 +546,7 @@ '".$_POST['Phone']."', '".$_POST['Fax']."', '".$_POST['Email']."', + ".$_POST['SupplierType'].", '" . $_POST['CurrCode'] . "', '" . $SQL_SupplierSince . "', '" . $_POST['PaymentTerms'] . "', @@ -572,6 +576,7 @@ unset($_POST['Phone']); unset($_POST['Fax']); unset($_POST['Email']); + unset($_POST['SupplierType']); unset($_POST['CurrCode']); unset($SQL_SupplierSince); unset($_POST['PaymentTerms']); @@ -646,7 +651,7 @@ echo "<input type='hidden' name='New' VALUE='Yes'>"; - echo '<table>'; + echo '<table class=selection>'; echo '<tr><td>' . _('Supplier Code') . ":</td><td><input type='text' name='SupplierID' size=11 maxlength=10></td></tr>"; echo '<tr><td>' . _('Supplier Name') . ":</td><td><input type='text' name='SuppName' size=42 maxlength=40></td></tr>"; echo '<tr><td>' . _('Address Line 1 (Street)') . ":</td><td><input type='text' name='Address1' size=42 maxlength=40></td></tr>"; @@ -656,6 +661,12 @@ echo '<tr><td>' . _('Telephone') . ":</td><td><input type='text' name='Phone' size=30 maxlength=40></td></tr>"; echo '<tr><td>' . _('Facsimile') . ":</td><td><input type='text' name='Fax' size=30 maxlength=40></td></tr>"; echo '<tr><td>' . _('Email Address') . ":</td><td><input type='text' name='Email' size=30 maxlength=40></td></tr>"; + echo '<tr><td>' . _('Supplier Type') . ":</td><td><select name='SupplierType'>"; + $result=DB_query('SELECT typeid, typename FROM suppliertype', $db); + while ($myrow = DB_fetch_array($result)) { + echo "<option VALUE='". $myrow['typeid'] . "'>" . $myrow['typename']; + } //end while loop + echo "</select></td></tr>"; $DateString = Date($_SESSION['DefaultDateFormat']); echo '<tr><td>' . _('Supplier Since') . ' (' . $_SESSION['DefaultDateFormat'] . "):</td><td><input type='text' class='date' alt='".$_SESSION['DefaultDateFormat']."' name='SupplierSince' VALUE=$DateString size=12 maxlength=10></td></tr>"; @@ -734,7 +745,7 @@ //SupplierID exists - either passed when calling the form or from the form itself echo "<form method='post' action='" . $_SERVER['PHP_SELF'] . "?" . SID . "'>"; - echo '<table>'; + echo '<table class=selection>'; if (!isset($_POST['New'])) { $sql = "SELECT supplierid, @@ -746,6 +757,7 @@ telephone, fax, email, + supptype, currcode, suppliersince, paymentterms, @@ -771,6 +783,7 @@ $_POST['Phone'] = $myrow['telephone']; $_POST['Fax'] = $myrow['fax']; $_POST['Email'] = $myrow['email']; + $_POST['SupplierType'] = $myrow['supptype']; $_POST['SupplierSince'] = ConvertSQLDate($myrow['suppliersince']); $_POST['PaymentTerms'] = $myrow['paymentterms']; $_POST['BankPartics'] = stripcslashes($myrow['bankpartics']); @@ -797,6 +810,16 @@ echo '<tr><td>' . _('Telephone') . ':</td><td><input '.(in_array('Name',$Errors) ? 'class="inputerror"' : '').' type="text" name="Phone" VALUE="' . $_POST['Phone'] . '" size=42 maxlength=40></td></tr>'; echo '<tr><td>' . _('Facsimile') . ':</td><td><input '.(in_array('Name',$Errors) ? 'class="inputerror"' : '').' type="text" name="Fax" VALUE="' . $_POST['Fax'] . '" size=42 maxlength=40></td></tr>'; echo '<tr><td>' . _('Email Address') . ':</td><td><input '.(in_array('Name',$Errors) ? 'class="inputerror"' : '').' type="text" name="Email" VALUE="' . $_POST['Email'] . '" size=42 maxlength=40></td></tr>'; + echo '<tr><td>' . _('Supplier Type') . ":</td><td><select name='SupplierType'>"; + $result=DB_query('SELECT typeid, typename FROM suppliertype', $db); + while ($myrow = DB_fetch_array($result)) { + if ($_POST['SupplierType']==$myrow['typeid']) { + echo "<option selected value='". $myrow['typeid'] . "'>" . $myrow['typename']; + } else { + echo "<option value='". $myrow['typeid'] . "'>" . $myrow['typename']; + } + } //end while loop + echo "</select></td></tr>"; echo '<tr><td>' . _('Supplier Since') . ' (' . $_SESSION['DefaultDateFormat'] .'):</td><td><input '.(in_array('SupplierSince',$Errors) ? 'class="inputerror"' : '').' size=12 maxlength=10 type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="SupplierSince" VALUE=' . $_POST['SupplierSince'] . '></td></tr>'; echo '<tr><td>' . _('Bank Particulars') . ":</td><td><input type='text' name='BankPartics' size=13 maxlength=12 VALUE='" . $_POST['BankPartics'] . "'></td></tr>"; @@ -877,15 +900,15 @@ if (isset($_POST['New'])) { echo "<p><div class='centre'>><input type='Submit' name='submit' VALUE='" . _('Add These New Supplier Details') . "'></form>"; } else { - echo "<p><div class='centre'><input type='Submit' name='submit' VALUE='" . _('Update Supplier') . "'>"; + echo "<br><p><div class='centre'><input type='Submit' name='submit' VALUE='" . _('Update Supplier') . "'></div><br>"; // echo '<p><font color=red><b>' . _('WARNING') . ': ' . _('There is no second warning if you hit the delete button below') . '. ' . _('However checks will be made to ensure there are no outstanding purchase orders or existing accounts payable transactions before the deletion is processed') . '<br></font></b>'; prnMsg(_('WARNING') . ': ' . _('There is no second warning if you hit the delete button below') . '. ' . _('However checks will be made to ensure there are no outstanding purchase orders or existing accounts payable transactions before the deletion is processed'), 'Warn'); - echo "<input type='Submit' name='delete' VALUE='" . _('Delete Supplier') . "' onclick=\"return confirm('" . _('Are you sure you wish to delete this supplier?') . "');\"></form>"; - echo "<br><a href='$rootpath/SupplierContacts.php?" . SID . "SupplierID=$SupplierID'>" . _('Review Contact Details') . '</a>'; + echo "<br><div class=centre><input type='Submit' name='delete' VALUE='" . _('Delete Supplier') . "' onclick=\"return confirm('" . + _('Are you sure you wish to delete this supplier?') . "');\"></form>"; + echo "<br><a href='$rootpath/SupplierContacts.php?" . SID . "SupplierID=$SupplierID'>" . _('Review Contact Details') . '</a></div>'; } echo '</div>'; } // end of main ifs include('includes/footer.inc'); -?> - +?> \ No newline at end of file Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-26 08:05:36 UTC (rev 3526) +++ trunk/doc/Change.log.html 2010-06-26 15:02:41 UTC (rev 3527) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>25/06/10 Tim: Add the ability to have supplier types.</p> <p>25/06/10 Tim: PDFStarter.php - Add in A5 parameters.</p> <p>25/06/10 Tim: SupplierTender.php - Highlight any expired offers.</p> <p>25/06/10 Tim: SupplierTender.php - Add in expiry date for offers.</p> Modified: trunk/sql/mysql/upgrade3.11.1-3.12.sql =================================================================== --- trunk/sql/mysql/upgrade3.11.1-3.12.sql 2010-06-26 08:05:36 UTC (rev 3526) +++ trunk/sql/mysql/upgrade3.11.1-3.12.sql 2010-06-26 15:02:41 UTC (rev 3527) @@ -267,3 +267,13 @@ ALTER TABLE `salesorderdetails` ADD COLUMN `commissionrate` double NOT NULL DEFAULT 0.0; ALTER TABLE `salesorderdetails` ADD COLUMN `commissionearned` double NOT NULL DEFAULT 0.0; + +CREATE TABLE `suppliertype` ( + `typeid` tinyint(4) NOT NULL AUTO_INCREMENT, + `typename` varchar(100) NOT NULL, + PRIMARY KEY (`typeid`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; + +INSERT INTO `config` VALUES ('DefaultSupplierType', 1); +INSERT INTO `suppliertype` VALUES(1, 'Default'); +ALTER TABLE `suppliers` ADD COLUMN `supptype` tinyint(4) NOT NULL DEFAULT 1 AFTER `address6`; \ 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-06-26 15:03:10
|
Revision: 3528 http://web-erp.svn.sourceforge.net/web-erp/?rev=3528&view=rev Author: tim_schofield Date: 2010-06-26 15:03:02 +0000 (Sat, 26 Jun 2010) Log Message: ----------- FormDesigner.php - Add A5 to the paper sizes. Modified Paths: -------------- trunk/FormDesigner.php trunk/doc/Change.log.html Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2010-06-26 15:02:41 UTC (rev 3527) +++ trunk/FormDesigner.php 2010-06-26 15:03:02 UTC (rev 3528) @@ -157,7 +157,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', 'letter_Portrait', 'letter_Landscape', 'legal_Portrait', 'legal_Landscape'); // Possible paper sizes/orientations +$Papers=array('A4_Landscape', 'A4_Portrait', 'A5_Landscape', 'A5_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=95% border=1>'; //Start of outer table Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-26 15:02:41 UTC (rev 3527) +++ trunk/doc/Change.log.html 2010-06-26 15:03:02 UTC (rev 3528) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>25/06/10 Tim: FormDesigner.php - Add A5 to the paper sizes.</p> <p>25/06/10 Tim: Add the ability to have supplier types.</p> <p>25/06/10 Tim: PDFStarter.php - Add in A5 parameters.</p> <p>25/06/10 Tim: SupplierTender.php - Highlight any expired offers.</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-26 20:11:34
|
Revision: 3530 http://web-erp.svn.sourceforge.net/web-erp/?rev=3530&view=rev Author: tim_schofield Date: 2010-06-26 20:11:27 +0000 (Sat, 26 Jun 2010) Log Message: ----------- Layout improvements. Modified Paths: -------------- trunk/SelectCompletedOrder.php trunk/doc/Change.log.html Modified: trunk/SelectCompletedOrder.php =================================================================== --- trunk/SelectCompletedOrder.php 2010-06-26 16:56:05 UTC (rev 3529) +++ trunk/SelectCompletedOrder.php 2010-06-26 20:11:27 UTC (rev 3530) @@ -85,111 +85,111 @@ if ($_POST['Keywords']!='') { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; - + if (isset($_POST['completed'])) { - $SQL = "SELECT stockmaster.stockid, - stockmaster.description, - SUM(locstock.quantity) AS qoh, - SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, - stockmaster.units, - SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem - FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) + $SQL = "SELECT stockmaster.stockid, + stockmaster.description, + SUM(locstock.quantity) AS qoh, + SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, + stockmaster.units, + SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem + FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) LEFT JOIN locstock ON stockmaster.stockid=locstock.stockid) - LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) - WHERE salesorderdetails.completed =1 - AND stockmaster.description " . LIKE . "'$SearchString' - AND stockmaster.categoryid='" . $_POST['StockCat'] . "' - GROUP BY stockmaster.stockid, - stockmaster.description, - stockmaster.units + LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) + WHERE salesorderdetails.completed =1 + AND stockmaster.description " . LIKE . "'$SearchString' + AND stockmaster.categoryid='" . $_POST['StockCat'] . "' + GROUP BY stockmaster.stockid, + stockmaster.description, + stockmaster.units ORDER BY stockmaster.stockid"; } else { - $SQL = "SELECT stockmaster.stockid, - stockmaster.description, - SUM(locstock.quantity) AS qoh, - SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, - stockmaster.units, - SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem - FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) + $SQL = "SELECT stockmaster.stockid, + stockmaster.description, + SUM(locstock.quantity) AS qoh, + SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, + stockmaster.units, + SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem + FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) LEFT JOIN locstock ON stockmaster.stockid=locstock.stockid) - LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) - WHERE stockmaster.description " . LIKE . "'$SearchString' - AND stockmaster.categoryid='" . $_POST['StockCat'] . "' - GROUP BY stockmaster.stockid, - stockmaster.description, - stockmaster.units + LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) + WHERE stockmaster.description " . LIKE . "'$SearchString' + AND stockmaster.categoryid='" . $_POST['StockCat'] . "' + GROUP BY stockmaster.stockid, + stockmaster.description, + stockmaster.units ORDER BY stockmaster.stockid"; } } elseif ($_POST['StockCode']!=''){ if (isset($_POST['completed'])) { - $SQL = "SELECT stockmaster.stockid, - stockmaster.description, - SUM(locstock.quantity) AS qoh, - SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, - SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem, - stockmaster.units - FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) + $SQL = "SELECT stockmaster.stockid, + stockmaster.description, + SUM(locstock.quantity) AS qoh, + SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, + SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem, + stockmaster.units + FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) LEFT JOIN locstock ON stockmaster.stockid=locstock.stockid) - LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) - WHERE salesorderdetails.completed =1 - AND stockmaster.stockid " . LIKE . " '%" . $_POST['StockCode'] . "%' - AND stockmaster.categoryid='" . $_POST['StockCat'] . "' - GROUP BY stockmaster.stockid, - stockmaster.description, - stockmaster.units + LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) + WHERE salesorderdetails.completed =1 + AND stockmaster.stockid " . LIKE . " '%" . $_POST['StockCode'] . "%' + AND stockmaster.categoryid='" . $_POST['StockCat'] . "' + GROUP BY stockmaster.stockid, + stockmaster.description, + stockmaster.units ORDER BY stockmaster.stockid"; } else { - $SQL = "SELECT stockmaster.stockid, - stockmaster.description, - SUM(locstock.quantity) AS qoh, - SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, - SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem, - stockmaster.units - FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) + $SQL = "SELECT stockmaster.stockid, + stockmaster.description, + SUM(locstock.quantity) AS qoh, + SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, + SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem, + stockmaster.units + FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) LEFT JOIN locstock ON stockmaster.stockid=locstock.stockid) - LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) - WHERE stockmaster.stockid " . LIKE . " '%" . $_POST['StockCode'] . "%' - AND stockmaster.categoryid='" . $_POST['StockCat'] . "' - GROUP BY stockmaster.stockid, - stockmaster.description, - stockmaster.units + LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) + WHERE stockmaster.stockid " . LIKE . " '%" . $_POST['StockCode'] . "%' + AND stockmaster.categoryid='" . $_POST['StockCat'] . "' + GROUP BY stockmaster.stockid, + stockmaster.description, + stockmaster.units ORDER BY stockmaster.stockid"; } } elseif ($_POST['StockCode']=='' AND $_POST['Keywords']=='' AND $_POST['StockCat']!='') { - + if (isset($_POST['completed'])) { - $SQL = "SELECT stockmaster.stockid, - stockmaster.description, - SUM(locstock.quantity) AS qoh, - SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, - SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem, - stockmaster.units - FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) + $SQL = "SELECT stockmaster.stockid, + stockmaster.description, + SUM(locstock.quantity) AS qoh, + SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, + SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem, + stockmaster.units + FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) LEFT JOIN locstock ON stockmaster.stockid=locstock.stockid) - LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) - WHERE salesorderdetails.completed=1 - AND stockmaster.categoryid='" . $_POST['StockCat'] . "' - GROUP BY stockmaster.stockid, - stockmaster.description, - stockmaster.units + LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) + WHERE salesorderdetails.completed=1 + AND stockmaster.categoryid='" . $_POST['StockCat'] . "' + GROUP BY stockmaster.stockid, + stockmaster.description, + stockmaster.units ORDER BY stockmaster.stockid"; } else { - $SQL = "SELECT stockmaster.stockid, - stockmaster.description, - SUM(locstock.quantity) AS qoh, - SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, - SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem, - stockmaster.units - FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) + $SQL = "SELECT stockmaster.stockid, + stockmaster.description, + SUM(locstock.quantity) AS qoh, + SUM(purchorderdetails.quantityord-purchorderdetails.quantityrecd) AS qoo, + SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qdem, + stockmaster.units + FROM (((stockmaster LEFT JOIN salesorderdetails on stockmaster.stockid = salesorderdetails.stkcode) LEFT JOIN locstock ON stockmaster.stockid=locstock.stockid) - LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) - WHERE stockmaster.categoryid='" . $_POST['StockCat'] . "' - GROUP BY stockmaster.stockid, - stockmaster.description, - stockmaster.units + LEFT JOIN purchorderdetails on stockmaster.stockid = purchorderdetails.itemcode) + WHERE stockmaster.categoryid='" . $_POST['StockCat'] . "' + GROUP BY stockmaster.stockid, + stockmaster.description, + stockmaster.units ORDER BY stockmaster.stockid"; } @@ -198,11 +198,11 @@ if (strlen($SQL)<2){ prnMsg(_('No selections have been made to search for parts') . ' - ' . _('choose a stock category or enter some characters of the code or description then try again'),'warn'); } else { - + $ErrMsg = _('No stock items were returned by the SQL because'); $DbgMsg = _('The SQL used to retrieve the searched parts was'); $StockItemsResult = DB_query($SQL,$db,$ErrMsg,$DbgMsg); - + if (DB_num_rows($StockItemsResult)==1){ $myrow = DB_fetch_row($StockItemsResult); $SelectedStockItem = $myrow[0]; @@ -215,177 +215,177 @@ //figure out the SQL required from the inputs available if (isset($OrderNumber)) { - $SQL = "SELECT salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverydate, - salesorders.deliverto, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue - FROM salesorders, - salesorderdetails, - debtorsmaster, - custbranch - WHERE salesorders.orderno = salesorderdetails.orderno - AND salesorders.branchcode = custbranch.branchcode - AND salesorders.debtorno = debtorsmaster.debtorno - AND debtorsmaster.debtorno = custbranch.debtorno - AND salesorders.orderno=". $OrderNumber ." - AND salesorders.quotation=0 - AND salesorderdetails.completed".$completed." + $SQL = "SELECT salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverydate, + salesorders.deliverto, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue + FROM salesorders, + salesorderdetails, + debtorsmaster, + custbranch + WHERE salesorders.orderno = salesorderdetails.orderno + AND salesorders.branchcode = custbranch.branchcode + AND salesorders.debtorno = debtorsmaster.debtorno + AND debtorsmaster.debtorno = custbranch.debtorno + AND salesorders.orderno=". $OrderNumber ." + AND salesorders.quotation=0 + AND salesorderdetails.completed".$completed." GROUP BY salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverydate, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverydate, salesorders.deliverto ORDER BY salesorders.orderno"; } elseif (isset($CustomerRef)) { - $SQL = "SELECT salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverydate, - salesorders.deliverto, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue - FROM salesorders, - salesorderdetails, - debtorsmaster, - custbranch - WHERE salesorders.orderno = salesorderdetails.orderno - AND salesorders.branchcode = custbranch.branchcode - AND salesorders.debtorno = debtorsmaster.debtorno - AND debtorsmaster.debtorno = custbranch.debtorno + $SQL = "SELECT salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverydate, + salesorders.deliverto, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue + FROM salesorders, + salesorderdetails, + debtorsmaster, + custbranch + WHERE salesorders.orderno = salesorderdetails.orderno + AND salesorders.branchcode = custbranch.branchcode + AND salesorders.debtorno = debtorsmaster.debtorno + AND debtorsmaster.debtorno = custbranch.debtorno AND salesorders.customerref like '%". $CustomerRef."%' - AND salesorders.quotation=0 - AND salesorderdetails.completed".$completed." + AND salesorders.quotation=0 + AND salesorderdetails.completed".$completed." GROUP BY salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverydate, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverydate, salesorders.deliverto ORDER BY salesorders.orderno"; - + } else { $DateAfterCriteria = FormatDateforSQL($_POST['OrdersAfterDate']); if (isset($SelectedCustomer) AND !isset($OrderNumber) AND !isset($CustomerRef)) { if (isset($SelectedStockItem)) { - $SQL = "SELECT salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverydate, - salesorders.deliverto, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue - FROM salesorders, - salesorderdetails, - debtorsmaster, - custbranch - WHERE salesorders.orderno = salesorderdetails.orderno - AND salesorders.branchcode = custbranch.branchcode - AND salesorders.debtorno = debtorsmaster.debtorno - AND debtorsmaster.debtorno = custbranch.debtorno - AND salesorderdetails.stkcode='". $SelectedStockItem ."' - AND salesorders.debtorno='" . $SelectedCustomer ."' - AND salesorders.orddate >= '" . $DateAfterCriteria ."' - AND salesorders.quotation=0 - AND salesorderdetails.completed".$completed." - GROUP BY salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverydate, + $SQL = "SELECT salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverydate, + salesorders.deliverto, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue + FROM salesorders, + salesorderdetails, + debtorsmaster, + custbranch + WHERE salesorders.orderno = salesorderdetails.orderno + AND salesorders.branchcode = custbranch.branchcode + AND salesorders.debtorno = debtorsmaster.debtorno + AND debtorsmaster.debtorno = custbranch.debtorno + AND salesorderdetails.stkcode='". $SelectedStockItem ."' + AND salesorders.debtorno='" . $SelectedCustomer ."' + AND salesorders.orddate >= '" . $DateAfterCriteria ."' + AND salesorders.quotation=0 + AND salesorderdetails.completed".$completed." + GROUP BY salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverydate, salesorders.deliverto ORDER BY salesorders.orderno"; } else { - $SQL = "SELECT salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverto, - salesorders.deliverydate, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue - FROM salesorders, - salesorderdetails, - debtorsmaster, - custbranch - WHERE salesorders.orderno = salesorderdetails.orderno - AND salesorders.debtorno = debtorsmaster.debtorno - AND salesorders.branchcode = custbranch.branchcode - AND debtorsmaster.debtorno = custbranch.debtorno - AND salesorders.debtorno='" . $SelectedCustomer . "' - AND salesorders.orddate >= '" . $DateAfterCriteria . "' - AND salesorders.quotation=0 - AND salesorderdetails.completed".$completed." - GROUP BY salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverydate, + $SQL = "SELECT salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverto, + salesorders.deliverydate, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue + FROM salesorders, + salesorderdetails, + debtorsmaster, + custbranch + WHERE salesorders.orderno = salesorderdetails.orderno + AND salesorders.debtorno = debtorsmaster.debtorno + AND salesorders.branchcode = custbranch.branchcode + AND debtorsmaster.debtorno = custbranch.debtorno + AND salesorders.debtorno='" . $SelectedCustomer . "' + AND salesorders.orddate >= '" . $DateAfterCriteria . "' + AND salesorders.quotation=0 + AND salesorderdetails.completed".$completed." + GROUP BY salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverydate, salesorders.deliverto ORDER BY salesorders.orderno"; } } else { //no customer selected if (isset($SelectedStockItem)) { - $SQL = "SELECT salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverto, - salesorders.deliverydate, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue - FROM salesorders, - salesorderdetails, - debtorsmaster, - custbranch - WHERE salesorders.orderno = salesorderdetails.orderno - AND salesorders.debtorno = debtorsmaster.debtorno - AND salesorders.branchcode = custbranch.branchcode - AND debtorsmaster.debtorno = custbranch.debtorno - AND salesorderdetails.stkcode='". $SelectedStockItem ."' - AND salesorders.orddate >= '" . $DateAfterCriteria . "' - AND salesorders.quotation=0 - AND salesorderdetails.completed".$completed." - GROUP BY salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverydate, + $SQL = "SELECT salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverto, + salesorders.deliverydate, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue + FROM salesorders, + salesorderdetails, + debtorsmaster, + custbranch + WHERE salesorders.orderno = salesorderdetails.orderno + AND salesorders.debtorno = debtorsmaster.debtorno + AND salesorders.branchcode = custbranch.branchcode + AND debtorsmaster.debtorno = custbranch.debtorno + AND salesorderdetails.stkcode='". $SelectedStockItem ."' + AND salesorders.orddate >= '" . $DateAfterCriteria . "' + AND salesorders.quotation=0 + AND salesorderdetails.completed".$completed." + GROUP BY salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverydate, salesorders.deliverto ORDER BY salesorders.orderno"; } else { - $SQL = "SELECT salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverto, - salesorders.deliverydate, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue - FROM salesorders, - salesorderdetails, - debtorsmaster, - custbranch - WHERE salesorders.orderno = salesorderdetails.orderno - AND salesorders.debtorno = debtorsmaster.debtorno - AND salesorders.branchcode = custbranch.branchcode - AND debtorsmaster.debtorno = custbranch.debtorno - AND salesorders.orddate >= '$DateAfterCriteria' - AND salesorders.quotation=0 - AND salesorderdetails.completed".$completed." - GROUP BY salesorders.orderno, - debtorsmaster.name, - custbranch.brname, - salesorders.customerref, - salesorders.orddate, - salesorders.deliverydate, + $SQL = "SELECT salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverto, + salesorders.deliverydate, SUM(salesorderdetails.unitprice*salesorderdetails.quantity*(1-salesorderdetails.discountpercent)) AS ordervalue + FROM salesorders, + salesorderdetails, + debtorsmaster, + custbranch + WHERE salesorders.orderno = salesorderdetails.orderno + AND salesorders.debtorno = debtorsmaster.debtorno + AND salesorders.branchcode = custbranch.branchcode + AND debtorsmaster.debtorno = custbranch.debtorno + AND salesorders.orddate >= '$DateAfterCriteria' + AND salesorders.quotation=0 + AND salesorderdetails.completed".$completed." + GROUP BY salesorders.orderno, + debtorsmaster.name, + custbranch.brname, + salesorders.customerref, + salesorders.orddate, + salesorders.deliverydate, salesorders.deliverto ORDER BY salesorders.orderno"; } @@ -404,7 +404,7 @@ if (!isset($_POST['OrdersAfterDate']) OR $_POST['OrdersAfterDate'] == '' OR ! Is_Date($_POST['OrdersAfterDate'])){ $_POST['OrdersAfterDate'] = Date($_SESSION['DefaultDateFormat'],Mktime(0,0,0,Date('m')-2,Date('d'),Date('Y'))); } -echo "<table>"; +echo "<table class=selection>"; if (!isset($OrderNumber) or $OrderNumber==''){ echo '<tr><td>' . _('Order Number') . ':</td><td>' . "<input type='text' name='OrderNumber' maxlength =8 size=9></td><td>" . _('for all orders placed after') . ": </td><td><input type='text' class='date' alt='".$_SESSION['DefaultDateFormat']."' name='OrdersAfterDate' maxlength =10 size=11 value=" . $_POST['OrdersAfterDate'] . "></td><td>" . @@ -419,13 +419,8 @@ $result1 = DB_query($SQL,$db); echo '<hr>'; - echo '<div class="centre"><font size=1>' . _('To search for sales orders for a specific part use the part selection facilities below') . ' </font>'; - echo '<input type="submit" name="SearchParts" value="' . _('Search Parts Now') . '">'; - - if (count($_SESSION['AllowedPageSecurityTokens'])>1){ - echo '<input type=submit name="ResetPart" value="' . _('Show All') . '"></div>'; - } - echo '<table>'; + echo '<div class="page_help_text"><font size=1>' . _('To search for sales orders for a specific part use the part selection facilities below') . ' </font></div>'; + echo '<br><table class=selection>'; echo '<tr><td><font size=1>' . _('Select a stock category') . ':</font>'; echo '<select name="StockCat">'; @@ -444,9 +439,12 @@ echo '<td><font size=3><b> ' ._('OR') . ' </b></font><font size=1>' . _('Enter extract of the Stock Code') . ':</font></td>'; echo '<td><input type="text" name="StockCode" size=15 maxlength=18></td>'; echo '</tr>'; - echo '</table>'; + echo '<tr><td colspan=4><div class=centre><input type="submit" name="SearchParts" value="' . _('Search Parts Now') . '">'; - echo '<hr>'; + if (count($_SESSION['AllowedPageSecurityTokens'])>1){ + echo '<input type=submit name="ResetPart" value="' . _('Show All') . '"></div>'; + } + echo '</td></tr></table>'; } @@ -481,10 +479,10 @@ <td class=number><font size=1>%s</font></td> <td class=number><font size=1>%s</font></td> <td class=number><font size=1>%s</font></td> - <td><font size=1>%s</font></td></tr>", - $myrow['stockid'], - $myrow['description'], - $myrow['qoh'], + <td><font size=1>%s</font></td></tr>", + $myrow['stockid'], + $myrow['description'], + $myrow['qoh'], $myrow['qoo'], $myrow['qdem'], $myrow['units']); @@ -541,15 +539,15 @@ <td>%s</td> <td>%s</td> <td class=number>%s</td> - </tr>", - $ViewPage, - $myrow['orderno'], - $myrow['name'], - $myrow['brname'], + </tr>", + $ViewPage, + $myrow['orderno'], + $myrow['name'], + $myrow['brname'], $myrow['customerref'], $FormatedOrderDate, - $FormatedDelDate, - $myrow['deliverto'], + $FormatedDelDate, + $myrow['deliverto'], $FormatedOrderValue); //end of page full new headings if Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-26 16:56:05 UTC (rev 3529) +++ trunk/doc/Change.log.html 2010-06-26 20:11:27 UTC (rev 3530) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>25/06/10 Tim: SelectCompletedOrders.php - Layout improvements.</p> <p>25/06/10 Tim: FormDesigner.php - Add A5 to the paper sizes.</p> <p>25/06/10 Tim: Add the ability to have supplier types.</p> <p>25/06/10 Tim: PDFStarter.php - Add in A5 parameters.</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-06-26 20:45:40
|
Revision: 3531 http://web-erp.svn.sourceforge.net/web-erp/?rev=3531&view=rev Author: tim_schofield Date: 2010-06-26 20:45:34 +0000 (Sat, 26 Jun 2010) Log Message: ----------- Layout improvements. Modified Paths: -------------- trunk/PDFPriceList.php trunk/doc/Change.log.html Modified: trunk/PDFPriceList.php =================================================================== --- trunk/PDFPriceList.php 2010-06-26 20:11:27 UTC (rev 3530) +++ trunk/PDFPriceList.php 2010-06-26 20:45:34 UTC (rev 3531) @@ -38,7 +38,7 @@ echo '<br><br><a href="' . $_SERVER['PHP_SELF'] . '?' . SID . '">' . _('Back') . '</a>'; include('includes/footer.inc'); exit; - } + } $SQL = "SELECT debtorsmaster.name, debtorsmaster.salestype @@ -136,9 +136,9 @@ include('includes/footer.inc'); exit; } - + PageHeader(); - + $CurrCode =''; $Category = ''; $CatTot_Val=0; @@ -206,7 +206,7 @@ $LeftOvers = $pdf->Image($_SESSION['part_pics_dir'] . '/'.$PriceList['stockid'].'.jpg',120,$Page_Height-$Top_Margin-$YPos+20,0,40); } }/*end checked file exist*/ - + $Split = explode("\r\n", $PriceList['longdescription']); $FontSize2=6; if ($YPos < ($Bottom_Margin + (count($Split)*$line_height))){ @@ -246,11 +246,14 @@ $title= _('Price Listing'); include('includes/header.inc'); + echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/customer.png" title="' . + _('Price List') . '" alt="">' . ' ' . _('Print a price list'); + if (!isset($_POST['FromCriteria']) or !isset($_POST['ToCriteria'])) { /*if $FromCriteria is not set then show a form to allow input */ - echo '<form action=' . $_SERVER['PHP_SELF'] . ' method="POST"><table>'; + echo '<form action=' . $_SERVER['PHP_SELF'] . ' method="POST"><table class=selection>'; echo '<tr><td>'. _('From Inventory Category Code') .':</font></td><td><select name=FromCriteria>'; @@ -290,10 +293,10 @@ echo '<option Value="Customer Special Prices Only">'. _('Customer Special Prices Only'); echo '<option Value="Full Description">'. _('Full Description'); echo '</select></td></tr>'; - - echo '<tr><td>' . _('Effective As At') . ':</td><td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveDate" value="' . Date($_SESSION['DefaultDateFormat']) . '">'; - echo '</table><div class="centre"><input type=Submit Name="PrintPDF" Value="'. _('Print PDF'). '"></div>'; + echo '<tr><td>' . _('Effective As At') . ':</td><td><input type="text" size=11 class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveDate" value="' . Date($_SESSION['DefaultDateFormat']) . '">'; + + echo '</table><br><div class="centre"><input type=Submit Name="PrintPDF" Value="'. _('Print PDF'). '"></div>'; } include('includes/footer.inc'); @@ -314,17 +317,17 @@ global $FontSize; global $SalesTypeName; global $CustomerName; - + if ($PageNumber>1){ $pdf->newPage(); } - + $FontSize=10; $YPos= $Page_Height-$Top_Margin; - + $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,300,$FontSize,$_SESSION['CompanyRecord']['coyname']); $LeftOvers = $pdf->addTextWrap($Page_Width-$Right_Margin-140,$YPos,140,$FontSize, _('Printed').': ' . Date($_SESSION['DefaultDateFormat']) . ' '. _('Page'). ' ' . $PageNumber); - + $YPos -=$line_height; //Note, this is ok for multilang as this is the value of a Select, text in option is different if ($_POST['CustomerSpecials']==_('Customer Special Prices Only')){ @@ -332,27 +335,27 @@ } else { $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,550,$FontSize, $SalesTypeName . ' ' ._('Prices For Categories') . ' ' . $_POST['FromCriteria'] . ' - ' . $_POST['ToCriteria'] . ' ' . _('Effective As At') . ' ' . $_POST['EffectiveDate'] ); } - + $YPos -=(2*$line_height); /*Draw a rectangle to put the headings in */ - + $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->addTextWrap($Xpos,$YPos,60,$FontSize, _('Category') . '/' . _('Item'), 'left'); $LeftOvers = $pdf->addTextWrap($Xpos+70,$YPos,60,$FontSize, _('Effective Date Range'), 'left'); - + if ($_POST['CustomerSpecials']==_('Customer Special Prices Only')){ $LeftOvers = $pdf->addTextWrap($Left_Margin+80+47+47+130+65+25,$YPos,60,$FontSize, _('Branch'), 'centre'); } - + $LeftOvers = $pdf->addTextWrap($Left_Margin+80+47+47+130+20,$YPos,60,$FontSize, _('Price') , 'centre'); - + if ($_POST['ShowGPPercentages']=='Yes'){ $LeftOvers = $pdf->addTextWrap($Left_Margin+80+47+47+130+65,$YPos,20,$FontSize, _('GP') .'%', 'centre'); } @@ -360,7 +363,7 @@ $FontSize=8; $YPos -= (1.5 * $line_height); - $PageNumber++; -} + $PageNumber++; +} ?> \ No newline at end of file Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-26 20:11:27 UTC (rev 3530) +++ trunk/doc/Change.log.html 2010-06-26 20:45:34 UTC (rev 3531) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>25/06/10 Tim: PDFPriceList.php - Layout improvements.</p> <p>25/06/10 Tim: SelectCompletedOrders.php - Layout improvements.</p> <p>25/06/10 Tim: FormDesigner.php - Add A5 to the paper sizes.</p> <p>25/06/10 Tim: Add the ability to have supplier types.</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2010-06-30 09:26:57
|
Revision: 3535 http://web-erp.svn.sourceforge.net/web-erp/?rev=3535&view=rev Author: daintree Date: 2010-06-30 09:26:50 +0000 (Wed, 30 Jun 2010) Log Message: ----------- Resolution of GL posting problem - removed INSERTs of new chartdetails from DateFunctions.inc CreatePeriod function and GLAccounts.php when adding a new GL account. Now all chartdetails are created from includes/GLPostings.inc and correct bfwd balances updated as they should be - I hope this solves this long outstanding previously unsquashable bug!! Modified Paths: -------------- trunk/GLAccounts.php trunk/doc/Change.log.html trunk/includes/DateFunctions.inc Modified: trunk/GLAccounts.php =================================================================== --- trunk/GLAccounts.php 2010-06-29 13:24:19 UTC (rev 3534) +++ trunk/GLAccounts.php 2010-06-30 09:26:50 UTC (rev 3535) @@ -55,7 +55,7 @@ $result = DB_query($sql,$db,$ErrMsg); /*Add the new chart details records for existing periods first */ - +/*Maybe not required since these will be created from GLPostings.inc with correct B/fwd balances $ErrMsg = _('Could not add the chart details for the new account'); $sql = 'INSERT INTO chartdetails (accountcode, period) @@ -66,7 +66,7 @@ IN ( SELECT chartdetails.accountcode, chartdetails.period FROM chartdetails )'; $result = DB_query($sql,$db,$ErrMsg); - +*/ prnMsg(_('The new general ledger account has been added'),'success'); } Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-29 13:24:19 UTC (rev 3534) +++ trunk/doc/Change.log.html 2010-06-30 09:26:50 UTC (rev 3535) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>30/06/10 Phil: Resolution of GL posting problem - removed INSERTs of new chartdetails from DateFunctions.inc CreatePeriod function and GLAccounts.php when adding a new GL account. Now all chartdetails are created from includes/GLPostings.inc and correct bfwd balances updated as they should be - I hope this solves this long outstanding previously unsquashable bug!! <p>25/06/10 Tim: PDFPriceList.php - Layout improvements.</p> <p>25/06/10 Tim: SelectCompletedOrders.php - Layout improvements.</p> <p>25/06/10 Tim: FormDesigner.php - Add A5 to the paper sizes.</p> Modified: trunk/includes/DateFunctions.inc =================================================================== --- trunk/includes/DateFunctions.inc 2010-06-29 13:24:19 UTC (rev 3534) +++ trunk/includes/DateFunctions.inc 2010-06-30 09:26:50 UTC (rev 3535) @@ -730,14 +730,19 @@ $ErrMsg = _('An error occurred in adding a new period number'); $GetPrdResult = DB_query($GetPrdSQL, $db, $ErrMsg); +/*I don't think this is necessary since GLPostings.inc handles this + * $sql = 'INSERT INTO chartdetails (accountcode, period) SELECT chartmaster.accountcode, periods.periodno FROM chartmaster CROSS JOIN periods WHERE ( chartmaster.accountcode, periods.periodno ) NOT IN ( SELECT chartdetails.accountcode, chartdetails.period FROM chartdetails )'; -/*dont trap errors - chart details records created only as required - duplicate messages ignored */ + +//dont trap errors - chart details records created only as required - duplicate messages ignored $InsNewChartDetails = DB_query($sql,$db,'','','',false); +*/ + } function PeriodExists($TransDate, &$db) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-01 17:09:51
|
Revision: 3537 http://web-erp.svn.sourceforge.net/web-erp/?rev=3537&view=rev Author: tim_schofield Date: 2010-07-01 17:09:45 +0000 (Thu, 01 Jul 2010) Log Message: ----------- Correction to GetPeriod() for case when future period didnt exist. Modified Paths: -------------- trunk/doc/Change.log.html trunk/includes/DateFunctions.inc Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-01 17:09:26 UTC (rev 3536) +++ trunk/doc/Change.log.html 2010-07-01 17:09:45 UTC (rev 3537) @@ -1,6 +1,7 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> -<p>30/06/10 Phil: Resolution of GL posting problem - removed INSERTs of new chartdetails from DateFunctions.inc CreatePeriod function and GLAccounts.php when adding a new GL account. Now all chartdetails are created from includes/GLPostings.inc and correct bfwd balances updated as they should be - I hope this solves this long outstanding previously unsquashable bug!! +<p>01/07/10 Tim: DateFunctions.inc - Correction to GetPeriod() for case when future period didn't exist.</p> +<p>30/06/10 Phil: Resolution of GL posting problem - removed INSERTs of new chartdetails from DateFunctions.inc CreatePeriod function and GLAccounts.php when adding a new GL account. Now all chartdetails are created from includes/GLPostings.inc and correct bfwd balances updated as they should be - I hope this solves this long outstanding previously unsquashable bug!!</p> <p>25/06/10 Tim: PDFPriceList.php - Layout improvements.</p> <p>25/06/10 Tim: SelectCompletedOrders.php - Layout improvements.</p> <p>25/06/10 Tim: FormDesigner.php - Add A5 to the paper sizes.</p> Modified: trunk/includes/DateFunctions.inc =================================================================== --- trunk/includes/DateFunctions.inc 2010-07-01 17:09:26 UTC (rev 3536) +++ trunk/includes/DateFunctions.inc 2010-07-01 17:09:45 UTC (rev 3537) @@ -457,7 +457,7 @@ * 2 characters and the other >2 then then make them both 4 characters long. Assume * a date >50 to be 1900's and less than to be 2000's */ - + if (strlen($Year1)>2 AND strlen($Year2)==2){ if ($Year2>50) { $Year2=1900+$Year2; @@ -731,7 +731,7 @@ $GetPrdResult = DB_query($GetPrdSQL, $db, $ErrMsg); /*I don't think this is necessary since GLPostings.inc handles this - * + * $sql = 'INSERT INTO chartdetails (accountcode, period) SELECT chartmaster.accountcode, periods.periodno FROM chartmaster @@ -739,7 +739,7 @@ WHERE ( chartmaster.accountcode, periods.periodno ) NOT IN ( SELECT chartdetails.accountcode, chartdetails.period FROM chartdetails )'; -//dont trap errors - chart details records created only as required - duplicate messages ignored +//dont trap errors - chart details records created only as required - duplicate messages ignored $InsNewChartDetails = DB_query($sql,$db,'','','',false); */ @@ -803,7 +803,7 @@ $LastPeriodEnd = mktime(0,0,0,Date('m')+2,0,Date('Y')); } else { $Date_Array = explode('-', $myrow[0]); - $LastPeriodEnd = mktime(0,0,0,$Date_Array[1]+2,0,(int)$Date_Array[0]); + $LastPeriodEnd = mktime(0,0,0,$Date_Array[1]+1,0,(int)$Date_Array[0]); $LastPeriod = $myrow[1]; } /* Find the unix timestamp of the first period end date in periods table */ @@ -817,7 +817,7 @@ /* If the period number doesn't exist */ if (!PeriodExists($TransDate, $db)) { /* if the transaction is after the last period */ - echo ($TransDate > $LastPeriodEnd); + echo (date('d/m/Y',$TransDate) .' '. date('d/m/Y',$LastPeriodEnd)); if ($TransDate > $LastPeriodEnd) { $PeriodEnd = mktime(0,0,0,Date('m', $TransDate)+1, 0, Date('Y', $TransDate)); $Period = $LastPeriod + 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-01 17:10:38
|
Revision: 3539 http://web-erp.svn.sourceforge.net/web-erp/?rev=3539&view=rev Author: tim_schofield Date: 2010-07-01 17:10:32 +0000 (Thu, 01 Jul 2010) Log Message: ----------- PrintCustTransPortrait.php - Error in sql, nor picking up stkmoveno. Modified Paths: -------------- trunk/PrintCustTransPortrait.php trunk/doc/Change.log.html Modified: trunk/PrintCustTransPortrait.php =================================================================== --- trunk/PrintCustTransPortrait.php 2010-07-01 17:10:13 UTC (rev 3538) +++ trunk/PrintCustTransPortrait.php 2010-07-01 17:10:32 UTC (rev 3539) @@ -250,7 +250,8 @@ (stockmoves.price * ' . $ExchRate . ') AS fxprice, stockmoves.narrative, stockmaster.controlled, - stockmaster.units + stockmaster.units, + stockmoves.stkmoveno FROM stockmoves, stockmaster WHERE stockmoves.stockid = stockmaster.stockid @@ -267,7 +268,8 @@ (stockmoves.price * ' . $ExchRate . ') AS fxprice, stockmoves.narrative, stockmaster.controlled, - stockmaster.units + stockmaster.units, + stockmoves.stkmoveno FROM stockmoves, stockmaster WHERE stockmoves.stockid = stockmaster.stockid Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-01 17:10:13 UTC (rev 3538) +++ trunk/doc/Change.log.html 2010-07-01 17:10:32 UTC (rev 3539) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>01/07/10 Tim: PrintCustTransPortrait.php - Error in sql, nor picking up stkmoveno.</p> <p>01/07/10 Tim: Numerous problems with stock adjustments for batch controlled items.</p> <p>01/07/10 Tim: DateFunctions.inc - Correction to GetPeriod() for case when future period didn't exist.</p> <p>30/06/10 Phil: Resolution of GL posting problem - removed INSERTs of new chartdetails from DateFunctions.inc CreatePeriod function and GLAccounts.php when adding a new GL account. Now all chartdetails are created from includes/GLPostings.inc and correct bfwd balances updated as they should be - I hope this solves this long outstanding previously unsquashable bug!!</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-01 18:10:16
|
Revision: 3538 http://web-erp.svn.sourceforge.net/web-erp/?rev=3538&view=rev Author: tim_schofield Date: 2010-07-01 17:10:13 +0000 (Thu, 01 Jul 2010) Log Message: ----------- Numerous problems with stock adjustments for batch controlled items. Modified Paths: -------------- trunk/StockAdjustments.php trunk/StockAdjustmentsControlled.php trunk/doc/Change.log.html trunk/includes/Add_SerialItems.php trunk/includes/InputSerialItems.php trunk/includes/InputSerialItemsKeyed.php trunk/index.php Modified: trunk/StockAdjustments.php =================================================================== --- trunk/StockAdjustments.php 2010-07-01 17:09:45 UTC (rev 3537) +++ trunk/StockAdjustments.php 2010-07-01 17:10:13 UTC (rev 3538) @@ -13,12 +13,12 @@ include('includes/SQL_CommonFunctions.inc'); if (isset($_GET['NewAdjustment'])){ - unset($_SESSION['Adjustment']); - $_SESSION['Adjustment'] = new StockAdjustment; + unset($_SESSION['Adjustment']); + $_SESSION['Adjustment'] = new StockAdjustment; } if (!isset($_SESSION['Adjustment'])){ - $_SESSION['Adjustment'] = new StockAdjustment; + $_SESSION['Adjustment'] = new StockAdjustment; } $NewAdjustment = false; @@ -27,7 +27,7 @@ $_SESSION['Adjustment']->StockID = trim(strtoupper($_GET['StockID'])); $NewAdjustment = true; } elseif (isset($_POST['StockID'])){ - if ($_POST['StockID'] != $_SESSION['Adjustment']->StockID){ + if(isset($_POST['StockID']) and $_POST['StockID'] != $_SESSION['Adjustment']->StockID){ $NewAdjustment = true; $_SESSION['Adjustment']->StockID = trim(strtoupper($_POST['StockID'])); } @@ -39,6 +39,9 @@ $_SESSION['Adjustment']->Quantity = $_POST['Quantity']; } +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . + _('Inventory Adjustment') . '" alt="">' . ' ' . _('Inventory Adjustment') . '</p>'; + if ($NewAdjustment){ $sql ="SELECT description, @@ -55,7 +58,7 @@ $myrow = DB_fetch_row($result); if (DB_num_rows($result)==0){ - prnMsg( _('Unable to locate Stock Code').' '.$_SESSION['Adjustment']->StockID, 'error' ); + prnMsg( _('Unable to locate Stock Code').' '.$_SESSION['Adjustment']->StockID, 'error' ); unset($_SESSION['Adjustment']); } elseif (DB_num_rows($result)>0){ @@ -305,7 +308,7 @@ $Controlled = $_SESSION['Adjustment']->Controlled; $Quantity = $_SESSION['Adjustment']->Quantity; } -echo '<table><tr><td>'. _('Stock Code'). ':</td><td><input type=text name="StockID" size=21 value="' . $StockID . '" maxlength=20> <input type=submit name="CheckCode" VALUE="'._('Check Part').'"></td></tr>'; +echo '<br><table class=selection><tr><td>'. _('Stock Code'). ':</td><td><input type=text name="StockID" size=21 value="' . $StockID . '" maxlength=20> <input type=submit name="CheckCode" VALUE="'._('Check Part').'"></td></tr>'; if (isset($_SESSION['Adjustment']) and strlen($_SESSION['Adjustment']->ItemDescription)>1){ echo '<tr><td colspan=3><font color=BLUE size=3>' . $_SESSION['Adjustment']->ItemDescription . ' ('._('In Units of').' ' . $_SESSION['Adjustment']->PartUnit . ' ) - ' . _('Unit Cost').' = ' . $_SESSION['Adjustment']->StandardCost . '</font></td></tr>'; @@ -318,9 +321,9 @@ while ($myrow=DB_fetch_array($resultStkLocs)){ if (isset($_SESSION['Adjustment']->StockLocation)){ if ($myrow['loccode'] == $_SESSION['Adjustment']->StockLocation){ - echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; } else { - echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; + echo '<option Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; } } elseif ($myrow['loccode']==$_SESSION['UserStockLocation']){ echo '<option selected Value="' . $myrow['loccode'] . '">' . $myrow['locationname']; Modified: trunk/StockAdjustmentsControlled.php =================================================================== --- trunk/StockAdjustmentsControlled.php 2010-07-01 17:09:45 UTC (rev 3537) +++ trunk/StockAdjustmentsControlled.php 2010-07-01 17:10:13 UTC (rev 3538) @@ -20,7 +20,7 @@ exit; } if (isset($_SESSION['Adjustment'])){ - if ($_GET['AdjType']!=''){ + if (isset($_GET['AdjType']) and $_GET['AdjType']!=''){ $_SESSION['Adjustment']->AdjustmentType = $_GET['AdjType']; } } Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-01 17:09:45 UTC (rev 3537) +++ trunk/doc/Change.log.html 2010-07-01 17:10:13 UTC (rev 3538) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>01/07/10 Tim: Numerous problems with stock adjustments for batch controlled items.</p> <p>01/07/10 Tim: DateFunctions.inc - Correction to GetPeriod() for case when future period didn't exist.</p> <p>30/06/10 Phil: Resolution of GL posting problem - removed INSERTs of new chartdetails from DateFunctions.inc CreatePeriod function and GLAccounts.php when adding a new GL account. Now all chartdetails are created from includes/GLPostings.inc and correct bfwd balances updated as they should be - I hope this solves this long outstanding previously unsquashable bug!!</p> <p>25/06/10 Tim: PDFPriceList.php - Layout improvements.</p> Modified: trunk/includes/Add_SerialItems.php =================================================================== --- trunk/includes/Add_SerialItems.php 2010-07-01 17:09:45 UTC (rev 3537) +++ trunk/includes/Add_SerialItems.php 2010-07-01 17:10:13 UTC (rev 3538) @@ -72,7 +72,9 @@ } /* end if posted Serialno . i is not blank */ } /* end of the loop aroung the form input fields */ - + if (!isset($_POST['Bundles'])) { + $_POST['Bundles']=0; + } for ($i=0;$i < count($_POST['Bundles']);$i++){ /*there is an entry in the multi select list box */ if ($LineItem->Serialised==1){ /*only if the item is serialised */ $LineItem->SerialItems[$_POST['Bundles'][$i]] = new SerialItem ($_POST['Bundles'][$i], ($InOutModifier>0?1:-1) ); @@ -119,7 +121,7 @@ Validate an uploaded FILE and save entries ********************************************/ $valid = true; -if ($_POST['EntryType']=='FILE' && isset($_POST['ValidateFile'])){ +if (isset($_POST['EntryType']) and $_POST['EntryType']=='FILE' and isset($_POST['ValidateFile'])){ $filename = $_SESSION['CurImportFile']['tmp_name']; Modified: trunk/includes/InputSerialItems.php =================================================================== --- trunk/includes/InputSerialItems.php 2010-07-01 17:09:45 UTC (rev 3537) +++ trunk/includes/InputSerialItems.php 2010-07-01 17:10:13 UTC (rev 3538) @@ -16,6 +16,8 @@ $LineNo = $_GET['LineNo']; } elseif (isset($_POST['LineNo'])){ $LineNo = $_POST['LineNo']; +} else { + $LineNo=0; } /* Entry Types: @@ -31,6 +33,9 @@ possibly override setting elsewhere. */ +if (!isset($RecvQty)) { + $RecvQty=0; +} if (!isset($_POST['EntryType']) OR trim($_POST['EntryType']) == ''){ if ($RecvQty <= 50) { $_POST['EntryType'] = 'KEYED'; @@ -39,7 +44,7 @@ $_POST['EntryType'] = 'FILE'; } } - + $invalid_imports = 0; $valid = true; Modified: trunk/includes/InputSerialItemsKeyed.php =================================================================== --- trunk/includes/InputSerialItemsKeyed.php 2010-07-01 17:09:45 UTC (rev 3537) +++ trunk/includes/InputSerialItemsKeyed.php 2010-07-01 17:10:13 UTC (rev 3538) @@ -27,6 +27,7 @@ $TotalQuantity = 0; /*Variable to accumulate total quantity received */ $RowCounter =0; +$k=0; foreach ($LineItem->SerialItems as $Bundle){ if ($RowCounter == 10){ @@ -75,7 +76,7 @@ echo $tableheader; -echo '<form action="' . $_SERVER['PHP_SELF'] . '?=' . $SID . '" name="Ga6uF5Wa" method="post"> +echo '<form action="' . $_SERVER['PHP_SELF'] . '?=' . SID . '" name="Ga6uF5Wa" method="post"> <input type=hidden name=LineNo value="' . $LineNo . '"> <input type=hidden name=StockID value="' . $StockID . '"> <input type=hidden name=EntryType value="KEYED">'; @@ -83,7 +84,10 @@ $EditControlled = isset($_GET['EditControlled'])?$_GET['EditControlled']:false; } elseif ( isset($_POST['EditControlled']) ){ $EditControlled = isset($_POST['EditControlled'])?$_POST['EditControlled']:false; +} else { + $EditControlled=false; } + $StartAddingAt = 0; if ($EditControlled){ foreach ($LineItem->SerialItems as $Bundle){ Modified: trunk/index.php =================================================================== --- trunk/index.php 2010-07-01 17:09:45 UTC (rev 3537) +++ trunk/index.php 2010-07-01 17:10:13 UTC (rev 3538) @@ -576,7 +576,7 @@ </tr> <tr> <td class="menu_group_item"> - <?php echo '<p>• <a href="' . $rootpath . '/StockAdjustments.php?' . sid . '">' . _('Inventory Adjustments') . '</a></p>'; ?> + <?php echo '<p>• <a href="' . $rootpath . '/StockAdjustments.php?NewAdjustment=Yes' . sid . '">' . _('Inventory Adjustments') . '</a></p>'; ?> </td> </tr> <tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-02 13:34:19
|
Revision: 3540 http://web-erp.svn.sourceforge.net/web-erp/?rev=3540&view=rev Author: tim_schofield Date: 2010-07-02 13:34:13 +0000 (Fri, 02 Jul 2010) Log Message: ----------- Bulk transfers need to be able to have decimal places in the quantity. Modified Paths: -------------- trunk/doc/Change.log.html trunk/sql/mysql/upgrade3.11.1-3.12.sql trunk/sql/mysql/weberp-demo.sql Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-01 17:10:32 UTC (rev 3539) +++ trunk/doc/Change.log.html 2010-07-02 13:34:13 UTC (rev 3540) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>02/07/10 Tim: Bulk transfers need to be able to have decimal places in the quantity.</p> <p>01/07/10 Tim: PrintCustTransPortrait.php - Error in sql, nor picking up stkmoveno.</p> <p>01/07/10 Tim: Numerous problems with stock adjustments for batch controlled items.</p> <p>01/07/10 Tim: DateFunctions.inc - Correction to GetPeriod() for case when future period didn't exist.</p> Modified: trunk/sql/mysql/upgrade3.11.1-3.12.sql =================================================================== --- trunk/sql/mysql/upgrade3.11.1-3.12.sql 2010-07-01 17:10:32 UTC (rev 3539) +++ trunk/sql/mysql/upgrade3.11.1-3.12.sql 2010-07-02 13:34:13 UTC (rev 3540) @@ -276,4 +276,6 @@ INSERT INTO `config` VALUES ('DefaultSupplierType', 1); INSERT INTO `suppliertype` VALUES(1, 'Default'); -ALTER TABLE `suppliers` ADD COLUMN `supptype` tinyint(4) NOT NULL DEFAULT 1 AFTER `address6`; \ No newline at end of file +ALTER TABLE `suppliers` ADD COLUMN `supptype` tinyint(4) NOT NULL DEFAULT 1 AFTER `address6`; + +ALTER TABLE `locatransfers` CHANGE COLUMN `shipqty` `shipqty` double NOT NULL DEFAULT 0.0; \ No newline at end of file Modified: trunk/sql/mysql/weberp-demo.sql =================================================================== --- trunk/sql/mysql/weberp-demo.sql 2010-07-01 17:10:32 UTC (rev 3539) +++ trunk/sql/mysql/weberp-demo.sql 2010-07-02 13:34:13 UTC (rev 3540) @@ -1011,7 +1011,7 @@ CREATE TABLE `loctransfers` ( `reference` int(11) NOT NULL DEFAULT '0', `stockid` varchar(20) NOT NULL DEFAULT '', - `shipqty` int(11) NOT NULL DEFAULT '0', + `shipqty` double NOT NULL DEFAULT '0.0', `recqty` int(11) NOT NULL DEFAULT '0', `shipdate` date NOT NULL DEFAULT '0000-00-00', `recdate` date NOT NULL DEFAULT '0000-00-00', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-03 21:42:44
|
Revision: 3541 http://web-erp.svn.sourceforge.net/web-erp/?rev=3541&view=rev Author: tim_schofield Date: 2010-07-03 21:42:38 +0000 (Sat, 03 Jul 2010) Log Message: ----------- Force $_GET[OrderNo] to be an integer Modified Paths: -------------- trunk/PO_OrderDetails.php trunk/doc/Change.log.html Modified: trunk/PO_OrderDetails.php =================================================================== --- trunk/PO_OrderDetails.php 2010-07-02 13:34:13 UTC (rev 3540) +++ trunk/PO_OrderDetails.php 2010-07-03 21:42:38 UTC (rev 3541) @@ -9,6 +9,7 @@ if (isset($_GET['OrderNo'])) { $title = _('Reviewing Purchase Order Number').' ' . $_GET['OrderNo']; + $_GET['OrderNo']=(int)$_GET['OrderNo']; } else { $title = _('Reviewing A Purchase Order'); } @@ -199,4 +200,4 @@ echo '<br>'; include ('includes/footer.inc'); -?> \ No newline at end of file +?> Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-02 13:34:13 UTC (rev 3540) +++ trunk/doc/Change.log.html 2010-07-03 21:42:38 UTC (rev 3541) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>03/07/10 Tim: PO_OrderDetails.php - Force $_GET['OrderNo'] to be an integer</p> <p>02/07/10 Tim: Bulk transfers need to be able to have decimal places in the quantity.</p> <p>01/07/10 Tim: PrintCustTransPortrait.php - Error in sql, nor picking up stkmoveno.</p> <p>01/07/10 Tim: Numerous problems with stock adjustments for batch controlled items.</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-03 21:43:33
|
Revision: 3544 http://web-erp.svn.sourceforge.net/web-erp/?rev=3544&view=rev Author: tim_schofield Date: 2010-07-03 21:43:26 +0000 (Sat, 03 Jul 2010) Log Message: ----------- Verify Contact ID before query Modified Paths: -------------- trunk/AddCustomerContacts.php trunk/doc/Change.log.html Modified: trunk/AddCustomerContacts.php =================================================================== --- trunk/AddCustomerContacts.php 2010-07-03 21:43:06 UTC (rev 3543) +++ trunk/AddCustomerContacts.php 2010-07-03 21:43:26 UTC (rev 3544) @@ -8,9 +8,9 @@ include('includes/SQL_CommonFunctions.inc'); if (isset($_GET['Id'])){ - $Id = $_GET['Id']; + $Id = (int)$_GET['Id']; } else if (isset($_POST['Id'])){ - $Id = $_POST['Id']; + $Id = (int)$_POST['Id']; } if (isset($_POST['DebtorNo'])){ $DebtorNo = $_POST['DebtorNo']; @@ -55,7 +55,7 @@ phoneno='" . $_POST['conPhone'] . "', notes='" . $_POST['conNotes'] . "' WHERE debtorno ='".$DebtorNo."' - AND contid=".$Id; + AND contid='".$Id."'"; $msg = _('Customer Contacts') . ' ' . $DebtorNo . ' ' . _('has been updated'); } elseif ($InputError !=1) { @@ -158,7 +158,7 @@ if (isset($Id)) { //editing an existing Shipper - $sql = "SELECT * FROM custcontacts WHERE contid=".$Id." + $sql = "SELECT * FROM custcontacts WHERE contid='".$Id."' and debtorno='".$DebtorNo."'"; $result = DB_query($sql, $db); Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-03 21:43:06 UTC (rev 3543) +++ trunk/doc/Change.log.html 2010-07-03 21:43:26 UTC (rev 3544) @@ -1,5 +1,8 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>03/07/10 Tim: AddCustomerContacts.php - Verify Contact ID before query</p> +<p>03/07/10 Tim: AccountSections.php - Incorrect boolean statement causing the existing groups to still be shown</p> +<p>03/07/10 Tim: AccountGroups.php - Incorrect boolean statement causing the existing groups to still be shown</p> <p>03/07/10 Tim: PO_OrderDetails.php - Force $_GET['OrderNo'] to be an integer</p> <p>02/07/10 Tim: Bulk transfers need to be able to have decimal places in the quantity.</p> <p>01/07/10 Tim: PrintCustTransPortrait.php - Error in sql, nor picking up stkmoveno.</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-03 21:43:51
|
Revision: 3545 http://web-erp.svn.sourceforge.net/web-erp/?rev=3545&view=rev Author: tim_schofield Date: 2010-07-03 21:43:44 +0000 (Sat, 03 Jul 2010) Log Message: ----------- Verify Contact ID before query Modified Paths: -------------- trunk/AddCustomerNotes.php trunk/doc/Change.log.html Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php 2010-07-03 21:43:26 UTC (rev 3544) +++ trunk/AddCustomerNotes.php 2010-07-03 21:43:44 UTC (rev 3545) @@ -8,9 +8,9 @@ include('includes/SQL_CommonFunctions.inc'); if (isset($_GET['Id'])){ - $Id = $_GET['Id']; + $Id = (int)$_GET['Id']; } else if (isset($_POST['Id'])){ - $Id = $_POST['Id']; + $Id = (int)$_POST['Id']; } if (isset($_POST['DebtorNo'])){ $DebtorNo = $_POST['DebtorNo']; @@ -45,7 +45,7 @@ href='" . $_POST['href'] . "', priority='" . $_POST['priority'] . "' WHERE debtorno ='".$DebtorNo."' - AND noteid=".$Id; + AND noteid='".$Id."'"; $msg = _('Customer Notes') . ' ' . $DebtorNo . ' ' . _('has been updated'); } elseif ($InputError !=1) { @@ -78,7 +78,7 @@ // PREVENT DELETES IF DEPENDENT RECORDS IN 'SalesOrders' - $sql="DELETE FROM custnotes WHERE noteid=".$Id." + $sql="DELETE FROM custnotes WHERE noteid='".$Id."' and debtorno='".$DebtorNo."'"; $result = DB_query($sql,$db); //echo '<br>'.$sql; @@ -151,7 +151,7 @@ if (isset($Id)) { //editing an existing - $sql = "SELECT * FROM custnotes WHERE noteid=".$Id." + $sql = "SELECT * FROM custnotes WHERE noteid='".$Id."' and debtorno='".$DebtorNo."'"; $result = DB_query($sql, $db); Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-03 21:43:26 UTC (rev 3544) +++ trunk/doc/Change.log.html 2010-07-03 21:43:44 UTC (rev 3545) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>03/07/10 Tim: AddCustomerNotes.php - Verify Contact ID before query</p> <p>03/07/10 Tim: AddCustomerContacts.php - Verify Contact ID before query</p> <p>03/07/10 Tim: AccountSections.php - Incorrect boolean statement causing the existing groups to still be shown</p> <p>03/07/10 Tim: AccountGroups.php - Incorrect boolean statement causing the existing groups to still be shown</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-03 21:44:10
|
Revision: 3546 http://web-erp.svn.sourceforge.net/web-erp/?rev=3546&view=rev Author: tim_schofield Date: 2010-07-03 21:44:04 +0000 (Sat, 03 Jul 2010) Log Message: ----------- Layout changes and verify Type ID before query Modified Paths: -------------- trunk/AddCustomerTypeNotes.php trunk/doc/Change.log.html Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2010-07-03 21:43:44 UTC (rev 3545) +++ trunk/AddCustomerTypeNotes.php 2010-07-03 21:44:04 UTC (rev 3546) @@ -8,9 +8,9 @@ include('includes/SQL_CommonFunctions.inc'); if (isset($_GET['Id'])){ - $Id = $_GET['Id']; + $Id = (int)$_GET['Id']; } else if (isset($_POST['Id'])){ - $Id = $_POST['Id']; + $Id = (int)$_POST['Id']; } if (isset($_POST['DebtorType'])){ $DebtorType = $_POST['DebtorType']; @@ -45,7 +45,7 @@ href='" . $_POST['href'] . "', priority='" . $_POST['priority'] . "' WHERE typeid ='".$DebtorType."' - AND noteid=".$Id; + AND noteid='".$Id."'"; $msg = _('Customer Group Notes') . ' ' . $DebtorType . ' ' . _('has been updated'); } elseif ($InputError !=1) { @@ -70,12 +70,12 @@ unset($_POST['note']); unset($_POST['noteid']); } - } elseif ($_GET['delete']) { + } elseif (isset($_GET['delete'])) { //the link to delete a selected record was clicked instead of the submit button // PREVENT DELETES IF DEPENDENT RECORDS IN 'SalesOrders' - $sql="DELETE FROM debtortypenotes WHERE noteid=".$Id." + $sql="DELETE FROM debtortypenotes WHERE noteid='".$Id."' and typeid='".$DebtorType."'"; $result = DB_query($sql,$db); //echo '<br>'.$sql; @@ -91,14 +91,14 @@ $SQLname='SELECT * from debtortype where typeid="'.$DebtorType.'"'; $Result = DB_query($SQLname,$db); $row = DB_fetch_array($Result); - echo '<div class="centre">' . _('Notes for Customer Type: <b>') .$row['typename'].'</b></div>'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Search') . '" alt="">' . _('Notes for Customer Type: <b>') .$row['typename'].'<br>'; + - $sql = "SELECT * FROM debtortypenotes where typeid='".$DebtorType."' ORDER BY date DESC"; $result = DB_query($sql,$db); //echo '<br>'.$sql; - echo '<table border=1>'; + echo '<table class=selection>'; echo '<tr> <th>' . _('Date') . '</th> <th>' . _('Note') . '</th> @@ -166,14 +166,20 @@ echo '<input type=hidden name="Id" value='. $Id .'>'; echo '<input type=hidden name="Con_ID" value=' . $_POST['noteid'] . '>'; echo '<input type=hidden name="DebtorType" value=' . $_POST['typeid'] . '>'; - echo '<table><tr><td>'. _('Note ID').':</td><td>' . $_POST['noteid'] . '</td></tr>'; + echo '<table class=selection><tr><td>'. _('Note ID').':</td><td>' . $_POST['noteid'] . '</td></tr>'; } else { - echo '<table>'; + echo '<table class=selection>'; + $_POST['noteid'] = ''; + $_POST['note'] = ''; + $_POST['href'] = ''; + $_POST['date'] = ''; + $_POST['priority'] = ''; + $_POST['typeid'] = ''; } echo '<tr><td>'._('Contact Group Note').':</td>'; echo '<td><textarea name="note">'. $_POST['note'].'</textarea></td></tr>'; - echo '<tr><td>'. _('href').':</td>'; + echo '<tr><td>'. _('Web site').':</td>'; echo '<td><input type="text" name="href" value="'. $_POST['href'].'" size=35 maxlength=100></td></tr> <tr><td>'. _('Date').':</td>'; echo '<td><input type="text" name="date" class=date alt="'.$_SESSION['DefaultDateFormat'].'" value="'. $_POST['date']. @@ -181,7 +187,7 @@ echo '<tr><td>'. _('Priority').':</td>'; echo '<td><input type="Text" name="priority" value="'. $_POST['priority'].'" size=1 maxlength=3></td></td> </table>'; - echo '<div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information').'"></div>'; + echo '<br><div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information').'"></div>'; echo '</form>'; Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-03 21:43:44 UTC (rev 3545) +++ trunk/doc/Change.log.html 2010-07-03 21:44:04 UTC (rev 3546) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>03/07/10 Tim: AddCustomerTypeNotes.php - Layout changes and verify Type ID before query</p> <p>03/07/10 Tim: AddCustomerNotes.php - Verify Contact ID before query</p> <p>03/07/10 Tim: AddCustomerContacts.php - Verify Contact ID before query</p> <p>03/07/10 Tim: AccountSections.php - Incorrect boolean statement causing the existing groups to still be shown</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-03 21:44:31
|
Revision: 3547 http://web-erp.svn.sourceforge.net/web-erp/?rev=3547&view=rev Author: tim_schofield Date: 2010-07-03 21:44:25 +0000 (Sat, 03 Jul 2010) Log Message: ----------- Layout changes Modified Paths: -------------- trunk/BankAccounts.php trunk/doc/Change.log.html Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2010-07-03 21:44:04 UTC (rev 3546) +++ trunk/BankAccounts.php 2010-07-03 21:44:25 UTC (rev 3547) @@ -191,7 +191,7 @@ $DbgMsg = _('The SQL used to retrieve the bank account details was') . '<br>' . $sql; $result = DB_query($sql,$db,$ErrMsg,$DbgMsg); - echo '<table class="table1">'; + echo '<table class="selection">'; echo "<tr><th>" . _('GL Account Code') . "</th> <th>" . _('Bank Account Name') . "</th> @@ -280,10 +280,10 @@ echo '<input type=hidden name=SelectedBankAccount VALUE=' . $SelectedBankAccount . '>'; echo '<input type=hidden name=AccountCode VALUE=' . $_POST['AccountCode'] . '>'; - echo '<table> <tr><td>' . _('Bank Account GL Code') . ':</td><td>'; + echo '<table class=selection> <tr><td>' . _('Bank Account GL Code') . ':</td><td>'; echo $_POST['AccountCode'] . '</td></tr>'; } else { //end of if $Selectedbank account only do the else when a new record is being entered - echo '<table><tr><td>' . _('Bank Account GL Code') . + echo '<table class=selection><tr><td>' . _('Bank Account GL Code') . ":</td><td><Select tabindex='1' " . (in_array('AccountCode',$Errors) ? 'class="selecterror"' : '' ) ." name='AccountCode'>"; $sql = "SELECT accountcode, @@ -368,7 +368,7 @@ echo '</select></td>'; -echo '</tr></table> +echo '</tr></table><br> <div class="centre"><input tabindex="7" type="Submit" name="submit" value="'. _('Enter Information') .'"></div>'; echo '</form>'; Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-03 21:44:04 UTC (rev 3546) +++ trunk/doc/Change.log.html 2010-07-03 21:44:25 UTC (rev 3547) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>03/07/10 Tim: BankAccounts.php - Layout changes</p> <p>03/07/10 Tim: AddCustomerTypeNotes.php - Layout changes and verify Type ID before query</p> <p>03/07/10 Tim: AddCustomerNotes.php - Verify Contact ID before query</p> <p>03/07/10 Tim: AddCustomerContacts.php - Verify Contact ID before query</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2010-07-03 21:44:54
|
Revision: 3548 http://web-erp.svn.sourceforge.net/web-erp/?rev=3548&view=rev Author: tim_schofield Date: 2010-07-03 21:44:46 +0000 (Sat, 03 Jul 2010) Log Message: ----------- Corrections to sql statements and layout changes Modified Paths: -------------- trunk/BankMatching.php trunk/doc/Change.log.html Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2010-07-03 21:44:25 UTC (rev 3547) +++ trunk/BankMatching.php 2010-07-03 21:44:46 UTC (rev 3548) @@ -36,7 +36,7 @@ $sql = 'SELECT amount, exrate FROM banktrans - WHERE banktransid=' . $_POST['BankTrans_' . $Counter]; + WHERE banktransid="' . $_POST['BankTrans_' . $Counter].'"'; $ErrMsg = _('Could not retrieve transaction information'); $result = DB_query($sql,$db,$ErrMsg); $myrow=DB_fetch_array($result); @@ -53,14 +53,14 @@ ($Type=='Receipts' AND (isset($_POST['AmtClear_' . $Counter]) and $_POST['AmtClear_' . $Counter]>0)))){ /*if the amount entered was numeric and negative for a payment or positive for a receipt */ $sql = 'UPDATE banktrans SET amountcleared=' . $_POST['AmtClear_' . $Counter] . ' - WHERE banktransid=' . $_POST['BankTrans_' . $Counter]; + WHERE banktransid="' . $_POST['BankTrans_' . $Counter].'"'; $ErrMsg = _('Could not update the amount matched off this bank transaction because'); $result = DB_query($sql,$db,$ErrMsg); } elseif (isset($_POST['Unclear_' . $Counter]) and $_POST['Unclear_' . $Counter]==True){ $sql = 'UPDATE banktrans SET amountcleared = 0 - WHERE banktransid=' . $_POST['BankTrans_' . $Counter]; + WHERE banktransid="' . $_POST['BankTrans_' . $Counter].'"'; $ErrMsg = _('Could not unclear this bank transaction because'); $result = DB_query($sql,$db,$ErrMsg); } @@ -75,7 +75,7 @@ echo '<input type="hidden" name="Type" Value="' . $Type . '">'; -echo '<table><tr>'; +echo '<table class=selection><tr>'; echo '<td align=left>' . _('Bank Account') . ':</td><td colspan=3><select tabindex="1" name="BankAccount">'; $sql = 'SELECT accountcode, bankaccountname FROM bankaccounts'; @@ -127,7 +127,7 @@ echo '</select></td></tr>'; -echo '</table><div class="centre"><input tabindex="6" type=submit name="ShowTransactions" VALUE="' . _('Show selected') . ' ' . $TypeName . '">'; +echo '</table><br><div class="centre"><input tabindex="6" type=submit name="ShowTransactions" VALUE="' . _('Show selected') . ' ' . $TypeName . '">'; echo "<p><a href='$rootpath/BankReconciliation.php?" . SID . "'>" . _('Show reconciliation') . '</a></div>'; echo '<hr>'; @@ -162,7 +162,7 @@ WHERE amount <0 AND transdate >= '". $SQLAfterDate . "' AND transdate <= '" . $SQLBeforeDate . "' - AND bankact=" .$_POST["BankAccount"] . " + AND bankact='" .$_POST["BankAccount"] . "' ORDER BY transdate"; } else { /* Type must == Receipts */ @@ -176,7 +176,7 @@ WHERE amount >0 AND transdate >= '". $SQLAfterDate . "' AND transdate <= '" . $SQLBeforeDate . "' - AND bankact=" .$_POST['BankAccount'] . " + AND bankact='" .$_POST['BankAccount'] . "' ORDER BY transdate"; } } else { /*it must be only the outstanding bank trans required */ @@ -205,7 +205,7 @@ WHERE amount >0 AND transdate >= '". $SQLAfterDate . "' AND transdate <= '" . $SQLBeforeDate . "' - AND bankact=" .$_POST["BankAccount"] . " + AND bankact='" .$_POST["BankAccount"] . "' AND ABS(amountcleared - (amount / exrate)) > 0.009 ORDER BY transdate"; } @@ -224,7 +224,7 @@ <th>' . _('Outstanding') . '</th> <th colspan=3>' . _('Clear') . ' / ' . _('Unclear') . '</th> </tr>'; - echo '<table cellpadding=2 BORDER=2>' . $TableHeader; + echo '<table cellpadding=2 class=selection>' . $TableHeader; $j = 1; //page length counter @@ -295,10 +295,10 @@ } //end of while loop - echo '</table><div class="centre"><input type=hidden name="RowCounter" value=' . $i . '><input type=submit name="Update" VALUE="' . _('Update Matching') . '"></div>'; + echo '</table><br><div class="centre"><input type=hidden name="RowCounter" value=' . $i . '><input type=submit name="Update" VALUE="' . _('Update Matching') . '"></div>'; } echo '</form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-03 21:44:25 UTC (rev 3547) +++ trunk/doc/Change.log.html 2010-07-03 21:44:46 UTC (rev 3548) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>03/07/10 Tim: BankMatching.php - Corrections to sql statements and layout changes</p> <p>03/07/10 Tim: BankAccounts.php - Layout changes</p> <p>03/07/10 Tim: AddCustomerTypeNotes.php - Layout changes and verify Type ID before query</p> <p>03/07/10 Tim: AddCustomerNotes.php - Verify Contact ID before query</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |