From: <dai...@us...> - 2011-05-30 08:43:36
|
Revision: 4584 http://web-erp.svn.sourceforge.net/web-erp/?rev=4584&view=rev Author: daintree Date: 2011-05-30 08:43:29 +0000 (Mon, 30 May 2011) Log Message: ----------- bug fixes Modified Paths: -------------- trunk/ConfirmDispatchControlled_Invoice.php trunk/GLAccountCSV.php trunk/PcAssignCashToTab.php trunk/PcExpensesTypeTab.php trunk/PricesByCost.php trunk/StockAdjustmentsControlled.php trunk/StockSerialItems.php trunk/doc/Change.log trunk/includes/GetConfig.php trunk/includes/InputSerialItems.php trunk/includes/InputSerialItemsFile.php trunk/includes/OutputSerialItems.php Modified: trunk/ConfirmDispatchControlled_Invoice.php =================================================================== --- trunk/ConfirmDispatchControlled_Invoice.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/ConfirmDispatchControlled_Invoice.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -1,10 +1,9 @@ <?php -/* $Revision: 1.13 $ */ + /* $Id$*/ include('includes/DefineCartClass.php'); include('includes/DefineSerialItems.php'); -//$PageSecurity = 11; include('includes/session.inc'); $title = _('Specify Dispatched Controlled Items'); @@ -16,9 +15,9 @@ } elseif (isset($_POST['LineNo'])){ $LineNo = (int)$_POST['LineNo']; } else { - echo '<div class="centre"><a href="' . $rootpath . '/ConfirmDispatch_Invoice.php?' . SID . '">'. - _('Select a line item to invoice').'</a><br>'; - echo '<br>'; + echo '<div class="centre"><a href="' . $rootpath . '/ConfirmDispatch_Invoice.php">'. + _('Select a line item to invoice').'</a><br />'; + echo '<br />'; prnMsg( _('This page can only be opened if a line item on a sales order to be invoiced has been selected') . '. ' . _('Please do that first'),'error'); echo '</div>'; include('includes/footer.inc'); @@ -27,8 +26,8 @@ if (!isset($_SESSION['Items']) OR !isset($_SESSION['ProcessingOrder'])) { /* This page can only be called with a sales order number to invoice */ - echo '<div class="centre"><a href="' . $rootpath . '/SelectSalesOrder.php?' . SID . '">'. _('Select a sales order to invoice'). - '</a><br>'; + echo '<div class="centre"><a href="' . $rootpath . '/SelectSalesOrder.php">'. _('Select a sales order to invoice'). + '</a><br />'; prnMsg( _('This page can only be opened if a sales order and line item has been selected Please do that first'),'error'); echo '</div>'; include('includes/footer.inc'); @@ -42,8 +41,8 @@ //Make sure this item is really controlled if ( $LineItem->Controlled != 1 ){ - echo '<div class="centre"><a href="' . $rootpath . '/ConfirmDispatch_Invoice.php?' . SID . '">'. _('Back to the Sales Order'). '</a></div>'; - echo '<br>'; + echo '<div class="centre"><a href="' . $rootpath . '/ConfirmDispatch_Invoice.php">'. _('Back to the Sales Order'). '</a></div>'; + echo '<br />'; prnMsg( _('The line item must be defined as controlled to require input of the batch numbers or serial numbers being sold'),'error'); include('includes/footer.inc'); exit; @@ -54,9 +53,9 @@ ********************************************/ echo '<div class="centre">'; -echo '<br><a href="'. $rootpath. '/ConfirmDispatch_Invoice.php?' . SID . '">'. _('Back to Confirmation of Dispatch') . '/' . _('Invoice'). '</a>'; +echo '<br /><a href="'. $rootpath. '/ConfirmDispatch_Invoice.php">'. _('Back to Confirmation of Dispatch') . '/' . _('Invoice'). '</a>'; -echo '<br><font size=2><b>'. _('Dispatch of up to').' '. number_format($LineItem->Quantity-$LineItem->QtyInv, $LineItem->DecimalPlaces). ' '. _('Controlled items').' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('on order').' ' . $_SESSION['Items']->OrderNo . ' '. _('to'). ' ' . $_SESSION['Items']->CustomerName . '</b></font></div>'; +echo '<br /><font size=2><b>'. _('Dispatch of up to').' '. number_format($LineItem->Quantity-$LineItem->QtyInv, $LineItem->DecimalPlaces). ' '. _('Controlled items').' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('on order').' ' . $_SESSION['Items']->OrderNo . ' '. _('to'). ' ' . $_SESSION['Items']->CustomerName . '</b></font></div>'; /** vars needed by InputSerialItem : **/ $StockID = $LineItem->StockID; @@ -66,7 +65,7 @@ $InOutModifier=1; $ShowExisting=false; -include ('includes/OutputSerialItems.php'); +include ('includes/IutputSerialItems.php'); /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for dispatch */ Modified: trunk/GLAccountCSV.php =================================================================== --- trunk/GLAccountCSV.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/GLAccountCSV.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -29,31 +29,31 @@ <tr> <td>'._('Selected Accounts') . ':</td> <td><select name="Account[]" multiple>'; -$sql = 'SELECT accountcode, accountname FROM chartmaster ORDER BY accountcode'; +$sql = "SELECT accountcode, accountname FROM chartmaster ORDER BY accountcode"; $AccountsResult = DB_query($sql,$db); $i=0; while ($myrow=DB_fetch_array($AccountsResult,$db)){ if(isset($_POST['Account'][$i]) AND $myrow['accountcode'] == $_POST['Account'][$i]){ - echo '<option selected VALUE=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname'] . '</option>'; + echo '<option selected value="' . $myrow['accountcode'] . '">' . $myrow['accountcode'] . ' ' . $myrow['accountname'] . '</option>'; $i++; } else { - echo '<option VALUE=' . $myrow['accountcode'] . '>' . $myrow['accountcode'] . ' ' . $myrow['accountname'] . '</option>'; + echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['accountcode'] . ' ' . $myrow['accountname'] . '</option>'; } } echo '</select></td>'; echo '<td>'._('For Period range').':</td> <td><select Name=Period[] multiple>'; -$sql = 'SELECT periodno, lastdate_in_period FROM periods ORDER BY periodno DESC'; +$sql = "SELECT periodno, lastdate_in_period FROM periods ORDER BY periodno DESC"; $Periods = DB_query($sql,$db); $id=0; while ($myrow=DB_fetch_array($Periods,$db)){ if (isset($SelectedPeriod[$id]) and $myrow['periodno'] == $SelectedPeriod[$id]){ - echo '<option selected VALUE=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])) . '</option>'; + echo '<option selected value="' . $myrow['periodno'] . '">' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])) . '</option>'; $id++; } else { - echo '<option VALUE=' . $myrow['periodno'] . '>' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])) . '</option>'; + echo '<option value="' . $myrow['periodno'] . '">' . _(MonthAndYearFromSQLDate($myrow['lastdate_in_period'])) . '</option>'; } } echo '</select></td></tr>'; @@ -61,25 +61,26 @@ //Select the tag echo '<tr><td>' . _('Select Tag') . ':</td><td><select name="tag">'; -$SQL = 'SELECT tagref, +$SQL = "SELECT tagref, tagdescription - FROM tags - ORDER BY tagref'; + FROM tags + ORDER BY tagref"; $result=DB_query($SQL,$db); echo '<option value=0>0 - '._('All tags'); while ($myrow=DB_fetch_array($result)){ if (isset($_POST['tag']) and $_POST['tag']==$myrow['tagref']){ - echo '<option selected value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; + echo '<option selected value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } else { - echo '<option value=' . $myrow['tagref'] . '>' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; + echo '<option value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } } echo '</select></td></tr>'; // End select tag -echo "</table><p> -<div class='centre'><input type=submit name='MakeCSV' VALUE='"._('Make CSV File')."'></div></form>"; +echo '</table><p> + <div class="centre"><input type="submit" name="MakeCSV" value="'._('Make CSV File').'"></div> + </form>'; /* End of the Form rest of script is what happens if the show button is hit*/ Modified: trunk/PcAssignCashToTab.php =================================================================== --- trunk/PcAssignCashToTab.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/PcAssignCashToTab.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -198,7 +198,7 @@ } $sql = "SELECT * FROM pcashdetails WHERE tabcode='" . $SelectedTabs . "' - AND date >=DATE_SUB(CURDATE(), INTERVAL , " . $Days . " DAY) + AND date >=DATE_SUB(CURDATE(), INTERVAL " . $Days . " DAY) ORDER BY date, counterindex ASC"; Modified: trunk/PcExpensesTypeTab.php =================================================================== --- trunk/PcExpensesTypeTab.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/PcExpensesTypeTab.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -88,7 +88,6 @@ //run the SQL from either of the above possibilites $result = DB_query($sql,$db); prnMsg($msg,'success'); - unset($_POST['SelectedExpense']); } @@ -96,10 +95,10 @@ $sql="DELETE FROM pctabexpenses WHERE typetabcode='".$SelectedTab."' AND codeexpense='".$SelectedType."'"; + $ErrMsg = _('The Tab Type record could not be deleted because'); $result = DB_query($sql,$db,$ErrMsg); prnMsg(_('Expense code').' '. $SelectedType .' '. _('for type of tab').' '. $SelectedTab .' '. _('has been deleted') ,'success'); - unset ($SelectedType); unset($_GET['delete']); } @@ -111,7 +110,7 @@ or deletion of the records*/ echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<table class=selection>'; //Main table + echo '<table class="selection">'; //Main table echo '<tr><td>' . _('Select Type of Tab') . ':</td><td><select name="SelectedTab">'; @@ -148,6 +147,10 @@ if (isset($_POST['process'])OR isset($SelectedTab)) { echo '<p><div class="centre"><a href="' . $_SERVER['PHP_SELF'] . '">' . _('Expense Codes for Type of Tab ') . ' ' .$SelectedTab. '</a></div><p>'; + echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; + echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + + echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '">'; $sql = "SELECT pctabexpenses.codeexpense, pcexpenses.description @@ -179,7 +182,7 @@ printf('<td>%s</td> <td>%s</td> - <td><a href="%s?SelectedType=%s&delete=yes&SelectedTab=' . $_POST['SelectedTab'] . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this code and the expense it may have set up?') . '\');">' . _('Delete') . '</td> + <td><a href="%s?SelectedType=%s&delete=yes&SelectedTab=' . $SelectedTab . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this code and the expense it may have set up?') . '\');">' . _('Delete') . '</td> </tr>', $myrow['codeexpense'], $myrow['description'], @@ -193,8 +196,7 @@ if (! isset($_GET['delete'])) { - echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; - echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + echo '<br /><table class="selection">'; //Main table echo '<tr><td>' . _('Select Expense Code') . ':</td><td><select name="SelectedExpense">'; @@ -220,11 +222,8 @@ echo '</select></td></tr>'; - - echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '">'; - echo '</td></tr></table>'; // close main table - + echo '<p><div class="centre"><input type=submit name=submit value="' . _('Accept') . '"> <input type=submit name="Cancel" value="' . _('Cancel') . '"></div>'; Modified: trunk/PricesByCost.php =================================================================== --- trunk/PricesByCost.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/PricesByCost.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -51,56 +51,73 @@ //Update Prices $PriceCounter =0; while ($myrow = DB_fetch_array($result)) { - + /*The logic here goes like this: + * 1. If the price at the same start and end date already exists then do nowt!! + * 2. If not then check if a price with the start date of today already exists - then we should be updating it + * 3. If not either of the above then insert the new price + */ $SQLTestExists = "SELECT price FROM prices WHERE stockid = '" . $_POST['StockID_' . $PriceCounter] . "' AND prices.typeabbrev ='" . $_POST['SalesType'] . "' AND prices.currabrev ='" . $_POST['CurrCode'] . "' AND prices.debtorno ='" . $_POST['DebtorNo_' . $PriceCounter] . "' AND prices.branchcode ='" . $_POST['BranchCode_' . $PriceCounter] . "' - AND prices.startdate ='" . date('Y-m-d') . "'"; + AND prices.startdate ='" . $_POST['StartDate_' . $PriceCounter] . "' + AND prices.enddate ='" . $_POST['EndDate_' . $PriceCounter] . "' + AND prices.price ='" . $_POST['Price_' . $PriceCounter] . "'"; $TestExistsResult = DB_query($SQLTestExists,$db); - if (DB_num_rows($TestExistsResult)==1){ - //then we are updating - $SQLUpdate = "UPDATE prices SET price = '" . $_POST['Price_' . $PriceCounter] . "' - WHERE stockid = '" . $_POST['StockID_' . $PriceCounter] . "' - AND prices.typeabbrev ='" . $_POST['SalesType'] . "' - AND prices.currabrev ='" . $_POST['CurrCode'] . "' - AND prices.debtorno ='" . $_POST['DebtorNo_' . $PriceCounter] . "' - AND prices.branchcode ='" . $_POST['BranchCode_' . $PriceCounter] . "' - AND prices.startdate ='" . date('Y-m-d') . "' - AND prices.enddate ='" . $_POST['EndDate_' . $PriceCounter] . "'"; - $ResultUpdate = DB_query($SQLUpdate, $db); - } else { - //update the old price to have an end date of yesterday too - $SQLUpdate = "UPDATE prices SET enddate = '" . FormatDateForSQL(DateAdd(Date($_SESSION['DefaultDateFormat']),'d',-1)) . "' - WHERE stockid = '" . $_POST['StockID_' . $PriceCounter] . "' - AND prices.typeabbrev ='" . $_POST['SalesType'] . "' - AND prices.currabrev ='" . $_POST['CurrCode'] . "' - AND prices.debtorno ='" . $_POST['DebtorNo_' . $PriceCounter] . "' - AND prices.branchcode ='" . $_POST['BranchCode_' . $PriceCounter] . "' - AND prices.startdate ='" . $_POST['StartDate_' . $PriceCounter] . "' - AND prices.enddate ='" . $_POST['EndDate_' . $PriceCounter] . "'"; - $Result = DB_query($SQLUpdate, $db); - //we need to add a new price from today - $SQLInsert = "INSERT INTO prices ( stockid, - price, - typeabbrev, - currabrev, - debtorno, - branchcode, - startdate - ) VALUES ( - '" . $_POST['StockID_' . $PriceCounter] . "', - '" . $_POST['Price_' . $PriceCounter] . "', - '" . $_POST['SalesType'] . "', - '" . $_POST['CurrCode'] . "', - '" . $_POST['DebtorNo_' . $PriceCounter] . "', - '" . $_POST['BranchCode_' . $PriceCounter] . "', - '" . date('Y-m-d') . "' - )"; - $ResultInsert = DB_query($SQLInsert, $db); - + if (DB_num_rows($TestExistsResult)==0){ //the price doesn't currently exist + //now check to see if a new price has already been created from start date of today + + $SQLTestExists = "SELECT price FROM prices + WHERE stockid = '" . $_POST['StockID_' . $PriceCounter] . "' + AND prices.typeabbrev ='" . $_POST['SalesType'] . "' + AND prices.currabrev ='" . $_POST['CurrCode'] . "' + AND prices.debtorno ='" . $_POST['DebtorNo_' . $PriceCounter] . "' + AND prices.branchcode ='" . $_POST['BranchCode_' . $PriceCounter] . "' + AND prices.startdate ='" . date('Y-m-d') . "'"; + $TestExistsResult = DB_query($SQLTestExists,$db); + if (DB_num_rows($TestExistsResult)==1){ + //then we are updating + $SQLUpdate = "UPDATE prices SET price = '" . $_POST['Price_' . $PriceCounter] . "' + WHERE stockid = '" . $_POST['StockID_' . $PriceCounter] . "' + AND prices.typeabbrev ='" . $_POST['SalesType'] . "' + AND prices.currabrev ='" . $_POST['CurrCode'] . "' + AND prices.debtorno ='" . $_POST['DebtorNo_' . $PriceCounter] . "' + AND prices.branchcode ='" . $_POST['BranchCode_' . $PriceCounter] . "' + AND prices.startdate ='" . date('Y-m-d') . "' + AND prices.enddate ='" . $_POST['EndDate_' . $PriceCounter] . "'"; + $ResultUpdate = DB_query($SQLUpdate, $db); + } else { //there is not a price already starting today so need to create one + //update the old price to have an end date of yesterday too + $SQLUpdate = "UPDATE prices SET enddate = '" . FormatDateForSQL(DateAdd(Date($_SESSION['DefaultDateFormat']),'d',-1)) . "' + WHERE stockid = '" . $_POST['StockID_' . $PriceCounter] . "' + AND prices.typeabbrev ='" . $_POST['SalesType'] . "' + AND prices.currabrev ='" . $_POST['CurrCode'] . "' + AND prices.debtorno ='" . $_POST['DebtorNo_' . $PriceCounter] . "' + AND prices.branchcode ='" . $_POST['BranchCode_' . $PriceCounter] . "' + AND prices.startdate ='" . $_POST['StartDate_' . $PriceCounter] . "' + AND prices.enddate ='" . $_POST['EndDate_' . $PriceCounter] . "'"; + $Result = DB_query($SQLUpdate, $db); + //we need to add a new price from today + $SQLInsert = "INSERT INTO prices ( stockid, + price, + typeabbrev, + currabrev, + debtorno, + branchcode, + startdate + ) VALUES ( + '" . $_POST['StockID_' . $PriceCounter] . "', + '" . $_POST['Price_' . $PriceCounter] . "', + '" . $_POST['SalesType'] . "', + '" . $_POST['CurrCode'] . "', + '" . $_POST['DebtorNo_' . $PriceCounter] . "', + '" . $_POST['BranchCode_' . $PriceCounter] . "', + '" . date('Y-m-d') . "' + )"; + $ResultInsert = DB_query($SQLInsert, $db); + } } $PriceCounter++; }//end while loop Modified: trunk/StockAdjustmentsControlled.php =================================================================== --- trunk/StockAdjustmentsControlled.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/StockAdjustmentsControlled.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -2,8 +2,6 @@ /* $Id$*/ include('includes/DefineSerialItems.php'); include('includes/DefineStockAdjustment.php'); - -//$PageSecurity = 11; include('includes/session.inc'); $title = _('Adjusting Controlled Items'); @@ -13,8 +11,8 @@ if (!isset($_SESSION['Adjustment'])) { /* This page can only be called when a stock adjustment is pending */ - echo '<div class="centre"><a href="' . $rootpath . '/StockAdjustments.php?' . SID . '&NewAdjustment=Yes">'. _('Enter A Stock Adjustment'). '</a><br>'; - prnMsg( _('This page can only be opened if a stock adjustment for a controlled item has been entered').'<br>','error'); + echo '<div class="centre"><a href="' . $rootpath . '/StockAdjustments.php?NewAdjustment=Yes">'. _('Enter A Stock Adjustment'). '</a><br />'; + prnMsg( _('This page can only be opened if a stock adjustment for a controlled item has been entered').'<br />','error'); echo '</div>'; include('includes/footer.inc'); exit; @@ -30,8 +28,8 @@ //Make sure this item is really controlled if ( $LineItem->Controlled != 1 ){ - echo '<a href="' . $rootpath . '/StockAdjustments.php?' . SID . '&NewAdjustment=Yes">'._('Enter A Stock Adjustment').'</a>'; - prnMsg('<br>'. _('Notice') . ' - ' . _('The adjusted item must be defined as controlled to require input of the batch numbers or serial numbers being adjusted'),'error'); + echo '<a href="' . $rootpath . '/StockAdjustments.php?NewAdjustment=Yes">'._('Enter A Stock Adjustment').'</a>'; + prnMsg('<br />'. _('Notice') . ' - ' . _('The adjusted item must be defined as controlled to require input of the batch numbers or serial numbers being adjusted'),'error'); include('includes/footer.inc'); exit; } @@ -39,20 +37,20 @@ /***** get the page going now... *****/ echo '<div class="centre">'; -echo '<br><a href="'.$rootpath.'/StockAdjustments.php?' . SID .'">' . _('Back to Adjustment Screen') . '</a>'; +echo '<br /><a href="'.$rootpath.'/StockAdjustments.php">' . _('Back to Adjustment Screen') . '</a>'; -echo '<br><font size=2><b>'. _('Adjustment of controlled item').' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription ; +echo '<br /><font size=2><b>'. _('Adjustment of controlled item').' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription ; /** vars needed by InputSerialItem : **/ $LocationOut = $_SESSION['Adjustment']->StockLocation; $StockID = $LineItem->StockID; if ($LineItem->AdjustmentType == 'ADD'){ - echo '<br>'. _('Adding Items').'...'; + echo '<br />'. _('Adding Items').'...'; $ItemMustExist = false; $InOutModifier = 1; $ShowExisting = false; } elseif ($LineItem->AdjustmentType == 'REMOVE'){ - echo '<br>'._('Removing Items').'...'; + echo '<br />'._('Removing Items').'...'; $ItemMustExist = true; $InOutModifier = -1; $ShowExisting = true; Modified: trunk/StockSerialItems.php =================================================================== --- trunk/StockSerialItems.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/StockSerialItems.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -1,8 +1,6 @@ <?php /* $Id$*/ - - include('includes/session.inc'); $title = _('Stock Of Controlled Items'); include('includes/header.inc'); @@ -24,16 +22,16 @@ } $result = DB_query("SELECT description, - units, - mbflag, - decimalplaces, - serialised, - controlled, - perishable - FROM stockmaster - WHERE stockid='".$StockID."'", - $db, - _('Could not retrieve the requested item because')); + units, + mbflag, + decimalplaces, + serialised, + controlled, + perishable + FROM stockmaster + WHERE stockid='".$StockID."'", + $db, + _('Could not retrieve the requested item because')); $myrow = DB_fetch_array($result); @@ -52,21 +50,21 @@ } $result = DB_query("SELECT locationname - FROM locations - WHERE loccode='" . $_GET['Location'] . "'", - $db, - _('Could not retrieve the stock location of the item because'), - _('The SQL used to lookup the location was')); + FROM locations + WHERE loccode='" . $_GET['Location'] . "'", + $db, + _('Could not retrieve the stock location of the item because'), + _('The SQL used to lookup the location was')); $myrow = DB_fetch_row($result); $sql = "SELECT serialno, - quantity, - expirationdate - FROM stockserialitems - WHERE loccode='" . $_GET['Location'] . "' - AND stockid = '" . $StockID . "' - AND quantity <>0"; + quantity, + expirationdate + FROM stockserialitems + WHERE loccode='" . $_GET['Location'] . "' + AND stockid = '" . $StockID . "' + AND quantity <>0"; $ErrMsg = _('The serial numbers/batches held cannot be retrieved because'); @@ -135,7 +133,7 @@ $TotalQuantity += $myrow['quantity']; if ($Serialised == 1){ - echo '<td>'.$myrow['serialno'].'/td>'; + echo '<td>'.$myrow['serialno'].'</td>'; echo '<th></th>'; } else if ($Serialised == 0 and $Perishable==0) { echo '<td>'.$myrow['serialno'].'</td> Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/doc/Change.log 2011-05-30 08:43:29 UTC (rev 4584) @@ -1,5 +1,12 @@ webERP Change Log +30/5/11 Invoicing of serial items was not happening using includes/OutputSerialItems.php script not includes/InputSerialItems.php script +30/5/11 StockSerialItems.php closing td> tag was missing / +30/5/11 InputSerialItemsFile.php was looking for a hard coded reports dir now used $_SESSION['reports_dir'] +30/5/11 GetConfig.php checks for existence of the decimalplaces field in currencies and inserts it before attemtpting to run the company SQL... +30/5/11 PcExpensesTypeTab.php could not delete Expenses lost TabType value fixed +30/5/11 PriceByCost.php now only makes a new price if the price is actually changed!! + 29/5/11 Version 4.04.1 Release 29/5/11 PricesByCost.php made it so the existing prices had end dates set as yesterday and new prices created from today Modified: trunk/includes/GetConfig.php =================================================================== --- trunk/includes/GetConfig.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/includes/GetConfig.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -36,7 +36,14 @@ $_SESSION['PageSecurityArray'][$myrow['script']]=$myrow['pagesecurity']; } - + /* + check the decimalplaces field exists in currencies - this was added in 4.0 but is required in 4.04 as it is used everywhere as the default decimal places to show on all home currency amounts + */ + $result = DB_query("SELECT decimalplaces FROM currencies",$db,'','',false,false); + if (DB_error_no($db)!=0) { //then decimalplaces not already a field in currencies + $result = DB_query("ALTER TABLE `currencies` + ADD COLUMN `decimalplaces` tinyint(3) NOT NULL DEFAULT 2 AFTER `hundredsname`",$db); + } /* Also reads all the company data set up in the company record and returns an array */ $sql= "SELECT coyname, @@ -80,7 +87,7 @@ } /*Now read in smtp email settings - not needed in a properly set up server environment - but helps for those who can't control their server .. I think! */ - $sql='SELECT id, + $sql="SELECT id, host, port, heloaddress, @@ -88,7 +95,7 @@ password, timeout, auth - FROM emailsettings'; + FROM emailsettings"; $result=DB_query($sql, $db); $myrow=DB_fetch_array($result); Modified: trunk/includes/InputSerialItems.php =================================================================== --- trunk/includes/InputSerialItems.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/includes/InputSerialItems.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -98,7 +98,7 @@ $tableheader .= '<tr> <th>'. _('Serial No').'</th> </tr>'; -} else if ($LineItem->Serialised==0 and $Perishable==1){ +} else if ($LineItem->Serialised==0 AND $Perishable==1){ $tableheader = '<tr> <th>'. _('Batch/Roll/Bundle'). ' #</th> <th>'. _('Quantity'). '</th> Modified: trunk/includes/InputSerialItemsFile.php =================================================================== --- trunk/includes/InputSerialItemsFile.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/includes/InputSerialItemsFile.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -20,8 +20,8 @@ $LineNo = $_POST['LineNo']; } -echo '<DIV Align=Center>'; -echo '<TABLE>'; +echo '<div class="centre">'; +echo '<table>'; echo $tableheader; $TotalQuantity = 0; /*Variable to accumulate total quantity received */ @@ -57,7 +57,7 @@ echo '<tr><td align=right><b>'. _('Total Quantity'). ': ' . number_format($TotalQuantity,$LineItem->DecimalPlaces) . '</b></td></tr>'; echo '<tr><td><hr></td></tr>'; } else { - echo '<tr><td align=right><b>'. _('Total Quantity'). ':</B></TD><TD ALIGN=RIGHT><B>' . number_format($TotalQuantity,$LineItem->DecimalPlaces) . '</b></td></tr>'; + echo '<tr><td align=right><b>'. _('Total Quantity'). ':</b></td><td align=right><b>' . number_format($TotalQuantity,$LineItem->DecimalPlaces) . '</b></td></tr>'; echo '<tr><td colspan=2><hr></td></tr>'; } @@ -96,7 +96,7 @@ $LineItem->SerialItemsValid=false; $_SESSION['CurImportFile']['Processed']=false; $_SESSION['CurImportFile'] = $_FILES['ImportFile']; - $_SESSION['CurImportFile']['tmp_name'] = './reports/'.$LineItem->StockID.'_'.$LineNo.'_'.uniqid(4); + $_SESSION['CurImportFile']['tmp_name'] = $_SESSION['reports_dir'] . '/' . $LineItem->StockID.'_'.$LineNo.'_'.uniqid(4); if (!move_uploaded_file($_FILES['ImportFile']['tmp_name'],$_SESSION['CurImportFile']['tmp_name'])){ prnMsg(_('Error moving temporary file') . '. ' . _('Please check your configuration'),'error' ); $LineItem->SerialItemsValid=false; Modified: trunk/includes/OutputSerialItems.php =================================================================== --- trunk/includes/OutputSerialItems.php 2011-05-29 10:04:48 UTC (rev 4583) +++ trunk/includes/OutputSerialItems.php 2011-05-30 08:43:29 UTC (rev 4584) @@ -1,5 +1,5 @@ <?php -/* $Id$*/ +/* $Id OutputSerialItems.php 4501 2011-03-03 09:13:12Z daintree $*/ /*Input Serial Items - used for inputing serial numbers or batch/roll/bundle references for controlled items - used in: - ConfirmDispatchControlledInvoice.php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-05-31 09:36:33
|
Revision: 4585 http://web-erp.svn.sourceforge.net/web-erp/?rev=4585&view=rev Author: daintree Date: 2011-05-31 09:36:20 +0000 (Tue, 31 May 2011) Log Message: ----------- email settings work around Modified Paths: -------------- trunk/doc/Change.log trunk/doc/Manual/ManualInventory.html trunk/includes/GetConfig.php 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/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.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/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.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/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.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/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.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/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-05-30 08:43:29 UTC (rev 4584) +++ trunk/doc/Change.log 2011-05-31 09:36:20 UTC (rev 4585) @@ -1,5 +1,9 @@ webERP Change Log +31/5/11 GetConfig.php amended so that an earlier version without the emailsettings table does not choke before getting to the UpgradeDatabase.php option - reported by Brian May + +30/5/11 Version 4.04.2 Release + 30/5/11 Invoicing of serial items was not happening using includes/OutputSerialItems.php script not includes/InputSerialItems.php script 30/5/11 StockSerialItems.php closing td> tag was missing / 30/5/11 InputSerialItemsFile.php was looking for a hard coded reports dir now used $_SESSION['reports_dir'] Modified: trunk/doc/Manual/ManualInventory.html =================================================================== --- trunk/doc/Manual/ManualInventory.html 2011-05-30 08:43:29 UTC (rev 4584) +++ trunk/doc/Manual/ManualInventory.html 2011-05-31 09:36:20 UTC (rev 4585) @@ -35,6 +35,7 @@ <li>Inventory usage by month inquiry by location and overall <li>Inventory planning report <li>Integration with purchasing, accounts payable, accounts receivable and general ledger. +<li>Any number of custom fields can be added specific to each inventory category</li> </ul> <!-- Help Begin: Stocks --> Modified: trunk/includes/GetConfig.php =================================================================== --- trunk/includes/GetConfig.php 2011-05-30 08:43:29 UTC (rev 4584) +++ trunk/includes/GetConfig.php 2011-05-31 09:36:20 UTC (rev 4585) @@ -87,6 +87,7 @@ } /*Now read in smtp email settings - not needed in a properly set up server environment - but helps for those who can't control their server .. I think! */ + $sql="SELECT id, host, port, @@ -96,17 +97,21 @@ 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']; - + $result=DB_query($sql, $db,'','',false,false); + if (DB_error_no($db)==0) { + /*test to ensure that the emailsettings table exists!! + * if it doesn't exist then we are into an UpgradeDatabase scenario anyway + */ + $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']; + } } //end if force reload or not set already 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 2011-05-30 08:43:29 UTC (rev 4584) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-05-31 09:36:20 UTC (rev 4585) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-29 21:48+1200\n" +"POT-Creation-Date: 2011-05-30 20:51+1200\n" "PO-Revision-Date: 2011-02-07 15:33+0000\n" "Last-Translator: Tim Schofield <Unknown>\n" "Language-Team: Czech <cs...@li...>\n" @@ -370,7 +370,7 @@ #: Labels.php:414 Locations.php:378 MRPDemands.php:304 MRPDemandTypes.php:121 #: PaymentMethods.php:203 Payments.php:1006 PaymentTerms.php:204 #: PcAssignCashToTab.php:259 PcClaimExpensesFromTab.php:253 PcExpenses.php:209 -#: PcExpensesTypeTab.php:182 PcTabs.php:235 PcTypeTabs.php:173 +#: PcExpensesTypeTab.php:185 PcTabs.php:235 PcTypeTabs.php:173 #: PO_AuthorisationLevels.php:151 PO_Items.php:687 Prices_Customer.php:281 #: Prices.php:247 PurchData.php:211 SalesAnalReptCols.php:294 #: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 @@ -832,7 +832,7 @@ msgid "The details of outstanding transactions for customer" msgstr "Podrobnosti o nesplacených transakcí pro zákazníka" -#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:167 +#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:168 #: GLAccountInquiry.php:145 GLAccountReportphp:149 GLAccountReport.php:93 #: PO_Items.php:416 PO_Items.php:538 PO_Items.php:562 #: SalesAnalReptCols.php:356 SpecialOrder.php:370 @@ -1290,7 +1290,7 @@ #: PO_AuthorisationLevels.php:205 PO_AuthorisationLevels.php:210 #: PO_AuthoriseMyOrders.php:114 PO_Header.php:545 #: PO_SelectOSPurchOrder.php:437 PO_SelectPurchOrder.php:393 -#: PricesByCost.php:254 Prices.php:217 Prices.php:287 PurchData.php:175 +#: PricesByCost.php:271 Prices.php:217 Prices.php:287 PurchData.php:175 #: PurchData.php:341 PurchData.php:465 SelectSupplier.php:247 #: SupplierCredit.php:265 SupplierInvoice.php:231 SupplierTransInquiry.php:95 #: SuppPriceList.php:265 includes/PDFBankingSummaryPageHeader.inc:42 @@ -1392,9 +1392,9 @@ msgid "from" msgstr "od" -#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:59 +#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:58 #: EmailCustTrans.php:65 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 -#: GLAccountCSV.php:170 GLAccountReport.php:102 Payments.php:717 +#: GLAccountCSV.php:171 GLAccountReport.php:102 Payments.php:717 #: PcReportTab.php:102 PDFChequeListing.php:107 PDFChequeListing.php:117 #: PDFChequeListing.php:192 PDFDeliveryDifferences.php:166 #: PDFDeliveryDifferences.php:179 PDFDeliveryDifferences.php:287 @@ -2052,11 +2052,11 @@ #: MRPDemands.php:289 MRPDemandTypes.php:113 MRPPlannedWorkOrders.php:256 #: MRPReport.php:535 MRPReport.php:739 MRPReschedules.php:176 #: MRPShortages.php:334 PaymentTerms.php:180 PcExpenses.php:181 -#: PcExpenses.php:273 PcExpensesTypeTab.php:166 PcReportTab.php:171 +#: PcExpenses.php:273 PcExpensesTypeTab.php:169 PcReportTab.php:171 #: PcTypeTabs.php:156 PDFOrdersInvoiced.php:342 PDFOrderStatus.php:316 #: PDFPrintLabel.php:238 PO_Items.php:640 PO_Items.php:929 #: PO_SelectOSPurchOrder.php:211 PO_SelectPurchOrder.php:178 -#: PricesByCost.php:135 ReorderLevelLocation.php:55 ReorderLevel.php:254 +#: PricesByCost.php:152 ReorderLevelLocation.php:55 ReorderLevel.php:254 #: ReverseGRN.php:377 SalesCategories.php:423 SecurityTokens.php:86 #: SecurityTokens.php:92 SecurityTokens.php:102 SelectAsset.php:243 #: SelectCompletedOrder.php:536 SelectContract.php:156 @@ -2236,7 +2236,7 @@ #: MRPPlannedWorkOrders.php:255 MRPReport.php:738 PDFOrdersInvoiced.php:341 #: PDFOrderStatus.php:315 PDFPrintLabel.php:238 PO_Header.php:542 #: PO_Items.php:928 PO_SelectOSPurchOrder.php:210 PO_SelectPurchOrder.php:177 -#: PricesByCost.php:134 PurchData.php:339 ReorderLevelLocation.php:54 +#: PricesByCost.php:151 PurchData.php:339 ReorderLevelLocation.php:54 #: ReorderLevelLocation.php:203 SalesPeople.php:184 #: SelectCompletedOrder.php:535 SelectCreditItems.php:220 #: SelectCreditItems.php:956 SelectCustomer.php:458 SelectGLAccount.php:105 @@ -2704,7 +2704,7 @@ #: COGSGLPostings.php:90 COGSGLPostings.php:194 COGSGLPostings.php:306 #: Customers.php:739 Customers.php:742 DiscountMatrix.php:96 -#: DiscountMatrix.php:152 PricesByCost.php:242 Prices.php:218 +#: DiscountMatrix.php:152 PricesByCost.php:259 Prices.php:218 #: SalesAnalRepts.php:32 SalesAnalRepts.php:34 SalesGLPostings.php:112 #: SalesGLPostings.php:224 SalesGLPostings.php:354 SelectOrderItems.php:752 #: api/api_xml-rpc.php:931 api/api_xml-rpc.php:974 @@ -2737,7 +2737,7 @@ #: COGSGLPostings.php:306 Customers.php:742 EDIProcessOrders.php:389 #: PDFCustomerList.php:332 PDFPriceList.php:17 PDFPriceList.php:121 -#: PDFPriceList.php:251 PricesBasedOnMarkUp.php:223 PricesByCost.php:242 +#: PDFPriceList.php:251 PricesBasedOnMarkUp.php:223 PricesByCost.php:259 #: SalesGLPostings.php:354 SelectOrderItems.php:752 SuppPriceList.php:118 #: SuppPriceList.php:222 msgid "Price List" @@ -2930,7 +2930,7 @@ #: GLTags.php:62 GoodsReceived.php:229 GoodsReceived.php:235 #: GoodsReceived.php:242 GoodsReceived.php:699 Labels.php:262 #: MRPCalendar.php:307 Payments.php:860 PcAuthorizeExpenses.php:283 -#: PO_AuthoriseMyOrders.php:132 PricesByCost.php:204 PurchData.php:505 +#: PO_AuthoriseMyOrders.php:132 PricesByCost.php:221 PurchData.php:505 #: ReorderLevelLocation.php:156 SecurityTokens.php:89 #: SelectCreditItems.php:898 SMTPServer.php:64 StockCostUpdate.php:163 #: StockReorderLevel.php:94 Stocks.php:1037 SystemParameters.php:1005 @@ -2938,15 +2938,15 @@ msgid "Update" msgstr "Aktualizace" -#: ConfirmDispatchControlled_Invoice.php:9 +#: ConfirmDispatchControlled_Invoice.php:8 msgid "Specify Dispatched Controlled Items" msgstr "Určete Odešle kontrolovaného zboží" -#: ConfirmDispatchControlled_Invoice.php:20 +#: ConfirmDispatchControlled_Invoice.php:19 msgid "Select a line item to invoice" msgstr "Vyberte řádkové položky na faktuře" -#: ConfirmDispatchControlled_Invoice.php:22 +#: ConfirmDispatchControlled_Invoice.php:21 msgid "" "This page can only be opened if a line item on a sales order to be invoiced " "has been selected" @@ -2954,17 +2954,17 @@ "Tato stránka může být otevřen pouze v řádku o prodeji, aby bylo fakturováno " "byla vybrána" -#: ConfirmDispatchControlled_Invoice.php:22 CreditItemsControlled.php:33 +#: ConfirmDispatchControlled_Invoice.php:21 CreditItemsControlled.php:33 #: CreditItemsControlled.php:44 GoodsReceivedControlled.php:28 #: GoodsReceivedControlled.php:40 msgid "Please do that first" msgstr "Prosím, že první" -#: ConfirmDispatchControlled_Invoice.php:30 ConfirmDispatch_Invoice.php:18 +#: ConfirmDispatchControlled_Invoice.php:29 ConfirmDispatch_Invoice.php:18 msgid "Select a sales order to invoice" msgstr "zvolit prodejní objednávku k fakturaci" -#: ConfirmDispatchControlled_Invoice.php:32 +#: ConfirmDispatchControlled_Invoice.php:31 msgid "" "This page can only be opened if a sales order and line item has been " "selected Please do that first" @@ -2972,11 +2972,11 @@ "Tato stránka může být otevřen pouze v prodejní objednávky a řádková položka " "byla vybrána prosím, že první" -#: ConfirmDispatchControlled_Invoice.php:45 +#: ConfirmDispatchControlled_Invoice.php:44 msgid "Back to the Sales Order" msgstr "Zpět k prodejním objednávkám" -#: ConfirmDispatchControlled_Invoice.php:47 +#: ConfirmDispatchControlled_Invoice.php:46 msgid "" "The line item must be defined as controlled to require input of the batch " "numbers or serial numbers being sold" @@ -2984,11 +2984,11 @@ "Řádku musí být definován jako řízený vyžadovat zadání čísel šarží nebo " "sériových čísel jsou prodávány" -#: ConfirmDispatchControlled_Invoice.php:57 +#: ConfirmDispatchControlled_Invoice.php:56 msgid "Back to Confirmation of Dispatch" msgstr "Zpět na Potvrzení o odeslání" -#: ConfirmDispatchControlled_Invoice.php:57 CounterSales.php:1207 +#: ConfirmDispatchControlled_Invoice.php:56 CounterSales.php:1207 #: DeliveryDetails.php:583 DeliveryDetails.php:783 EmailCustTrans.php:11 #: PaymentAllocations.php:33 SelectSalesOrder.php:742 SelectSalesOrder.php:811 #: SelectSalesOrder.php:838 Z_SalesIntegrityCheck.php:46 @@ -2997,15 +2997,15 @@ msgid "Invoice" msgstr "Faktura" -#: ConfirmDispatchControlled_Invoice.php:59 +#: ConfirmDispatchControlled_Invoice.php:58 msgid "Dispatch of up to" msgstr "Expedice do" -#: ConfirmDispatchControlled_Invoice.php:59 +#: ConfirmDispatchControlled_Invoice.php:58 msgid "Controlled items" msgstr "Kontrolovaného zboží" -#: ConfirmDispatchControlled_Invoice.php:59 GoodsReceivedControlled.php:65 +#: ConfirmDispatchControlled_Invoice.php:58 GoodsReceivedControlled.php:65 msgid "on order" msgstr "na objednávku" @@ -3062,7 +3062,7 @@ #: CustomerReceipt.php:844 CustomerReceipt.php:895 CustomerReceipt.php:1020 #: Customers.php:12 Customers.php:347 CustomerTransInquiry.php:88 #: DeliveryDetails.php:800 FTP_RadioBeacon.php:51 PDFOrdersInvoiced.php:299 -#: PDFOrderStatus.php:272 PricesByCost.php:136 SalesGraph.php:169 +#: PDFOrderStatus.php:272 PricesByCost.php:153 SalesGraph.php:169 #: SelectCompletedOrder.php:586 SelectContract.php:157 SelectCustomer.php:24 #: SelectCustomer.php:281 SelectOrderItems.php:643 #: SelectRecurringSalesOrder.php:78 SelectSalesOrder.php:744 @@ -3172,7 +3172,7 @@ #: DeliveryDetails.php:824 DeliveryDetails.php:889 GoodsReceived.php:98 #: OffersReceived.php:97 OffersReceived.php:197 OffersReceived.php:244 #: OrderDetails.php:157 PDFOrdersInvoiced.php:385 PDFPriceList.php:359 -#: PDFPrintLabel.php:238 PO_AuthoriseMyOrders.php:115 PricesByCost.php:228 +#: PDFPrintLabel.php:238 PO_AuthoriseMyOrders.php:115 PricesByCost.php:245 #: Prices_Customer.php:345 Prices.php:219 Prices.php:331 #: PrintCustTrans.php:803 PrintCustTrans.php:891 PrintCustTrans.php:938 #: PrintCustTransPortrait.php:859 PrintCustTransPortrait.php:942 @@ -4135,7 +4135,7 @@ #: ContractBOM.php:41 ContractOtherReqts.php:45 Contracts.php:88 #: Contracts.php:97 DeliveryDetails.php:259 DeliveryDetails.php:268 -#: EmailCustTrans.php:24 EmailCustTrans.php:28 GLAccountCSV.php:260 +#: EmailCustTrans.php:24 EmailCustTrans.php:28 GLAccountCSV.php:261 #: PO_Header.php:237 POReport.php:1467 SalesAnalysis_UserDefined.php:46 #: SelectOrderItems.php:1158 StockQties_csv.php:43 StockUsage.php:22 #: SupplierCredit.php:216 SupplierCredit.php:228 SupplierCredit.php:240 @@ -4980,7 +4980,7 @@ #: Contracts.php:775 CustomerInquiry.php:193 CustomerTransInquiry.php:89 #: FTP_RadioBeacon.php:52 PDFOrdersInvoiced.php:300 PDFOrderStatus.php:273 -#: PDFPriceList.php:356 PricesByCost.php:137 Prices_Customer.php:258 +#: PDFPriceList.php:356 PricesByCost.php:154 Prices_Customer.php:258 #: Prices_Customer.php:328 PrintCustTrans.php:751 #: PrintCustTransPortrait.php:804 SelectCompletedOrder.php:587 #: SelectCreditItems.php:221 SelectCustomer.php:460 SelectOrderItems.php:644 @@ -5027,7 +5027,7 @@ msgstr "Referenční zakázky" #: Contracts.php:846 InventoryQuantities.php:212 PDFPriceList.php:352 -#: PDFPrintLabel.php:94 PricesByCost.php:221 ReorderLevelLocation.php:189 +#: PDFPrintLabel.php:94 PricesByCost.php:238 ReorderLevelLocation.php:189 #: ReorderLevel.php:242 SalesCategoryPeriodInquiry.php:162 #: SalesTopItemsInquiry.php:218 SpecialOrder.php:606 StockDispatch.php:344 #: Stocks.php:728 SuppPriceList.php:211 SuppPriceList.php:261 @@ -5249,8 +5249,8 @@ msgid "against customer code" msgstr "před kód zákazníka" -#: CounterSales.php:151 DeliveryDetails.php:151 GLAccountCSV.php:181 -#: GLAccountCSV.php:210 GLAccountInquiry.php:175 GLAccountInquiry.php:214 +#: CounterSales.php:151 DeliveryDetails.php:151 GLAccountCSV.php:182 +#: GLAccountCSV.php:211 GLAccountInquiry.php:175 GLAccountInquiry.php:214 #: GLAccountReportphp:176 GLAccountReportphp:215 GLAccountReport.php:114 #: GLAccountReport.php:146 SelectOrderItems.php:477 msgid "could not be retrieved" @@ -5386,7 +5386,7 @@ msgid "QOH" msgstr "QOH" -#: CounterSales.php:706 PricesByCost.php:141 SelectOrderItems.php:1312 +#: CounterSales.php:706 PricesByCost.php:158 SelectOrderItems.php:1312 msgid "GP %" msgstr "GP%" @@ -6108,7 +6108,7 @@ msgid "Back to Credit Note Entry" msgstr "Zpět na dobropis Vstup" -#: CreditItemsControlled.php:58 StockAdjustmentsControlled.php:34 +#: CreditItemsControlled.php:58 StockAdjustmentsControlled.php:32 #: StockTransferControlled.php:49 msgid "Notice" msgstr "Poznámka" @@ -6473,7 +6473,7 @@ #: PricesByCost.php:8 ReorderLevelLocation.php:13 ReorderLevel.php:161 #: SelectProduct.php:73 StockDispatch.php:219 StockMovements.php:19 #: StockQties_csv.php:8 StockQuantityByDate.php:9 StockReorderLevel.php:17 -#: StockSerialItemResearch.php:10 StockSerialItems.php:10 StockStatus.php:44 +#: StockSerialItemResearch.php:10 StockSerialItems.php:8 StockStatus.php:44 #: StockTransferControlled.php:14 SuppLoginSetup.php:14 WWW_Users.php:16 msgid "Inventory" msgstr "Sklad" @@ -6886,8 +6886,8 @@ #: CustomerAllocations.php:425 CustomerReceipt.php:1013 Labels.php:268 #: Payments.php:977 PcAssignCashToTab.php:174 PcAssignCashToTab.php:363 #: PcAuthorizeExpenses.php:318 PcClaimExpensesFromTab.php:167 -#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:141 -#: PcExpensesTypeTab.php:229 PcTabs.php:466 PcTypeTabs.php:236 +#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:140 +#: PcExpensesTypeTab.php:228 PcTabs.php:466 PcTypeTabs.php:236 #: SalesTypes.php:271 SelectCreditItems.php:899 Z_CheckDebtorsControl.php:69 msgid "Cancel" msgstr "Zrušit" @@ -7715,8 +7715,8 @@ #: GLJournal.php:131 GLJournal.php:333 OffersReceived.php:101 Payments.php:977 #: PcAssignCashToTab.php:174 PcAssignCashToTab.php:362 #: PcAuthorizeExpenses.php:317 PcClaimExpensesFromTab.php:167 -#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:140 -#: PcExpensesTypeTab.php:228 PcTabs.php:466 PcTypeTabs.php:236 +#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:139 +#: PcExpensesTypeTab.php:227 PcTabs.php:466 PcTypeTabs.php:236 #: SalesTypes.php:271 SupplierTypes.php:246 Z_CheckDebtorsControl.php:68 msgid "Accept" msgstr "Přijmout" @@ -10090,7 +10090,7 @@ msgid "Date Purchased" msgstr "Datum Zakoupeno" -#: FixedAssetDepreciation.php:86 PricesByCost.php:140 SalesAnalReptCols.php:38 +#: FixedAssetDepreciation.php:86 PricesByCost.php:157 SalesAnalReptCols.php:38 #: SalesAnalReptCols.php:40 SelectProduct.php:186 SelectProduct.php:343 #: ShipmentCosting.php:148 ShipmentCosting.php:149 StockCostUpdate.php:149 #: includes/PDFAssetRegisterHeader.inc:66 @@ -10409,8 +10409,8 @@ msgstr "Čárového kódu" #: FixedAssetItems.php:515 FixedAssetRegister.php:82 -#: StockSerialItemResearch.php:30 StockSerialItems.php:88 -#: StockSerialItems.php:90 StockSerialItems.php:92 +#: StockSerialItemResearch.php:30 StockSerialItems.php:86 +#: StockSerialItems.php:88 StockSerialItems.php:90 msgid "Serial Number" msgstr "Sériové číslo" @@ -11369,56 +11369,56 @@ msgid "Make CSV File" msgstr "Make CSV souboru" -#: GLAccountCSV.php:89 GLAccountInquiry.php:86 GLAccountReportphp:94 +#: GLAccountCSV.php:90 GLAccountInquiry.php:86 GLAccountReportphp:94 #: GLAccountReport.php:18 msgid "A period or range of periods must be selected from the list box" msgstr "Období nebo rozsahu doby, musí být vybrán ze seznamu" -#: GLAccountCSV.php:94 GLAccountReport.php:23 GLAccountReport.php:215 +#: GLAccountCSV.php:95 GLAccountReport.php:23 GLAccountReport.php:215 msgid "An account or range of accounts must be selected from the list box" msgstr "Účet nebo rozsah účetní závěrka musí být vybrán ze seznamu" -#: GLAccountCSV.php:108 StockQties_csv.php:31 +#: GLAccountCSV.php:109 StockQties_csv.php:31 msgid "Could not open or create the file under" msgstr "Nemohu otevřít nebo vytvořit soubor pod" -#: GLAccountCSV.php:167 GLAccountInquiry.php:145 GLAccountReportphp:149 +#: GLAccountCSV.php:168 GLAccountInquiry.php:145 GLAccountReportphp:149 #: GLAccountReport.php:93 msgid "The transactions for account" msgstr "Transakcí na účtu" -#: GLAccountCSV.php:170 +#: GLAccountCSV.php:171 msgid "for period" msgstr "za období" -#: GLAccountCSV.php:181 GLAccountCSV.php:210 GLAccountInquiry.php:175 +#: GLAccountCSV.php:182 GLAccountCSV.php:211 GLAccountInquiry.php:175 #: GLAccountInquiry.php:214 GLAccountReportphp:176 GLAccountReportphp:215 #: GLAccountReport.php:114 GLAccountReport.php:146 msgid "The chart details for account" msgstr "Z grafu účet" -#: GLAccountCSV.php:187 GLAccountCSV.php:189 GLAccountInquiry.php:183 +#: GLAccountCSV.php:188 GLAccountCSV.php:190 GLAccountInquiry.php:183 #: GLAccountInquiry.php:190 GLAccountReportphp:183 GLAccountReportphp:190 #: GLAccountReport.php:120 msgid "Brought Forward Balance" msgstr "Bilance minulých let" -#: GLAccountCSV.php:214 GLAccountCSV.php:216 GLAccountCSV.php:239 -#: GLAccountCSV.php:241 GLAccountReport.php:150 +#: GLAccountCSV.php:215 GLAccountCSV.php:217 GLAccountCSV.php:240 +#: GLAccountCSV.php:242 GLAccountReport.php:150 msgid "Period Total" msgstr "Období celkem" -#: GLAccountCSV.php:246 GLAccountCSV.php:248 GLAccountInquiry.php:297 +#: GLAccountCSV.php:247 GLAccountCSV.php:249 GLAccountInquiry.php:297 #: GLAccountReportphp:288 GLAccountReport.php:199 msgid "Total Period Movement" msgstr "Celková doba hnutí" -#: GLAccountCSV.php:252 GLAccountCSV.php:254 GLAccountInquiry.php:299 +#: GLAccountCSV.php:253 GLAccountCSV.php:255 GLAccountInquiry.php:299 #: GLAccountReportphp:290 GLAccountReport.php:201 msgid "Balance C/Fwd" msgstr "Bilance C / Fwd" -#: GLAccountCSV.php:260 POReport.php:1467 StockQties_csv.php:43 +#: GLAccountCSV.php:261 POReport.php:1467 StockQties_csv.php:43 msgid "to view the file" msgstr "Chcete-li zobrazit soubor" @@ -14187,7 +14187,7 @@ msgid "Multiplier" msgstr "Násobitel" -#: MRPCreateDemands.php:245 PricesByCost.php:266 ReorderLevelLocation.php:206 +#: MRPCreateDemands.php:245 PricesByCost.php:283 ReorderLevelLocation.php:206 msgid "Submit" msgstr "Odeslat" @@ -15765,7 +15765,7 @@ msgstr "Dny" #: PcAssignCashToTab.php:217 PcAuthorizeExpenses.php:88 -#: PcExpensesTypeTab.php:165 +#: PcExpensesTypeTab.php:168 msgid "Expense Code" msgstr "Náklady kód" @@ -15777,7 +15777,7 @@ msgid "Authorised" msgstr "Povolená" -#: PcAssignCashToTab.php:258 PcExpensesTypeTab.php:182 +#: PcAssignCashToTab.php:258 PcExpensesTypeTab.php:185 #, php-format msgid "" "Are you sure you wish to delete this code and the expense it may have set up?" @@ -15865,7 +15865,7 @@ msgstr "Petty cash Záložky pro uživatele " #: PcClaimExpensesFromTab.php:153 PcClaimExpensesFromTab.php:348 -#: PcExpenses.php:285 PcExpensesTypeTab.php:124 PcExpensesTypeTab.php:209 +#: PcExpenses.php:285 PcExpensesTypeTab.php:123 PcExpensesTypeTab.php:211 #, fuzzy msgid "Not Yet Selected" msgstr "Č. Zvolené období" @@ -16065,15 +16065,15 @@ msgid "for type of tab" msgstr "pro typ karty" -#: PcExpensesTypeTab.php:116 +#: PcExpensesTypeTab.php:115 msgid "Select Type of Tab" msgstr "Vyberte typ Tab" -#: PcExpensesTypeTab.php:150 PcExpensesTypeTab.php:163 +#: PcExpensesTypeTab.php:149 PcExpensesTypeTab.php:166 msgid "Expense Codes for Type of Tab " msgstr "Náklady Kódy pro typ Tab " -#: PcExpensesTypeTab.php:200 +#: PcExpensesTypeTab.php:202 msgid "Select Expense Code" msgstr "Vyberte výdajů kód" @@ -17095,7 +17095,7 @@ msgstr "Re-run ceníku, když je zákazník byl vybrán" #: PDFPriceList.php:30 PDFPriceList.php:38 PDFPriceList.php:135 -#: PDFRemittanceAdvice.php:40 PricesByCost.php:205 PricesByCost.php:209 +#: PDFRemittanceAdvice.php:40 PricesByCost.php:222 PricesByCost.php:226 msgid "Back" msgstr "Zpět" @@ -17131,7 +17131,7 @@ msgid "Prices" msgstr "Ceny" -#: PDFPriceList.php:172 PricesByCost.php:186 Prices_Customer.php:214 +#: PDFPriceList.php:172 PricesByCost.php:203 Prices_Customer.php:214 #: Prices_Customer.php:268 Prices.php:235 msgid "No End Date" msgstr "Bez data ukončení" @@ -18882,7 +18882,7 @@ msgid "Stock Categories" msgstr "Skladem Kategorie" -#: POReport.php:1556 PricesByCost.php:223 SalesInquiry.php:1101 +#: POReport.php:1556 PricesByCost.php:240 SalesInquiry.php:1101 msgid "All Categories" msgstr "Všechny kategorie" @@ -19267,49 +19267,49 @@ msgid "Update Price By Cost" msgstr "Cena aktualizace podle ceny" -#: PricesByCost.php:125 +#: PricesByCost.php:142 msgid "category" msgstr "kategorie" -#: PricesByCost.php:127 +#: PricesByCost.php:144 msgid "all Categories" msgstr "všechny kategorie" -#: PricesByCost.php:130 +#: PricesByCost.php:147 msgid "Items in" msgstr "Položek v" -#: PricesByCost.php:130 +#: PricesByCost.php:147 msgid "With Prices" msgstr "S ceny" -#: PricesByCost.php:130 +#: PricesByCost.php:147 msgid "times" msgstr "krát" -#: PricesByCost.php:130 +#: PricesByCost.php:147 msgid "Cost in Price List" msgstr "Náklady na Ceník" -#: PricesByCost.php:138 Prices_Customer.php:338 Prices.php:220 +#: PricesByCost.php:155 Prices_Customer.php:338 Prices.php:220 #: RecurringSalesOrders.php:417 WorkOrderEntry.php:473 msgid "Start Date" msgstr "Datum zahájení" -#: PricesByCost.php:139 Prices_Customer.php:341 Prices.php:221 +#: PricesByCost.php:156 Prices_Customer.php:341 Prices.php:221 #: SelectRecurringSalesOrder.php:82 msgid "End Date" msgstr "Datum ukončení" -#: PricesByCost.php:142 +#: PricesByCost.php:159 msgid "Price Proposed" msgstr "Navržená cena" -#: PricesByCost.php:143 +#: PricesByCost.php:160 msgid "List Price" msgstr "Ceník" -#: PricesByCost.php:204 +#: PricesByCost.php:221 msgid "" "If the prices above do not have a commencement date as today, this will " "create new prices with commencement date of today at the entered figures and " @@ -19317,27 +19317,27 @@ "of yesterday. Are You Sure?" msgstr "" -#: PricesByCost.php:208 +#: PricesByCost.php:225 msgid "There were no prices meeting the criteria specified to review" msgstr "Tam byly žádné ceny, které splňují kritéria stanovená pro přezkoumání" -#: PricesByCost.php:212 +#: PricesByCost.php:229 msgid "Use this report to display price list with the cost." msgstr "Tento přehled použijte k zobrazení ceníku s náklady." -#: PricesByCost.php:230 +#: PricesByCost.php:247 msgid "Less than or equal to" msgstr "Menší než nebo rovno" -#: PricesByCost.php:231 +#: PricesByCost.php:248 msgid "Greater than or equal to" msgstr "Větší než nebo rovno" -#: PricesByCost.php:233 +#: PricesByCost.php:250 msgid "Average Cost" msgstr "Průměrná cena" -#: PricesByCost.php:235 StockCostUpdate.php:158 +#: PricesByCost.php:252 StockCostUpdate.php:158 msgid "Standard Cost" msgstr "Standardní cena" @@ -23247,9 +23247,9 @@ msgstr "Workorder složka poptávky po tomto výrobku nelze načíst, protože" #: SelectProduct.php:329 StockLocStatus.php:155 StockQuantityByDate.php:97 -#: StockReorderLevel.php:50 StockSerialItems.php:97 StockSerialItems.php:100 -#: StockSerialItems.php:103 StockSerialItems.php:108 StockSerialItems.php:112 -#: StockSerialItems.php:116 StockStatus.php:90 +#: StockReorderLevel.php:50 StockSerialItems.php:95 StockSerialItems.php:98 +#: StockSerialItems.php:101 StockSerialItems.php:106 StockSerialItems.php:110 +#: StockSerialItems.php:114 StockStatus.php:90 msgid "Quantity On Hand" msgstr "Množství na ruce" @@ -24444,15 +24444,15 @@ msgid "Process This Order" msgstr "Tato vyhláška procesu" -#: StockAdjustmentsControlled.php:9 +#: StockAdjustmentsControlled.php:7 msgid "Adjusting Controlled Items" msgstr "Úprava kontrolov... [truncated message content] |
From: <dai...@us...> - 2011-05-31 09:36:33
|
Revision: 4585 http://web-erp.svn.sourceforge.net/web-erp/?rev=4585&view=rev Author: daintree Date: 2011-05-31 09:36:20 +0000 (Tue, 31 May 2011) Log Message: ----------- email settings work around Modified Paths: -------------- trunk/doc/Change.log trunk/doc/Manual/ManualInventory.html trunk/includes/GetConfig.php 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/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.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/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.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/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.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/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.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/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-05-30 08:43:29 UTC (rev 4584) +++ trunk/doc/Change.log 2011-05-31 09:36:20 UTC (rev 4585) @@ -1,5 +1,9 @@ webERP Change Log +31/5/11 GetConfig.php amended so that an earlier version without the emailsettings table does not choke before getting to the UpgradeDatabase.php option - reported by Brian May + +30/5/11 Version 4.04.2 Release + 30/5/11 Invoicing of serial items was not happening using includes/OutputSerialItems.php script not includes/InputSerialItems.php script 30/5/11 StockSerialItems.php closing td> tag was missing / 30/5/11 InputSerialItemsFile.php was looking for a hard coded reports dir now used $_SESSION['reports_dir'] Modified: trunk/doc/Manual/ManualInventory.html =================================================================== --- trunk/doc/Manual/ManualInventory.html 2011-05-30 08:43:29 UTC (rev 4584) +++ trunk/doc/Manual/ManualInventory.html 2011-05-31 09:36:20 UTC (rev 4585) @@ -35,6 +35,7 @@ <li>Inventory usage by month inquiry by location and overall <li>Inventory planning report <li>Integration with purchasing, accounts payable, accounts receivable and general ledger. +<li>Any number of custom fields can be added specific to each inventory category</li> </ul> <!-- Help Begin: Stocks --> Modified: trunk/includes/GetConfig.php =================================================================== --- trunk/includes/GetConfig.php 2011-05-30 08:43:29 UTC (rev 4584) +++ trunk/includes/GetConfig.php 2011-05-31 09:36:20 UTC (rev 4585) @@ -87,6 +87,7 @@ } /*Now read in smtp email settings - not needed in a properly set up server environment - but helps for those who can't control their server .. I think! */ + $sql="SELECT id, host, port, @@ -96,17 +97,21 @@ 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']; - + $result=DB_query($sql, $db,'','',false,false); + if (DB_error_no($db)==0) { + /*test to ensure that the emailsettings table exists!! + * if it doesn't exist then we are into an UpgradeDatabase scenario anyway + */ + $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']; + } } //end if force reload or not set already 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 2011-05-30 08:43:29 UTC (rev 4584) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-05-31 09:36:20 UTC (rev 4585) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-29 21:48+1200\n" +"POT-Creation-Date: 2011-05-30 20:51+1200\n" "PO-Revision-Date: 2011-02-07 15:33+0000\n" "Last-Translator: Tim Schofield <Unknown>\n" "Language-Team: Czech <cs...@li...>\n" @@ -370,7 +370,7 @@ #: Labels.php:414 Locations.php:378 MRPDemands.php:304 MRPDemandTypes.php:121 #: PaymentMethods.php:203 Payments.php:1006 PaymentTerms.php:204 #: PcAssignCashToTab.php:259 PcClaimExpensesFromTab.php:253 PcExpenses.php:209 -#: PcExpensesTypeTab.php:182 PcTabs.php:235 PcTypeTabs.php:173 +#: PcExpensesTypeTab.php:185 PcTabs.php:235 PcTypeTabs.php:173 #: PO_AuthorisationLevels.php:151 PO_Items.php:687 Prices_Customer.php:281 #: Prices.php:247 PurchData.php:211 SalesAnalReptCols.php:294 #: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 @@ -832,7 +832,7 @@ msgid "The details of outstanding transactions for customer" msgstr "Podrobnosti o nesplacených transakcí pro zákazníka" -#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:167 +#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:168 #: GLAccountInquiry.php:145 GLAccountReportphp:149 GLAccountReport.php:93 #: PO_Items.php:416 PO_Items.php:538 PO_Items.php:562 #: SalesAnalReptCols.php:356 SpecialOrder.php:370 @@ -1290,7 +1290,7 @@ #: PO_AuthorisationLevels.php:205 PO_AuthorisationLevels.php:210 #: PO_AuthoriseMyOrders.php:114 PO_Header.php:545 #: PO_SelectOSPurchOrder.php:437 PO_SelectPurchOrder.php:393 -#: PricesByCost.php:254 Prices.php:217 Prices.php:287 PurchData.php:175 +#: PricesByCost.php:271 Prices.php:217 Prices.php:287 PurchData.php:175 #: PurchData.php:341 PurchData.php:465 SelectSupplier.php:247 #: SupplierCredit.php:265 SupplierInvoice.php:231 SupplierTransInquiry.php:95 #: SuppPriceList.php:265 includes/PDFBankingSummaryPageHeader.inc:42 @@ -1392,9 +1392,9 @@ msgid "from" msgstr "od" -#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:59 +#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:58 #: EmailCustTrans.php:65 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 -#: GLAccountCSV.php:170 GLAccountReport.php:102 Payments.php:717 +#: GLAccountCSV.php:171 GLAccountReport.php:102 Payments.php:717 #: PcReportTab.php:102 PDFChequeListing.php:107 PDFChequeListing.php:117 #: PDFChequeListing.php:192 PDFDeliveryDifferences.php:166 #: PDFDeliveryDifferences.php:179 PDFDeliveryDifferences.php:287 @@ -2052,11 +2052,11 @@ #: MRPDemands.php:289 MRPDemandTypes.php:113 MRPPlannedWorkOrders.php:256 #: MRPReport.php:535 MRPReport.php:739 MRPReschedules.php:176 #: MRPShortages.php:334 PaymentTerms.php:180 PcExpenses.php:181 -#: PcExpenses.php:273 PcExpensesTypeTab.php:166 PcReportTab.php:171 +#: PcExpenses.php:273 PcExpensesTypeTab.php:169 PcReportTab.php:171 #: PcTypeTabs.php:156 PDFOrdersInvoiced.php:342 PDFOrderStatus.php:316 #: PDFPrintLabel.php:238 PO_Items.php:640 PO_Items.php:929 #: PO_SelectOSPurchOrder.php:211 PO_SelectPurchOrder.php:178 -#: PricesByCost.php:135 ReorderLevelLocation.php:55 ReorderLevel.php:254 +#: PricesByCost.php:152 ReorderLevelLocation.php:55 ReorderLevel.php:254 #: ReverseGRN.php:377 SalesCategories.php:423 SecurityTokens.php:86 #: SecurityTokens.php:92 SecurityTokens.php:102 SelectAsset.php:243 #: SelectCompletedOrder.php:536 SelectContract.php:156 @@ -2236,7 +2236,7 @@ #: MRPPlannedWorkOrders.php:255 MRPReport.php:738 PDFOrdersInvoiced.php:341 #: PDFOrderStatus.php:315 PDFPrintLabel.php:238 PO_Header.php:542 #: PO_Items.php:928 PO_SelectOSPurchOrder.php:210 PO_SelectPurchOrder.php:177 -#: PricesByCost.php:134 PurchData.php:339 ReorderLevelLocation.php:54 +#: PricesByCost.php:151 PurchData.php:339 ReorderLevelLocation.php:54 #: ReorderLevelLocation.php:203 SalesPeople.php:184 #: SelectCompletedOrder.php:535 SelectCreditItems.php:220 #: SelectCreditItems.php:956 SelectCustomer.php:458 SelectGLAccount.php:105 @@ -2704,7 +2704,7 @@ #: COGSGLPostings.php:90 COGSGLPostings.php:194 COGSGLPostings.php:306 #: Customers.php:739 Customers.php:742 DiscountMatrix.php:96 -#: DiscountMatrix.php:152 PricesByCost.php:242 Prices.php:218 +#: DiscountMatrix.php:152 PricesByCost.php:259 Prices.php:218 #: SalesAnalRepts.php:32 SalesAnalRepts.php:34 SalesGLPostings.php:112 #: SalesGLPostings.php:224 SalesGLPostings.php:354 SelectOrderItems.php:752 #: api/api_xml-rpc.php:931 api/api_xml-rpc.php:974 @@ -2737,7 +2737,7 @@ #: COGSGLPostings.php:306 Customers.php:742 EDIProcessOrders.php:389 #: PDFCustomerList.php:332 PDFPriceList.php:17 PDFPriceList.php:121 -#: PDFPriceList.php:251 PricesBasedOnMarkUp.php:223 PricesByCost.php:242 +#: PDFPriceList.php:251 PricesBasedOnMarkUp.php:223 PricesByCost.php:259 #: SalesGLPostings.php:354 SelectOrderItems.php:752 SuppPriceList.php:118 #: SuppPriceList.php:222 msgid "Price List" @@ -2930,7 +2930,7 @@ #: GLTags.php:62 GoodsReceived.php:229 GoodsReceived.php:235 #: GoodsReceived.php:242 GoodsReceived.php:699 Labels.php:262 #: MRPCalendar.php:307 Payments.php:860 PcAuthorizeExpenses.php:283 -#: PO_AuthoriseMyOrders.php:132 PricesByCost.php:204 PurchData.php:505 +#: PO_AuthoriseMyOrders.php:132 PricesByCost.php:221 PurchData.php:505 #: ReorderLevelLocation.php:156 SecurityTokens.php:89 #: SelectCreditItems.php:898 SMTPServer.php:64 StockCostUpdate.php:163 #: StockReorderLevel.php:94 Stocks.php:1037 SystemParameters.php:1005 @@ -2938,15 +2938,15 @@ msgid "Update" msgstr "Aktualizace" -#: ConfirmDispatchControlled_Invoice.php:9 +#: ConfirmDispatchControlled_Invoice.php:8 msgid "Specify Dispatched Controlled Items" msgstr "Určete Odešle kontrolovaného zboží" -#: ConfirmDispatchControlled_Invoice.php:20 +#: ConfirmDispatchControlled_Invoice.php:19 msgid "Select a line item to invoice" msgstr "Vyberte řádkové položky na faktuře" -#: ConfirmDispatchControlled_Invoice.php:22 +#: ConfirmDispatchControlled_Invoice.php:21 msgid "" "This page can only be opened if a line item on a sales order to be invoiced " "has been selected" @@ -2954,17 +2954,17 @@ "Tato stránka může být otevřen pouze v řádku o prodeji, aby bylo fakturováno " "byla vybrána" -#: ConfirmDispatchControlled_Invoice.php:22 CreditItemsControlled.php:33 +#: ConfirmDispatchControlled_Invoice.php:21 CreditItemsControlled.php:33 #: CreditItemsControlled.php:44 GoodsReceivedControlled.php:28 #: GoodsReceivedControlled.php:40 msgid "Please do that first" msgstr "Prosím, že první" -#: ConfirmDispatchControlled_Invoice.php:30 ConfirmDispatch_Invoice.php:18 +#: ConfirmDispatchControlled_Invoice.php:29 ConfirmDispatch_Invoice.php:18 msgid "Select a sales order to invoice" msgstr "zvolit prodejní objednávku k fakturaci" -#: ConfirmDispatchControlled_Invoice.php:32 +#: ConfirmDispatchControlled_Invoice.php:31 msgid "" "This page can only be opened if a sales order and line item has been " "selected Please do that first" @@ -2972,11 +2972,11 @@ "Tato stránka může být otevřen pouze v prodejní objednávky a řádková položka " "byla vybrána prosím, že první" -#: ConfirmDispatchControlled_Invoice.php:45 +#: ConfirmDispatchControlled_Invoice.php:44 msgid "Back to the Sales Order" msgstr "Zpět k prodejním objednávkám" -#: ConfirmDispatchControlled_Invoice.php:47 +#: ConfirmDispatchControlled_Invoice.php:46 msgid "" "The line item must be defined as controlled to require input of the batch " "numbers or serial numbers being sold" @@ -2984,11 +2984,11 @@ "Řádku musí být definován jako řízený vyžadovat zadání čísel šarží nebo " "sériových čísel jsou prodávány" -#: ConfirmDispatchControlled_Invoice.php:57 +#: ConfirmDispatchControlled_Invoice.php:56 msgid "Back to Confirmation of Dispatch" msgstr "Zpět na Potvrzení o odeslání" -#: ConfirmDispatchControlled_Invoice.php:57 CounterSales.php:1207 +#: ConfirmDispatchControlled_Invoice.php:56 CounterSales.php:1207 #: DeliveryDetails.php:583 DeliveryDetails.php:783 EmailCustTrans.php:11 #: PaymentAllocations.php:33 SelectSalesOrder.php:742 SelectSalesOrder.php:811 #: SelectSalesOrder.php:838 Z_SalesIntegrityCheck.php:46 @@ -2997,15 +2997,15 @@ msgid "Invoice" msgstr "Faktura" -#: ConfirmDispatchControlled_Invoice.php:59 +#: ConfirmDispatchControlled_Invoice.php:58 msgid "Dispatch of up to" msgstr "Expedice do" -#: ConfirmDispatchControlled_Invoice.php:59 +#: ConfirmDispatchControlled_Invoice.php:58 msgid "Controlled items" msgstr "Kontrolovaného zboží" -#: ConfirmDispatchControlled_Invoice.php:59 GoodsReceivedControlled.php:65 +#: ConfirmDispatchControlled_Invoice.php:58 GoodsReceivedControlled.php:65 msgid "on order" msgstr "na objednávku" @@ -3062,7 +3062,7 @@ #: CustomerReceipt.php:844 CustomerReceipt.php:895 CustomerReceipt.php:1020 #: Customers.php:12 Customers.php:347 CustomerTransInquiry.php:88 #: DeliveryDetails.php:800 FTP_RadioBeacon.php:51 PDFOrdersInvoiced.php:299 -#: PDFOrderStatus.php:272 PricesByCost.php:136 SalesGraph.php:169 +#: PDFOrderStatus.php:272 PricesByCost.php:153 SalesGraph.php:169 #: SelectCompletedOrder.php:586 SelectContract.php:157 SelectCustomer.php:24 #: SelectCustomer.php:281 SelectOrderItems.php:643 #: SelectRecurringSalesOrder.php:78 SelectSalesOrder.php:744 @@ -3172,7 +3172,7 @@ #: DeliveryDetails.php:824 DeliveryDetails.php:889 GoodsReceived.php:98 #: OffersReceived.php:97 OffersReceived.php:197 OffersReceived.php:244 #: OrderDetails.php:157 PDFOrdersInvoiced.php:385 PDFPriceList.php:359 -#: PDFPrintLabel.php:238 PO_AuthoriseMyOrders.php:115 PricesByCost.php:228 +#: PDFPrintLabel.php:238 PO_AuthoriseMyOrders.php:115 PricesByCost.php:245 #: Prices_Customer.php:345 Prices.php:219 Prices.php:331 #: PrintCustTrans.php:803 PrintCustTrans.php:891 PrintCustTrans.php:938 #: PrintCustTransPortrait.php:859 PrintCustTransPortrait.php:942 @@ -4135,7 +4135,7 @@ #: ContractBOM.php:41 ContractOtherReqts.php:45 Contracts.php:88 #: Contracts.php:97 DeliveryDetails.php:259 DeliveryDetails.php:268 -#: EmailCustTrans.php:24 EmailCustTrans.php:28 GLAccountCSV.php:260 +#: EmailCustTrans.php:24 EmailCustTrans.php:28 GLAccountCSV.php:261 #: PO_Header.php:237 POReport.php:1467 SalesAnalysis_UserDefined.php:46 #: SelectOrderItems.php:1158 StockQties_csv.php:43 StockUsage.php:22 #: SupplierCredit.php:216 SupplierCredit.php:228 SupplierCredit.php:240 @@ -4980,7 +4980,7 @@ #: Contracts.php:775 CustomerInquiry.php:193 CustomerTransInquiry.php:89 #: FTP_RadioBeacon.php:52 PDFOrdersInvoiced.php:300 PDFOrderStatus.php:273 -#: PDFPriceList.php:356 PricesByCost.php:137 Prices_Customer.php:258 +#: PDFPriceList.php:356 PricesByCost.php:154 Prices_Customer.php:258 #: Prices_Customer.php:328 PrintCustTrans.php:751 #: PrintCustTransPortrait.php:804 SelectCompletedOrder.php:587 #: SelectCreditItems.php:221 SelectCustomer.php:460 SelectOrderItems.php:644 @@ -5027,7 +5027,7 @@ msgstr "Referenční zakázky" #: Contracts.php:846 InventoryQuantities.php:212 PDFPriceList.php:352 -#: PDFPrintLabel.php:94 PricesByCost.php:221 ReorderLevelLocation.php:189 +#: PDFPrintLabel.php:94 PricesByCost.php:238 ReorderLevelLocation.php:189 #: ReorderLevel.php:242 SalesCategoryPeriodInquiry.php:162 #: SalesTopItemsInquiry.php:218 SpecialOrder.php:606 StockDispatch.php:344 #: Stocks.php:728 SuppPriceList.php:211 SuppPriceList.php:261 @@ -5249,8 +5249,8 @@ msgid "against customer code" msgstr "před kód zákazníka" -#: CounterSales.php:151 DeliveryDetails.php:151 GLAccountCSV.php:181 -#: GLAccountCSV.php:210 GLAccountInquiry.php:175 GLAccountInquiry.php:214 +#: CounterSales.php:151 DeliveryDetails.php:151 GLAccountCSV.php:182 +#: GLAccountCSV.php:211 GLAccountInquiry.php:175 GLAccountInquiry.php:214 #: GLAccountReportphp:176 GLAccountReportphp:215 GLAccountReport.php:114 #: GLAccountReport.php:146 SelectOrderItems.php:477 msgid "could not be retrieved" @@ -5386,7 +5386,7 @@ msgid "QOH" msgstr "QOH" -#: CounterSales.php:706 PricesByCost.php:141 SelectOrderItems.php:1312 +#: CounterSales.php:706 PricesByCost.php:158 SelectOrderItems.php:1312 msgid "GP %" msgstr "GP%" @@ -6108,7 +6108,7 @@ msgid "Back to Credit Note Entry" msgstr "Zpět na dobropis Vstup" -#: CreditItemsControlled.php:58 StockAdjustmentsControlled.php:34 +#: CreditItemsControlled.php:58 StockAdjustmentsControlled.php:32 #: StockTransferControlled.php:49 msgid "Notice" msgstr "Poznámka" @@ -6473,7 +6473,7 @@ #: PricesByCost.php:8 ReorderLevelLocation.php:13 ReorderLevel.php:161 #: SelectProduct.php:73 StockDispatch.php:219 StockMovements.php:19 #: StockQties_csv.php:8 StockQuantityByDate.php:9 StockReorderLevel.php:17 -#: StockSerialItemResearch.php:10 StockSerialItems.php:10 StockStatus.php:44 +#: StockSerialItemResearch.php:10 StockSerialItems.php:8 StockStatus.php:44 #: StockTransferControlled.php:14 SuppLoginSetup.php:14 WWW_Users.php:16 msgid "Inventory" msgstr "Sklad" @@ -6886,8 +6886,8 @@ #: CustomerAllocations.php:425 CustomerReceipt.php:1013 Labels.php:268 #: Payments.php:977 PcAssignCashToTab.php:174 PcAssignCashToTab.php:363 #: PcAuthorizeExpenses.php:318 PcClaimExpensesFromTab.php:167 -#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:141 -#: PcExpensesTypeTab.php:229 PcTabs.php:466 PcTypeTabs.php:236 +#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:140 +#: PcExpensesTypeTab.php:228 PcTabs.php:466 PcTypeTabs.php:236 #: SalesTypes.php:271 SelectCreditItems.php:899 Z_CheckDebtorsControl.php:69 msgid "Cancel" msgstr "Zrušit" @@ -7715,8 +7715,8 @@ #: GLJournal.php:131 GLJournal.php:333 OffersReceived.php:101 Payments.php:977 #: PcAssignCashToTab.php:174 PcAssignCashToTab.php:362 #: PcAuthorizeExpenses.php:317 PcClaimExpensesFromTab.php:167 -#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:140 -#: PcExpensesTypeTab.php:228 PcTabs.php:466 PcTypeTabs.php:236 +#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:139 +#: PcExpensesTypeTab.php:227 PcTabs.php:466 PcTypeTabs.php:236 #: SalesTypes.php:271 SupplierTypes.php:246 Z_CheckDebtorsControl.php:68 msgid "Accept" msgstr "Přijmout" @@ -10090,7 +10090,7 @@ msgid "Date Purchased" msgstr "Datum Zakoupeno" -#: FixedAssetDepreciation.php:86 PricesByCost.php:140 SalesAnalReptCols.php:38 +#: FixedAssetDepreciation.php:86 PricesByCost.php:157 SalesAnalReptCols.php:38 #: SalesAnalReptCols.php:40 SelectProduct.php:186 SelectProduct.php:343 #: ShipmentCosting.php:148 ShipmentCosting.php:149 StockCostUpdate.php:149 #: includes/PDFAssetRegisterHeader.inc:66 @@ -10409,8 +10409,8 @@ msgstr "Čárového kódu" #: FixedAssetItems.php:515 FixedAssetRegister.php:82 -#: StockSerialItemResearch.php:30 StockSerialItems.php:88 -#: StockSerialItems.php:90 StockSerialItems.php:92 +#: StockSerialItemResearch.php:30 StockSerialItems.php:86 +#: StockSerialItems.php:88 StockSerialItems.php:90 msgid "Serial Number" msgstr "Sériové číslo" @@ -11369,56 +11369,56 @@ msgid "Make CSV File" msgstr "Make CSV souboru" -#: GLAccountCSV.php:89 GLAccountInquiry.php:86 GLAccountReportphp:94 +#: GLAccountCSV.php:90 GLAccountInquiry.php:86 GLAccountReportphp:94 #: GLAccountReport.php:18 msgid "A period or range of periods must be selected from the list box" msgstr "Období nebo rozsahu doby, musí být vybrán ze seznamu" -#: GLAccountCSV.php:94 GLAccountReport.php:23 GLAccountReport.php:215 +#: GLAccountCSV.php:95 GLAccountReport.php:23 GLAccountReport.php:215 msgid "An account or range of accounts must be selected from the list box" msgstr "Účet nebo rozsah účetní závěrka musí být vybrán ze seznamu" -#: GLAccountCSV.php:108 StockQties_csv.php:31 +#: GLAccountCSV.php:109 StockQties_csv.php:31 msgid "Could not open or create the file under" msgstr "Nemohu otevřít nebo vytvořit soubor pod" -#: GLAccountCSV.php:167 GLAccountInquiry.php:145 GLAccountReportphp:149 +#: GLAccountCSV.php:168 GLAccountInquiry.php:145 GLAccountReportphp:149 #: GLAccountReport.php:93 msgid "The transactions for account" msgstr "Transakcí na účtu" -#: GLAccountCSV.php:170 +#: GLAccountCSV.php:171 msgid "for period" msgstr "za období" -#: GLAccountCSV.php:181 GLAccountCSV.php:210 GLAccountInquiry.php:175 +#: GLAccountCSV.php:182 GLAccountCSV.php:211 GLAccountInquiry.php:175 #: GLAccountInquiry.php:214 GLAccountReportphp:176 GLAccountReportphp:215 #: GLAccountReport.php:114 GLAccountReport.php:146 msgid "The chart details for account" msgstr "Z grafu účet" -#: GLAccountCSV.php:187 GLAccountCSV.php:189 GLAccountInquiry.php:183 +#: GLAccountCSV.php:188 GLAccountCSV.php:190 GLAccountInquiry.php:183 #: GLAccountInquiry.php:190 GLAccountReportphp:183 GLAccountReportphp:190 #: GLAccountReport.php:120 msgid "Brought Forward Balance" msgstr "Bilance minulých let" -#: GLAccountCSV.php:214 GLAccountCSV.php:216 GLAccountCSV.php:239 -#: GLAccountCSV.php:241 GLAccountReport.php:150 +#: GLAccountCSV.php:215 GLAccountCSV.php:217 GLAccountCSV.php:240 +#: GLAccountCSV.php:242 GLAccountReport.php:150 msgid "Period Total" msgstr "Období celkem" -#: GLAccountCSV.php:246 GLAccountCSV.php:248 GLAccountInquiry.php:297 +#: GLAccountCSV.php:247 GLAccountCSV.php:249 GLAccountInquiry.php:297 #: GLAccountReportphp:288 GLAccountReport.php:199 msgid "Total Period Movement" msgstr "Celková doba hnutí" -#: GLAccountCSV.php:252 GLAccountCSV.php:254 GLAccountInquiry.php:299 +#: GLAccountCSV.php:253 GLAccountCSV.php:255 GLAccountInquiry.php:299 #: GLAccountReportphp:290 GLAccountReport.php:201 msgid "Balance C/Fwd" msgstr "Bilance C / Fwd" -#: GLAccountCSV.php:260 POReport.php:1467 StockQties_csv.php:43 +#: GLAccountCSV.php:261 POReport.php:1467 StockQties_csv.php:43 msgid "to view the file" msgstr "Chcete-li zobrazit soubor" @@ -14187,7 +14187,7 @@ msgid "Multiplier" msgstr "Násobitel" -#: MRPCreateDemands.php:245 PricesByCost.php:266 ReorderLevelLocation.php:206 +#: MRPCreateDemands.php:245 PricesByCost.php:283 ReorderLevelLocation.php:206 msgid "Submit" msgstr "Odeslat" @@ -15765,7 +15765,7 @@ msgstr "Dny" #: PcAssignCashToTab.php:217 PcAuthorizeExpenses.php:88 -#: PcExpensesTypeTab.php:165 +#: PcExpensesTypeTab.php:168 msgid "Expense Code" msgstr "Náklady kód" @@ -15777,7 +15777,7 @@ msgid "Authorised" msgstr "Povolená" -#: PcAssignCashToTab.php:258 PcExpensesTypeTab.php:182 +#: PcAssignCashToTab.php:258 PcExpensesTypeTab.php:185 #, php-format msgid "" "Are you sure you wish to delete this code and the expense it may have set up?" @@ -15865,7 +15865,7 @@ msgstr "Petty cash Záložky pro uživatele " #: PcClaimExpensesFromTab.php:153 PcClaimExpensesFromTab.php:348 -#: PcExpenses.php:285 PcExpensesTypeTab.php:124 PcExpensesTypeTab.php:209 +#: PcExpenses.php:285 PcExpensesTypeTab.php:123 PcExpensesTypeTab.php:211 #, fuzzy msgid "Not Yet Selected" msgstr "Č. Zvolené období" @@ -16065,15 +16065,15 @@ msgid "for type of tab" msgstr "pro typ karty" -#: PcExpensesTypeTab.php:116 +#: PcExpensesTypeTab.php:115 msgid "Select Type of Tab" msgstr "Vyberte typ Tab" -#: PcExpensesTypeTab.php:150 PcExpensesTypeTab.php:163 +#: PcExpensesTypeTab.php:149 PcExpensesTypeTab.php:166 msgid "Expense Codes for Type of Tab " msgstr "Náklady Kódy pro typ Tab " -#: PcExpensesTypeTab.php:200 +#: PcExpensesTypeTab.php:202 msgid "Select Expense Code" msgstr "Vyberte výdajů kód" @@ -17095,7 +17095,7 @@ msgstr "Re-run ceníku, když je zákazník byl vybrán" #: PDFPriceList.php:30 PDFPriceList.php:38 PDFPriceList.php:135 -#: PDFRemittanceAdvice.php:40 PricesByCost.php:205 PricesByCost.php:209 +#: PDFRemittanceAdvice.php:40 PricesByCost.php:222 PricesByCost.php:226 msgid "Back" msgstr "Zpět" @@ -17131,7 +17131,7 @@ msgid "Prices" msgstr "Ceny" -#: PDFPriceList.php:172 PricesByCost.php:186 Prices_Customer.php:214 +#: PDFPriceList.php:172 PricesByCost.php:203 Prices_Customer.php:214 #: Prices_Customer.php:268 Prices.php:235 msgid "No End Date" msgstr "Bez data ukončení" @@ -18882,7 +18882,7 @@ msgid "Stock Categories" msgstr "Skladem Kategorie" -#: POReport.php:1556 PricesByCost.php:223 SalesInquiry.php:1101 +#: POReport.php:1556 PricesByCost.php:240 SalesInquiry.php:1101 msgid "All Categories" msgstr "Všechny kategorie" @@ -19267,49 +19267,49 @@ msgid "Update Price By Cost" msgstr "Cena aktualizace podle ceny" -#: PricesByCost.php:125 +#: PricesByCost.php:142 msgid "category" msgstr "kategorie" -#: PricesByCost.php:127 +#: PricesByCost.php:144 msgid "all Categories" msgstr "všechny kategorie" -#: PricesByCost.php:130 +#: PricesByCost.php:147 msgid "Items in" msgstr "Položek v" -#: PricesByCost.php:130 +#: PricesByCost.php:147 msgid "With Prices" msgstr "S ceny" -#: PricesByCost.php:130 +#: PricesByCost.php:147 msgid "times" msgstr "krát" -#: PricesByCost.php:130 +#: PricesByCost.php:147 msgid "Cost in Price List" msgstr "Náklady na Ceník" -#: PricesByCost.php:138 Prices_Customer.php:338 Prices.php:220 +#: PricesByCost.php:155 Prices_Customer.php:338 Prices.php:220 #: RecurringSalesOrders.php:417 WorkOrderEntry.php:473 msgid "Start Date" msgstr "Datum zahájení" -#: PricesByCost.php:139 Prices_Customer.php:341 Prices.php:221 +#: PricesByCost.php:156 Prices_Customer.php:341 Prices.php:221 #: SelectRecurringSalesOrder.php:82 msgid "End Date" msgstr "Datum ukončení" -#: PricesByCost.php:142 +#: PricesByCost.php:159 msgid "Price Proposed" msgstr "Navržená cena" -#: PricesByCost.php:143 +#: PricesByCost.php:160 msgid "List Price" msgstr "Ceník" -#: PricesByCost.php:204 +#: PricesByCost.php:221 msgid "" "If the prices above do not have a commencement date as today, this will " "create new prices with commencement date of today at the entered figures and " @@ -19317,27 +19317,27 @@ "of yesterday. Are You Sure?" msgstr "" -#: PricesByCost.php:208 +#: PricesByCost.php:225 msgid "There were no prices meeting the criteria specified to review" msgstr "Tam byly žádné ceny, které splňují kritéria stanovená pro přezkoumání" -#: PricesByCost.php:212 +#: PricesByCost.php:229 msgid "Use this report to display price list with the cost." msgstr "Tento přehled použijte k zobrazení ceníku s náklady." -#: PricesByCost.php:230 +#: PricesByCost.php:247 msgid "Less than or equal to" msgstr "Menší než nebo rovno" -#: PricesByCost.php:231 +#: PricesByCost.php:248 msgid "Greater than or equal to" msgstr "Větší než nebo rovno" -#: PricesByCost.php:233 +#: PricesByCost.php:250 msgid "Average Cost" msgstr "Průměrná cena" -#: PricesByCost.php:235 StockCostUpdate.php:158 +#: PricesByCost.php:252 StockCostUpdate.php:158 msgid "Standard Cost" msgstr "Standardní cena" @@ -23247,9 +23247,9 @@ msgstr "Workorder složka poptávky po tomto výrobku nelze načíst, protože" #: SelectProduct.php:329 StockLocStatus.php:155 StockQuantityByDate.php:97 -#: StockReorderLevel.php:50 StockSerialItems.php:97 StockSerialItems.php:100 -#: StockSerialItems.php:103 StockSerialItems.php:108 StockSerialItems.php:112 -#: StockSerialItems.php:116 StockStatus.php:90 +#: StockReorderLevel.php:50 StockSerialItems.php:95 StockSerialItems.php:98 +#: StockSerialItems.php:101 StockSerialItems.php:106 StockSerialItems.php:110 +#: StockSerialItems.php:114 StockStatus.php:90 msgid "Quantity On Hand" msgstr "Množství na ruce" @@ -24444,15 +24444,15 @@ msgid "Process This Order" msgstr "Tato vyhláška procesu" -#: StockAdjustmentsControlled.php:9 +#: StockAdjustmentsControlled.php:7 msgid "Adjusting Controlled Items" msgstr "Úprava kontrolov... [truncated message content] |
From: <dai...@us...> - 2011-06-02 10:12:50
|
Revision: 4586 http://web-erp.svn.sourceforge.net/web-erp/?rev=4586&view=rev Author: daintree Date: 2011-06-02 10:12:41 +0000 (Thu, 02 Jun 2011) Log Message: ----------- bug fixes Modified Paths: -------------- trunk/ConfirmDispatchControlled_Invoice.php trunk/UpgradeDatabase.php trunk/build/make_release.sh trunk/doc/Change.log 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/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/ConfirmDispatchControlled_Invoice.php =================================================================== --- trunk/ConfirmDispatchControlled_Invoice.php 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/ConfirmDispatchControlled_Invoice.php 2011-06-02 10:12:41 UTC (rev 4586) @@ -65,7 +65,7 @@ $InOutModifier=1; $ShowExisting=false; -include ('includes/IutputSerialItems.php'); +include ('includes/InputSerialItems.php'); /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for dispatch */ Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/UpgradeDatabase.php 2011-06-02 10:12:41 UTC (rev 4586) @@ -97,7 +97,7 @@ $SQLScripts[] = './sql/mysql/upgrade3.09-3.10.sql'; case '3.10': $SQLScripts[] = './sql/mysql/upgrade3.10-3.11.sql'; - case '3.11': + case '3.11.x': case '3.11.1': case '3.11.2': case '3.11.3': Modified: trunk/build/make_release.sh =================================================================== --- trunk/build/make_release.sh 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/build/make_release.sh 2011-06-02 10:12:41 UTC (rev 4586) @@ -71,7 +71,7 @@ echo "SET FOREIGN_KEY_CHECKS = 0;" > $BASE_DIR/sql/mysql/weberp-new.sql -mysqldump -u$MYSQL_USER -p$MYSQL_PWD --skip-opt --create-options --skip-set-charset --ignore-table=weberpdemo.mrpsupplies --ignore-table=weberpdemo.mrpplanedorders --ignore-table=weberpdemo.mrpparameters --ignore-table=weberpdemo.levels --ignore-table=weberpdemo.mrprequirements --ignore-table=weberpdemo.audittrail --no-data weberpdemo >> $BASE_DIR/sql/mysql/weberp-new.sql +mysqldump -u$MYSQL_USER -p$MYSQL_PWD --skip-opt --create-options --skip-set-charset --ignore-table=weberpdemo.mrpsupplies --ignore-table=weberpdemo.mrpplanedorders --ignore-table=weberpdemo.mrpparameters --ignore-table=weberpdemo.levels --ignore-table=weberpdemo.mrprequirements --ignore-table=weberpdemo.buckets --no-data weberpdemo >> $BASE_DIR/sql/mysql/weberp-new.sql mysqldump -u$MYSQL_USER -p$MYSQL_PWD --skip-opt --skip-set-charset --quick --no-create-info weberpdemo \ accountgroups \ Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/doc/Change.log 2011-06-02 10:12:41 UTC (rev 4586) @@ -1,21 +1,24 @@ webERP Change Log -31/5/11 GetConfig.php amended so that an earlier version without the emailsettings table does not choke before getting to the UpgradeDatabase.php option - reported by Brian May +2/6/11 Phil: ConfirmDispatchControlled_Invoice.php type include/InputSerialItems.php +2/6/11 Phil: modified build script to include audittrail table in weberp-new.sql and weberpdemo.sql - excluded by mistake +2/6/11 Phil: UpgradeDatabase.php manual upgrades from 3.11.x 4.01 and 4.02 now fixed! Brian May's report +31/5/11 Phil: GetConfig.php amended so that an earlier version without the emailsettings table does not choke before getting to the UpgradeDatabase.php option - reported by Brian May 30/5/11 Version 4.04.2 Release -30/5/11 Invoicing of serial items was not happening using includes/OutputSerialItems.php script not includes/InputSerialItems.php script -30/5/11 StockSerialItems.php closing td> tag was missing / -30/5/11 InputSerialItemsFile.php was looking for a hard coded reports dir now used $_SESSION['reports_dir'] -30/5/11 GetConfig.php checks for existence of the decimalplaces field in currencies and inserts it before attemtpting to run the company SQL... -30/5/11 PcExpensesTypeTab.php could not delete Expenses lost TabType value fixed -30/5/11 PriceByCost.php now only makes a new price if the price is actually changed!! +30/5/11 Phil: Invoicing of serial items was not happening using includes/OutputSerialItems.php script not includes/InputSerialItems.php script +30/5/11 Phil: StockSerialItems.php closing td> tag was missing / +30/5/11 Phil: InputSerialItemsFile.php was looking for a hard coded reports dir now used $_SESSION['reports_dir'] +30/5/11 Phil: GetConfig.php checks for existence of the decimalplaces field in currencies and inserts it before attemtpting to run the company SQL... +30/5/11 Phil: PcExpensesTypeTab.php could not delete Expenses lost TabType value fixed +30/5/11 Phil: PriceByCost.php now only makes a new price if the price is actually changed!! 29/5/11 Version 4.04.1 Release -29/5/11 PricesByCost.php made it so the existing prices had end dates set as yesterday and new prices created from today -29/5/11 TopItems.php fixed sequence and birthday to script and PDFTopItems.php script -28/5/11 Could not set controlled item batches/serial numbers on ConfirmDispatch_Invoice.php +29/5/11 Phil: PricesByCost.php made it so the existing prices had end dates set as yesterday and new prices created from today +29/5/11 Phil: TopItems.php fixed sequence and birthday to script and PDFTopItems.php script +28/5/11 Phil: Could not set controlled item batches/serial numbers on ConfirmDispatch_Invoice.php 28/5/11 Ricard: PO_SelectOSPurchOrder.php was showing select location with gaps between locations - no slash before <option> fixed 28/5/11 Ricard: added new field assigner to petty cash module and changes to PcTabs.php and PcAssignCashToTab.php 28/5/11 Ricard: PcAssignCashToTab.php quoted the $Days integer parameter to the INTERVAL function incorrectly now fixed @@ -24,37 +27,37 @@ 28/5/11 R2-G: reported alignment issue with link and button on SuppTransGLAnalysis now fixed 28/5/11 Ricard: MRPShortages now has an option to report excesses too 28/5/11 Ricard: Fix sql to take quotes out of literals in upgrade script. PDFPrintLabels fix sql to get current price. -28/5/11 Reported by Daniel Brewer Fix SelectSalesOrder.php creation of PO with excluding redundant fields in purchorderdetails that were taken out. +28/5/11 Phil: Reported by Daniel Brewer Fix SelectSalesOrder.php creation of PO with excluding redundant fields in purchorderdetails that were taken out. 28/5/11 Exson: UpdateCurrencyRateDaily was set to 1 when the option to enable it was clicked - should have been set to today's date in SystemParameters - fixed. Now no error reported bu ConvertSQLDate function when user enables update currencies daily. 26/5/11 Version 4.04 Release 26/5/11 Ricard: require securitytoken 9 to allow user to see purchasing data in SelectProduct.php -26/5/11 SelectProduct.php fix item image display in centre under item transactions -25/5/11 New Sales Inquiry scripts by sales type/price list by category and top sellers -24/5/11 Updated from launchpad translations those that had changed from 18/4/11 including Viatnamese, Albanian, Russian, Spanish +26/5/11 Phil: SelectProduct.php fix item image display in centre under item transactions +25/5/11 Phil: New Sales Inquiry scripts by sales type/price list by category and top sellers +24/5/11 Phil: Updated from launchpad translations those that had changed from 18/4/11 including Viatnamese, Albanian, Russian, Spanish 23/5/11 Tim: Remove SystemCheck.php and code standards changes(launchpad 4711-4718) 23/5/11 Tim: Make link from SelectProduct.php to place purchase orders factor in the lead time into the delivery date in the purchase order (launchpad 4710) 23/5/11 Exson: fix PaymentMethods could not add new - comma missing in INSERT SQL -20/5/11 SuppAllocs.php DefineSuppAllocClass.php made display appropriate decimal places to currency of supplier -19/5/11 SuppInvGRNs.php made display appropriate decimal places to currency of supplier invoice -19/5/11 SuppTransGLAnalysis.php made display appropriate decimal places to currency of supplier invoice also added an edit option and fixed narrative that was not coming through into GLtrans - also modified DefineSuppTransClass.php to hold the CurrDecimalPlaces variable -16/5/11 Bug in quantity on purchase order in SelectOrderItems.php added correct join syntax -16/5/11 Added upgrade from 4.03.7 to UpgradeDatabase.php -15/5/11 Z_ChangeStockCode.php modified to test if MRP tables exist before doing the updates - turned off error trapping on these queries as the error trapping is done in the script +20/5/11 Phil: SuppAllocs.php DefineSuppAllocClass.php made display appropriate decimal places to currency of supplier +19/5/11 Phil: SuppInvGRNs.php made display appropriate decimal places to currency of supplier invoice +19/5/11 Phil: SuppTransGLAnalysis.php made display appropriate decimal places to currency of supplier invoice also added an edit option and fixed narrative that was not coming through into GLtrans - also modified DefineSuppTransClass.php to hold the CurrDecimalPlaces variable +16/5/11 Phil: Bug in quantity on purchase order in SelectOrderItems.php added correct join syntax +16/5/11 Phil: Added upgrade from 4.03.7 to UpgradeDatabase.php +15/5/11 Phil: Z_ChangeStockCode.php modified to test if MRP tables exist before doing the updates - turned off error trapping on these queries as the error trapping is done in the script 15/5/11 Tim: FixedAssetCategories prior to deletion of a category check for existing assets in the category failed due to typo in SQL - fixed 14/5/11 Tim: StockTransfer now checks for negative stock before allowing transfer - launchpad changes to 4691 -14/5/11 CustomerInquiry.php now shows the currency decimal places -3/5/11 Locations.php fix table hidden POST variable quotes mismatch - also mismatch between number of parameters in printf output -2/5/11 Make order entry show the currency decimal places for amounts and totals also in invoicing SelectOrderItems.php and ConfirmDispatch_Invoice.php -2/5/11 Fix PO_PDFPurchOrder.php to allow emailing but email option not to appear on printed/emailed orders +14/5/11 Phil: CustomerInquiry.php now shows the currency decimal places +3/5/11 Phil: Locations.php fix table hidden POST variable quotes mismatch - also mismatch between number of parameters in printf output +2/5/11 Phil: Make order entry show the currency decimal places for amounts and totals also in invoicing SelectOrderItems.php and ConfirmDispatch_Invoice.php +2/5/11 Phil: Fix PO_PDFPurchOrder.php to allow emailing but email option not to appear on printed/emailed orders 1/5/11 Tim PageSecurity.php fix bug that prevented updates to Security Token for a particular script. -1/5/11 Many scripts quoting changes single quotes for strings double quotes for xhtml variables -1/5/11 SecuirtyTokens allow deletion of tokens if no scripts using it +1/5/11 Phil: Many scripts quoting changes single quotes for strings double quotes for xhtml variables +1/5/11 Phil: SecuirtyTokens allow deletion of tokens if no scripts using it 28/4/11 Tim: add facility to select an account group to limit GL acccounts returned as options to post payments to 28/4/11 Tim: new SecurityTokens script -28/4/11 Fix Secunia reported vulnerability by checking for dodgy characters in CompanyNameField - then matched to a real directory on the web-server +28/4/11 Phil: Fix Secunia reported vulnerability by checking for dodgy characters in CompanyNameField - then matched to a real directory on the web-server 18/4/11 - Version 4.03.8 Release Modified: trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot =================================================================== --- trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2011-06-02 10:12:41 UTC (rev 4586) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-30 20:51+1200\n" +"POT-Creation-Date: 2011-06-02 21:38+1200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL...@li...>\n" Modified: trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/en_US.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/en_US.utf8/LC_MESSAGES/messages.po 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/locale/en_US.utf8/LC_MESSAGES/messages.po 2011-06-02 10:12:41 UTC (rev 4586) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: 3.071\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-29 21:56+1200\n" +"POT-Creation-Date: 2011-05-30 20:51+1200\n" "PO-Revision-Date: 2009-09-23 17:59-0000\n" "Last-Translator: Javier De Lorenzo-Cáceres <in...@ci...>\n" "Language-Team: WebERP Translation Team <web-erp-translation@lists." @@ -358,7 +358,7 @@ #: Labels.php:414 Locations.php:378 MRPDemands.php:304 MRPDemandTypes.php:121 #: PaymentMethods.php:203 Payments.php:1006 PaymentTerms.php:204 #: PcAssignCashToTab.php:259 PcClaimExpensesFromTab.php:253 PcExpenses.php:209 -#: PcExpensesTypeTab.php:182 PcTabs.php:235 PcTypeTabs.php:173 +#: PcExpensesTypeTab.php:185 PcTabs.php:235 PcTypeTabs.php:173 #: PO_AuthorisationLevels.php:151 PO_Items.php:687 Prices_Customer.php:281 #: Prices.php:247 PurchData.php:211 SalesAnalReptCols.php:294 #: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 @@ -833,7 +833,7 @@ msgid "The details of outstanding transactions for customer" msgstr "" -#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:167 +#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:168 #: GLAccountInquiry.php:145 GLAccountReportphp:149 GLAccountReport.php:93 #: PO_Items.php:416 PO_Items.php:538 PO_Items.php:562 #: SalesAnalReptCols.php:356 SpecialOrder.php:370 @@ -1292,7 +1292,7 @@ #: PO_AuthorisationLevels.php:205 PO_AuthorisationLevels.php:210 #: PO_AuthoriseMyOrders.php:114 PO_Header.php:545 #: PO_SelectOSPurchOrder.php:437 PO_SelectPurchOrder.php:393 -#: PricesByCost.php:254 Prices.php:217 Prices.php:287 PurchData.php:175 +#: PricesByCost.php:271 Prices.php:217 Prices.php:287 PurchData.php:175 #: PurchData.php:341 PurchData.php:465 SelectSupplier.php:247 #: SupplierCredit.php:265 SupplierInvoice.php:231 SupplierTransInquiry.php:95 #: SuppPriceList.php:265 includes/PDFBankingSummaryPageHeader.inc:42 @@ -1390,9 +1390,9 @@ msgid "from" msgstr "" -#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:59 +#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:58 #: EmailCustTrans.php:65 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 -#: GLAccountCSV.php:170 GLAccountReport.php:102 Payments.php:717 +#: GLAccountCSV.php:171 GLAccountReport.php:102 Payments.php:717 #: PcReportTab.php:102 PDFChequeListing.php:107 PDFChequeListing.php:117 #: PDFChequeListing.php:192 PDFDeliveryDifferences.php:166 #: PDFDeliveryDifferences.php:179 PDFDeliveryDifferences.php:287 @@ -2042,11 +2042,11 @@ #: MRPDemands.php:289 MRPDemandTypes.php:113 MRPPlannedWorkOrders.php:256 #: MRPReport.php:535 MRPReport.php:739 MRPReschedules.php:176 #: MRPShortages.php:334 PaymentTerms.php:180 PcExpenses.php:181 -#: PcExpenses.php:273 PcExpensesTypeTab.php:166 PcReportTab.php:171 +#: PcExpenses.php:273 PcExpensesTypeTab.php:169 PcReportTab.php:171 #: PcTypeTabs.php:156 PDFOrdersInvoiced.php:342 PDFOrderStatus.php:316 #: PDFPrintLabel.php:238 PO_Items.php:640 PO_Items.php:929 #: PO_SelectOSPurchOrder.php:211 PO_SelectPurchOrder.php:178 -#: PricesByCost.php:135 ReorderLevelLocation.php:55 ReorderLevel.php:254 +#: PricesByCost.php:152 ReorderLevelLocation.php:55 ReorderLevel.php:254 #: ReverseGRN.php:377 SalesCategories.php:423 SecurityTokens.php:86 #: SecurityTokens.php:92 SecurityTokens.php:102 SelectAsset.php:243 #: SelectCompletedOrder.php:536 SelectContract.php:156 @@ -2222,7 +2222,7 @@ #: MRPPlannedWorkOrders.php:255 MRPReport.php:738 PDFOrdersInvoiced.php:341 #: PDFOrderStatus.php:315 PDFPrintLabel.php:238 PO_Header.php:542 #: PO_Items.php:928 PO_SelectOSPurchOrder.php:210 PO_SelectPurchOrder.php:177 -#: PricesByCost.php:134 PurchData.php:339 ReorderLevelLocation.php:54 +#: PricesByCost.php:151 PurchData.php:339 ReorderLevelLocation.php:54 #: ReorderLevelLocation.php:203 SalesPeople.php:184 #: SelectCompletedOrder.php:535 SelectCreditItems.php:220 #: SelectCreditItems.php:956 SelectCustomer.php:458 SelectGLAccount.php:105 @@ -2673,7 +2673,7 @@ #: COGSGLPostings.php:90 COGSGLPostings.php:194 COGSGLPostings.php:306 #: Customers.php:739 Customers.php:742 DiscountMatrix.php:96 -#: DiscountMatrix.php:152 PricesByCost.php:242 Prices.php:218 +#: DiscountMatrix.php:152 PricesByCost.php:259 Prices.php:218 #: SalesAnalRepts.php:32 SalesAnalRepts.php:34 SalesGLPostings.php:112 #: SalesGLPostings.php:224 SalesGLPostings.php:354 SelectOrderItems.php:752 #: api/api_xml-rpc.php:931 api/api_xml-rpc.php:974 @@ -2706,7 +2706,7 @@ #: COGSGLPostings.php:306 Customers.php:742 EDIProcessOrders.php:389 #: PDFCustomerList.php:332 PDFPriceList.php:17 PDFPriceList.php:121 -#: PDFPriceList.php:251 PricesBasedOnMarkUp.php:223 PricesByCost.php:242 +#: PDFPriceList.php:251 PricesBasedOnMarkUp.php:223 PricesByCost.php:259 #: SalesGLPostings.php:354 SelectOrderItems.php:752 SuppPriceList.php:118 #: SuppPriceList.php:222 msgid "Price List" @@ -2902,7 +2902,7 @@ #: GLTags.php:62 GoodsReceived.php:229 GoodsReceived.php:235 #: GoodsReceived.php:242 GoodsReceived.php:699 Labels.php:262 #: MRPCalendar.php:307 Payments.php:860 PcAuthorizeExpenses.php:283 -#: PO_AuthoriseMyOrders.php:132 PricesByCost.php:204 PurchData.php:505 +#: PO_AuthoriseMyOrders.php:132 PricesByCost.php:221 PurchData.php:505 #: ReorderLevelLocation.php:156 SecurityTokens.php:89 #: SelectCreditItems.php:898 SMTPServer.php:64 StockCostUpdate.php:163 #: StockReorderLevel.php:94 Stocks.php:1037 SystemParameters.php:1005 @@ -2910,51 +2910,51 @@ msgid "Update" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:9 +#: ConfirmDispatchControlled_Invoice.php:8 msgid "Specify Dispatched Controlled Items" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:20 +#: ConfirmDispatchControlled_Invoice.php:19 msgid "Select a line item to invoice" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:22 +#: ConfirmDispatchControlled_Invoice.php:21 msgid "" "This page can only be opened if a line item on a sales order to be invoiced " "has been selected" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:22 CreditItemsControlled.php:33 +#: ConfirmDispatchControlled_Invoice.php:21 CreditItemsControlled.php:33 #: CreditItemsControlled.php:44 GoodsReceivedControlled.php:28 #: GoodsReceivedControlled.php:40 msgid "Please do that first" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:30 ConfirmDispatch_Invoice.php:18 +#: ConfirmDispatchControlled_Invoice.php:29 ConfirmDispatch_Invoice.php:18 msgid "Select a sales order to invoice" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:32 +#: ConfirmDispatchControlled_Invoice.php:31 msgid "" "This page can only be opened if a sales order and line item has been " "selected Please do that first" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:45 +#: ConfirmDispatchControlled_Invoice.php:44 msgid "Back to the Sales Order" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:47 +#: ConfirmDispatchControlled_Invoice.php:46 msgid "" "The line item must be defined as controlled to require input of the batch " "numbers or serial numbers being sold" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:57 +#: ConfirmDispatchControlled_Invoice.php:56 msgid "Back to Confirmation of Dispatch" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:57 CounterSales.php:1207 +#: ConfirmDispatchControlled_Invoice.php:56 CounterSales.php:1207 #: DeliveryDetails.php:583 DeliveryDetails.php:783 EmailCustTrans.php:11 #: PaymentAllocations.php:33 SelectSalesOrder.php:742 SelectSalesOrder.php:811 #: SelectSalesOrder.php:838 Z_SalesIntegrityCheck.php:46 @@ -2963,15 +2963,15 @@ msgid "Invoice" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:59 +#: ConfirmDispatchControlled_Invoice.php:58 msgid "Dispatch of up to" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:59 +#: ConfirmDispatchControlled_Invoice.php:58 msgid "Controlled items" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:59 GoodsReceivedControlled.php:65 +#: ConfirmDispatchControlled_Invoice.php:58 GoodsReceivedControlled.php:65 msgid "on order" msgstr "" @@ -3024,7 +3024,7 @@ #: CustomerReceipt.php:844 CustomerReceipt.php:895 CustomerReceipt.php:1020 #: Customers.php:12 Customers.php:347 CustomerTransInquiry.php:88 #: DeliveryDetails.php:800 FTP_RadioBeacon.php:51 PDFOrdersInvoiced.php:299 -#: PDFOrderStatus.php:272 PricesByCost.php:136 SalesGraph.php:169 +#: PDFOrderStatus.php:272 PricesByCost.php:153 SalesGraph.php:169 #: SelectCompletedOrder.php:586 SelectContract.php:157 SelectCustomer.php:24 #: SelectCustomer.php:281 SelectOrderItems.php:643 #: SelectRecurringSalesOrder.php:78 SelectSalesOrder.php:744 @@ -3134,7 +3134,7 @@ #: DeliveryDetails.php:824 DeliveryDetails.php:889 GoodsReceived.php:98 #: OffersReceived.php:97 OffersReceived.php:197 OffersReceived.php:244 #: OrderDetails.php:157 PDFOrdersInvoiced.php:385 PDFPriceList.php:359 -#: PDFPrintLabel.php:238 PO_AuthoriseMyOrders.php:115 PricesByCost.php:228 +#: PDFPrintLabel.php:238 PO_AuthoriseMyOrders.php:115 PricesByCost.php:245 #: Prices_Customer.php:345 Prices.php:219 Prices.php:331 #: PrintCustTrans.php:803 PrintCustTrans.php:891 PrintCustTrans.php:938 #: PrintCustTransPortrait.php:859 PrintCustTransPortrait.php:942 @@ -4077,7 +4077,7 @@ #: ContractBOM.php:41 ContractOtherReqts.php:45 Contracts.php:88 #: Contracts.php:97 DeliveryDetails.php:259 DeliveryDetails.php:268 -#: EmailCustTrans.php:24 EmailCustTrans.php:28 GLAccountCSV.php:260 +#: EmailCustTrans.php:24 EmailCustTrans.php:28 GLAccountCSV.php:261 #: PO_Header.php:237 POReport.php:1467 SalesAnalysis_UserDefined.php:46 #: SelectOrderItems.php:1158 StockQties_csv.php:43 StockUsage.php:22 #: SupplierCredit.php:216 SupplierCredit.php:228 SupplierCredit.php:240 @@ -4927,7 +4927,7 @@ #: Contracts.php:775 CustomerInquiry.php:193 CustomerTransInquiry.php:89 #: FTP_RadioBeacon.php:52 PDFOrdersInvoiced.php:300 PDFOrderStatus.php:273 -#: PDFPriceList.php:356 PricesByCost.php:137 Prices_Customer.php:258 +#: PDFPriceList.php:356 PricesByCost.php:154 Prices_Customer.php:258 #: Prices_Customer.php:328 PrintCustTrans.php:751 #: PrintCustTransPortrait.php:804 SelectCompletedOrder.php:587 #: SelectCreditItems.php:221 SelectCustomer.php:460 SelectOrderItems.php:644 @@ -4974,7 +4974,7 @@ msgstr "" #: Contracts.php:846 InventoryQuantities.php:212 PDFPriceList.php:352 -#: PDFPrintLabel.php:94 PricesByCost.php:221 ReorderLevelLocation.php:189 +#: PDFPrintLabel.php:94 PricesByCost.php:238 ReorderLevelLocation.php:189 #: ReorderLevel.php:242 SalesCategoryPeriodInquiry.php:162 #: SalesTopItemsInquiry.php:218 SpecialOrder.php:606 StockDispatch.php:344 #: Stocks.php:728 SuppPriceList.php:211 SuppPriceList.php:261 @@ -5196,8 +5196,8 @@ msgid "against customer code" msgstr "" -#: CounterSales.php:151 DeliveryDetails.php:151 GLAccountCSV.php:181 -#: GLAccountCSV.php:210 GLAccountInquiry.php:175 GLAccountInquiry.php:214 +#: CounterSales.php:151 DeliveryDetails.php:151 GLAccountCSV.php:182 +#: GLAccountCSV.php:211 GLAccountInquiry.php:175 GLAccountInquiry.php:214 #: GLAccountReportphp:176 GLAccountReportphp:215 GLAccountReport.php:114 #: GLAccountReport.php:146 SelectOrderItems.php:477 msgid "could not be retrieved" @@ -5321,7 +5321,7 @@ msgid "QOH" msgstr "" -#: CounterSales.php:706 PricesByCost.php:141 SelectOrderItems.php:1312 +#: CounterSales.php:706 PricesByCost.php:158 SelectOrderItems.php:1312 msgid "GP %" msgstr "" @@ -6001,7 +6001,7 @@ msgid "Back to Credit Note Entry" msgstr "" -#: CreditItemsControlled.php:58 StockAdjustmentsControlled.php:34 +#: CreditItemsControlled.php:58 StockAdjustmentsControlled.php:32 #: StockTransferControlled.php:49 msgid "Notice" msgstr "" @@ -6352,7 +6352,7 @@ #: PricesByCost.php:8 ReorderLevelLocation.php:13 ReorderLevel.php:161 #: SelectProduct.php:73 StockDispatch.php:219 StockMovements.php:19 #: StockQties_csv.php:8 StockQuantityByDate.php:9 StockReorderLevel.php:17 -#: StockSerialItemResearch.php:10 StockSerialItems.php:10 StockStatus.php:44 +#: StockSerialItemResearch.php:10 StockSerialItems.php:8 StockStatus.php:44 #: StockTransferControlled.php:14 SuppLoginSetup.php:14 WWW_Users.php:16 msgid "Inventory" msgstr "" @@ -6767,8 +6767,8 @@ #: CustomerAllocations.php:425 CustomerReceipt.php:1013 Labels.php:268 #: Payments.php:977 PcAssignCashToTab.php:174 PcAssignCashToTab.php:363 #: PcAuthorizeExpenses.php:318 PcClaimExpensesFromTab.php:167 -#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:141 -#: PcExpensesTypeTab.php:229 PcTabs.php:466 PcTypeTabs.php:236 +#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:140 +#: PcExpensesTypeTab.php:228 PcTabs.php:466 PcTypeTabs.php:236 #: SalesTypes.php:271 SelectCreditItems.php:899 Z_CheckDebtorsControl.php:69 msgid "Cancel" msgstr "" @@ -7572,8 +7572,8 @@ #: GLJournal.php:131 GLJournal.php:333 OffersReceived.php:101 Payments.php:977 #: PcAssignCashToTab.php:174 PcAssignCashToTab.php:362 #: PcAuthorizeExpenses.php:317 PcClaimExpensesFromTab.php:167 -#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:140 -#: PcExpensesTypeTab.php:228 PcTabs.php:466 PcTypeTabs.php:236 +#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:139 +#: PcExpensesTypeTab.php:227 PcTabs.php:466 PcTypeTabs.php:236 #: SalesTypes.php:271 SupplierTypes.php:246 Z_CheckDebtorsControl.php:68 msgid "Accept" msgstr "" @@ -9941,7 +9941,7 @@ msgid "Date Purchased" msgstr "Vendor Order" -#: FixedAssetDepreciation.php:86 PricesByCost.php:140 SalesAnalReptCols.php:38 +#: FixedAssetDepreciation.php:86 PricesByCost.php:157 SalesAnalReptCols.php:38 #: SalesAnalReptCols.php:40 SelectProduct.php:186 SelectProduct.php:343 #: ShipmentCosting.php:148 ShipmentCosting.php:149 StockCostUpdate.php:149 #: includes/PDFAssetRegisterHeader.inc:66 @@ -10263,8 +10263,8 @@ msgstr "" #: FixedAssetItems.php:515 FixedAssetRegister.php:82 -#: StockSerialItemResearch.php:30 StockSerialItems.php:88 -#: StockSerialItems.php:90 StockSerialItems.php:92 +#: StockSerialItemResearch.php:30 StockSerialItems.php:86 +#: StockSerialItems.php:88 StockSerialItems.php:90 msgid "Serial Number" msgstr "" @@ -11211,56 +11211,56 @@ msgid "Make CSV File" msgstr "" -#: GLAccountCSV.php:89 GLAccountInquiry.php:86 GLAccountReportphp:94 +#: GLAccountCSV.php:90 GLAccountInquiry.php:86 GLAccountReportphp:94 #: GLAccountReport.php:18 msgid "A period or range of periods must be selected from the list box" msgstr "" -#: GLAccountCSV.php:94 GLAccountReport.php:23 GLAccountReport.php:215 +#: GLAccountCSV.php:95 GLAccountReport.php:23 GLAccountReport.php:215 msgid "An account or range of accounts must be selected from the list box" msgstr "" -#: GLAccountCSV.php:108 StockQties_csv.php:31 +#: GLAccountCSV.php:109 StockQties_csv.php:31 msgid "Could not open or create the file under" msgstr "" -#: GLAccountCSV.php:167 GLAccountInquiry.php:145 GLAccountReportphp:149 +#: GLAccountCSV.php:168 GLAccountInquiry.php:145 GLAccountReportphp:149 #: GLAccountReport.php:93 msgid "The transactions for account" msgstr "" -#: GLAccountCSV.php:170 +#: GLAccountCSV.php:171 msgid "for period" msgstr "" -#: GLAccountCSV.php:181 GLAccountCSV.php:210 GLAccountInquiry.php:175 +#: GLAccountCSV.php:182 GLAccountCSV.php:211 GLAccountInquiry.php:175 #: GLAccountInquiry.php:214 GLAccountReportphp:176 GLAccountReportphp:215 #: GLAccountReport.php:114 GLAccountReport.php:146 msgid "The chart details for account" msgstr "" -#: GLAccountCSV.php:187 GLAccountCSV.php:189 GLAccountInquiry.php:183 +#: GLAccountCSV.php:188 GLAccountCSV.php:190 GLAccountInquiry.php:183 #: GLAccountInquiry.php:190 GLAccountReportphp:183 GLAccountReportphp:190 #: GLAccountReport.php:120 msgid "Brought Forward Balance" msgstr "" -#: GLAccountCSV.php:214 GLAccountCSV.php:216 GLAccountCSV.php:239 -#: GLAccountCSV.php:241 GLAccountReport.php:150 +#: GLAccountCSV.php:215 GLAccountCSV.php:217 GLAccountCSV.php:240 +#: GLAccountCSV.php:242 GLAccountReport.php:150 msgid "Period Total" msgstr "" -#: GLAccountCSV.php:246 GLAccountCSV.php:248 GLAccountInquiry.php:297 +#: GLAccountCSV.php:247 GLAccountCSV.php:249 GLAccountInquiry.php:297 #: GLAccountReportphp:288 GLAccountReport.php:199 msgid "Total Period Movement" msgstr "" -#: GLAccountCSV.php:252 GLAccountCSV.php:254 GLAccountInquiry.php:299 +#: GLAccountCSV.php:253 GLAccountCSV.php:255 GLAccountInquiry.php:299 #: GLAccountReportphp:290 GLAccountReport.php:201 msgid "Balance C/Fwd" msgstr "" -#: GLAccountCSV.php:260 POReport.php:1467 StockQties_csv.php:43 +#: GLAccountCSV.php:261 POReport.php:1467 StockQties_csv.php:43 msgid "to view the file" msgstr "" @@ -13969,7 +13969,7 @@ msgid "Multiplier" msgstr "Vendors" -#: MRPCreateDemands.php:245 PricesByCost.php:266 ReorderLevelLocation.php:206 +#: MRPCreateDemands.php:245 PricesByCost.php:283 ReorderLevelLocation.php:206 msgid "Submit" msgstr "" @@ -15529,7 +15529,7 @@ msgstr "" #: PcAssignCashToTab.php:217 PcAuthorizeExpenses.php:88 -#: PcExpensesTypeTab.php:165 +#: PcExpensesTypeTab.php:168 #, fuzzy msgid "Expense Code" msgstr "Territory Code" @@ -15542,7 +15542,7 @@ msgid "Authorised" msgstr "Authorized" -#: PcAssignCashToTab.php:258 PcExpensesTypeTab.php:182 +#: PcAssignCashToTab.php:258 PcExpensesTypeTab.php:185 #, php-format ... [truncated message content] |
From: <dai...@us...> - 2011-06-02 10:12:50
|
Revision: 4586 http://web-erp.svn.sourceforge.net/web-erp/?rev=4586&view=rev Author: daintree Date: 2011-06-02 10:12:41 +0000 (Thu, 02 Jun 2011) Log Message: ----------- bug fixes Modified Paths: -------------- trunk/ConfirmDispatchControlled_Invoice.php trunk/UpgradeDatabase.php trunk/build/make_release.sh trunk/doc/Change.log 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/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/ConfirmDispatchControlled_Invoice.php =================================================================== --- trunk/ConfirmDispatchControlled_Invoice.php 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/ConfirmDispatchControlled_Invoice.php 2011-06-02 10:12:41 UTC (rev 4586) @@ -65,7 +65,7 @@ $InOutModifier=1; $ShowExisting=false; -include ('includes/IutputSerialItems.php'); +include ('includes/InputSerialItems.php'); /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for dispatch */ Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/UpgradeDatabase.php 2011-06-02 10:12:41 UTC (rev 4586) @@ -97,7 +97,7 @@ $SQLScripts[] = './sql/mysql/upgrade3.09-3.10.sql'; case '3.10': $SQLScripts[] = './sql/mysql/upgrade3.10-3.11.sql'; - case '3.11': + case '3.11.x': case '3.11.1': case '3.11.2': case '3.11.3': Modified: trunk/build/make_release.sh =================================================================== --- trunk/build/make_release.sh 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/build/make_release.sh 2011-06-02 10:12:41 UTC (rev 4586) @@ -71,7 +71,7 @@ echo "SET FOREIGN_KEY_CHECKS = 0;" > $BASE_DIR/sql/mysql/weberp-new.sql -mysqldump -u$MYSQL_USER -p$MYSQL_PWD --skip-opt --create-options --skip-set-charset --ignore-table=weberpdemo.mrpsupplies --ignore-table=weberpdemo.mrpplanedorders --ignore-table=weberpdemo.mrpparameters --ignore-table=weberpdemo.levels --ignore-table=weberpdemo.mrprequirements --ignore-table=weberpdemo.audittrail --no-data weberpdemo >> $BASE_DIR/sql/mysql/weberp-new.sql +mysqldump -u$MYSQL_USER -p$MYSQL_PWD --skip-opt --create-options --skip-set-charset --ignore-table=weberpdemo.mrpsupplies --ignore-table=weberpdemo.mrpplanedorders --ignore-table=weberpdemo.mrpparameters --ignore-table=weberpdemo.levels --ignore-table=weberpdemo.mrprequirements --ignore-table=weberpdemo.buckets --no-data weberpdemo >> $BASE_DIR/sql/mysql/weberp-new.sql mysqldump -u$MYSQL_USER -p$MYSQL_PWD --skip-opt --skip-set-charset --quick --no-create-info weberpdemo \ accountgroups \ Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/doc/Change.log 2011-06-02 10:12:41 UTC (rev 4586) @@ -1,21 +1,24 @@ webERP Change Log -31/5/11 GetConfig.php amended so that an earlier version without the emailsettings table does not choke before getting to the UpgradeDatabase.php option - reported by Brian May +2/6/11 Phil: ConfirmDispatchControlled_Invoice.php type include/InputSerialItems.php +2/6/11 Phil: modified build script to include audittrail table in weberp-new.sql and weberpdemo.sql - excluded by mistake +2/6/11 Phil: UpgradeDatabase.php manual upgrades from 3.11.x 4.01 and 4.02 now fixed! Brian May's report +31/5/11 Phil: GetConfig.php amended so that an earlier version without the emailsettings table does not choke before getting to the UpgradeDatabase.php option - reported by Brian May 30/5/11 Version 4.04.2 Release -30/5/11 Invoicing of serial items was not happening using includes/OutputSerialItems.php script not includes/InputSerialItems.php script -30/5/11 StockSerialItems.php closing td> tag was missing / -30/5/11 InputSerialItemsFile.php was looking for a hard coded reports dir now used $_SESSION['reports_dir'] -30/5/11 GetConfig.php checks for existence of the decimalplaces field in currencies and inserts it before attemtpting to run the company SQL... -30/5/11 PcExpensesTypeTab.php could not delete Expenses lost TabType value fixed -30/5/11 PriceByCost.php now only makes a new price if the price is actually changed!! +30/5/11 Phil: Invoicing of serial items was not happening using includes/OutputSerialItems.php script not includes/InputSerialItems.php script +30/5/11 Phil: StockSerialItems.php closing td> tag was missing / +30/5/11 Phil: InputSerialItemsFile.php was looking for a hard coded reports dir now used $_SESSION['reports_dir'] +30/5/11 Phil: GetConfig.php checks for existence of the decimalplaces field in currencies and inserts it before attemtpting to run the company SQL... +30/5/11 Phil: PcExpensesTypeTab.php could not delete Expenses lost TabType value fixed +30/5/11 Phil: PriceByCost.php now only makes a new price if the price is actually changed!! 29/5/11 Version 4.04.1 Release -29/5/11 PricesByCost.php made it so the existing prices had end dates set as yesterday and new prices created from today -29/5/11 TopItems.php fixed sequence and birthday to script and PDFTopItems.php script -28/5/11 Could not set controlled item batches/serial numbers on ConfirmDispatch_Invoice.php +29/5/11 Phil: PricesByCost.php made it so the existing prices had end dates set as yesterday and new prices created from today +29/5/11 Phil: TopItems.php fixed sequence and birthday to script and PDFTopItems.php script +28/5/11 Phil: Could not set controlled item batches/serial numbers on ConfirmDispatch_Invoice.php 28/5/11 Ricard: PO_SelectOSPurchOrder.php was showing select location with gaps between locations - no slash before <option> fixed 28/5/11 Ricard: added new field assigner to petty cash module and changes to PcTabs.php and PcAssignCashToTab.php 28/5/11 Ricard: PcAssignCashToTab.php quoted the $Days integer parameter to the INTERVAL function incorrectly now fixed @@ -24,37 +27,37 @@ 28/5/11 R2-G: reported alignment issue with link and button on SuppTransGLAnalysis now fixed 28/5/11 Ricard: MRPShortages now has an option to report excesses too 28/5/11 Ricard: Fix sql to take quotes out of literals in upgrade script. PDFPrintLabels fix sql to get current price. -28/5/11 Reported by Daniel Brewer Fix SelectSalesOrder.php creation of PO with excluding redundant fields in purchorderdetails that were taken out. +28/5/11 Phil: Reported by Daniel Brewer Fix SelectSalesOrder.php creation of PO with excluding redundant fields in purchorderdetails that were taken out. 28/5/11 Exson: UpdateCurrencyRateDaily was set to 1 when the option to enable it was clicked - should have been set to today's date in SystemParameters - fixed. Now no error reported bu ConvertSQLDate function when user enables update currencies daily. 26/5/11 Version 4.04 Release 26/5/11 Ricard: require securitytoken 9 to allow user to see purchasing data in SelectProduct.php -26/5/11 SelectProduct.php fix item image display in centre under item transactions -25/5/11 New Sales Inquiry scripts by sales type/price list by category and top sellers -24/5/11 Updated from launchpad translations those that had changed from 18/4/11 including Viatnamese, Albanian, Russian, Spanish +26/5/11 Phil: SelectProduct.php fix item image display in centre under item transactions +25/5/11 Phil: New Sales Inquiry scripts by sales type/price list by category and top sellers +24/5/11 Phil: Updated from launchpad translations those that had changed from 18/4/11 including Viatnamese, Albanian, Russian, Spanish 23/5/11 Tim: Remove SystemCheck.php and code standards changes(launchpad 4711-4718) 23/5/11 Tim: Make link from SelectProduct.php to place purchase orders factor in the lead time into the delivery date in the purchase order (launchpad 4710) 23/5/11 Exson: fix PaymentMethods could not add new - comma missing in INSERT SQL -20/5/11 SuppAllocs.php DefineSuppAllocClass.php made display appropriate decimal places to currency of supplier -19/5/11 SuppInvGRNs.php made display appropriate decimal places to currency of supplier invoice -19/5/11 SuppTransGLAnalysis.php made display appropriate decimal places to currency of supplier invoice also added an edit option and fixed narrative that was not coming through into GLtrans - also modified DefineSuppTransClass.php to hold the CurrDecimalPlaces variable -16/5/11 Bug in quantity on purchase order in SelectOrderItems.php added correct join syntax -16/5/11 Added upgrade from 4.03.7 to UpgradeDatabase.php -15/5/11 Z_ChangeStockCode.php modified to test if MRP tables exist before doing the updates - turned off error trapping on these queries as the error trapping is done in the script +20/5/11 Phil: SuppAllocs.php DefineSuppAllocClass.php made display appropriate decimal places to currency of supplier +19/5/11 Phil: SuppInvGRNs.php made display appropriate decimal places to currency of supplier invoice +19/5/11 Phil: SuppTransGLAnalysis.php made display appropriate decimal places to currency of supplier invoice also added an edit option and fixed narrative that was not coming through into GLtrans - also modified DefineSuppTransClass.php to hold the CurrDecimalPlaces variable +16/5/11 Phil: Bug in quantity on purchase order in SelectOrderItems.php added correct join syntax +16/5/11 Phil: Added upgrade from 4.03.7 to UpgradeDatabase.php +15/5/11 Phil: Z_ChangeStockCode.php modified to test if MRP tables exist before doing the updates - turned off error trapping on these queries as the error trapping is done in the script 15/5/11 Tim: FixedAssetCategories prior to deletion of a category check for existing assets in the category failed due to typo in SQL - fixed 14/5/11 Tim: StockTransfer now checks for negative stock before allowing transfer - launchpad changes to 4691 -14/5/11 CustomerInquiry.php now shows the currency decimal places -3/5/11 Locations.php fix table hidden POST variable quotes mismatch - also mismatch between number of parameters in printf output -2/5/11 Make order entry show the currency decimal places for amounts and totals also in invoicing SelectOrderItems.php and ConfirmDispatch_Invoice.php -2/5/11 Fix PO_PDFPurchOrder.php to allow emailing but email option not to appear on printed/emailed orders +14/5/11 Phil: CustomerInquiry.php now shows the currency decimal places +3/5/11 Phil: Locations.php fix table hidden POST variable quotes mismatch - also mismatch between number of parameters in printf output +2/5/11 Phil: Make order entry show the currency decimal places for amounts and totals also in invoicing SelectOrderItems.php and ConfirmDispatch_Invoice.php +2/5/11 Phil: Fix PO_PDFPurchOrder.php to allow emailing but email option not to appear on printed/emailed orders 1/5/11 Tim PageSecurity.php fix bug that prevented updates to Security Token for a particular script. -1/5/11 Many scripts quoting changes single quotes for strings double quotes for xhtml variables -1/5/11 SecuirtyTokens allow deletion of tokens if no scripts using it +1/5/11 Phil: Many scripts quoting changes single quotes for strings double quotes for xhtml variables +1/5/11 Phil: SecuirtyTokens allow deletion of tokens if no scripts using it 28/4/11 Tim: add facility to select an account group to limit GL acccounts returned as options to post payments to 28/4/11 Tim: new SecurityTokens script -28/4/11 Fix Secunia reported vulnerability by checking for dodgy characters in CompanyNameField - then matched to a real directory on the web-server +28/4/11 Phil: Fix Secunia reported vulnerability by checking for dodgy characters in CompanyNameField - then matched to a real directory on the web-server 18/4/11 - Version 4.03.8 Release Modified: trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot =================================================================== --- trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2011-06-02 10:12:41 UTC (rev 4586) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-30 20:51+1200\n" +"POT-Creation-Date: 2011-06-02 21:38+1200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL...@li...>\n" Modified: trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/en_US.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/en_US.utf8/LC_MESSAGES/messages.po 2011-05-31 09:36:20 UTC (rev 4585) +++ trunk/locale/en_US.utf8/LC_MESSAGES/messages.po 2011-06-02 10:12:41 UTC (rev 4586) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: 3.071\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-29 21:56+1200\n" +"POT-Creation-Date: 2011-05-30 20:51+1200\n" "PO-Revision-Date: 2009-09-23 17:59-0000\n" "Last-Translator: Javier De Lorenzo-Cáceres <in...@ci...>\n" "Language-Team: WebERP Translation Team <web-erp-translation@lists." @@ -358,7 +358,7 @@ #: Labels.php:414 Locations.php:378 MRPDemands.php:304 MRPDemandTypes.php:121 #: PaymentMethods.php:203 Payments.php:1006 PaymentTerms.php:204 #: PcAssignCashToTab.php:259 PcClaimExpensesFromTab.php:253 PcExpenses.php:209 -#: PcExpensesTypeTab.php:182 PcTabs.php:235 PcTypeTabs.php:173 +#: PcExpensesTypeTab.php:185 PcTabs.php:235 PcTypeTabs.php:173 #: PO_AuthorisationLevels.php:151 PO_Items.php:687 Prices_Customer.php:281 #: Prices.php:247 PurchData.php:211 SalesAnalReptCols.php:294 #: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 @@ -833,7 +833,7 @@ msgid "The details of outstanding transactions for customer" msgstr "" -#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:167 +#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:168 #: GLAccountInquiry.php:145 GLAccountReportphp:149 GLAccountReport.php:93 #: PO_Items.php:416 PO_Items.php:538 PO_Items.php:562 #: SalesAnalReptCols.php:356 SpecialOrder.php:370 @@ -1292,7 +1292,7 @@ #: PO_AuthorisationLevels.php:205 PO_AuthorisationLevels.php:210 #: PO_AuthoriseMyOrders.php:114 PO_Header.php:545 #: PO_SelectOSPurchOrder.php:437 PO_SelectPurchOrder.php:393 -#: PricesByCost.php:254 Prices.php:217 Prices.php:287 PurchData.php:175 +#: PricesByCost.php:271 Prices.php:217 Prices.php:287 PurchData.php:175 #: PurchData.php:341 PurchData.php:465 SelectSupplier.php:247 #: SupplierCredit.php:265 SupplierInvoice.php:231 SupplierTransInquiry.php:95 #: SuppPriceList.php:265 includes/PDFBankingSummaryPageHeader.inc:42 @@ -1390,9 +1390,9 @@ msgid "from" msgstr "" -#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:59 +#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:58 #: EmailCustTrans.php:65 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 -#: GLAccountCSV.php:170 GLAccountReport.php:102 Payments.php:717 +#: GLAccountCSV.php:171 GLAccountReport.php:102 Payments.php:717 #: PcReportTab.php:102 PDFChequeListing.php:107 PDFChequeListing.php:117 #: PDFChequeListing.php:192 PDFDeliveryDifferences.php:166 #: PDFDeliveryDifferences.php:179 PDFDeliveryDifferences.php:287 @@ -2042,11 +2042,11 @@ #: MRPDemands.php:289 MRPDemandTypes.php:113 MRPPlannedWorkOrders.php:256 #: MRPReport.php:535 MRPReport.php:739 MRPReschedules.php:176 #: MRPShortages.php:334 PaymentTerms.php:180 PcExpenses.php:181 -#: PcExpenses.php:273 PcExpensesTypeTab.php:166 PcReportTab.php:171 +#: PcExpenses.php:273 PcExpensesTypeTab.php:169 PcReportTab.php:171 #: PcTypeTabs.php:156 PDFOrdersInvoiced.php:342 PDFOrderStatus.php:316 #: PDFPrintLabel.php:238 PO_Items.php:640 PO_Items.php:929 #: PO_SelectOSPurchOrder.php:211 PO_SelectPurchOrder.php:178 -#: PricesByCost.php:135 ReorderLevelLocation.php:55 ReorderLevel.php:254 +#: PricesByCost.php:152 ReorderLevelLocation.php:55 ReorderLevel.php:254 #: ReverseGRN.php:377 SalesCategories.php:423 SecurityTokens.php:86 #: SecurityTokens.php:92 SecurityTokens.php:102 SelectAsset.php:243 #: SelectCompletedOrder.php:536 SelectContract.php:156 @@ -2222,7 +2222,7 @@ #: MRPPlannedWorkOrders.php:255 MRPReport.php:738 PDFOrdersInvoiced.php:341 #: PDFOrderStatus.php:315 PDFPrintLabel.php:238 PO_Header.php:542 #: PO_Items.php:928 PO_SelectOSPurchOrder.php:210 PO_SelectPurchOrder.php:177 -#: PricesByCost.php:134 PurchData.php:339 ReorderLevelLocation.php:54 +#: PricesByCost.php:151 PurchData.php:339 ReorderLevelLocation.php:54 #: ReorderLevelLocation.php:203 SalesPeople.php:184 #: SelectCompletedOrder.php:535 SelectCreditItems.php:220 #: SelectCreditItems.php:956 SelectCustomer.php:458 SelectGLAccount.php:105 @@ -2673,7 +2673,7 @@ #: COGSGLPostings.php:90 COGSGLPostings.php:194 COGSGLPostings.php:306 #: Customers.php:739 Customers.php:742 DiscountMatrix.php:96 -#: DiscountMatrix.php:152 PricesByCost.php:242 Prices.php:218 +#: DiscountMatrix.php:152 PricesByCost.php:259 Prices.php:218 #: SalesAnalRepts.php:32 SalesAnalRepts.php:34 SalesGLPostings.php:112 #: SalesGLPostings.php:224 SalesGLPostings.php:354 SelectOrderItems.php:752 #: api/api_xml-rpc.php:931 api/api_xml-rpc.php:974 @@ -2706,7 +2706,7 @@ #: COGSGLPostings.php:306 Customers.php:742 EDIProcessOrders.php:389 #: PDFCustomerList.php:332 PDFPriceList.php:17 PDFPriceList.php:121 -#: PDFPriceList.php:251 PricesBasedOnMarkUp.php:223 PricesByCost.php:242 +#: PDFPriceList.php:251 PricesBasedOnMarkUp.php:223 PricesByCost.php:259 #: SalesGLPostings.php:354 SelectOrderItems.php:752 SuppPriceList.php:118 #: SuppPriceList.php:222 msgid "Price List" @@ -2902,7 +2902,7 @@ #: GLTags.php:62 GoodsReceived.php:229 GoodsReceived.php:235 #: GoodsReceived.php:242 GoodsReceived.php:699 Labels.php:262 #: MRPCalendar.php:307 Payments.php:860 PcAuthorizeExpenses.php:283 -#: PO_AuthoriseMyOrders.php:132 PricesByCost.php:204 PurchData.php:505 +#: PO_AuthoriseMyOrders.php:132 PricesByCost.php:221 PurchData.php:505 #: ReorderLevelLocation.php:156 SecurityTokens.php:89 #: SelectCreditItems.php:898 SMTPServer.php:64 StockCostUpdate.php:163 #: StockReorderLevel.php:94 Stocks.php:1037 SystemParameters.php:1005 @@ -2910,51 +2910,51 @@ msgid "Update" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:9 +#: ConfirmDispatchControlled_Invoice.php:8 msgid "Specify Dispatched Controlled Items" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:20 +#: ConfirmDispatchControlled_Invoice.php:19 msgid "Select a line item to invoice" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:22 +#: ConfirmDispatchControlled_Invoice.php:21 msgid "" "This page can only be opened if a line item on a sales order to be invoiced " "has been selected" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:22 CreditItemsControlled.php:33 +#: ConfirmDispatchControlled_Invoice.php:21 CreditItemsControlled.php:33 #: CreditItemsControlled.php:44 GoodsReceivedControlled.php:28 #: GoodsReceivedControlled.php:40 msgid "Please do that first" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:30 ConfirmDispatch_Invoice.php:18 +#: ConfirmDispatchControlled_Invoice.php:29 ConfirmDispatch_Invoice.php:18 msgid "Select a sales order to invoice" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:32 +#: ConfirmDispatchControlled_Invoice.php:31 msgid "" "This page can only be opened if a sales order and line item has been " "selected Please do that first" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:45 +#: ConfirmDispatchControlled_Invoice.php:44 msgid "Back to the Sales Order" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:47 +#: ConfirmDispatchControlled_Invoice.php:46 msgid "" "The line item must be defined as controlled to require input of the batch " "numbers or serial numbers being sold" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:57 +#: ConfirmDispatchControlled_Invoice.php:56 msgid "Back to Confirmation of Dispatch" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:57 CounterSales.php:1207 +#: ConfirmDispatchControlled_Invoice.php:56 CounterSales.php:1207 #: DeliveryDetails.php:583 DeliveryDetails.php:783 EmailCustTrans.php:11 #: PaymentAllocations.php:33 SelectSalesOrder.php:742 SelectSalesOrder.php:811 #: SelectSalesOrder.php:838 Z_SalesIntegrityCheck.php:46 @@ -2963,15 +2963,15 @@ msgid "Invoice" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:59 +#: ConfirmDispatchControlled_Invoice.php:58 msgid "Dispatch of up to" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:59 +#: ConfirmDispatchControlled_Invoice.php:58 msgid "Controlled items" msgstr "" -#: ConfirmDispatchControlled_Invoice.php:59 GoodsReceivedControlled.php:65 +#: ConfirmDispatchControlled_Invoice.php:58 GoodsReceivedControlled.php:65 msgid "on order" msgstr "" @@ -3024,7 +3024,7 @@ #: CustomerReceipt.php:844 CustomerReceipt.php:895 CustomerReceipt.php:1020 #: Customers.php:12 Customers.php:347 CustomerTransInquiry.php:88 #: DeliveryDetails.php:800 FTP_RadioBeacon.php:51 PDFOrdersInvoiced.php:299 -#: PDFOrderStatus.php:272 PricesByCost.php:136 SalesGraph.php:169 +#: PDFOrderStatus.php:272 PricesByCost.php:153 SalesGraph.php:169 #: SelectCompletedOrder.php:586 SelectContract.php:157 SelectCustomer.php:24 #: SelectCustomer.php:281 SelectOrderItems.php:643 #: SelectRecurringSalesOrder.php:78 SelectSalesOrder.php:744 @@ -3134,7 +3134,7 @@ #: DeliveryDetails.php:824 DeliveryDetails.php:889 GoodsReceived.php:98 #: OffersReceived.php:97 OffersReceived.php:197 OffersReceived.php:244 #: OrderDetails.php:157 PDFOrdersInvoiced.php:385 PDFPriceList.php:359 -#: PDFPrintLabel.php:238 PO_AuthoriseMyOrders.php:115 PricesByCost.php:228 +#: PDFPrintLabel.php:238 PO_AuthoriseMyOrders.php:115 PricesByCost.php:245 #: Prices_Customer.php:345 Prices.php:219 Prices.php:331 #: PrintCustTrans.php:803 PrintCustTrans.php:891 PrintCustTrans.php:938 #: PrintCustTransPortrait.php:859 PrintCustTransPortrait.php:942 @@ -4077,7 +4077,7 @@ #: ContractBOM.php:41 ContractOtherReqts.php:45 Contracts.php:88 #: Contracts.php:97 DeliveryDetails.php:259 DeliveryDetails.php:268 -#: EmailCustTrans.php:24 EmailCustTrans.php:28 GLAccountCSV.php:260 +#: EmailCustTrans.php:24 EmailCustTrans.php:28 GLAccountCSV.php:261 #: PO_Header.php:237 POReport.php:1467 SalesAnalysis_UserDefined.php:46 #: SelectOrderItems.php:1158 StockQties_csv.php:43 StockUsage.php:22 #: SupplierCredit.php:216 SupplierCredit.php:228 SupplierCredit.php:240 @@ -4927,7 +4927,7 @@ #: Contracts.php:775 CustomerInquiry.php:193 CustomerTransInquiry.php:89 #: FTP_RadioBeacon.php:52 PDFOrdersInvoiced.php:300 PDFOrderStatus.php:273 -#: PDFPriceList.php:356 PricesByCost.php:137 Prices_Customer.php:258 +#: PDFPriceList.php:356 PricesByCost.php:154 Prices_Customer.php:258 #: Prices_Customer.php:328 PrintCustTrans.php:751 #: PrintCustTransPortrait.php:804 SelectCompletedOrder.php:587 #: SelectCreditItems.php:221 SelectCustomer.php:460 SelectOrderItems.php:644 @@ -4974,7 +4974,7 @@ msgstr "" #: Contracts.php:846 InventoryQuantities.php:212 PDFPriceList.php:352 -#: PDFPrintLabel.php:94 PricesByCost.php:221 ReorderLevelLocation.php:189 +#: PDFPrintLabel.php:94 PricesByCost.php:238 ReorderLevelLocation.php:189 #: ReorderLevel.php:242 SalesCategoryPeriodInquiry.php:162 #: SalesTopItemsInquiry.php:218 SpecialOrder.php:606 StockDispatch.php:344 #: Stocks.php:728 SuppPriceList.php:211 SuppPriceList.php:261 @@ -5196,8 +5196,8 @@ msgid "against customer code" msgstr "" -#: CounterSales.php:151 DeliveryDetails.php:151 GLAccountCSV.php:181 -#: GLAccountCSV.php:210 GLAccountInquiry.php:175 GLAccountInquiry.php:214 +#: CounterSales.php:151 DeliveryDetails.php:151 GLAccountCSV.php:182 +#: GLAccountCSV.php:211 GLAccountInquiry.php:175 GLAccountInquiry.php:214 #: GLAccountReportphp:176 GLAccountReportphp:215 GLAccountReport.php:114 #: GLAccountReport.php:146 SelectOrderItems.php:477 msgid "could not be retrieved" @@ -5321,7 +5321,7 @@ msgid "QOH" msgstr "" -#: CounterSales.php:706 PricesByCost.php:141 SelectOrderItems.php:1312 +#: CounterSales.php:706 PricesByCost.php:158 SelectOrderItems.php:1312 msgid "GP %" msgstr "" @@ -6001,7 +6001,7 @@ msgid "Back to Credit Note Entry" msgstr "" -#: CreditItemsControlled.php:58 StockAdjustmentsControlled.php:34 +#: CreditItemsControlled.php:58 StockAdjustmentsControlled.php:32 #: StockTransferControlled.php:49 msgid "Notice" msgstr "" @@ -6352,7 +6352,7 @@ #: PricesByCost.php:8 ReorderLevelLocation.php:13 ReorderLevel.php:161 #: SelectProduct.php:73 StockDispatch.php:219 StockMovements.php:19 #: StockQties_csv.php:8 StockQuantityByDate.php:9 StockReorderLevel.php:17 -#: StockSerialItemResearch.php:10 StockSerialItems.php:10 StockStatus.php:44 +#: StockSerialItemResearch.php:10 StockSerialItems.php:8 StockStatus.php:44 #: StockTransferControlled.php:14 SuppLoginSetup.php:14 WWW_Users.php:16 msgid "Inventory" msgstr "" @@ -6767,8 +6767,8 @@ #: CustomerAllocations.php:425 CustomerReceipt.php:1013 Labels.php:268 #: Payments.php:977 PcAssignCashToTab.php:174 PcAssignCashToTab.php:363 #: PcAuthorizeExpenses.php:318 PcClaimExpensesFromTab.php:167 -#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:141 -#: PcExpensesTypeTab.php:229 PcTabs.php:466 PcTypeTabs.php:236 +#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:140 +#: PcExpensesTypeTab.php:228 PcTabs.php:466 PcTypeTabs.php:236 #: SalesTypes.php:271 SelectCreditItems.php:899 Z_CheckDebtorsControl.php:69 msgid "Cancel" msgstr "" @@ -7572,8 +7572,8 @@ #: GLJournal.php:131 GLJournal.php:333 OffersReceived.php:101 Payments.php:977 #: PcAssignCashToTab.php:174 PcAssignCashToTab.php:362 #: PcAuthorizeExpenses.php:317 PcClaimExpensesFromTab.php:167 -#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:140 -#: PcExpensesTypeTab.php:228 PcTabs.php:466 PcTypeTabs.php:236 +#: PcClaimExpensesFromTab.php:385 PcExpenses.php:300 PcExpensesTypeTab.php:139 +#: PcExpensesTypeTab.php:227 PcTabs.php:466 PcTypeTabs.php:236 #: SalesTypes.php:271 SupplierTypes.php:246 Z_CheckDebtorsControl.php:68 msgid "Accept" msgstr "" @@ -9941,7 +9941,7 @@ msgid "Date Purchased" msgstr "Vendor Order" -#: FixedAssetDepreciation.php:86 PricesByCost.php:140 SalesAnalReptCols.php:38 +#: FixedAssetDepreciation.php:86 PricesByCost.php:157 SalesAnalReptCols.php:38 #: SalesAnalReptCols.php:40 SelectProduct.php:186 SelectProduct.php:343 #: ShipmentCosting.php:148 ShipmentCosting.php:149 StockCostUpdate.php:149 #: includes/PDFAssetRegisterHeader.inc:66 @@ -10263,8 +10263,8 @@ msgstr "" #: FixedAssetItems.php:515 FixedAssetRegister.php:82 -#: StockSerialItemResearch.php:30 StockSerialItems.php:88 -#: StockSerialItems.php:90 StockSerialItems.php:92 +#: StockSerialItemResearch.php:30 StockSerialItems.php:86 +#: StockSerialItems.php:88 StockSerialItems.php:90 msgid "Serial Number" msgstr "" @@ -11211,56 +11211,56 @@ msgid "Make CSV File" msgstr "" -#: GLAccountCSV.php:89 GLAccountInquiry.php:86 GLAccountReportphp:94 +#: GLAccountCSV.php:90 GLAccountInquiry.php:86 GLAccountReportphp:94 #: GLAccountReport.php:18 msgid "A period or range of periods must be selected from the list box" msgstr "" -#: GLAccountCSV.php:94 GLAccountReport.php:23 GLAccountReport.php:215 +#: GLAccountCSV.php:95 GLAccountReport.php:23 GLAccountReport.php:215 msgid "An account or range of accounts must be selected from the list box" msgstr "" -#: GLAccountCSV.php:108 StockQties_csv.php:31 +#: GLAccountCSV.php:109 StockQties_csv.php:31 msgid "Could not open or create the file under" msgstr "" -#: GLAccountCSV.php:167 GLAccountInquiry.php:145 GLAccountReportphp:149 +#: GLAccountCSV.php:168 GLAccountInquiry.php:145 GLAccountReportphp:149 #: GLAccountReport.php:93 msgid "The transactions for account" msgstr "" -#: GLAccountCSV.php:170 +#: GLAccountCSV.php:171 msgid "for period" msgstr "" -#: GLAccountCSV.php:181 GLAccountCSV.php:210 GLAccountInquiry.php:175 +#: GLAccountCSV.php:182 GLAccountCSV.php:211 GLAccountInquiry.php:175 #: GLAccountInquiry.php:214 GLAccountReportphp:176 GLAccountReportphp:215 #: GLAccountReport.php:114 GLAccountReport.php:146 msgid "The chart details for account" msgstr "" -#: GLAccountCSV.php:187 GLAccountCSV.php:189 GLAccountInquiry.php:183 +#: GLAccountCSV.php:188 GLAccountCSV.php:190 GLAccountInquiry.php:183 #: GLAccountInquiry.php:190 GLAccountReportphp:183 GLAccountReportphp:190 #: GLAccountReport.php:120 msgid "Brought Forward Balance" msgstr "" -#: GLAccountCSV.php:214 GLAccountCSV.php:216 GLAccountCSV.php:239 -#: GLAccountCSV.php:241 GLAccountReport.php:150 +#: GLAccountCSV.php:215 GLAccountCSV.php:217 GLAccountCSV.php:240 +#: GLAccountCSV.php:242 GLAccountReport.php:150 msgid "Period Total" msgstr "" -#: GLAccountCSV.php:246 GLAccountCSV.php:248 GLAccountInquiry.php:297 +#: GLAccountCSV.php:247 GLAccountCSV.php:249 GLAccountInquiry.php:297 #: GLAccountReportphp:288 GLAccountReport.php:199 msgid "Total Period Movement" msgstr "" -#: GLAccountCSV.php:252 GLAccountCSV.php:254 GLAccountInquiry.php:299 +#: GLAccountCSV.php:253 GLAccountCSV.php:255 GLAccountInquiry.php:299 #: GLAccountReportphp:290 GLAccountReport.php:201 msgid "Balance C/Fwd" msgstr "" -#: GLAccountCSV.php:260 POReport.php:1467 StockQties_csv.php:43 +#: GLAccountCSV.php:261 POReport.php:1467 StockQties_csv.php:43 msgid "to view the file" msgstr "" @@ -13969,7 +13969,7 @@ msgid "Multiplier" msgstr "Vendors" -#: MRPCreateDemands.php:245 PricesByCost.php:266 ReorderLevelLocation.php:206 +#: MRPCreateDemands.php:245 PricesByCost.php:283 ReorderLevelLocation.php:206 msgid "Submit" msgstr "" @@ -15529,7 +15529,7 @@ msgstr "" #: PcAssignCashToTab.php:217 PcAuthorizeExpenses.php:88 -#: PcExpensesTypeTab.php:165 +#: PcExpensesTypeTab.php:168 #, fuzzy msgid "Expense Code" msgstr "Territory Code" @@ -15542,7 +15542,7 @@ msgid "Authorised" msgstr "Authorized" -#: PcAssignCashToTab.php:258 PcExpensesTypeTab.php:182 +#: PcAssignCashToTab.php:258 PcExpensesTypeTab.php:185 #, php-format ... [truncated message content] |
From: <dai...@us...> - 2011-06-03 09:54:04
|
Revision: 4587 http://web-erp.svn.sourceforge.net/web-erp/?rev=4587&view=rev Author: daintree Date: 2011-06-03 09:53:57 +0000 (Fri, 03 Jun 2011) Log Message: ----------- bug fixes Modified Paths: -------------- trunk/doc/Change.log trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-02 10:12:41 UTC (rev 4586) +++ trunk/doc/Change.log 2011-06-03 09:53:57 UTC (rev 4587) @@ -1,5 +1,7 @@ webERP Change Log +3/6/11 Version 4.04.3 Release + 2/6/11 Phil: ConfirmDispatchControlled_Invoice.php type include/InputSerialItems.php 2/6/11 Phil: modified build script to include audittrail table in weberp-new.sql and weberpdemo.sql - excluded by mistake 2/6/11 Phil: UpgradeDatabase.php manual upgrades from 3.11.x 4.01 and 4.02 now fixed! Brian May's report @@ -64,6 +66,7 @@ 18/4/11 Phil: Update zh_HK.utf8, pt_BR.utf8, fa_IR.utf8 from launchpad translations 18/4/11 Phil: Changed PurchData.php back to now have free form text entry of unit of measure - as suggested by Brian May - think it works better this way 18/4/11 Phil: Removed redundant fields that are not used anywhere from DefinePOClass and the various function to add lines to purchase orders and to update purhcase order lines - netweight, cuft, kgs, itemno, total_quantity etc. all this data can be retrieved without duplication in purchorderdetails +17/4/11 Phil: Reworked PrintCustTrans.php landscape invoice removing reliance on xml. No longer have the ability to use the form designer to manipulate the position of fields on the invoice. The form designer invoice could not print multiple page invoices 16/4/11 Phil: Tim's changes in launchpad fork to 4663 - xhtml syntax fixes 15/4/11 Phil: Copy Exson's traditional Chinese back to zh_HK.utf8 11/4/11 Ricard: new pcAuthorizeExpenses.php that shows the current balance of the tab to the authorizer. Before the authorizer did not see this information. @@ -88,46 +91,46 @@ <p /> 27/3/11 - Version 4.03.5 Release -27/3/11: Phil fixed SQL upgrade script to add the Z_ChangeSupplierCode.php script is added to the scripts table -27/3/11: Phil fixed some SQL for ansi compatibility I had changed in error - would affect users running strict mode ansi -27/3/11: Phil at Brian May's suggestion added conversion factor to item look up in PO_Items.php - also ensured quantity entry no longer trapped for commas and commas removed from numbers before committing. Also trapped for committing purchase orders with no lines +27/3/11: Phil: fixed SQL upgrade script to add the Z_ChangeSupplierCode.php script is added to the scripts table +27/3/11: Phil: fixed some SQL for ansi compatibility I had changed in error - would affect users running strict mode ansi +27/3/11: Phil: at Brian May's suggestion added conversion factor to item look up in PO_Items.php - also ensured quantity entry no longer trapped for commas and commas removed from numbers before committing. Also trapped for committing purchase orders with no lines 26/3/11 - Version 4.03 Release -26/3/11: Phil added some error trapping to codes of pcTabTypes -24/3/11: Phil rework PDFStockTransfer.php remove a few round trips to DB and added facility to be able to select a transfer number to reprint - added to main menu -24/3/11: James wer...@ya... Added snall image in middle of SelectProduct.php -19/3/11: Phil added country to packing slips -18/3/11: Marcos Garcia Trejo Added Z_ChangeSupplierCode.php -18/3/11: Ricard add orderby transdate to DailyBankTransactions.php -18/3/11: Phil check for Customers.php CustomerBranches.php and Stocks.php now traps codes containing spaces - as well as other illegal characters -15/3/11: Phil PricesByCost.php - made it update prices where there is already a price starting on today's date -15/3/11: Phil SelectOrderItems.php customer selection now done using a hidden $_POST rather than parsing debtorno hyphen branchcode. -15/3/11: Phil Locations.php new field for CounterSales branch code - instead of parsing it from a single field with a hyphen in it. CounterSales.php now uses the new field for customer branch -14/3/11: Phil SelectSalesOrder.php now lists with sales order value denominated in functional currency with total of listed outstadning sales orders (or quotations) shown at the bottom of the listing -12/3/11: Tim Now allow space in codes +26/3/11: Phil: added some error trapping to codes of pcTabTypes +24/3/11: Phil: rework PDFStockTransfer.php remove a few round trips to DB and added facility to be able to select a transfer number to reprint - added to main menu +24/3/11: James wer...@ya... Added small image in middle of SelectProduct.php +19/3/11: Phil: added country to packing slips +18/3/11: Marcos Garcia Trejo: Added Z_ChangeSupplierCode.php +18/3/11: Ricard: add orderby transdate to DailyBankTransactions.php +18/3/11: Phil: check for Customers.php CustomerBranches.php and Stocks.php now traps codes containing spaces - as well as other illegal characters +15/3/11: Phil: PricesByCost.php - made it update prices where there is already a price starting on today's date +15/3/11: Phil: SelectOrderItems.php customer selection now done using a hidden $_POST rather than parsing debtorno hyphen branchcode. +15/3/11: Phil: Locations.php new field for CounterSales branch code - instead of parsing it from a single field with a hyphen in it. CounterSales.php now uses the new field for customer branch +14/3/11: Phil: SelectSalesOrder.php now lists with sales order value denominated in functional currency with total of listed outstadning sales orders (or quotations) shown at the bottom of the listing +12/3/11: Tim: Now allow space in codes 12/3/11: SelectSalesOrder.php now allows any number of sales orders to be selected and purchase orders placed for the aggregate of items on the selected sales orders 12/3/11: SuppPriceList.php removed a round trip to DB to get currency - fixed function to get pdf to new TCPDF Output -12/3/11: Exson fix all htmlentities to use ENTQUOTES, 'UTF-8' option so other character sets work with it -10/3/11: Phil fix pagination of PrintCustOrder_generic.php - second copy was not restarting page numbers -10/3/11: Tims launchpad fixes brought in MRP.php fix for table charset utf8 so joins work correctly; typeo in PO_Header preventing purchasing data being retrieved ($result not $Result); correct sql on searching for customer in SelectCreditItems.php; StockStatus.php pricing history bug resolved (4450); StockQuantityByDate.php now allowed to show for all categories - enclosed 'All' in gettext -8/3/11: Tim/Phil PO_Items.php in committing an order detail the assetid of 'Not an Asset' was being inserted to an integer field. Modified $_POST['AssetID'] to = 0 if it was 'Not an Asset' as advised by Tim -8/3/11: Phil fix SalesAnalysis reports for TCPDF as reported by Joe Zhou -5/3/11: Kovács Attila fix to Stocks.php to use ANSI GROUP BY for aggregate functions SQL -5/3/11: Kovács Attila fix to LanguageSetup.php to use utf-8 not ISO-8859-1. Phil hardcoded UTF-8 now as no dynamic changing of character set required all translations are utf-8 +12/3/11: Exson: fix all htmlentities to use ENTQUOTES, 'UTF-8' option so other character sets work with it +10/3/11: Phil: fix pagination of PrintCustOrder_generic.php - second copy was not restarting page numbers +10/3/11: Tims: launchpad fixes brought in MRP.php fix for table charset utf8 so joins work correctly; typeo in PO_Header preventing purchasing data being retrieved ($result not $Result); correct sql on searching for customer in SelectCreditItems.php; StockStatus.php pricing history bug resolved (4450); StockQuantityByDate.php now allowed to show for all categories - enclosed 'All' in gettext +8/3/11: Tim/Phil: PO_Items.php in committing an order detail the assetid of 'Not an Asset' was being inserted to an integer field. Modified $_POST['AssetID'] to = 0 if it was 'Not an Asset' as advised by Tim +8/3/11: Phil: fix SalesAnalysis reports for TCPDF as reported by Joe Zhou +5/3/11: Kovács Attila: fix to Stocks.php to use ANSI GROUP BY for aggregate functions SQL +5/3/11: Kovács Attila: fix to LanguageSetup.php to use utf-8 not ISO-8859-1. Phil hardcoded UTF-8 now as no dynamic changing of character set required all translations are utf-8 3/3/11: Exson/Baran/Phil fix to customer login to ensure that other customers orders are not displayed when searching by customer ref or order no 3/3/11: Tim launchpad mods to revision 4441 including change to allow supplier currency to be changed if there are no transactions already against the supplier. Ensure credit note session variable is unset before attempting to create a new credit note from the supplier form. Tim's work to add perisable expiry dates to the serial items logic - affects quite a few scripts. Headings to stock check script even if no quantity is shown. Portrait quotations. Not included change to default delivery date to the date the customer requested - left to be the current day's date. Not included Tim's unit pricing work .. yet launchpad revisions 4442-4447 inclusive 27/2/11: Phil/Tim/Peter launchpad added category option for MRPShortages.php links with matching quotes in WorkOrderEntry -27/2/11: Phil StockUsage.php now totals usage each month even in months where there was none - average now includes months with no usage -27/2/11: Phil fix units deletion issue reported by Exson in UnitsOfMeasure.php script - checked for none existant units field in contracts table - removed the check -22/2/11: Phil fix PDFTopItems.php for changed variable names - now using CamelCase tried to rework to conform -22/2/11: Phil remove options for PDFLanguage that are not unique in WWW_Users.php - make it default to the users settings in the SESSION for UserSettings.php +27/2/11: Phil: StockUsage.php now totals usage each month even in months where there was none - average now includes months with no usage +27/2/11: Phil: fix units deletion issue reported by Exson in UnitsOfMeasure.php script - checked for none existant units field in contracts table - removed the check +22/2/11: Phil: fix PDFTopItems.php for changed variable names - now using CamelCase tried to rework to conform +22/2/11: Phil: remove options for PDFLanguage that are not unique in WWW_Users.php - make it default to the users settings in the SESSION for UserSettings.php 18/2/11: Phil/Don Change PageSecurity array variable name to PageSecurityArray - caused problems with conflict with PageSecurity variable where register_globals = on; -18/2/11: PO_Items.php make number_format variables turn back into numbers for > 1000 -16/2/11: FixedAssetItems.php now checks for location before allowing additions -16/2/11: Company preferences - changed wording of stock integration at cost removed the word standard as suggested by Exson -16/2/11: SelectCreditItems.php formating/conventions lower case html and CreditInvoice.php -15/2/11: Phil Make invoicing warn the user when no taxes are defined for a tax group - i.e. there is a configuration error with taxes +18/2/11: Phil: PO_Items.php make number_format variables turn back into numbers for > 1000 +16/2/11: Phil: FixedAssetItems.php now checks for location before allowing additions +16/2/11: Phil: Company preferences - changed wording of stock integration at cost removed the word standard as suggested by Exson +16/2/11: Phil: SelectCreditItems.php formating/conventions lower case html and CreditInvoice.php +15/2/11: Phil: Make invoicing warn the user when no taxes are defined for a tax group - i.e. there is a configuration error with taxes <p /> 15/2/11 Release 4.03RC2 <p /> Modified: trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot =================================================================== --- trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2011-06-02 10:12:41 UTC (rev 4586) +++ trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2011-06-03 09:53:57 UTC (rev 4587) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-02 21:38+1200\n" +"POT-Creation-Date: 2011-06-03 21:59+1200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL...@li...>\n" Modified: trunk/sql/mysql/weberp-demo.sql =================================================================== --- trunk/sql/mysql/weberp-demo.sql 2011-06-02 10:12:41 UTC (rev 4586) +++ trunk/sql/mysql/weberp-demo.sql 2011-06-03 09:53:57 UTC (rev 4587) @@ -2797,7 +2797,7 @@ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-06-02 21:38:27 +-- Dump completed on 2011-06-03 21:59:24 -- MySQL dump 10.13 Distrib 5.1.47-MariaDB, for pc-linux-gnu (i686) -- -- Host: localhost Database: weberpdemo @@ -10324,7 +10324,7 @@ INSERT INTO `config` VALUES ('FrequentlyOrderedItems','0'); INSERT INTO `config` VALUES ('geocode_integration','0'); INSERT INTO `config` VALUES ('HTTPS_Only','0'); -INSERT INTO `config` VALUES ('InvoicePortraitFormat','1'); +INSERT INTO `config` VALUES ('InvoicePortraitFormat','0'); INSERT INTO `config` VALUES ('LogPath',''); INSERT INTO `config` VALUES ('LogSeverity','0'); INSERT INTO `config` VALUES ('MaxImageSize','300'); @@ -13234,7 +13234,6 @@ INSERT INTO `stockcategory` VALUES ('BAKE','Baking Ingredients','F',1460,5700,5200,5000,1440); INSERT INTO `stockcategory` VALUES ('DVD','DVDs','F',1460,5700,5000,5200,1440); INSERT INTO `stockcategory` VALUES ('FOOD','Food','F',1460,5700,5200,5000,1440); -INSERT INTO `stockcategory` VALUES ('PLANT','Plant and Equipment','A',1650,7750,80000,1,1670); INSERT INTO `stockcategory` VALUES ('ZFR','Freight','D',1460,5600,5600,5600,1440); -- @@ -13659,7 +13658,7 @@ -- Dumping data for table `www_users` -- -INSERT INTO `www_users` VALUES ('admin','f0f77a7f88e7c1e93ab4e316b4574c7843b00ea4','Demonstration user','','','','','','MEL',8,'2011-05-31 21:35:16','','A4','1,1,1,1,1,1,1,1,1,1,',0,50,'gel','en_GB.utf8',0); +INSERT INTO `www_users` VALUES ('admin','f0f77a7f88e7c1e93ab4e316b4574c7843b00ea4','Demonstration user','','','','','','MEL',8,'2011-06-03 19:38:52','','A4','1,1,1,1,1,1,1,1,1,1,',0,50,'gel','en_GB.utf8',0); INSERT INTO `www_users` VALUES ('test','7c4a8d09ca3762af61e59520943dc26494f8941b','test','','','','','','MEL',6,'2011-05-19 19:05:46','','A4','1,1,1,0,0,0,0,0,0,0,',0,50,'silverwolf','en_GB.utf8',0); /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; @@ -13668,5 +13667,5 @@ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-06-02 21:38:27 +-- Dump completed on 2011-06-03 21:59:24 SET FOREIGN_KEY_CHECKS = 1; Modified: trunk/sql/mysql/weberp-new.sql =================================================================== --- trunk/sql/mysql/weberp-new.sql 2011-06-02 10:12:41 UTC (rev 4586) +++ trunk/sql/mysql/weberp-new.sql 2011-06-03 09:53:57 UTC (rev 4587) @@ -2795,7 +2795,7 @@ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-06-02 21:38:27 +-- Dump completed on 2011-06-03 21:59:24 -- MySQL dump 10.13 Distrib 5.1.47-MariaDB, for pc-linux-gnu (i686) -- -- Host: localhost Database: weberpdemo @@ -3134,7 +3134,7 @@ -- Dumping data for table `www_users` -- -INSERT INTO `www_users` VALUES ('admin','f0f77a7f88e7c1e93ab4e316b4574c7843b00ea4','Demonstration user','','','','','','MEL',8,'2011-05-31 21:35:16','','A4','1,1,1,1,1,1,1,1,1,1,',0,50,'gel','en_GB.utf8',0); +INSERT INTO `www_users` VALUES ('admin','f0f77a7f88e7c1e93ab4e316b4574c7843b00ea4','Demonstration user','','','','','','MEL',8,'2011-06-03 19:38:52','','A4','1,1,1,1,1,1,1,1,1,1,',0,50,'gel','en_GB.utf8',0); INSERT INTO `www_users` VALUES ('test','7c4a8d09ca3762af61e59520943dc26494f8941b','test','','','','','','MEL',6,'2011-05-19 19:05:46','','A4','1,1,1,0,0,0,0,0,0,0,',0,50,'silverwolf','en_GB.utf8',0); -- @@ -3324,7 +3324,7 @@ INSERT INTO `config` VALUES ('FrequentlyOrderedItems','0'); INSERT INTO `config` VALUES ('geocode_integration','0'); INSERT INTO `config` VALUES ('HTTPS_Only','0'); -INSERT INTO `config` VALUES ('InvoicePortraitFormat','1'); +INSERT INTO `config` VALUES ('InvoicePortraitFormat','0'); INSERT INTO `config` VALUES ('LogPath',''); INSERT INTO `config` VALUES ('LogSeverity','0'); INSERT INTO `config` VALUES ('MaxImageSize','300'); @@ -3819,7 +3819,7 @@ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-06-02 21:38:27 +-- Dump completed on 2011-06-03 21:59:24 SET FOREIGN_KEY_CHECKS = 1; UPDATE systypes SET typeno=0; INSERT INTO shippers VALUES (1,'Default Shipper',0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-03 09:54:05
|
Revision: 4587 http://web-erp.svn.sourceforge.net/web-erp/?rev=4587&view=rev Author: daintree Date: 2011-06-03 09:53:57 +0000 (Fri, 03 Jun 2011) Log Message: ----------- bug fixes Modified Paths: -------------- trunk/doc/Change.log trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-02 10:12:41 UTC (rev 4586) +++ trunk/doc/Change.log 2011-06-03 09:53:57 UTC (rev 4587) @@ -1,5 +1,7 @@ webERP Change Log +3/6/11 Version 4.04.3 Release + 2/6/11 Phil: ConfirmDispatchControlled_Invoice.php type include/InputSerialItems.php 2/6/11 Phil: modified build script to include audittrail table in weberp-new.sql and weberpdemo.sql - excluded by mistake 2/6/11 Phil: UpgradeDatabase.php manual upgrades from 3.11.x 4.01 and 4.02 now fixed! Brian May's report @@ -64,6 +66,7 @@ 18/4/11 Phil: Update zh_HK.utf8, pt_BR.utf8, fa_IR.utf8 from launchpad translations 18/4/11 Phil: Changed PurchData.php back to now have free form text entry of unit of measure - as suggested by Brian May - think it works better this way 18/4/11 Phil: Removed redundant fields that are not used anywhere from DefinePOClass and the various function to add lines to purchase orders and to update purhcase order lines - netweight, cuft, kgs, itemno, total_quantity etc. all this data can be retrieved without duplication in purchorderdetails +17/4/11 Phil: Reworked PrintCustTrans.php landscape invoice removing reliance on xml. No longer have the ability to use the form designer to manipulate the position of fields on the invoice. The form designer invoice could not print multiple page invoices 16/4/11 Phil: Tim's changes in launchpad fork to 4663 - xhtml syntax fixes 15/4/11 Phil: Copy Exson's traditional Chinese back to zh_HK.utf8 11/4/11 Ricard: new pcAuthorizeExpenses.php that shows the current balance of the tab to the authorizer. Before the authorizer did not see this information. @@ -88,46 +91,46 @@ <p /> 27/3/11 - Version 4.03.5 Release -27/3/11: Phil fixed SQL upgrade script to add the Z_ChangeSupplierCode.php script is added to the scripts table -27/3/11: Phil fixed some SQL for ansi compatibility I had changed in error - would affect users running strict mode ansi -27/3/11: Phil at Brian May's suggestion added conversion factor to item look up in PO_Items.php - also ensured quantity entry no longer trapped for commas and commas removed from numbers before committing. Also trapped for committing purchase orders with no lines +27/3/11: Phil: fixed SQL upgrade script to add the Z_ChangeSupplierCode.php script is added to the scripts table +27/3/11: Phil: fixed some SQL for ansi compatibility I had changed in error - would affect users running strict mode ansi +27/3/11: Phil: at Brian May's suggestion added conversion factor to item look up in PO_Items.php - also ensured quantity entry no longer trapped for commas and commas removed from numbers before committing. Also trapped for committing purchase orders with no lines 26/3/11 - Version 4.03 Release -26/3/11: Phil added some error trapping to codes of pcTabTypes -24/3/11: Phil rework PDFStockTransfer.php remove a few round trips to DB and added facility to be able to select a transfer number to reprint - added to main menu -24/3/11: James wer...@ya... Added snall image in middle of SelectProduct.php -19/3/11: Phil added country to packing slips -18/3/11: Marcos Garcia Trejo Added Z_ChangeSupplierCode.php -18/3/11: Ricard add orderby transdate to DailyBankTransactions.php -18/3/11: Phil check for Customers.php CustomerBranches.php and Stocks.php now traps codes containing spaces - as well as other illegal characters -15/3/11: Phil PricesByCost.php - made it update prices where there is already a price starting on today's date -15/3/11: Phil SelectOrderItems.php customer selection now done using a hidden $_POST rather than parsing debtorno hyphen branchcode. -15/3/11: Phil Locations.php new field for CounterSales branch code - instead of parsing it from a single field with a hyphen in it. CounterSales.php now uses the new field for customer branch -14/3/11: Phil SelectSalesOrder.php now lists with sales order value denominated in functional currency with total of listed outstadning sales orders (or quotations) shown at the bottom of the listing -12/3/11: Tim Now allow space in codes +26/3/11: Phil: added some error trapping to codes of pcTabTypes +24/3/11: Phil: rework PDFStockTransfer.php remove a few round trips to DB and added facility to be able to select a transfer number to reprint - added to main menu +24/3/11: James wer...@ya... Added small image in middle of SelectProduct.php +19/3/11: Phil: added country to packing slips +18/3/11: Marcos Garcia Trejo: Added Z_ChangeSupplierCode.php +18/3/11: Ricard: add orderby transdate to DailyBankTransactions.php +18/3/11: Phil: check for Customers.php CustomerBranches.php and Stocks.php now traps codes containing spaces - as well as other illegal characters +15/3/11: Phil: PricesByCost.php - made it update prices where there is already a price starting on today's date +15/3/11: Phil: SelectOrderItems.php customer selection now done using a hidden $_POST rather than parsing debtorno hyphen branchcode. +15/3/11: Phil: Locations.php new field for CounterSales branch code - instead of parsing it from a single field with a hyphen in it. CounterSales.php now uses the new field for customer branch +14/3/11: Phil: SelectSalesOrder.php now lists with sales order value denominated in functional currency with total of listed outstadning sales orders (or quotations) shown at the bottom of the listing +12/3/11: Tim: Now allow space in codes 12/3/11: SelectSalesOrder.php now allows any number of sales orders to be selected and purchase orders placed for the aggregate of items on the selected sales orders 12/3/11: SuppPriceList.php removed a round trip to DB to get currency - fixed function to get pdf to new TCPDF Output -12/3/11: Exson fix all htmlentities to use ENTQUOTES, 'UTF-8' option so other character sets work with it -10/3/11: Phil fix pagination of PrintCustOrder_generic.php - second copy was not restarting page numbers -10/3/11: Tims launchpad fixes brought in MRP.php fix for table charset utf8 so joins work correctly; typeo in PO_Header preventing purchasing data being retrieved ($result not $Result); correct sql on searching for customer in SelectCreditItems.php; StockStatus.php pricing history bug resolved (4450); StockQuantityByDate.php now allowed to show for all categories - enclosed 'All' in gettext -8/3/11: Tim/Phil PO_Items.php in committing an order detail the assetid of 'Not an Asset' was being inserted to an integer field. Modified $_POST['AssetID'] to = 0 if it was 'Not an Asset' as advised by Tim -8/3/11: Phil fix SalesAnalysis reports for TCPDF as reported by Joe Zhou -5/3/11: Kovács Attila fix to Stocks.php to use ANSI GROUP BY for aggregate functions SQL -5/3/11: Kovács Attila fix to LanguageSetup.php to use utf-8 not ISO-8859-1. Phil hardcoded UTF-8 now as no dynamic changing of character set required all translations are utf-8 +12/3/11: Exson: fix all htmlentities to use ENTQUOTES, 'UTF-8' option so other character sets work with it +10/3/11: Phil: fix pagination of PrintCustOrder_generic.php - second copy was not restarting page numbers +10/3/11: Tims: launchpad fixes brought in MRP.php fix for table charset utf8 so joins work correctly; typeo in PO_Header preventing purchasing data being retrieved ($result not $Result); correct sql on searching for customer in SelectCreditItems.php; StockStatus.php pricing history bug resolved (4450); StockQuantityByDate.php now allowed to show for all categories - enclosed 'All' in gettext +8/3/11: Tim/Phil: PO_Items.php in committing an order detail the assetid of 'Not an Asset' was being inserted to an integer field. Modified $_POST['AssetID'] to = 0 if it was 'Not an Asset' as advised by Tim +8/3/11: Phil: fix SalesAnalysis reports for TCPDF as reported by Joe Zhou +5/3/11: Kovács Attila: fix to Stocks.php to use ANSI GROUP BY for aggregate functions SQL +5/3/11: Kovács Attila: fix to LanguageSetup.php to use utf-8 not ISO-8859-1. Phil hardcoded UTF-8 now as no dynamic changing of character set required all translations are utf-8 3/3/11: Exson/Baran/Phil fix to customer login to ensure that other customers orders are not displayed when searching by customer ref or order no 3/3/11: Tim launchpad mods to revision 4441 including change to allow supplier currency to be changed if there are no transactions already against the supplier. Ensure credit note session variable is unset before attempting to create a new credit note from the supplier form. Tim's work to add perisable expiry dates to the serial items logic - affects quite a few scripts. Headings to stock check script even if no quantity is shown. Portrait quotations. Not included change to default delivery date to the date the customer requested - left to be the current day's date. Not included Tim's unit pricing work .. yet launchpad revisions 4442-4447 inclusive 27/2/11: Phil/Tim/Peter launchpad added category option for MRPShortages.php links with matching quotes in WorkOrderEntry -27/2/11: Phil StockUsage.php now totals usage each month even in months where there was none - average now includes months with no usage -27/2/11: Phil fix units deletion issue reported by Exson in UnitsOfMeasure.php script - checked for none existant units field in contracts table - removed the check -22/2/11: Phil fix PDFTopItems.php for changed variable names - now using CamelCase tried to rework to conform -22/2/11: Phil remove options for PDFLanguage that are not unique in WWW_Users.php - make it default to the users settings in the SESSION for UserSettings.php +27/2/11: Phil: StockUsage.php now totals usage each month even in months where there was none - average now includes months with no usage +27/2/11: Phil: fix units deletion issue reported by Exson in UnitsOfMeasure.php script - checked for none existant units field in contracts table - removed the check +22/2/11: Phil: fix PDFTopItems.php for changed variable names - now using CamelCase tried to rework to conform +22/2/11: Phil: remove options for PDFLanguage that are not unique in WWW_Users.php - make it default to the users settings in the SESSION for UserSettings.php 18/2/11: Phil/Don Change PageSecurity array variable name to PageSecurityArray - caused problems with conflict with PageSecurity variable where register_globals = on; -18/2/11: PO_Items.php make number_format variables turn back into numbers for > 1000 -16/2/11: FixedAssetItems.php now checks for location before allowing additions -16/2/11: Company preferences - changed wording of stock integration at cost removed the word standard as suggested by Exson -16/2/11: SelectCreditItems.php formating/conventions lower case html and CreditInvoice.php -15/2/11: Phil Make invoicing warn the user when no taxes are defined for a tax group - i.e. there is a configuration error with taxes +18/2/11: Phil: PO_Items.php make number_format variables turn back into numbers for > 1000 +16/2/11: Phil: FixedAssetItems.php now checks for location before allowing additions +16/2/11: Phil: Company preferences - changed wording of stock integration at cost removed the word standard as suggested by Exson +16/2/11: Phil: SelectCreditItems.php formating/conventions lower case html and CreditInvoice.php +15/2/11: Phil: Make invoicing warn the user when no taxes are defined for a tax group - i.e. there is a configuration error with taxes <p /> 15/2/11 Release 4.03RC2 <p /> Modified: trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot =================================================================== --- trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2011-06-02 10:12:41 UTC (rev 4586) +++ trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot 2011-06-03 09:53:57 UTC (rev 4587) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-02 21:38+1200\n" +"POT-Creation-Date: 2011-06-03 21:59+1200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL...@li...>\n" Modified: trunk/sql/mysql/weberp-demo.sql =================================================================== --- trunk/sql/mysql/weberp-demo.sql 2011-06-02 10:12:41 UTC (rev 4586) +++ trunk/sql/mysql/weberp-demo.sql 2011-06-03 09:53:57 UTC (rev 4587) @@ -2797,7 +2797,7 @@ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-06-02 21:38:27 +-- Dump completed on 2011-06-03 21:59:24 -- MySQL dump 10.13 Distrib 5.1.47-MariaDB, for pc-linux-gnu (i686) -- -- Host: localhost Database: weberpdemo @@ -10324,7 +10324,7 @@ INSERT INTO `config` VALUES ('FrequentlyOrderedItems','0'); INSERT INTO `config` VALUES ('geocode_integration','0'); INSERT INTO `config` VALUES ('HTTPS_Only','0'); -INSERT INTO `config` VALUES ('InvoicePortraitFormat','1'); +INSERT INTO `config` VALUES ('InvoicePortraitFormat','0'); INSERT INTO `config` VALUES ('LogPath',''); INSERT INTO `config` VALUES ('LogSeverity','0'); INSERT INTO `config` VALUES ('MaxImageSize','300'); @@ -13234,7 +13234,6 @@ INSERT INTO `stockcategory` VALUES ('BAKE','Baking Ingredients','F',1460,5700,5200,5000,1440); INSERT INTO `stockcategory` VALUES ('DVD','DVDs','F',1460,5700,5000,5200,1440); INSERT INTO `stockcategory` VALUES ('FOOD','Food','F',1460,5700,5200,5000,1440); -INSERT INTO `stockcategory` VALUES ('PLANT','Plant and Equipment','A',1650,7750,80000,1,1670); INSERT INTO `stockcategory` VALUES ('ZFR','Freight','D',1460,5600,5600,5600,1440); -- @@ -13659,7 +13658,7 @@ -- Dumping data for table `www_users` -- -INSERT INTO `www_users` VALUES ('admin','f0f77a7f88e7c1e93ab4e316b4574c7843b00ea4','Demonstration user','','','','','','MEL',8,'2011-05-31 21:35:16','','A4','1,1,1,1,1,1,1,1,1,1,',0,50,'gel','en_GB.utf8',0); +INSERT INTO `www_users` VALUES ('admin','f0f77a7f88e7c1e93ab4e316b4574c7843b00ea4','Demonstration user','','','','','','MEL',8,'2011-06-03 19:38:52','','A4','1,1,1,1,1,1,1,1,1,1,',0,50,'gel','en_GB.utf8',0); INSERT INTO `www_users` VALUES ('test','7c4a8d09ca3762af61e59520943dc26494f8941b','test','','','','','','MEL',6,'2011-05-19 19:05:46','','A4','1,1,1,0,0,0,0,0,0,0,',0,50,'silverwolf','en_GB.utf8',0); /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; @@ -13668,5 +13667,5 @@ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-06-02 21:38:27 +-- Dump completed on 2011-06-03 21:59:24 SET FOREIGN_KEY_CHECKS = 1; Modified: trunk/sql/mysql/weberp-new.sql =================================================================== --- trunk/sql/mysql/weberp-new.sql 2011-06-02 10:12:41 UTC (rev 4586) +++ trunk/sql/mysql/weberp-new.sql 2011-06-03 09:53:57 UTC (rev 4587) @@ -2795,7 +2795,7 @@ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-06-02 21:38:27 +-- Dump completed on 2011-06-03 21:59:24 -- MySQL dump 10.13 Distrib 5.1.47-MariaDB, for pc-linux-gnu (i686) -- -- Host: localhost Database: weberpdemo @@ -3134,7 +3134,7 @@ -- Dumping data for table `www_users` -- -INSERT INTO `www_users` VALUES ('admin','f0f77a7f88e7c1e93ab4e316b4574c7843b00ea4','Demonstration user','','','','','','MEL',8,'2011-05-31 21:35:16','','A4','1,1,1,1,1,1,1,1,1,1,',0,50,'gel','en_GB.utf8',0); +INSERT INTO `www_users` VALUES ('admin','f0f77a7f88e7c1e93ab4e316b4574c7843b00ea4','Demonstration user','','','','','','MEL',8,'2011-06-03 19:38:52','','A4','1,1,1,1,1,1,1,1,1,1,',0,50,'gel','en_GB.utf8',0); INSERT INTO `www_users` VALUES ('test','7c4a8d09ca3762af61e59520943dc26494f8941b','test','','','','','','MEL',6,'2011-05-19 19:05:46','','A4','1,1,1,0,0,0,0,0,0,0,',0,50,'silverwolf','en_GB.utf8',0); -- @@ -3324,7 +3324,7 @@ INSERT INTO `config` VALUES ('FrequentlyOrderedItems','0'); INSERT INTO `config` VALUES ('geocode_integration','0'); INSERT INTO `config` VALUES ('HTTPS_Only','0'); -INSERT INTO `config` VALUES ('InvoicePortraitFormat','1'); +INSERT INTO `config` VALUES ('InvoicePortraitFormat','0'); INSERT INTO `config` VALUES ('LogPath',''); INSERT INTO `config` VALUES ('LogSeverity','0'); INSERT INTO `config` VALUES ('MaxImageSize','300'); @@ -3819,7 +3819,7 @@ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2011-06-02 21:38:27 +-- Dump completed on 2011-06-03 21:59:24 SET FOREIGN_KEY_CHECKS = 1; UPDATE systypes SET typeno=0; INSERT INTO shippers VALUES (1,'Default Shipper',0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-05 23:46:09
|
Revision: 4588 http://web-erp.svn.sourceforge.net/web-erp/?rev=4588&view=rev Author: daintree Date: 2011-06-05 23:46:02 +0000 (Sun, 05 Jun 2011) Log Message: ----------- stock adjustment controlled items and completion of POrder items Modified Paths: -------------- trunk/BankMatching.php trunk/GoodsReceived.php trunk/PO_Items.php trunk/StockAdjustments.php trunk/StockAdjustmentsControlled.php trunk/doc/Change.log trunk/includes/Add_SerialItems.php trunk/includes/InputSerialItemsExisting.php trunk/includes/InputSerialItemsKeyed.php Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/BankMatching.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -243,7 +243,7 @@ $Outstanding = $myrow['amt']- $myrow['amountcleared']; if (ABS($Outstanding)<0.009){ /*the payment is cleared dont show the check box*/ - pprintf('<tr bgcolor="#CCCEEE"> + printf('<tr bgcolor="#CCCEEE"> <td>%s</td> <td>%s</td> <td class=number>%s</td> Modified: trunk/GoodsReceived.php =================================================================== --- trunk/GoodsReceived.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/GoodsReceived.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -140,16 +140,16 @@ //Now Display LineItem - echo '<td>' . $LnItm->StockID . '</td>'; - echo '<td>' . $LnItm->ItemDescription . '</td>'; - echo '<td class=number>' . $DisplaySupplierQtyOrd . '</td>'; - echo '<td>' . $LnItm->SuppliersUnit . '</td>'; - echo '<td class=number>' . $DisplaySupplierQtyRec . '</td>'; - echo '<td class=number>' . $LnItm->ConversionFactor . '</td>'; - echo '<td class=number>' . $DisplayQtyOrd . '</td>'; - echo '<td>' . $LnItm->Units . '</td>'; - echo '<td class=number>' . $DisplayQtyRec . '</td>'; - echo '<td class=number>'; + echo '<td>' . $LnItm->StockID . '</td> + <td>' . $LnItm->ItemDescription . '</td> + <td class=number>' . $DisplaySupplierQtyOrd . '</td> + <td>' . $LnItm->SuppliersUnit . '</td> + <td class=number>' . $DisplaySupplierQtyRec . '</td> + <td class=number>' . $LnItm->ConversionFactor . '</td> + <td class=number>' . $DisplayQtyOrd . '</td> + <td>' . $LnItm->Units . '</td> + <td class=number>' . $DisplayQtyRec . '</td> + <td class=number>'; if ($LnItm->Controlled == 1) { @@ -346,8 +346,8 @@ if ($OrderLine->StockID!='') { //Its a stock item line /*Need to get the current standard cost as it is now so we can process GL jorunals later*/ $SQL = "SELECT materialcost + labourcost + overheadcost as stdcost - FROM stockmaster - WHERE stockid='" . $OrderLine->StockID . "'"; + FROM stockmaster + WHERE stockid='" . $OrderLine->StockID . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The standard cost of the item being received cannot be retrieved because'); $DbgMsg = _('The following SQL to retrieve the standard cost was used'); $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); @@ -377,11 +377,10 @@ /*Now the SQL to do the update to the PurchOrderDetails */ if ($OrderLine->ReceiveQty >= ($OrderLine->Quantity - $OrderLine->QtyReceived)){ - $SQL = "UPDATE purchorderdetails SET - quantityrecd = quantityrecd + '" . $OrderLine->ReceiveQty . "', - stdcostunit='" . $_SESSION['PO'.$identifier]->LineItems[$OrderLine->LineNo]->StandardCost . "', - completed=1 - WHERE podetailitem = '" . $OrderLine->PODetailRec . "'"; + $SQL = "UPDATE purchorderdetails SET quantityrecd = quantityrecd + '" . $OrderLine->ReceiveQty . "', + stdcostunit='" . $_SESSION['PO'.$identifier]->LineItems[$OrderLine->LineNo]->StandardCost . "', + completed=1 + WHERE podetailitem = '" . $OrderLine->PODetailRec . "'"; } else { $SQL = "UPDATE purchorderdetails SET quantityrecd = quantityrecd + '" . $OrderLine->ReceiveQty . "', Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/PO_Items.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -42,7 +42,7 @@ if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))){ prnMsg(_('The quantity in the supplier units is expected to be numeric. Please re-enter as a number'),'error'); } else { //ok to update the PO object variables - $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))*doubleval(str_replace($locale_info['thousands_sep'],'',$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor)); + $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=round(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))*doubleval(str_replace($locale_info['thousands_sep'],'',$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor)),$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->DecimalPlaces); } if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppPrice'.$POLine->LineNo]))){ prnMsg(_('The supplier price is expected to be numeric. Please re-enter as a number'),'error'); Modified: trunk/StockAdjustments.php =================================================================== --- trunk/StockAdjustments.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/StockAdjustments.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -24,7 +24,12 @@ if (isset($_GET['StockID'])){ $StockID = trim(strtoupper($_GET['StockID'])); $_SESSION['Adjustment']->StockID = trim(strtoupper($StockID)); - $result = DB_query("SELECT description, controlled, serialised, decimalplaces FROM stockmaster WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db); + $result = DB_query("SELECT description, + controlled, + serialised, + decimalplaces + FROM stockmaster + WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db); $myrow = DB_fetch_array($result); $_SESSION['Adjustment']->ItemDescription = $myrow['description']; $_SESSION['Adjustment']->Controlled = $myrow['controlled']; @@ -59,18 +64,24 @@ '" alt="" />' . ' ' . _('Select Item to Adjust') . '</p>'; if (strlen($_POST['StockText'])>0) { - $sql="SELECT stockid, description from stockmaster where description like '%" . $_POST['StockText'] ."%'"; + $sql="SELECT stockid, description FROM stockmaster WHERE description " . LIKE . " '%" . $_POST['StockText'] ."%'"; } else { - $sql="SELECT stockid, description from stockmaster where stockid like '%" . $_POST['StockCode'] ."%'"; + $sql="SELECT stockid, description FROM stockmaster WHERE stockid " . LIKE . " '%" . $_POST['StockCode'] ."%'"; } $ErrMsg=_('The stock information cannot be retrieved because'); $DbgMsg=_('The SQL to get the stock description was'); $result = DB_query($sql,$db,$ErrMsg,$DbgMsg); - echo '<table class=selection><tr><th>'._('Stock Code').'</th><th>'._('Stock Description').'</th></tr>'; + echo '<table class="selection"> + <tr> + <th>'._('Stock Code').'</th> + <th>'._('Stock Description').'</th> + </tr>'; while ($myrow = DB_fetch_row($result)) { - echo '<tr><td>'.$myrow[0].'</td> + echo '<tr> + <td>'.$myrow[0].'</td> <td>'.$myrow[1].'</td> - <td><a href="StockAdjustments.php?StockID='.$myrow[0].'&Description='.$myrow[1].'">'._('Adjust').'</a></tr>'; + <td><a href="StockAdjustments.php?StockID='.$myrow[0].'&Description='.$myrow[1].'">'._('Adjust').'</a> + </tr>'; } echo '</table>'; include('includes/footer.inc'); Modified: trunk/StockAdjustmentsControlled.php =================================================================== --- trunk/StockAdjustmentsControlled.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/StockAdjustmentsControlled.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -1,5 +1,7 @@ <?php /* $Id$*/ + + include('includes/DefineSerialItems.php'); include('includes/DefineStockAdjustment.php'); include('includes/session.inc'); Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/doc/Change.log 2011-06-05 23:46:02 UTC (rev 4588) @@ -1,5 +1,8 @@ webERP Change Log +6/6/11 Phil: AddSerialItems.php from Stock Adjustment was not picking up single entries because of error in for loop condition fixed +5/6/11 Phil: BankMatching typo pprintf fixed + 3/6/11 Version 4.04.3 Release 2/6/11 Phil: ConfirmDispatchControlled_Invoice.php type include/InputSerialItems.php Modified: trunk/includes/Add_SerialItems.php =================================================================== --- trunk/includes/Add_SerialItems.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/includes/Add_SerialItems.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -6,29 +6,29 @@ /******************************************** Added KEYED Entry values ********************************************/ -if ( isset($_POST['AddBatches']) && $_POST['AddBatches']!='') { - +if ( (isset($_POST['AddBatches']) AND $_POST['AddBatches']!='')) { + for ($i=0;$i < 10;$i++){ - if(isset($_POST['SerialNo' . $i]) and strlen($_POST['SerialNo' . $i])>0){ + if(isset($_POST['SerialNo' . $i]) AND strlen($_POST['SerialNo' . $i])>0){ if ($ItemMustExist){ $ExistingBundleQty = ValidBundleRef($StockID, $LocationOut, $_POST['SerialNo' . $i]); - if ($ExistingBundleQty >0 or ($ExistingBundleQty==1 and $IsCredit=true)){ + if ($ExistingBundleQty >0 OR ($ExistingBundleQty==1 and $IsCredit=true)){ $AddThisBundle = true; /*If the user enters a duplicate serial number the later one over-writes the first entered one - no warning given though ? */ if ($_POST['Qty' . $i] > $ExistingBundleQty){ if ($LineItem->Serialised ==1){ - echo '<BR>'; + echo '<br />'; prnMsg ( $_POST['SerialNo' . $i] . ' ' . _('has already been sold'),'warning' ); $AddThisBundle = false; } elseif ($ExistingBundleQty==0) { /* and its a batch */ - echo '<BR>'; + echo '<br />'; prnMsg ( _('There is none of') . ' '. $_POST['SerialNo' . $i] . ' '. _('remaining').'.', 'warn'); $AddThisBundle = false; } else { - echo '<BR>'; + echo '<br />'; prnMsg ( _('There is only'). ' ' . $ExistingBundleQty . ' '._('of') . ' ' . $_POST['SerialNo' . $i] . ' '. _('remaining') . '. ' . _('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll'), @@ -42,7 +42,7 @@ } } /*end if ExistingBundleQty >0 */ else { - echo '<BR>'; + echo '<br />'; prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='.$_POST['SerialNo'. $i] . '" target=_blank>'.$_POST['SerialNo'. $i]. '</a> ' ._('not available') . '...' , '', 'Notice' ); unset($_POST['SerialNo' . $i]); } @@ -57,10 +57,10 @@ if ($LineItem->Serialised){ $ExistingQty = ValidBundleRef($StockID, $LocationOut, $NewSerialNo); if ($NewQty == 1 && $ExistingQty != 0){ - prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _("The Serial Number being added exists with a Quantity that is not Zero (0)!"), 'error' ); + prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _('The Serial Number being added exists with a Quantity that is not Zero (0)!'), 'error' ); $SerialError = true; } elseif ($NewQty == -1 && $ExistingQty != 1){ - prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _("The Serial Number being removed exists with a Quantity that is not One (1)!"), 'error'); + prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _('The Serial Number being removed exists with a Quantity that is not One (1)!'), 'error'); $SerialError = true; } } @@ -75,16 +75,14 @@ if (!isset($_POST['Bundles'])) { $_POST['Bundles']=0; } - echo count($_POST['Bundles']); - for ($i=0;$i < count($_POST['Bundles'])-1;$i++){ /*there is an entry in the multi select list box */ + //echo count($_POST['Bundles']); + 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) ); + $LineItem->SerialItems[$_POST['Bundles'][$i]] = new SerialItem ($_POST['Bundles'][$i], ($InOutModifier>0 ? 1:-1) ); } else { list($SerialNo, $Qty) = explode ('/|/', $_POST['Bundles'][$i]); if ($Qty != 0) { - - $LineItem->SerialItems[$SerialNo] = - new SerialItem ($SerialNo, $Qty*($InOutModifier>0?1:-1) ); + $LineItem->SerialItems[$SerialNo] = new SerialItem ($SerialNo, $Qty*($InOutModifier>0?1:-1) ); } } } @@ -171,13 +169,13 @@ /*If the user enters a duplicate serial number the later one over-writes the first entered one - no warning given though ? */ if ($NewQty > $ExistingBundleQty){ if ($LineItem->Serialised ==1){ - echo '<BR>' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.'; + echo '<br />' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.'; $AddThisBundle = false; } elseif ($ExistingBundleQty==0) { /* and its a batch */ - echo '<BR>' . _('There is none of'). ' <a href="/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.'; + echo '<br />' . _('There is none of'). ' <a href="/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.'; $AddThisBundle = false; } else { - echo '<BR>'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' . + echo '<br />'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('remaining') . '. '. _('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll'); $NewQty = $ExistingBundleQty; @@ -189,7 +187,7 @@ } } /*end if ExistingBundleQty >0 */ else { - echo '<BR>'; + echo '<br />'; prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('not available') ,'', 'Notice' ); } if (!$valid) $invalid_imports++; @@ -268,13 +266,13 @@ /*If the user enters a duplicate serial number the later one over-writes the first entered one - no warning given though ? */ if ($NewQty > $ExistingBundleQty){ if ($LineItem->Serialised ==1){ - echo '<BR>' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.'; + echo '<br />' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.'; $AddThisBundle = false; } elseif ($ExistingBundleQty==0) { /* and its a batch */ - echo '<BR>' . _('There is none of'). ' <a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.'; + echo '<br />' . _('There is none of'). ' <a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.'; $AddThisBundle = false; } else { - echo '<BR>'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' . + echo '<br />'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('remaining') . '. '. _('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll'); $NewQty = $ExistingBundleQty; @@ -286,7 +284,7 @@ } } /*end if ExistingBundleQty >0 */ else { - echo '<BR>'; + echo '<br />'; prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('not available') . '...' ,'', 'Notice' ); } if (!$valid) $invalid_imports++; Modified: trunk/includes/InputSerialItemsExisting.php =================================================================== --- trunk/includes/InputSerialItemsExisting.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/includes/InputSerialItemsExisting.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -9,59 +9,60 @@ **/ if ($_POST['EntryType'] == 'KEYED'){ /*Also a multi select box for adding bundles to the dispatch without keying */ - $sql = "SELECT serialno, quantity + $sql = "SELECT serialno, quantity FROM stockserialitems - WHERE stockid='" . $StockID . "' AND loccode ='" . - $LocationOut."' AND quantity > 0"; - //echo $sql; + WHERE stockid='" . $StockID . "' + AND loccode ='" . $LocationOut."' + AND quantity > 0"; $ErrMsg = '<br />'. _('Could not retrieve the items for'). ' ' . $StockID; - $Bundles = DB_query($sql,$db, $ErrMsg ); - echo '<table class=selection><tr>'; - if (DB_num_rows($Bundles)>0){ - $AllSerials=array(); + $Bundles = DB_query($sql,$db, $ErrMsg ); + echo '<table class="selection"><tr>'; + if (DB_num_rows($Bundles)>0){ + $AllSerials=array(); foreach ($LineItem->SerialItems as $Itm){ $AllSerials[$Itm->BundleRef] = $Itm->BundleQty; } - + echo '<td valign="top"><b>'. _('Select Existing Items'). '</b><br />'; - - echo '<form action="' . $_SERVER['PHP_SELF'] . '?=' . SID . '" method="POST">'; + + echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="POST">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type=hidden name="LineNo" value="' . $LineNo . '"> - <input type="hidden" name="StockID" value="' . $StockID . '"> - <input type="hidden" name="EntryType" value="KEYED"> - <input type=hidden name="identifier" value="' . $identifier . '"> + echo '<input type=hidden name="LineNo" value="' . $LineNo . '"> + <input type="hidden" name="StockID" value="' . $StockID . '"> + <input type="hidden" name="EntryType" value="KEYED"> + <input type=hidden name="identifier" value="' . $identifier . '"> <input type="hidden" name="EditControlled" value="true"> - <select Name=Bundles[] multiple>'; - - $id=0; + <select name=Bundles[] multiple>'; + + $id=0; $ItemsAvailable=0; - while ($myrow=DB_fetch_array($Bundles,$db)){ + while ($myrow=DB_fetch_array($Bundles,$db)){ if ($LineItem->Serialised==1){ if ( !array_key_exists($myrow['serialno'], $AllSerials) ){ - echo '<option value="' . $myrow['serialno'] . '">' . $myrow['serialno'].'</option>'; + echo '<option value="' . $myrow['serialno'] . '">' . $myrow['serialno'].'</option>'; $ItemsAvailable++; } - } else { - if ( !array_key_exists($myrow['serialno'], $AllSerials) || + } else { + if ( !array_key_exists($myrow['serialno'], $AllSerials) OR ($myrow['quantity'] - $AllSerials[$myrow['serialno']] >= 0) ) { + $RecvQty = $myrow['quantity'] - $AllSerials[$myrow['serialno']]; - echo '<OPTION VALUE="' . $myrow['serialno'] . '/|/'. $RecvQty .'">' . - $myrow['serialno'].' - ' . _('Qty left'). ': ' . $RecvQty . '</OPTION>'; + echo '<option value="' . $myrow['serialno'] . '/|/'. $RecvQty .'">' . $myrow['serialno'].' - ' . _('Qty left'). ': ' . $RecvQty . '</option>'; $ItemsAvailable += $RecvQty; - } + } } - } - echo '</select><br>'; - echo '<br><div class=centre><input type=submit name="AddBatches" value="'. _('Enter'). '"></div><br />'; + } + echo '</select> + <br />'; + echo '<br /><div class="centre"><input type="submit" name="AddBatches" value="'. _('Enter'). '"></div> + <br />'; echo '</form>'; echo $ItemsAvailable . ' ' . _('items available'); echo '</td>'; - } else { + } else { echo '<td>'. prnMsg( _('There does not appear to be any of') . ' ' . $StockID . ' ' . _('left in'). ' '. $LocationOut , 'warn') . '</td>'; } - - echo '</tr></table>'; + echo '</tr></table>'; } \ No newline at end of file Modified: trunk/includes/InputSerialItemsKeyed.php =================================================================== --- trunk/includes/InputSerialItemsKeyed.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/includes/InputSerialItemsKeyed.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -21,7 +21,9 @@ /*Display the batches already entered with quantities if not serialised */ -echo '<table class=selection><tr><td valign=top><table class=selection>'; +echo '<table class="selection"> + <tr><td valign=top> + <table class="selection">'; echo $tableheader; $TotalQuantity = 0; /*Variable to accumulate total quantity received */ @@ -80,10 +82,10 @@ echo '<form action="' . $_SERVER['PHP_SELF'] . '" name="Ga6uF5Wa" method="post"> - <input type=hidden name=LineNo value="' . $LineNo . '"> - <input type=hidden name=StockID value="' . $StockID . '"> + <input type=hidden name="LineNo" value="' . $LineNo . '"> + <input type=hidden name="StockID" value="' . $StockID . '"> <input type=hidden name="identifier" value="' . $identifier . '"> - <input type=hidden name=EntryType value="KEYED">'; + <input type=hidden name="EntryType" value="KEYED">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if ( isset($_GET['EditControlled']) ) { $EditControlled = isset($_GET['EditControlled'])?$_GET['EditControlled']:false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-05 23:46:09
|
Revision: 4588 http://web-erp.svn.sourceforge.net/web-erp/?rev=4588&view=rev Author: daintree Date: 2011-06-05 23:46:02 +0000 (Sun, 05 Jun 2011) Log Message: ----------- stock adjustment controlled items and completion of POrder items Modified Paths: -------------- trunk/BankMatching.php trunk/GoodsReceived.php trunk/PO_Items.php trunk/StockAdjustments.php trunk/StockAdjustmentsControlled.php trunk/doc/Change.log trunk/includes/Add_SerialItems.php trunk/includes/InputSerialItemsExisting.php trunk/includes/InputSerialItemsKeyed.php Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/BankMatching.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -243,7 +243,7 @@ $Outstanding = $myrow['amt']- $myrow['amountcleared']; if (ABS($Outstanding)<0.009){ /*the payment is cleared dont show the check box*/ - pprintf('<tr bgcolor="#CCCEEE"> + printf('<tr bgcolor="#CCCEEE"> <td>%s</td> <td>%s</td> <td class=number>%s</td> Modified: trunk/GoodsReceived.php =================================================================== --- trunk/GoodsReceived.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/GoodsReceived.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -140,16 +140,16 @@ //Now Display LineItem - echo '<td>' . $LnItm->StockID . '</td>'; - echo '<td>' . $LnItm->ItemDescription . '</td>'; - echo '<td class=number>' . $DisplaySupplierQtyOrd . '</td>'; - echo '<td>' . $LnItm->SuppliersUnit . '</td>'; - echo '<td class=number>' . $DisplaySupplierQtyRec . '</td>'; - echo '<td class=number>' . $LnItm->ConversionFactor . '</td>'; - echo '<td class=number>' . $DisplayQtyOrd . '</td>'; - echo '<td>' . $LnItm->Units . '</td>'; - echo '<td class=number>' . $DisplayQtyRec . '</td>'; - echo '<td class=number>'; + echo '<td>' . $LnItm->StockID . '</td> + <td>' . $LnItm->ItemDescription . '</td> + <td class=number>' . $DisplaySupplierQtyOrd . '</td> + <td>' . $LnItm->SuppliersUnit . '</td> + <td class=number>' . $DisplaySupplierQtyRec . '</td> + <td class=number>' . $LnItm->ConversionFactor . '</td> + <td class=number>' . $DisplayQtyOrd . '</td> + <td>' . $LnItm->Units . '</td> + <td class=number>' . $DisplayQtyRec . '</td> + <td class=number>'; if ($LnItm->Controlled == 1) { @@ -346,8 +346,8 @@ if ($OrderLine->StockID!='') { //Its a stock item line /*Need to get the current standard cost as it is now so we can process GL jorunals later*/ $SQL = "SELECT materialcost + labourcost + overheadcost as stdcost - FROM stockmaster - WHERE stockid='" . $OrderLine->StockID . "'"; + FROM stockmaster + WHERE stockid='" . $OrderLine->StockID . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The standard cost of the item being received cannot be retrieved because'); $DbgMsg = _('The following SQL to retrieve the standard cost was used'); $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); @@ -377,11 +377,10 @@ /*Now the SQL to do the update to the PurchOrderDetails */ if ($OrderLine->ReceiveQty >= ($OrderLine->Quantity - $OrderLine->QtyReceived)){ - $SQL = "UPDATE purchorderdetails SET - quantityrecd = quantityrecd + '" . $OrderLine->ReceiveQty . "', - stdcostunit='" . $_SESSION['PO'.$identifier]->LineItems[$OrderLine->LineNo]->StandardCost . "', - completed=1 - WHERE podetailitem = '" . $OrderLine->PODetailRec . "'"; + $SQL = "UPDATE purchorderdetails SET quantityrecd = quantityrecd + '" . $OrderLine->ReceiveQty . "', + stdcostunit='" . $_SESSION['PO'.$identifier]->LineItems[$OrderLine->LineNo]->StandardCost . "', + completed=1 + WHERE podetailitem = '" . $OrderLine->PODetailRec . "'"; } else { $SQL = "UPDATE purchorderdetails SET quantityrecd = quantityrecd + '" . $OrderLine->ReceiveQty . "', Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/PO_Items.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -42,7 +42,7 @@ if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))){ prnMsg(_('The quantity in the supplier units is expected to be numeric. Please re-enter as a number'),'error'); } else { //ok to update the PO object variables - $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))*doubleval(str_replace($locale_info['thousands_sep'],'',$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor)); + $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=round(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))*doubleval(str_replace($locale_info['thousands_sep'],'',$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor)),$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->DecimalPlaces); } if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppPrice'.$POLine->LineNo]))){ prnMsg(_('The supplier price is expected to be numeric. Please re-enter as a number'),'error'); Modified: trunk/StockAdjustments.php =================================================================== --- trunk/StockAdjustments.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/StockAdjustments.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -24,7 +24,12 @@ if (isset($_GET['StockID'])){ $StockID = trim(strtoupper($_GET['StockID'])); $_SESSION['Adjustment']->StockID = trim(strtoupper($StockID)); - $result = DB_query("SELECT description, controlled, serialised, decimalplaces FROM stockmaster WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db); + $result = DB_query("SELECT description, + controlled, + serialised, + decimalplaces + FROM stockmaster + WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db); $myrow = DB_fetch_array($result); $_SESSION['Adjustment']->ItemDescription = $myrow['description']; $_SESSION['Adjustment']->Controlled = $myrow['controlled']; @@ -59,18 +64,24 @@ '" alt="" />' . ' ' . _('Select Item to Adjust') . '</p>'; if (strlen($_POST['StockText'])>0) { - $sql="SELECT stockid, description from stockmaster where description like '%" . $_POST['StockText'] ."%'"; + $sql="SELECT stockid, description FROM stockmaster WHERE description " . LIKE . " '%" . $_POST['StockText'] ."%'"; } else { - $sql="SELECT stockid, description from stockmaster where stockid like '%" . $_POST['StockCode'] ."%'"; + $sql="SELECT stockid, description FROM stockmaster WHERE stockid " . LIKE . " '%" . $_POST['StockCode'] ."%'"; } $ErrMsg=_('The stock information cannot be retrieved because'); $DbgMsg=_('The SQL to get the stock description was'); $result = DB_query($sql,$db,$ErrMsg,$DbgMsg); - echo '<table class=selection><tr><th>'._('Stock Code').'</th><th>'._('Stock Description').'</th></tr>'; + echo '<table class="selection"> + <tr> + <th>'._('Stock Code').'</th> + <th>'._('Stock Description').'</th> + </tr>'; while ($myrow = DB_fetch_row($result)) { - echo '<tr><td>'.$myrow[0].'</td> + echo '<tr> + <td>'.$myrow[0].'</td> <td>'.$myrow[1].'</td> - <td><a href="StockAdjustments.php?StockID='.$myrow[0].'&Description='.$myrow[1].'">'._('Adjust').'</a></tr>'; + <td><a href="StockAdjustments.php?StockID='.$myrow[0].'&Description='.$myrow[1].'">'._('Adjust').'</a> + </tr>'; } echo '</table>'; include('includes/footer.inc'); Modified: trunk/StockAdjustmentsControlled.php =================================================================== --- trunk/StockAdjustmentsControlled.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/StockAdjustmentsControlled.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -1,5 +1,7 @@ <?php /* $Id$*/ + + include('includes/DefineSerialItems.php'); include('includes/DefineStockAdjustment.php'); include('includes/session.inc'); Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/doc/Change.log 2011-06-05 23:46:02 UTC (rev 4588) @@ -1,5 +1,8 @@ webERP Change Log +6/6/11 Phil: AddSerialItems.php from Stock Adjustment was not picking up single entries because of error in for loop condition fixed +5/6/11 Phil: BankMatching typo pprintf fixed + 3/6/11 Version 4.04.3 Release 2/6/11 Phil: ConfirmDispatchControlled_Invoice.php type include/InputSerialItems.php Modified: trunk/includes/Add_SerialItems.php =================================================================== --- trunk/includes/Add_SerialItems.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/includes/Add_SerialItems.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -6,29 +6,29 @@ /******************************************** Added KEYED Entry values ********************************************/ -if ( isset($_POST['AddBatches']) && $_POST['AddBatches']!='') { - +if ( (isset($_POST['AddBatches']) AND $_POST['AddBatches']!='')) { + for ($i=0;$i < 10;$i++){ - if(isset($_POST['SerialNo' . $i]) and strlen($_POST['SerialNo' . $i])>0){ + if(isset($_POST['SerialNo' . $i]) AND strlen($_POST['SerialNo' . $i])>0){ if ($ItemMustExist){ $ExistingBundleQty = ValidBundleRef($StockID, $LocationOut, $_POST['SerialNo' . $i]); - if ($ExistingBundleQty >0 or ($ExistingBundleQty==1 and $IsCredit=true)){ + if ($ExistingBundleQty >0 OR ($ExistingBundleQty==1 and $IsCredit=true)){ $AddThisBundle = true; /*If the user enters a duplicate serial number the later one over-writes the first entered one - no warning given though ? */ if ($_POST['Qty' . $i] > $ExistingBundleQty){ if ($LineItem->Serialised ==1){ - echo '<BR>'; + echo '<br />'; prnMsg ( $_POST['SerialNo' . $i] . ' ' . _('has already been sold'),'warning' ); $AddThisBundle = false; } elseif ($ExistingBundleQty==0) { /* and its a batch */ - echo '<BR>'; + echo '<br />'; prnMsg ( _('There is none of') . ' '. $_POST['SerialNo' . $i] . ' '. _('remaining').'.', 'warn'); $AddThisBundle = false; } else { - echo '<BR>'; + echo '<br />'; prnMsg ( _('There is only'). ' ' . $ExistingBundleQty . ' '._('of') . ' ' . $_POST['SerialNo' . $i] . ' '. _('remaining') . '. ' . _('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll'), @@ -42,7 +42,7 @@ } } /*end if ExistingBundleQty >0 */ else { - echo '<BR>'; + echo '<br />'; prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='.$_POST['SerialNo'. $i] . '" target=_blank>'.$_POST['SerialNo'. $i]. '</a> ' ._('not available') . '...' , '', 'Notice' ); unset($_POST['SerialNo' . $i]); } @@ -57,10 +57,10 @@ if ($LineItem->Serialised){ $ExistingQty = ValidBundleRef($StockID, $LocationOut, $NewSerialNo); if ($NewQty == 1 && $ExistingQty != 0){ - prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _("The Serial Number being added exists with a Quantity that is not Zero (0)!"), 'error' ); + prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _('The Serial Number being added exists with a Quantity that is not Zero (0)!'), 'error' ); $SerialError = true; } elseif ($NewQty == -1 && $ExistingQty != 1){ - prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _("The Serial Number being removed exists with a Quantity that is not One (1)!"), 'error'); + prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _('The Serial Number being removed exists with a Quantity that is not One (1)!'), 'error'); $SerialError = true; } } @@ -75,16 +75,14 @@ if (!isset($_POST['Bundles'])) { $_POST['Bundles']=0; } - echo count($_POST['Bundles']); - for ($i=0;$i < count($_POST['Bundles'])-1;$i++){ /*there is an entry in the multi select list box */ + //echo count($_POST['Bundles']); + 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) ); + $LineItem->SerialItems[$_POST['Bundles'][$i]] = new SerialItem ($_POST['Bundles'][$i], ($InOutModifier>0 ? 1:-1) ); } else { list($SerialNo, $Qty) = explode ('/|/', $_POST['Bundles'][$i]); if ($Qty != 0) { - - $LineItem->SerialItems[$SerialNo] = - new SerialItem ($SerialNo, $Qty*($InOutModifier>0?1:-1) ); + $LineItem->SerialItems[$SerialNo] = new SerialItem ($SerialNo, $Qty*($InOutModifier>0?1:-1) ); } } } @@ -171,13 +169,13 @@ /*If the user enters a duplicate serial number the later one over-writes the first entered one - no warning given though ? */ if ($NewQty > $ExistingBundleQty){ if ($LineItem->Serialised ==1){ - echo '<BR>' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.'; + echo '<br />' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.'; $AddThisBundle = false; } elseif ($ExistingBundleQty==0) { /* and its a batch */ - echo '<BR>' . _('There is none of'). ' <a href="/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.'; + echo '<br />' . _('There is none of'). ' <a href="/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.'; $AddThisBundle = false; } else { - echo '<BR>'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' . + echo '<br />'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('remaining') . '. '. _('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll'); $NewQty = $ExistingBundleQty; @@ -189,7 +187,7 @@ } } /*end if ExistingBundleQty >0 */ else { - echo '<BR>'; + echo '<br />'; prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('not available') ,'', 'Notice' ); } if (!$valid) $invalid_imports++; @@ -268,13 +266,13 @@ /*If the user enters a duplicate serial number the later one over-writes the first entered one - no warning given though ? */ if ($NewQty > $ExistingBundleQty){ if ($LineItem->Serialised ==1){ - echo '<BR>' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.'; + echo '<br />' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.'; $AddThisBundle = false; } elseif ($ExistingBundleQty==0) { /* and its a batch */ - echo '<BR>' . _('There is none of'). ' <a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.'; + echo '<br />' . _('There is none of'). ' <a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.'; $AddThisBundle = false; } else { - echo '<BR>'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' . + echo '<br />'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('remaining') . '. '. _('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll'); $NewQty = $ExistingBundleQty; @@ -286,7 +284,7 @@ } } /*end if ExistingBundleQty >0 */ else { - echo '<BR>'; + echo '<br />'; prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('not available') . '...' ,'', 'Notice' ); } if (!$valid) $invalid_imports++; Modified: trunk/includes/InputSerialItemsExisting.php =================================================================== --- trunk/includes/InputSerialItemsExisting.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/includes/InputSerialItemsExisting.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -9,59 +9,60 @@ **/ if ($_POST['EntryType'] == 'KEYED'){ /*Also a multi select box for adding bundles to the dispatch without keying */ - $sql = "SELECT serialno, quantity + $sql = "SELECT serialno, quantity FROM stockserialitems - WHERE stockid='" . $StockID . "' AND loccode ='" . - $LocationOut."' AND quantity > 0"; - //echo $sql; + WHERE stockid='" . $StockID . "' + AND loccode ='" . $LocationOut."' + AND quantity > 0"; $ErrMsg = '<br />'. _('Could not retrieve the items for'). ' ' . $StockID; - $Bundles = DB_query($sql,$db, $ErrMsg ); - echo '<table class=selection><tr>'; - if (DB_num_rows($Bundles)>0){ - $AllSerials=array(); + $Bundles = DB_query($sql,$db, $ErrMsg ); + echo '<table class="selection"><tr>'; + if (DB_num_rows($Bundles)>0){ + $AllSerials=array(); foreach ($LineItem->SerialItems as $Itm){ $AllSerials[$Itm->BundleRef] = $Itm->BundleQty; } - + echo '<td valign="top"><b>'. _('Select Existing Items'). '</b><br />'; - - echo '<form action="' . $_SERVER['PHP_SELF'] . '?=' . SID . '" method="POST">'; + + echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="POST">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<input type=hidden name="LineNo" value="' . $LineNo . '"> - <input type="hidden" name="StockID" value="' . $StockID . '"> - <input type="hidden" name="EntryType" value="KEYED"> - <input type=hidden name="identifier" value="' . $identifier . '"> + echo '<input type=hidden name="LineNo" value="' . $LineNo . '"> + <input type="hidden" name="StockID" value="' . $StockID . '"> + <input type="hidden" name="EntryType" value="KEYED"> + <input type=hidden name="identifier" value="' . $identifier . '"> <input type="hidden" name="EditControlled" value="true"> - <select Name=Bundles[] multiple>'; - - $id=0; + <select name=Bundles[] multiple>'; + + $id=0; $ItemsAvailable=0; - while ($myrow=DB_fetch_array($Bundles,$db)){ + while ($myrow=DB_fetch_array($Bundles,$db)){ if ($LineItem->Serialised==1){ if ( !array_key_exists($myrow['serialno'], $AllSerials) ){ - echo '<option value="' . $myrow['serialno'] . '">' . $myrow['serialno'].'</option>'; + echo '<option value="' . $myrow['serialno'] . '">' . $myrow['serialno'].'</option>'; $ItemsAvailable++; } - } else { - if ( !array_key_exists($myrow['serialno'], $AllSerials) || + } else { + if ( !array_key_exists($myrow['serialno'], $AllSerials) OR ($myrow['quantity'] - $AllSerials[$myrow['serialno']] >= 0) ) { + $RecvQty = $myrow['quantity'] - $AllSerials[$myrow['serialno']]; - echo '<OPTION VALUE="' . $myrow['serialno'] . '/|/'. $RecvQty .'">' . - $myrow['serialno'].' - ' . _('Qty left'). ': ' . $RecvQty . '</OPTION>'; + echo '<option value="' . $myrow['serialno'] . '/|/'. $RecvQty .'">' . $myrow['serialno'].' - ' . _('Qty left'). ': ' . $RecvQty . '</option>'; $ItemsAvailable += $RecvQty; - } + } } - } - echo '</select><br>'; - echo '<br><div class=centre><input type=submit name="AddBatches" value="'. _('Enter'). '"></div><br />'; + } + echo '</select> + <br />'; + echo '<br /><div class="centre"><input type="submit" name="AddBatches" value="'. _('Enter'). '"></div> + <br />'; echo '</form>'; echo $ItemsAvailable . ' ' . _('items available'); echo '</td>'; - } else { + } else { echo '<td>'. prnMsg( _('There does not appear to be any of') . ' ' . $StockID . ' ' . _('left in'). ' '. $LocationOut , 'warn') . '</td>'; } - - echo '</tr></table>'; + echo '</tr></table>'; } \ No newline at end of file Modified: trunk/includes/InputSerialItemsKeyed.php =================================================================== --- trunk/includes/InputSerialItemsKeyed.php 2011-06-03 09:53:57 UTC (rev 4587) +++ trunk/includes/InputSerialItemsKeyed.php 2011-06-05 23:46:02 UTC (rev 4588) @@ -21,7 +21,9 @@ /*Display the batches already entered with quantities if not serialised */ -echo '<table class=selection><tr><td valign=top><table class=selection>'; +echo '<table class="selection"> + <tr><td valign=top> + <table class="selection">'; echo $tableheader; $TotalQuantity = 0; /*Variable to accumulate total quantity received */ @@ -80,10 +82,10 @@ echo '<form action="' . $_SERVER['PHP_SELF'] . '" name="Ga6uF5Wa" method="post"> - <input type=hidden name=LineNo value="' . $LineNo . '"> - <input type=hidden name=StockID value="' . $StockID . '"> + <input type=hidden name="LineNo" value="' . $LineNo . '"> + <input type=hidden name="StockID" value="' . $StockID . '"> <input type=hidden name="identifier" value="' . $identifier . '"> - <input type=hidden name=EntryType value="KEYED">'; + <input type=hidden name="EntryType" value="KEYED">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if ( isset($_GET['EditControlled']) ) { $EditControlled = isset($_GET['EditControlled'])?$_GET['EditControlled']:false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-06 08:16:05
|
Revision: 4589 http://web-erp.svn.sourceforge.net/web-erp/?rev=4589&view=rev Author: daintree Date: 2011-06-06 08:15:59 +0000 (Mon, 06 Jun 2011) Log Message: ----------- Credit_Invoice.php currencies table duplicated in SQL Modified Paths: -------------- trunk/Credit_Invoice.php trunk/doc/Change.log trunk/doc/README.txt Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2011-06-05 23:46:02 UTC (rev 4588) +++ trunk/Credit_Invoice.php 2011-06-06 08:15:59 UTC (rev 4589) @@ -60,8 +60,6 @@ stockmoves.transno=debtortrans.transno INNER JOIN locations ON stockmoves.loccode = locations.loccode - INNER JOIN currencies ON - debtorsmaster.currcode=currencies.currabrev WHERE debtortrans.transno = '" . $_GET['InvoiceNumber'] . "' AND debtortrans.type=10 AND stockmoves.type=10"; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-05 23:46:02 UTC (rev 4588) +++ trunk/doc/Change.log 2011-06-06 08:15:59 UTC (rev 4589) @@ -1,5 +1,6 @@ webERP Change Log +6/6/11 Phil: Currencies table included 2 x in SQL for getting invoice details in Credit_Invoice.php 6/6/11 Phil: AddSerialItems.php from Stock Adjustment was not picking up single entries because of error in for loop condition fixed 5/6/11 Phil: BankMatching typo pprintf fixed Modified: trunk/doc/README.txt =================================================================== --- trunk/doc/README.txt 2011-06-05 23:46:02 UTC (rev 4588) +++ trunk/doc/README.txt 2011-06-06 08:15:59 UTC (rev 4589) @@ -2,7 +2,7 @@ /* $Id$*/ -Version 4.03 of webERP +Version 4.x of webERP Now fully utf-8 compatible. Now reports can be created in any language using the utf-8 character set, the resultant pdf reports use Adobe CID fonts and the fonts that come with the Adobe Acrobat reader on client computers. This avoids the problem of large pdf downloads on the creation of reports as the alternative is to bundle the enormous utf-8 fonts with the reports. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-06 08:16:05
|
Revision: 4589 http://web-erp.svn.sourceforge.net/web-erp/?rev=4589&view=rev Author: daintree Date: 2011-06-06 08:15:59 +0000 (Mon, 06 Jun 2011) Log Message: ----------- Credit_Invoice.php currencies table duplicated in SQL Modified Paths: -------------- trunk/Credit_Invoice.php trunk/doc/Change.log trunk/doc/README.txt Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2011-06-05 23:46:02 UTC (rev 4588) +++ trunk/Credit_Invoice.php 2011-06-06 08:15:59 UTC (rev 4589) @@ -60,8 +60,6 @@ stockmoves.transno=debtortrans.transno INNER JOIN locations ON stockmoves.loccode = locations.loccode - INNER JOIN currencies ON - debtorsmaster.currcode=currencies.currabrev WHERE debtortrans.transno = '" . $_GET['InvoiceNumber'] . "' AND debtortrans.type=10 AND stockmoves.type=10"; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-05 23:46:02 UTC (rev 4588) +++ trunk/doc/Change.log 2011-06-06 08:15:59 UTC (rev 4589) @@ -1,5 +1,6 @@ webERP Change Log +6/6/11 Phil: Currencies table included 2 x in SQL for getting invoice details in Credit_Invoice.php 6/6/11 Phil: AddSerialItems.php from Stock Adjustment was not picking up single entries because of error in for loop condition fixed 5/6/11 Phil: BankMatching typo pprintf fixed Modified: trunk/doc/README.txt =================================================================== --- trunk/doc/README.txt 2011-06-05 23:46:02 UTC (rev 4588) +++ trunk/doc/README.txt 2011-06-06 08:15:59 UTC (rev 4589) @@ -2,7 +2,7 @@ /* $Id$*/ -Version 4.03 of webERP +Version 4.x of webERP Now fully utf-8 compatible. Now reports can be created in any language using the utf-8 character set, the resultant pdf reports use Adobe CID fonts and the fonts that come with the Adobe Acrobat reader on client computers. This avoids the problem of large pdf downloads on the creation of reports as the alternative is to bundle the enormous utf-8 fonts with the reports. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-07 10:03:10
|
Revision: 4590 http://web-erp.svn.sourceforge.net/web-erp/?rev=4590&view=rev Author: daintree Date: 2011-06-07 10:03:04 +0000 (Tue, 07 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/EmailCustTrans.php trunk/doc/Change.log Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2011-06-06 08:15:59 UTC (rev 4589) +++ trunk/EmailCustTrans.php 2011-06-07 10:03:04 UTC (rev 4590) @@ -1,9 +1,7 @@ <?php -/* $Revision: 1.8 $ */ + /* $Id$*/ -//$PageSecurity = 2; - include ('includes/session.inc'); include ('includes/SQL_CommonFunctions.inc'); @@ -19,13 +17,13 @@ if (isset($_POST['DoIt']) AND IsEmailAddress($_POST['EmailAddr'])){ if ($_SESSION['InvoicePortraitFormat']==0){ - echo "<meta http-equiv='Refresh' content='0; url=" . $rootpath . '/PrintCustTrans.php?' . SID . '&FromTransNo=' . $_POST['TransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . "'>"; + echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PrintCustTrans.php?FromTransNo=' . $_POST['TransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">'; - prnMsg(_('The transaction should have been emailed off') . '. ' . _('If this does not happen') . ' (' . _('if the browser does not support META Refresh') . ')' . "<a href='" . $rootpath . '/PrintCustTrans.php?' . SID . '&FromTransNo=' . $_POST['FromTransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . "'>" . _('click here') . '</a> ' . _('to email the customer transaction'),'success'); + prnMsg(_('The transaction should have been emailed off') . '. ' . _('If this does not happen') . ' (' . _('if the browser does not support META Refresh') . ')' . '<a href="' . $rootpath . '/PrintCustTrans.php?FromTransNo=' . $_POST['FromTransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">' . _('click here') . '</a> ' . _('to email the customer transaction'),'success'); } else { - echo "<meta http-equiv='Refresh' content='0; url=" . $rootpath . '/PrintCustTransPortrait.php?' . SID . '&FromTransNo=' . $_POST['TransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . "'>"; + echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PrintCustTransPortrait.php?FromTransNo=' . $_POST['TransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">'; - prnMsg(_('The transaction should have been emailed off. If this does not happen (perhaps the browser does not support META Refresh)') . '<a href="' . $rootpath . '/PrintCustTransPortrait.php?' . SID . '&FromTransNo=' . $_POST['FromTransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">' . _('click here') . '</a> ' . _('to email the customer transaction'),'success'); + prnMsg(_('The transaction should have been emailed off. If this does not happen (perhaps the browser does not support META Refresh)') . '<a href="' . $rootpath . '/PrintCustTransPortrait.php?FromTransNo=' . $_POST['FromTransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">' . _('click here') . '</a> ' . _('to email the customer transaction'),'success'); } exit; } elseif (isset($_POST['DoIt'])) { @@ -40,8 +38,8 @@ echo '<form action="' . $_SERVER['PHP_SELF'] . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input type=hidden name="TransNo" VALUE="' . $_GET['FromTransNo'] . '">'; -echo '<input type=hidden name="InvOrCredit" VALUE="' . $_GET['InvOrCredit'] . '>'; +echo '<input type=hidden name="TransNo" value="' . $_GET['FromTransNo'] . '">'; +echo '<input type=hidden name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '">'; echo '<br /><table>'; @@ -49,8 +47,8 @@ FROM custbranch INNER JOIN debtortrans ON custbranch.debtorno= debtortrans.debtorno AND custbranch.branchcode=debtortrans.branchcode - WHERE debtortrans.type=$TypeCode - AND debtortrans.transno=" .$_GET['FromTransNo']; + WHERE debtortrans.type='" . $TypeCode . "' + AND debtortrans.transno='" .$_GET['FromTransNo'] . "'"; $ErrMsg = _('There was a problem retrieving the contact details for the customer'); $ContactResult=DB_query($SQL,$db,$ErrMsg); @@ -63,10 +61,10 @@ } echo '<tr><td>' . _('Email') . ' ' . $_GET['InvOrCredit'] . ' ' . _('number') . ' ' . $_GET['FromTransNo'] . ' ' . _('to') . ':</td> - <td><input type=TEXT name="EmailAddr" maxlength=60 size=60 VALUE="' . $EmailAddress . '"></td> + <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '"></td> </table>'; -echo '<br><div class="centre"><input type=submit name="DoIt" VALUE="' . _('OK') . '">'; +echo '<br><div class="centre"><input type=submit name="DoIt" value="' . _('OK') . '">'; echo '</div></form>'; include ('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-06 08:15:59 UTC (rev 4589) +++ trunk/doc/Change.log 2011-06-07 10:03:04 UTC (rev 4590) @@ -1,5 +1,6 @@ webERP Change Log +7/6/11 Phil: EmailCustTrans.php missing closing quote off input hidden InvOrCredit value 6/6/11 Phil: Currencies table included 2 x in SQL for getting invoice details in Credit_Invoice.php 6/6/11 Phil: AddSerialItems.php from Stock Adjustment was not picking up single entries because of error in for loop condition fixed 5/6/11 Phil: BankMatching typo pprintf fixed This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-07 10:03:10
|
Revision: 4590 http://web-erp.svn.sourceforge.net/web-erp/?rev=4590&view=rev Author: daintree Date: 2011-06-07 10:03:04 +0000 (Tue, 07 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/EmailCustTrans.php trunk/doc/Change.log Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2011-06-06 08:15:59 UTC (rev 4589) +++ trunk/EmailCustTrans.php 2011-06-07 10:03:04 UTC (rev 4590) @@ -1,9 +1,7 @@ <?php -/* $Revision: 1.8 $ */ + /* $Id$*/ -//$PageSecurity = 2; - include ('includes/session.inc'); include ('includes/SQL_CommonFunctions.inc'); @@ -19,13 +17,13 @@ if (isset($_POST['DoIt']) AND IsEmailAddress($_POST['EmailAddr'])){ if ($_SESSION['InvoicePortraitFormat']==0){ - echo "<meta http-equiv='Refresh' content='0; url=" . $rootpath . '/PrintCustTrans.php?' . SID . '&FromTransNo=' . $_POST['TransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . "'>"; + echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PrintCustTrans.php?FromTransNo=' . $_POST['TransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">'; - prnMsg(_('The transaction should have been emailed off') . '. ' . _('If this does not happen') . ' (' . _('if the browser does not support META Refresh') . ')' . "<a href='" . $rootpath . '/PrintCustTrans.php?' . SID . '&FromTransNo=' . $_POST['FromTransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . "'>" . _('click here') . '</a> ' . _('to email the customer transaction'),'success'); + prnMsg(_('The transaction should have been emailed off') . '. ' . _('If this does not happen') . ' (' . _('if the browser does not support META Refresh') . ')' . '<a href="' . $rootpath . '/PrintCustTrans.php?FromTransNo=' . $_POST['FromTransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">' . _('click here') . '</a> ' . _('to email the customer transaction'),'success'); } else { - echo "<meta http-equiv='Refresh' content='0; url=" . $rootpath . '/PrintCustTransPortrait.php?' . SID . '&FromTransNo=' . $_POST['TransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . "'>"; + echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PrintCustTransPortrait.php?FromTransNo=' . $_POST['TransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">'; - prnMsg(_('The transaction should have been emailed off. If this does not happen (perhaps the browser does not support META Refresh)') . '<a href="' . $rootpath . '/PrintCustTransPortrait.php?' . SID . '&FromTransNo=' . $_POST['FromTransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">' . _('click here') . '</a> ' . _('to email the customer transaction'),'success'); + prnMsg(_('The transaction should have been emailed off. If this does not happen (perhaps the browser does not support META Refresh)') . '<a href="' . $rootpath . '/PrintCustTransPortrait.php?FromTransNo=' . $_POST['FromTransNo'] . '&PrintPDF=Yes&InvOrCredit=' . $_POST['InvOrCredit'] .'&Email=' . $_POST['EmailAddr'] . '">' . _('click here') . '</a> ' . _('to email the customer transaction'),'success'); } exit; } elseif (isset($_POST['DoIt'])) { @@ -40,8 +38,8 @@ echo '<form action="' . $_SERVER['PHP_SELF'] . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<input type=hidden name="TransNo" VALUE="' . $_GET['FromTransNo'] . '">'; -echo '<input type=hidden name="InvOrCredit" VALUE="' . $_GET['InvOrCredit'] . '>'; +echo '<input type=hidden name="TransNo" value="' . $_GET['FromTransNo'] . '">'; +echo '<input type=hidden name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '">'; echo '<br /><table>'; @@ -49,8 +47,8 @@ FROM custbranch INNER JOIN debtortrans ON custbranch.debtorno= debtortrans.debtorno AND custbranch.branchcode=debtortrans.branchcode - WHERE debtortrans.type=$TypeCode - AND debtortrans.transno=" .$_GET['FromTransNo']; + WHERE debtortrans.type='" . $TypeCode . "' + AND debtortrans.transno='" .$_GET['FromTransNo'] . "'"; $ErrMsg = _('There was a problem retrieving the contact details for the customer'); $ContactResult=DB_query($SQL,$db,$ErrMsg); @@ -63,10 +61,10 @@ } echo '<tr><td>' . _('Email') . ' ' . $_GET['InvOrCredit'] . ' ' . _('number') . ' ' . $_GET['FromTransNo'] . ' ' . _('to') . ':</td> - <td><input type=TEXT name="EmailAddr" maxlength=60 size=60 VALUE="' . $EmailAddress . '"></td> + <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '"></td> </table>'; -echo '<br><div class="centre"><input type=submit name="DoIt" VALUE="' . _('OK') . '">'; +echo '<br><div class="centre"><input type=submit name="DoIt" value="' . _('OK') . '">'; echo '</div></form>'; include ('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-06 08:15:59 UTC (rev 4589) +++ trunk/doc/Change.log 2011-06-07 10:03:04 UTC (rev 4590) @@ -1,5 +1,6 @@ webERP Change Log +7/6/11 Phil: EmailCustTrans.php missing closing quote off input hidden InvOrCredit value 6/6/11 Phil: Currencies table included 2 x in SQL for getting invoice details in Credit_Invoice.php 6/6/11 Phil: AddSerialItems.php from Stock Adjustment was not picking up single entries because of error in for loop condition fixed 5/6/11 Phil: BankMatching typo pprintf fixed This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-09 10:33:45
|
Revision: 4591 http://web-erp.svn.sourceforge.net/web-erp/?rev=4591&view=rev Author: daintree Date: 2011-06-09 10:33:38 +0000 (Thu, 09 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/CustomerBranches.php trunk/PcExpensesTypeTab.php trunk/Prices.php trunk/SalesPeople.php trunk/SalesTypes.php trunk/UpgradeDatabase.php trunk/WWW_Users.php trunk/doc/Change.log trunk/includes/ConnectDB.inc trunk/includes/LanguageSetup.php Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/CustomerBranches.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -571,13 +571,19 @@ $_POST['BranchCode']=''; } echo '<p Class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="">' . ' ' . _('Add a Branch').'</p>'; - echo '<table class=selection><tr><td>'._('Branch Code'). ':</td> - <td><input ' .(in_array('BranchCode',$Errors) ? 'class="inputerror"' : '' ) . ' tabindex=1 type="text" name="BranchCode" size=12 maxlength=10 value="' . $_POST['BranchCode'] . '"></td></tr>'; + echo '<table class=selection> + <tr> + <td>'._('Branch Code'). ':</td> + <td><input ' .(in_array('BranchCode',$Errors) ? 'class="inputerror"' : '' ) . ' tabindex=1 type="text" name="BranchCode" size=12 maxlength=10 value="' . $_POST['BranchCode'] . '"></td> + </tr>'; $_POST['DeliverBlind'] = $_SESSION['DefaultBlindPackNote']; } //SQL to poulate account selection boxes - $sql = "SELECT salesmanname, salesmancode FROM salesman"; + $sql = "SELECT salesmanname, + salesmancode + FROM salesman + WHERE current = 1"; $result = DB_query($sql,$db); @@ -592,12 +598,16 @@ echo '<input type=hidden name="DebtorNo" value="'. $DebtorNo . '" />'; - echo '<tr><td>'._('Branch Name').':</td>'; + echo '<tr> + <td>'._('Branch Name').':</td>'; if (!isset($_POST['BrName'])) {$_POST['BrName']='';} - echo '<td><input tabindex=2 type="text" name="BrName" size=41 maxlength=40 value="'. $_POST['BrName'].'"></td></tr>'; - echo '<tr><td>'._('Branch Contact').':</td>'; + echo '<td><input tabindex=2 type="text" name="BrName" size=41 maxlength=40 value="'. $_POST['BrName'].'"></td> + </tr>'; + echo '<tr> + <td>'._('Branch Contact').':</td>'; if (!isset($_POST['ContactName'])) {$_POST['ContactName']='';} - echo '<td><input tabindex=3 type="text" name="ContactName" size=41 maxlength=40 value="'. $_POST['ContactName'].'"></td></tr>'; + echo '<td><input tabindex=3 type="text" name="ContactName" size=41 maxlength=40 value="'. $_POST['ContactName'].'"></td> + </tr>'; echo '<tr><td>'._('Street Address 1 (Street)').':</td>'; if (!isset($_POST['BrAddress1'])) {$_POST['BrAddress1']='';} echo '<td><input tabindex=4 type="text" name="BrAddress1" size=41 maxlength=40 value="'. $_POST['BrAddress1'].'"></td></tr>'; @@ -635,7 +645,7 @@ } else { echo '<option value='; } - echo $myrow['salesmancode'] . '>' . $myrow['salesmanname']; + echo $myrow['salesmancode'] . '>' . $myrow['salesmanname'] . '</option>'; } //end while loop @@ -643,7 +653,7 @@ DB_data_seek($result,0); - $sql = 'SELECT areacode, areadescription FROM areas'; + $sql = "SELECT areacode, areadescription FROM areas"; $result = DB_query($sql,$db); if (DB_num_rows($result)==0){ echo '</table>'; @@ -661,7 +671,7 @@ } else { echo '<option value="'; } - echo $myrow['areacode'] . '">' . $myrow['areadescription']; + echo $myrow['areacode'] . '">' . $myrow['areadescription'] . '</option>'; } //end while loop @@ -705,7 +715,7 @@ if (!isset($_POST['Email'])) {$_POST['Email']='';} echo '<tr><td>'.(($_POST['Email']) ? '<a href="Mailto:'.$_POST['Email'].'">'._('Email').':</a>' : _('Email').':').'</td>'; //only display email link if there is an email address - echo '<td><input tabindex=18 type="Text" name="Email" size=56 maxlength=55 value="'. $_POST['Email'].'"></td></tr>'; + echo '<td><input tabindex=18 type="text" name="Email" size=56 maxlength=55 value="'. $_POST['Email'].'"></td></tr>'; echo '<tr><td>'._('Tax Group').':</td>'; echo '<td><select tabindex=19 name="TaxGroup">'; Modified: trunk/PcExpensesTypeTab.php =================================================================== --- trunk/PcExpensesTypeTab.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/PcExpensesTypeTab.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -182,7 +182,7 @@ printf('<td>%s</td> <td>%s</td> - <td><a href="%s?SelectedType=%s&delete=yes&SelectedTab=' . $SelectedTab . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this code and the expense it may have set up?') . '\');">' . _('Delete') . '</td> + <td><a href="%s?SelectedType=%s&delete=yes&SelectedTab=' . $SelectedTab . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this expense code?') . '\');">' . _('Delete') . '</td> </tr>', $myrow['codeexpense'], $myrow['description'], Modified: trunk/Prices.php =================================================================== --- trunk/Prices.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/Prices.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -108,7 +108,7 @@ $result = DB_query($sql, $db); $myrow = DB_fetch_row($result); - echo $myrow[0]; + if ($myrow[0]!=0) { prnMsg( _('This price has already been entered. To change it you should edit it') , 'warn'); $InputError =1; @@ -353,6 +353,8 @@ /*This is quite complicated - the idea is that prices set up should be unique and there is no way two prices could be returned as valid - when getting a price in includes/GetPrice.inc the logic is to first look for a price of the salestype/currency within the effective start and end dates - then if not get the price with a start date prior but a blank end date (the default price). We would not want two prices where one price falls inside another effective date range except in the case of a blank end date - ie no end date - the default price for the currency/salestype. I first thought that we would need to update the previous default price (blank end date), when a new default price is entered, to have an end date of the startdate of this new default price less 1 day - but this is converting a default price into a special price which could result in having two special prices over the same date range - best to leave it unchanged and use logic in the GetPrice.inc to ensure the correct default price is returned + * + * After further discussion (Ricard) if the new price has a blank end date - i.e. no end then the pre-existing price with no end date should be changed to have an end date just prior to the new default (no end date) price commencing */ //this is just the case where debtorno='' - see the Prices_Customer.php script for customer special prices $SQL = "SELECT price, @@ -394,6 +396,34 @@ $EndDate = $myrow['enddate']; $Price = $myrow['price']; } // end of loop around all prices + + //Now look for duplicate prices with no end + $SQL = "SELECT price, + startdate, + enddate + FROM prices + WHERE debtorno='' + AND stockid='" . $Item . "' + AND currabrev='" . $CurrAbbrev . "' + AND typeabbrev='" . $PriceList . "' + AND enddate ='0000-00-00' + ORDER BY startdate"; + $result = DB_query($SQL,$db); + $NewEndDate = FormatDateForSQL(DateAdd(Date($_SESSION['DefaultDateFormat']),'d',-1)); + + for ($i=1;$i< DB_num_rows($result);$i++) { + $myrow = DB_fetch_array($result); + /*Need to make the end date the new start date less 1 day */ + $SQL = "UPDATE prices SET enddate = '" . $NewEndDate . "' + WHERE stockid ='" .$Item . "' + AND currabrev='" . $CurrAbbrev . "' + AND typeabbrev='" . $PriceList . "' + AND startdate ='" . $myrow['startdate'] . "' + AND enddate = '0000-00-00' + AND debtorno =''"; + $UpdateResult = DB_query($SQL,$db); + } // end of loop around duplicate no end date prices + } // end function ReSequenceEffectiveDates ?> \ No newline at end of file Modified: trunk/SalesPeople.php =================================================================== --- trunk/SalesPeople.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/SalesPeople.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -1,8 +1,6 @@ <?php /* $Id$*/ -//$PageSecurity = 3; - include('includes/session.inc'); $title = _('Sales People Maintenance'); include('includes/header.inc'); @@ -78,6 +76,9 @@ if (!isset($_POST['Breakpoint'])){ $_POST['Breakpoint']=0; } + if (!isset($_POST['Current'])){ + $_POST['Current']=0; + } if (isset($SelectedSaleperson) AND $InputError !=1) { @@ -88,7 +89,8 @@ smantel='" . $_POST['SManTel'] . "', smanfax='" . $_POST['SManFax'] . "', breakpoint='" . $_POST['Breakpoint'] . "', - commissionrate2='" . $_POST['CommissionRate2'] . "' + commissionrate2='" . $_POST['CommissionRate2'] . "', + current='" . $_POST['Current'] . "' WHERE salesmancode = '".$SelectedSaleperson."'"; $msg = _('Salesperson record for') . ' ' . $_POST['SalesmanName'] . ' ' . _('has been updated'); @@ -102,14 +104,16 @@ commissionrate2, breakpoint, smantel, - smanfax) + smanfax, + current) VALUES ('" . $_POST['SalesmanCode'] . "', '" . $_POST['SalesmanName'] . "', '" . $_POST['CommissionRate1'] . "', '" . $_POST['CommissionRate2'] . "', '" . $_POST['Breakpoint'] . "', '" . $_POST['SManTel'] . "', - '" . $_POST['SManFax'] . "' + '" . $_POST['SManFax'] . "', + '" . $_POST['Current'] . "' )"; $msg = _('A new salesperson record has been added for') . ' ' . $_POST['SalesmanName']; @@ -130,6 +134,7 @@ unset($_POST['Breakpoint']); unset($_POST['SManFax']); unset($_POST['SManTel']); + unset($_POST['Current']); } } elseif (isset($_GET['delete'])) { @@ -176,7 +181,8 @@ smanfax, commissionrate1, breakpoint, - commissionrate2 + commissionrate2, + current FROM salesman"; $result = DB_query($sql,$db); @@ -187,7 +193,8 @@ <th>' . _('Facsimile') . '</th> <th>' . _('Comm Rate 1') . '</th> <th>' . _('Break') . '</th> - <th>' . _('Comm Rate 2') . '</th></tr>'; + <th>' . _('Comm Rate 2') . '</th> + <th>' . _('Current') . '</th></tr>'; $k=0; while ($myrow=DB_fetch_row($result)) { @@ -198,6 +205,7 @@ echo '<tr class="OddTableRows">'; $k++; } + if ($myrow[7] == 1) $ActiveText = _("Yes"); else $ActiveText = _("No"); printf(' <td>%s</td> @@ -207,6 +215,7 @@ <td class=number>%s</td> <td class=number>%s</td> <td class=number>%s</td> + <td>%s</td> <td><a href="%sSelectedSaleperson=%s">'. _('Edit') . '</a></td> <td><a href="%sSelectedSaleperson=%s&delete=1">' . _('Delete') . '</a></td> </tr>', @@ -217,6 +226,7 @@ $myrow[4], $myrow[5], $myrow[6], + $ActiveText, $_SERVER['PHP_SELF'] . '?' . SID . '&', $myrow[0], $_SERVER['PHP_SELF'] . '?' . SID . '&', @@ -244,7 +254,8 @@ smanfax, commissionrate1, breakpoint, - commissionrate2 + commissionrate2, + current FROM salesman WHERE salesmancode='".$SelectedSaleperson."'"; @@ -258,6 +269,7 @@ $_POST['CommissionRate1'] = $myrow['commissionrate1']; $_POST['Breakpoint'] = $myrow['breakpoint']; $_POST['CommissionRate2'] = $myrow['commissionrate2']; + $_POST['Current'] = $myrow['current']; echo '<input type=hidden name="SelectedSaleperson" VALUE="' . $SelectedSaleperson . '">'; @@ -288,8 +300,10 @@ if (!isset($_POST['Breakpoint'])){ $_POST['Breakpoint']=0; } + if (!isset($_POST['Current'])){ + $_POST['Current']=0; + } - echo '<tr><td>' . _('Salesperson Name') . ':</td><td><input type="text" '. (in_array('SalesmanName',$Errors) ? 'class="inputerror"' : '' ) .' name="SalesmanName" size=30 maxlength=30 VALUE="' . $_POST['SalesmanName'] . '"></td></tr>'; echo '<tr><td>' . _('Telephone No') . ':</td><td><input type="text" name="SManTel" size=20 maxlength=20 VALUE="' . $_POST['SManTel'] . '"></td></tr>'; echo '<tr><td>' . _('Facsimile No') . ':</td><td><input type="text" name="SManFax" size=20 maxlength=20 VALUE="' . $_POST['SManFax'] . '"></td></tr>'; @@ -297,6 +311,19 @@ echo '<tr><td>' . _('Breakpoint') . ':</td><td><input type="text" class=number name="Breakpoint" size=6 maxlength=6 VALUE="' . $_POST['Breakpoint'] . '"></td></tr>'; echo '<tr><td>' . _('Commission Rate 2') . ':</td><td><input type="text" class=number name="CommissionRate2" size=5 maxlength=5 VALUE="' . $_POST['CommissionRate2']. '"></td></tr>'; + echo '<tr><td>' . _('Current?') . ':</td><td><select name="Current">'; + if ($_POST['Current']==1){ + echo '<option selected value=1>' . _('Yes') . '</option>'; + } else { + echo '<option value=1>' . _('Yes') . '</option>'; + } + if ($_POST['Current']==0){ + echo '<option selected value=0>' . _('No') . '</option>'; + } else { + echo '<option value=0>' . _('No') . '</option>'; + } + echo '</select></td></tr>'; + echo '</table>'; echo '<br /><div class="centre"><input type="Submit" name="submit" value="' . _('Enter Information') . '"></div>'; Modified: trunk/SalesTypes.php =================================================================== --- trunk/SalesTypes.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/SalesTypes.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -40,6 +40,11 @@ prnMsg( _('The sales type (price list) code cannot be an empty string or spaces'),'error'); $Errors[$i] = 'SalesType'; $i++; + } elseif( trim($_POST['Sales_Type'])==''){ + $InputError = 1; + prnMsg (_('The sales type (price list) description cannot be empty'),'error'); + $Errors[$i] = 'SalesType'; + $i++; } elseif (strlen($_POST['Sales_Type']) >40) { $InputError = 1; echo prnMsg(_('The sales type (price list) description must be forty characters or less long'),'error'); @@ -155,12 +160,12 @@ prnMsg (_('Cannot delete this sale type because customers are currently set up to use this sales type') . '<br>' . _('There are') . ' ' . $myrow[0] . ' ' . _('customers with this sales type code')); } else { - $sql="DELETE FROM salestypes WHERE typeabbrev='".$SelectedType."'"; + $sql="DELETE FROM salestypes WHERE typeabbrev='" . $SelectedType . "'"; $ErrMsg = _('The Sales Type record could not be deleted because'); $result = DB_query($sql,$db,$ErrMsg); prnMsg(_('Sales type') . ' / ' . _('price list') . ' ' . $SelectedType . ' ' . _('has been deleted') ,'success'); - $sql ="DELETE FROM prices WHERE prices.typeabbrev='SelectedType'"; + $sql ="DELETE FROM prices WHERE prices.typeabbrev='" . $SelectedType . "'"; $ErrMsg = _('The Sales Type prices could not be deleted because'); $result = DB_query($sql,$db,$ErrMsg); Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/UpgradeDatabase.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -1,207 +1,209 @@ -<?php -/* $Id UpgradeDatabase.php 4183 2010-12-14 09:30:20Z daintree $ */ - -$PageSecurity = 15; //hard coded in case database is old and PageSecurity stuff cannot be retrieved - -include('includes/session.inc'); -$title = _('Upgrade webERP Database'); -include('includes/header.inc'); - -if (!isset($_POST['DoUpgrade'])){ - - prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts'),'info'); - echo '<p><form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; - echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - - if (!isset($_SESSION['VersionNumber'])){ - prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is not actually recorded at this version'),'info'); - echo '<table><tr><td>' . _('Select the version you are upgrading from:') . '</td> - <td><select name="OldVersion" >'; - echo '<option selected value="Manual">' . _('Apply database changes manually') . '</option>'; - echo '<option value="3.00">' . _('Version 3.00') . '</option>'; - echo '<option value="3.01">' . _('Version 3.01') . '</option>'; - echo '<option value="3.02">' . _('Version 3.02') . '</option>'; - echo '<option value="3.03">' . _('Version 3.03') . '</option>'; - echo '<option value="3.04">' . _('Version 3.04') . '</option>'; - echo '<option value="3.05">' . _('Version 3.05') . '</option>'; - echo '<option value="3.06">' . _('Version 3.06') . '</option>'; - echo '<option value="3.07">' . _('Version 3.07') . '</option>'; - echo '<option value="3.08">' . _('Version 3.08') . '</option>'; - echo '<option value="3.09">' . _('Version 3.09') . '</option>'; - echo '<option value="3.10">' . _('Version 3.10') . '</option>'; - echo '<option value="3.11.x">' . _('Version 3.11 or 4.01 - 4.02') . '</option>'; - echo '</select></td></tr></table>'; - } else { - if ($_SESSION['VersionNumber']=='4.00RC1'){ - $_SESSION['VersionNumber']='3.12'; - } - prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is') . ' ' . $_SESSION['VersionNumber'],'info'); - echo '<input type="hidden" name="OldVersion" value="' . $_SESSION['VersionNumber'] . '" />'; - } - - echo '<div class="centre"><input type="submit" name="DoUpgrade" value="' . _('Perform Database Upgrade') . '" /></div>'; - echo '</form>'; -} - -if (isset($_POST['DoUpgrade'])){ - - if ($dbType=='mysql' OR $dbType =='mysqli'){ - - /* First do a backup - $BackupFile = $PathPrefix . './companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; - $Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . $BackupFile; - system($Command); - - //this could be a weighty file attachment!! - include('includes/htmlMimeMail.php'); - $mail = new htmlMimeMail(); - $attachment = $mail->getFile( $BackupFile); - $mail->setText(_('webERP backup file attached')); - $mail->addAttachment($attachment, $BackupFile, 'application/gz'); - $mail->setSubject(_('Database Backup')); - $mail->setFrom($_SESSION['CompanyRecord']['coyname'] . '<' . $_SESSION['CompanyRecord']['email'] . '>'); - $result = $mail->send(array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>')); - - prnMsg(_('A backup of the database has been taken and emailed to you'), 'info'); - unlink($BackupFile); // would be a security issue to leave it there for all to download/see - - */ - - $SQLScripts = array(); - - if ($_POST['OldVersion']=='Manual') { - prnMsg(_('No datbase updates have been done as you selected to apply these manually - upgrade SQL scripts are under sql/mysql/ directory in the distribution'),'info'); - } else { //we are into automatically applying database upgrades - - prnMsg(_('If there are any failures then please check with your system administrator. Please read all notes carefully to ensure they are expected'),'info'); - switch ($_POST['OldVersion']) { - //since there are no "break" statements subsequent upgrade scripts will be added to the array - case '3.00': - $SQLScripts[] = './sql/mysql/upgrade3.00-3.01.sql'; - case '3.01': - $SQLScripts[] = './sql/mysql/upgrade3.01-3.02.sql'; - case '3.02': - $SQLScripts[] = './sql/mysql/upgrade3.02-3.03.sql'; - case '3.03': - $SQLScripts[] = './sql/mysql/upgrade3.03-3.04.sql'; - case '3.04': - $SQLScripts[] = './sql/mysql/upgrade3.04-3.05.sql'; - case '3.05': - $SQLScripts[] = './sql/mysql/upgrade3.05-3.06.sql'; - case '3.06': - $SQLScripts[] = './sql/mysql/upgrade3.06-3.07.sql'; - case '3.07': - $SQLScripts[] = './sql/mysql/upgrade3.07-3.08.sql'; - case '3.08': - case '3.09': - $SQLScripts[] = './sql/mysql/upgrade3.09-3.10.sql'; - case '3.10': - $SQLScripts[] = './sql/mysql/upgrade3.10-3.11.sql'; - case '3.11.x': - case '3.11.1': - case '3.11.2': - case '3.11.3': - case '3.12.32': - case '4.0RC1': - case '4.01': - case '4.02': - case '4.03RC1': - case '4.03RC2': - case '4.03': - case '4.03.2': - case '4.03.3': - case '4.03.5': - case '4.03.6': - case '4.03.7': - $SQLScripts[] = './sql/mysql/upgrade3.11.1-4.00.sql'; - case '4.03.8': - $SQLScripts[] = './sql/mysql/upgrade4.03-4.04.sql'; - case '4.04': - $SQLScripts[] = './sql/mysql/upgrade4.04-4.04.1.sql'; - break; - } //end switch - } - } else { //dbType is not mysql or mysqli - prnMsg(_('Only mysql upgrades are performed seamlessly at this time. Your database will need to be manually updated'),'info'); - } - - $result = DB_IgnoreForeignKeys($db); - - foreach ($SQLScripts AS $SQLScriptFile) { - - $SQLEntries = file($SQLScriptFile); - $ScriptFileEntries = sizeof($SQLEntries); - $sql =''; - $InAFunction = false; - echo '<br /><table> - <tr><th colspan=2>' . _('Applying') . ' ' . $SQLScriptFile . '</th></tr>'; - - for ($i=0; $i<=$ScriptFileEntries; $i++) { - - $SQLEntries[$i] = trim($SQLEntries[$i]); - - if (substr($SQLEntries[$i], 0, 2) != '--' - AND substr($SQLEntries[$i], 0, 3) != 'USE' - AND strstr($SQLEntries[$i],'/*')==FALSE - AND strlen($SQLEntries[$i])>1){ - - $sql .= ' ' . $SQLEntries[$i]; - - //check if this line kicks off a function definition - pg chokes otherwise - if (substr($SQLEntries[$i],0,15) == 'CREATE FUNCTION'){ - $InAFunction = true; - } - //check if this line completes a function definition - pg chokes otherwise - if (substr($SQLEntries[$i],0,8) == 'LANGUAGE'){ - $InAFunction = false; - } - if (strpos($SQLEntries[$i],';')>0 AND ! $InAFunction){ - $sql = substr($sql,0,strlen($sql)-1); - $result = DB_query($sql, $db, '','', false, false); - echo '<tr><td>' . $sql . '</td>'; - switch (DB_error_no($db)) { - case 0: - echo '<td bgcolor="green">'._('Success').'</td></tr>'; - break; - case 1050: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Table has already been created').'</td></tr>'; - break; - case 1054: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Column has already been changed').'</td></tr>'; - break; - case 1060: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Column has already been created').'</td></tr>'; - break; - case 1061: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Index already exists').'</td></tr>'; - break; - case 1062: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Entry has already been done').'</td></tr>'; - break; - case 1064: - echo '<td bgcolor="red">'._('Note').' - '. _('SQL syntax error. The SQL error message is'). ' ' . DB_error_msg($db) . '</td></tr>'; - break; - case 1068: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Primary key already exists').'</td></tr>'; - break; - case 1091: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Index already dropped previously').'</td></tr>'; - break; - default: - echo '<td bgcolor="red">'._('Failure').' - '. _('Error number').' - '.DB_error_no($db) .' ' . DB_error_msg($db) . '</td></tr>'; - break; - } - $sql=''; - } - } //end if its a valid sql line not a comment - } //end of for loop around the lines of the sql script - echo '</table>'; - } //end of loop around SQLScripts apply - $result =DB_ReinstateForeignKeys($db); - /*Now get the modified VersionNumber and script pagesecurities */ - $ForceConfigReload=true; - include('includes/GetConfig.php'); -} /*Dont do upgrade */ - -include('includes/footer.inc'); +<?php +/* $Id UpgradeDatabase.php 4183 2010-12-14 09:30:20Z daintree $ */ + +$PageSecurity = 15; //hard coded in case database is old and PageSecurity stuff cannot be retrieved + +include('includes/session.inc'); +$title = _('Upgrade webERP Database'); +include('includes/header.inc'); + +if (!isset($_POST['DoUpgrade'])){ + + prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts'),'info'); + echo '<p><form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; + echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + + if (!isset($_SESSION['VersionNumber'])){ + prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is not actually recorded at this version'),'info'); + echo '<table><tr><td>' . _('Select the version you are upgrading from:') . '</td> + <td><select name="OldVersion" >'; + echo '<option selected value="Manual">' . _('Apply database changes manually') . '</option>'; + echo '<option value="3.00">' . _('Version 3.00') . '</option>'; + echo '<option value="3.01">' . _('Version 3.01') . '</option>'; + echo '<option value="3.02">' . _('Version 3.02') . '</option>'; + echo '<option value="3.03">' . _('Version 3.03') . '</option>'; + echo '<option value="3.04">' . _('Version 3.04') . '</option>'; + echo '<option value="3.05">' . _('Version 3.05') . '</option>'; + echo '<option value="3.06">' . _('Version 3.06') . '</option>'; + echo '<option value="3.07">' . _('Version 3.07') . '</option>'; + echo '<option value="3.08">' . _('Version 3.08') . '</option>'; + echo '<option value="3.09">' . _('Version 3.09') . '</option>'; + echo '<option value="3.10">' . _('Version 3.10') . '</option>'; + echo '<option value="3.11.x">' . _('Version 3.11 or 4.01 - 4.02') . '</option>'; + echo '</select></td></tr></table>'; + } else { + if ($_SESSION['VersionNumber']=='4.00RC1'){ + $_SESSION['VersionNumber']='3.12'; + } + prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is') . ' ' . $_SESSION['VersionNumber'],'info'); + echo '<input type="hidden" name="OldVersion" value="' . $_SESSION['VersionNumber'] . '" />'; + } + + echo '<div class="centre"><input type="submit" name="DoUpgrade" value="' . _('Perform Database Upgrade') . '" /></div>'; + echo '</form>'; +} + +if (isset($_POST['DoUpgrade'])){ + + if ($dbType=='mysql' OR $dbType =='mysqli'){ + + /* First do a backup + $BackupFile = $PathPrefix . './companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; + $Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . $BackupFile; + system($Command); + + //this could be a weighty file attachment!! + include('includes/htmlMimeMail.php'); + $mail = new htmlMimeMail(); + $attachment = $mail->getFile( $BackupFile); + $mail->setText(_('webERP backup file attached')); + $mail->addAttachment($attachment, $BackupFile, 'application/gz'); + $mail->setSubject(_('Database Backup')); + $mail->setFrom($_SESSION['CompanyRecord']['coyname'] . '<' . $_SESSION['CompanyRecord']['email'] . '>'); + $result = $mail->send(array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>')); + + prnMsg(_('A backup of the database has been taken and emailed to you'), 'info'); + unlink($BackupFile); // would be a security issue to leave it there for all to download/see + + */ + + $SQLScripts = array(); + + if ($_POST['OldVersion']=='Manual') { + prnMsg(_('No datbase updates have been done as you selected to apply these manually - upgrade SQL scripts are under sql/mysql/ directory in the distribution'),'info'); + } else { //we are into automatically applying database upgrades + + prnMsg(_('If there are any failures then please check with your system administrator. Please read all notes carefully to ensure they are expected'),'info'); + switch ($_POST['OldVersion']) { + //since there are no "break" statements subsequent upgrade scripts will be added to the array + case '3.00': + $SQLScripts[] = './sql/mysql/upgrade3.00-3.01.sql'; + case '3.01': + $SQLScripts[] = './sql/mysql/upgrade3.01-3.02.sql'; + case '3.02': + $SQLScripts[] = './sql/mysql/upgrade3.02-3.03.sql'; + case '3.03': + $SQLScripts[] = './sql/mysql/upgrade3.03-3.04.sql'; + case '3.04': + $SQLScripts[] = './sql/mysql/upgrade3.04-3.05.sql'; + case '3.05': + $SQLScripts[] = './sql/mysql/upgrade3.05-3.06.sql'; + case '3.06': + $SQLScripts[] = './sql/mysql/upgrade3.06-3.07.sql'; + case '3.07': + $SQLScripts[] = './sql/mysql/upgrade3.07-3.08.sql'; + case '3.08': + case '3.09': + $SQLScripts[] = './sql/mysql/upgrade3.09-3.10.sql'; + case '3.10': + $SQLScripts[] = './sql/mysql/upgrade3.10-3.11.sql'; + case '3.11.x': + case '3.11.1': + case '3.11.2': + case '3.11.3': + case '3.12.32': + case '4.0RC1': + case '4.01': + case '4.02': + case '4.03RC1': + case '4.03RC2': + case '4.03': + case '4.03.2': + case '4.03.3': + case '4.03.5': + case '4.03.6': + case '4.03.7': + $SQLScripts[] = './sql/mysql/upgrade3.11.1-4.00.sql'; + case '4.03.8': + $SQLScripts[] = './sql/mysql/upgrade4.03-4.04.sql'; + case '4.04': + $SQLScripts[] = './sql/mysql/upgrade4.04-4.04.1.sql'; + case '4.04.1': + $SQLScripts[] = './sql/mysql/upgrade4.04.1-4.04.4.sql'; + break; + } //end switch + } + } else { //dbType is not mysql or mysqli + prnMsg(_('Only mysql upgrades are performed seamlessly at this time. Your database will need to be manually updated'),'info'); + } + + $result = DB_IgnoreForeignKeys($db); + + foreach ($SQLScripts AS $SQLScriptFile) { + + $SQLEntries = file($SQLScriptFile); + $ScriptFileEntries = sizeof($SQLEntries); + $sql =''; + $InAFunction = false; + echo '<br /><table> + <tr><th colspan=2>' . _('Applying') . ' ' . $SQLScriptFile . '</th></tr>'; + + for ($i=0; $i<=$ScriptFileEntries; $i++) { + + $SQLEntries[$i] = trim($SQLEntries[$i]); + + if (substr($SQLEntries[$i], 0, 2) != '--' + AND substr($SQLEntries[$i], 0, 3) != 'USE' + AND strstr($SQLEntries[$i],'/*')==FALSE + AND strlen($SQLEntries[$i])>1){ + + $sql .= ' ' . $SQLEntries[$i]; + + //check if this line kicks off a function... [truncated message content] |
From: <dai...@us...> - 2011-06-09 10:33:47
|
Revision: 4591 http://web-erp.svn.sourceforge.net/web-erp/?rev=4591&view=rev Author: daintree Date: 2011-06-09 10:33:38 +0000 (Thu, 09 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/CustomerBranches.php trunk/PcExpensesTypeTab.php trunk/Prices.php trunk/SalesPeople.php trunk/SalesTypes.php trunk/UpgradeDatabase.php trunk/WWW_Users.php trunk/doc/Change.log trunk/includes/ConnectDB.inc trunk/includes/LanguageSetup.php Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/CustomerBranches.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -571,13 +571,19 @@ $_POST['BranchCode']=''; } echo '<p Class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="">' . ' ' . _('Add a Branch').'</p>'; - echo '<table class=selection><tr><td>'._('Branch Code'). ':</td> - <td><input ' .(in_array('BranchCode',$Errors) ? 'class="inputerror"' : '' ) . ' tabindex=1 type="text" name="BranchCode" size=12 maxlength=10 value="' . $_POST['BranchCode'] . '"></td></tr>'; + echo '<table class=selection> + <tr> + <td>'._('Branch Code'). ':</td> + <td><input ' .(in_array('BranchCode',$Errors) ? 'class="inputerror"' : '' ) . ' tabindex=1 type="text" name="BranchCode" size=12 maxlength=10 value="' . $_POST['BranchCode'] . '"></td> + </tr>'; $_POST['DeliverBlind'] = $_SESSION['DefaultBlindPackNote']; } //SQL to poulate account selection boxes - $sql = "SELECT salesmanname, salesmancode FROM salesman"; + $sql = "SELECT salesmanname, + salesmancode + FROM salesman + WHERE current = 1"; $result = DB_query($sql,$db); @@ -592,12 +598,16 @@ echo '<input type=hidden name="DebtorNo" value="'. $DebtorNo . '" />'; - echo '<tr><td>'._('Branch Name').':</td>'; + echo '<tr> + <td>'._('Branch Name').':</td>'; if (!isset($_POST['BrName'])) {$_POST['BrName']='';} - echo '<td><input tabindex=2 type="text" name="BrName" size=41 maxlength=40 value="'. $_POST['BrName'].'"></td></tr>'; - echo '<tr><td>'._('Branch Contact').':</td>'; + echo '<td><input tabindex=2 type="text" name="BrName" size=41 maxlength=40 value="'. $_POST['BrName'].'"></td> + </tr>'; + echo '<tr> + <td>'._('Branch Contact').':</td>'; if (!isset($_POST['ContactName'])) {$_POST['ContactName']='';} - echo '<td><input tabindex=3 type="text" name="ContactName" size=41 maxlength=40 value="'. $_POST['ContactName'].'"></td></tr>'; + echo '<td><input tabindex=3 type="text" name="ContactName" size=41 maxlength=40 value="'. $_POST['ContactName'].'"></td> + </tr>'; echo '<tr><td>'._('Street Address 1 (Street)').':</td>'; if (!isset($_POST['BrAddress1'])) {$_POST['BrAddress1']='';} echo '<td><input tabindex=4 type="text" name="BrAddress1" size=41 maxlength=40 value="'. $_POST['BrAddress1'].'"></td></tr>'; @@ -635,7 +645,7 @@ } else { echo '<option value='; } - echo $myrow['salesmancode'] . '>' . $myrow['salesmanname']; + echo $myrow['salesmancode'] . '>' . $myrow['salesmanname'] . '</option>'; } //end while loop @@ -643,7 +653,7 @@ DB_data_seek($result,0); - $sql = 'SELECT areacode, areadescription FROM areas'; + $sql = "SELECT areacode, areadescription FROM areas"; $result = DB_query($sql,$db); if (DB_num_rows($result)==0){ echo '</table>'; @@ -661,7 +671,7 @@ } else { echo '<option value="'; } - echo $myrow['areacode'] . '">' . $myrow['areadescription']; + echo $myrow['areacode'] . '">' . $myrow['areadescription'] . '</option>'; } //end while loop @@ -705,7 +715,7 @@ if (!isset($_POST['Email'])) {$_POST['Email']='';} echo '<tr><td>'.(($_POST['Email']) ? '<a href="Mailto:'.$_POST['Email'].'">'._('Email').':</a>' : _('Email').':').'</td>'; //only display email link if there is an email address - echo '<td><input tabindex=18 type="Text" name="Email" size=56 maxlength=55 value="'. $_POST['Email'].'"></td></tr>'; + echo '<td><input tabindex=18 type="text" name="Email" size=56 maxlength=55 value="'. $_POST['Email'].'"></td></tr>'; echo '<tr><td>'._('Tax Group').':</td>'; echo '<td><select tabindex=19 name="TaxGroup">'; Modified: trunk/PcExpensesTypeTab.php =================================================================== --- trunk/PcExpensesTypeTab.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/PcExpensesTypeTab.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -182,7 +182,7 @@ printf('<td>%s</td> <td>%s</td> - <td><a href="%s?SelectedType=%s&delete=yes&SelectedTab=' . $SelectedTab . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this code and the expense it may have set up?') . '\');">' . _('Delete') . '</td> + <td><a href="%s?SelectedType=%s&delete=yes&SelectedTab=' . $SelectedTab . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this expense code?') . '\');">' . _('Delete') . '</td> </tr>', $myrow['codeexpense'], $myrow['description'], Modified: trunk/Prices.php =================================================================== --- trunk/Prices.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/Prices.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -108,7 +108,7 @@ $result = DB_query($sql, $db); $myrow = DB_fetch_row($result); - echo $myrow[0]; + if ($myrow[0]!=0) { prnMsg( _('This price has already been entered. To change it you should edit it') , 'warn'); $InputError =1; @@ -353,6 +353,8 @@ /*This is quite complicated - the idea is that prices set up should be unique and there is no way two prices could be returned as valid - when getting a price in includes/GetPrice.inc the logic is to first look for a price of the salestype/currency within the effective start and end dates - then if not get the price with a start date prior but a blank end date (the default price). We would not want two prices where one price falls inside another effective date range except in the case of a blank end date - ie no end date - the default price for the currency/salestype. I first thought that we would need to update the previous default price (blank end date), when a new default price is entered, to have an end date of the startdate of this new default price less 1 day - but this is converting a default price into a special price which could result in having two special prices over the same date range - best to leave it unchanged and use logic in the GetPrice.inc to ensure the correct default price is returned + * + * After further discussion (Ricard) if the new price has a blank end date - i.e. no end then the pre-existing price with no end date should be changed to have an end date just prior to the new default (no end date) price commencing */ //this is just the case where debtorno='' - see the Prices_Customer.php script for customer special prices $SQL = "SELECT price, @@ -394,6 +396,34 @@ $EndDate = $myrow['enddate']; $Price = $myrow['price']; } // end of loop around all prices + + //Now look for duplicate prices with no end + $SQL = "SELECT price, + startdate, + enddate + FROM prices + WHERE debtorno='' + AND stockid='" . $Item . "' + AND currabrev='" . $CurrAbbrev . "' + AND typeabbrev='" . $PriceList . "' + AND enddate ='0000-00-00' + ORDER BY startdate"; + $result = DB_query($SQL,$db); + $NewEndDate = FormatDateForSQL(DateAdd(Date($_SESSION['DefaultDateFormat']),'d',-1)); + + for ($i=1;$i< DB_num_rows($result);$i++) { + $myrow = DB_fetch_array($result); + /*Need to make the end date the new start date less 1 day */ + $SQL = "UPDATE prices SET enddate = '" . $NewEndDate . "' + WHERE stockid ='" .$Item . "' + AND currabrev='" . $CurrAbbrev . "' + AND typeabbrev='" . $PriceList . "' + AND startdate ='" . $myrow['startdate'] . "' + AND enddate = '0000-00-00' + AND debtorno =''"; + $UpdateResult = DB_query($SQL,$db); + } // end of loop around duplicate no end date prices + } // end function ReSequenceEffectiveDates ?> \ No newline at end of file Modified: trunk/SalesPeople.php =================================================================== --- trunk/SalesPeople.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/SalesPeople.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -1,8 +1,6 @@ <?php /* $Id$*/ -//$PageSecurity = 3; - include('includes/session.inc'); $title = _('Sales People Maintenance'); include('includes/header.inc'); @@ -78,6 +76,9 @@ if (!isset($_POST['Breakpoint'])){ $_POST['Breakpoint']=0; } + if (!isset($_POST['Current'])){ + $_POST['Current']=0; + } if (isset($SelectedSaleperson) AND $InputError !=1) { @@ -88,7 +89,8 @@ smantel='" . $_POST['SManTel'] . "', smanfax='" . $_POST['SManFax'] . "', breakpoint='" . $_POST['Breakpoint'] . "', - commissionrate2='" . $_POST['CommissionRate2'] . "' + commissionrate2='" . $_POST['CommissionRate2'] . "', + current='" . $_POST['Current'] . "' WHERE salesmancode = '".$SelectedSaleperson."'"; $msg = _('Salesperson record for') . ' ' . $_POST['SalesmanName'] . ' ' . _('has been updated'); @@ -102,14 +104,16 @@ commissionrate2, breakpoint, smantel, - smanfax) + smanfax, + current) VALUES ('" . $_POST['SalesmanCode'] . "', '" . $_POST['SalesmanName'] . "', '" . $_POST['CommissionRate1'] . "', '" . $_POST['CommissionRate2'] . "', '" . $_POST['Breakpoint'] . "', '" . $_POST['SManTel'] . "', - '" . $_POST['SManFax'] . "' + '" . $_POST['SManFax'] . "', + '" . $_POST['Current'] . "' )"; $msg = _('A new salesperson record has been added for') . ' ' . $_POST['SalesmanName']; @@ -130,6 +134,7 @@ unset($_POST['Breakpoint']); unset($_POST['SManFax']); unset($_POST['SManTel']); + unset($_POST['Current']); } } elseif (isset($_GET['delete'])) { @@ -176,7 +181,8 @@ smanfax, commissionrate1, breakpoint, - commissionrate2 + commissionrate2, + current FROM salesman"; $result = DB_query($sql,$db); @@ -187,7 +193,8 @@ <th>' . _('Facsimile') . '</th> <th>' . _('Comm Rate 1') . '</th> <th>' . _('Break') . '</th> - <th>' . _('Comm Rate 2') . '</th></tr>'; + <th>' . _('Comm Rate 2') . '</th> + <th>' . _('Current') . '</th></tr>'; $k=0; while ($myrow=DB_fetch_row($result)) { @@ -198,6 +205,7 @@ echo '<tr class="OddTableRows">'; $k++; } + if ($myrow[7] == 1) $ActiveText = _("Yes"); else $ActiveText = _("No"); printf(' <td>%s</td> @@ -207,6 +215,7 @@ <td class=number>%s</td> <td class=number>%s</td> <td class=number>%s</td> + <td>%s</td> <td><a href="%sSelectedSaleperson=%s">'. _('Edit') . '</a></td> <td><a href="%sSelectedSaleperson=%s&delete=1">' . _('Delete') . '</a></td> </tr>', @@ -217,6 +226,7 @@ $myrow[4], $myrow[5], $myrow[6], + $ActiveText, $_SERVER['PHP_SELF'] . '?' . SID . '&', $myrow[0], $_SERVER['PHP_SELF'] . '?' . SID . '&', @@ -244,7 +254,8 @@ smanfax, commissionrate1, breakpoint, - commissionrate2 + commissionrate2, + current FROM salesman WHERE salesmancode='".$SelectedSaleperson."'"; @@ -258,6 +269,7 @@ $_POST['CommissionRate1'] = $myrow['commissionrate1']; $_POST['Breakpoint'] = $myrow['breakpoint']; $_POST['CommissionRate2'] = $myrow['commissionrate2']; + $_POST['Current'] = $myrow['current']; echo '<input type=hidden name="SelectedSaleperson" VALUE="' . $SelectedSaleperson . '">'; @@ -288,8 +300,10 @@ if (!isset($_POST['Breakpoint'])){ $_POST['Breakpoint']=0; } + if (!isset($_POST['Current'])){ + $_POST['Current']=0; + } - echo '<tr><td>' . _('Salesperson Name') . ':</td><td><input type="text" '. (in_array('SalesmanName',$Errors) ? 'class="inputerror"' : '' ) .' name="SalesmanName" size=30 maxlength=30 VALUE="' . $_POST['SalesmanName'] . '"></td></tr>'; echo '<tr><td>' . _('Telephone No') . ':</td><td><input type="text" name="SManTel" size=20 maxlength=20 VALUE="' . $_POST['SManTel'] . '"></td></tr>'; echo '<tr><td>' . _('Facsimile No') . ':</td><td><input type="text" name="SManFax" size=20 maxlength=20 VALUE="' . $_POST['SManFax'] . '"></td></tr>'; @@ -297,6 +311,19 @@ echo '<tr><td>' . _('Breakpoint') . ':</td><td><input type="text" class=number name="Breakpoint" size=6 maxlength=6 VALUE="' . $_POST['Breakpoint'] . '"></td></tr>'; echo '<tr><td>' . _('Commission Rate 2') . ':</td><td><input type="text" class=number name="CommissionRate2" size=5 maxlength=5 VALUE="' . $_POST['CommissionRate2']. '"></td></tr>'; + echo '<tr><td>' . _('Current?') . ':</td><td><select name="Current">'; + if ($_POST['Current']==1){ + echo '<option selected value=1>' . _('Yes') . '</option>'; + } else { + echo '<option value=1>' . _('Yes') . '</option>'; + } + if ($_POST['Current']==0){ + echo '<option selected value=0>' . _('No') . '</option>'; + } else { + echo '<option value=0>' . _('No') . '</option>'; + } + echo '</select></td></tr>'; + echo '</table>'; echo '<br /><div class="centre"><input type="Submit" name="submit" value="' . _('Enter Information') . '"></div>'; Modified: trunk/SalesTypes.php =================================================================== --- trunk/SalesTypes.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/SalesTypes.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -40,6 +40,11 @@ prnMsg( _('The sales type (price list) code cannot be an empty string or spaces'),'error'); $Errors[$i] = 'SalesType'; $i++; + } elseif( trim($_POST['Sales_Type'])==''){ + $InputError = 1; + prnMsg (_('The sales type (price list) description cannot be empty'),'error'); + $Errors[$i] = 'SalesType'; + $i++; } elseif (strlen($_POST['Sales_Type']) >40) { $InputError = 1; echo prnMsg(_('The sales type (price list) description must be forty characters or less long'),'error'); @@ -155,12 +160,12 @@ prnMsg (_('Cannot delete this sale type because customers are currently set up to use this sales type') . '<br>' . _('There are') . ' ' . $myrow[0] . ' ' . _('customers with this sales type code')); } else { - $sql="DELETE FROM salestypes WHERE typeabbrev='".$SelectedType."'"; + $sql="DELETE FROM salestypes WHERE typeabbrev='" . $SelectedType . "'"; $ErrMsg = _('The Sales Type record could not be deleted because'); $result = DB_query($sql,$db,$ErrMsg); prnMsg(_('Sales type') . ' / ' . _('price list') . ' ' . $SelectedType . ' ' . _('has been deleted') ,'success'); - $sql ="DELETE FROM prices WHERE prices.typeabbrev='SelectedType'"; + $sql ="DELETE FROM prices WHERE prices.typeabbrev='" . $SelectedType . "'"; $ErrMsg = _('The Sales Type prices could not be deleted because'); $result = DB_query($sql,$db,$ErrMsg); Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-06-07 10:03:04 UTC (rev 4590) +++ trunk/UpgradeDatabase.php 2011-06-09 10:33:38 UTC (rev 4591) @@ -1,207 +1,209 @@ -<?php -/* $Id UpgradeDatabase.php 4183 2010-12-14 09:30:20Z daintree $ */ - -$PageSecurity = 15; //hard coded in case database is old and PageSecurity stuff cannot be retrieved - -include('includes/session.inc'); -$title = _('Upgrade webERP Database'); -include('includes/header.inc'); - -if (!isset($_POST['DoUpgrade'])){ - - prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts'),'info'); - echo '<p><form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; - echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - - if (!isset($_SESSION['VersionNumber'])){ - prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is not actually recorded at this version'),'info'); - echo '<table><tr><td>' . _('Select the version you are upgrading from:') . '</td> - <td><select name="OldVersion" >'; - echo '<option selected value="Manual">' . _('Apply database changes manually') . '</option>'; - echo '<option value="3.00">' . _('Version 3.00') . '</option>'; - echo '<option value="3.01">' . _('Version 3.01') . '</option>'; - echo '<option value="3.02">' . _('Version 3.02') . '</option>'; - echo '<option value="3.03">' . _('Version 3.03') . '</option>'; - echo '<option value="3.04">' . _('Version 3.04') . '</option>'; - echo '<option value="3.05">' . _('Version 3.05') . '</option>'; - echo '<option value="3.06">' . _('Version 3.06') . '</option>'; - echo '<option value="3.07">' . _('Version 3.07') . '</option>'; - echo '<option value="3.08">' . _('Version 3.08') . '</option>'; - echo '<option value="3.09">' . _('Version 3.09') . '</option>'; - echo '<option value="3.10">' . _('Version 3.10') . '</option>'; - echo '<option value="3.11.x">' . _('Version 3.11 or 4.01 - 4.02') . '</option>'; - echo '</select></td></tr></table>'; - } else { - if ($_SESSION['VersionNumber']=='4.00RC1'){ - $_SESSION['VersionNumber']='3.12'; - } - prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is') . ' ' . $_SESSION['VersionNumber'],'info'); - echo '<input type="hidden" name="OldVersion" value="' . $_SESSION['VersionNumber'] . '" />'; - } - - echo '<div class="centre"><input type="submit" name="DoUpgrade" value="' . _('Perform Database Upgrade') . '" /></div>'; - echo '</form>'; -} - -if (isset($_POST['DoUpgrade'])){ - - if ($dbType=='mysql' OR $dbType =='mysqli'){ - - /* First do a backup - $BackupFile = $PathPrefix . './companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; - $Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . $BackupFile; - system($Command); - - //this could be a weighty file attachment!! - include('includes/htmlMimeMail.php'); - $mail = new htmlMimeMail(); - $attachment = $mail->getFile( $BackupFile); - $mail->setText(_('webERP backup file attached')); - $mail->addAttachment($attachment, $BackupFile, 'application/gz'); - $mail->setSubject(_('Database Backup')); - $mail->setFrom($_SESSION['CompanyRecord']['coyname'] . '<' . $_SESSION['CompanyRecord']['email'] . '>'); - $result = $mail->send(array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>')); - - prnMsg(_('A backup of the database has been taken and emailed to you'), 'info'); - unlink($BackupFile); // would be a security issue to leave it there for all to download/see - - */ - - $SQLScripts = array(); - - if ($_POST['OldVersion']=='Manual') { - prnMsg(_('No datbase updates have been done as you selected to apply these manually - upgrade SQL scripts are under sql/mysql/ directory in the distribution'),'info'); - } else { //we are into automatically applying database upgrades - - prnMsg(_('If there are any failures then please check with your system administrator. Please read all notes carefully to ensure they are expected'),'info'); - switch ($_POST['OldVersion']) { - //since there are no "break" statements subsequent upgrade scripts will be added to the array - case '3.00': - $SQLScripts[] = './sql/mysql/upgrade3.00-3.01.sql'; - case '3.01': - $SQLScripts[] = './sql/mysql/upgrade3.01-3.02.sql'; - case '3.02': - $SQLScripts[] = './sql/mysql/upgrade3.02-3.03.sql'; - case '3.03': - $SQLScripts[] = './sql/mysql/upgrade3.03-3.04.sql'; - case '3.04': - $SQLScripts[] = './sql/mysql/upgrade3.04-3.05.sql'; - case '3.05': - $SQLScripts[] = './sql/mysql/upgrade3.05-3.06.sql'; - case '3.06': - $SQLScripts[] = './sql/mysql/upgrade3.06-3.07.sql'; - case '3.07': - $SQLScripts[] = './sql/mysql/upgrade3.07-3.08.sql'; - case '3.08': - case '3.09': - $SQLScripts[] = './sql/mysql/upgrade3.09-3.10.sql'; - case '3.10': - $SQLScripts[] = './sql/mysql/upgrade3.10-3.11.sql'; - case '3.11.x': - case '3.11.1': - case '3.11.2': - case '3.11.3': - case '3.12.32': - case '4.0RC1': - case '4.01': - case '4.02': - case '4.03RC1': - case '4.03RC2': - case '4.03': - case '4.03.2': - case '4.03.3': - case '4.03.5': - case '4.03.6': - case '4.03.7': - $SQLScripts[] = './sql/mysql/upgrade3.11.1-4.00.sql'; - case '4.03.8': - $SQLScripts[] = './sql/mysql/upgrade4.03-4.04.sql'; - case '4.04': - $SQLScripts[] = './sql/mysql/upgrade4.04-4.04.1.sql'; - break; - } //end switch - } - } else { //dbType is not mysql or mysqli - prnMsg(_('Only mysql upgrades are performed seamlessly at this time. Your database will need to be manually updated'),'info'); - } - - $result = DB_IgnoreForeignKeys($db); - - foreach ($SQLScripts AS $SQLScriptFile) { - - $SQLEntries = file($SQLScriptFile); - $ScriptFileEntries = sizeof($SQLEntries); - $sql =''; - $InAFunction = false; - echo '<br /><table> - <tr><th colspan=2>' . _('Applying') . ' ' . $SQLScriptFile . '</th></tr>'; - - for ($i=0; $i<=$ScriptFileEntries; $i++) { - - $SQLEntries[$i] = trim($SQLEntries[$i]); - - if (substr($SQLEntries[$i], 0, 2) != '--' - AND substr($SQLEntries[$i], 0, 3) != 'USE' - AND strstr($SQLEntries[$i],'/*')==FALSE - AND strlen($SQLEntries[$i])>1){ - - $sql .= ' ' . $SQLEntries[$i]; - - //check if this line kicks off a function definition - pg chokes otherwise - if (substr($SQLEntries[$i],0,15) == 'CREATE FUNCTION'){ - $InAFunction = true; - } - //check if this line completes a function definition - pg chokes otherwise - if (substr($SQLEntries[$i],0,8) == 'LANGUAGE'){ - $InAFunction = false; - } - if (strpos($SQLEntries[$i],';')>0 AND ! $InAFunction){ - $sql = substr($sql,0,strlen($sql)-1); - $result = DB_query($sql, $db, '','', false, false); - echo '<tr><td>' . $sql . '</td>'; - switch (DB_error_no($db)) { - case 0: - echo '<td bgcolor="green">'._('Success').'</td></tr>'; - break; - case 1050: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Table has already been created').'</td></tr>'; - break; - case 1054: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Column has already been changed').'</td></tr>'; - break; - case 1060: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Column has already been created').'</td></tr>'; - break; - case 1061: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Index already exists').'</td></tr>'; - break; - case 1062: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Entry has already been done').'</td></tr>'; - break; - case 1064: - echo '<td bgcolor="red">'._('Note').' - '. _('SQL syntax error. The SQL error message is'). ' ' . DB_error_msg($db) . '</td></tr>'; - break; - case 1068: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Primary key already exists').'</td></tr>'; - break; - case 1091: - echo '<td bgcolor="yellow">'._('Note').' - '. _('Index already dropped previously').'</td></tr>'; - break; - default: - echo '<td bgcolor="red">'._('Failure').' - '. _('Error number').' - '.DB_error_no($db) .' ' . DB_error_msg($db) . '</td></tr>'; - break; - } - $sql=''; - } - } //end if its a valid sql line not a comment - } //end of for loop around the lines of the sql script - echo '</table>'; - } //end of loop around SQLScripts apply - $result =DB_ReinstateForeignKeys($db); - /*Now get the modified VersionNumber and script pagesecurities */ - $ForceConfigReload=true; - include('includes/GetConfig.php'); -} /*Dont do upgrade */ - -include('includes/footer.inc'); +<?php +/* $Id UpgradeDatabase.php 4183 2010-12-14 09:30:20Z daintree $ */ + +$PageSecurity = 15; //hard coded in case database is old and PageSecurity stuff cannot be retrieved + +include('includes/session.inc'); +$title = _('Upgrade webERP Database'); +include('includes/header.inc'); + +if (!isset($_POST['DoUpgrade'])){ + + prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts'),'info'); + echo '<p><form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; + echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + + if (!isset($_SESSION['VersionNumber'])){ + prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is not actually recorded at this version'),'info'); + echo '<table><tr><td>' . _('Select the version you are upgrading from:') . '</td> + <td><select name="OldVersion" >'; + echo '<option selected value="Manual">' . _('Apply database changes manually') . '</option>'; + echo '<option value="3.00">' . _('Version 3.00') . '</option>'; + echo '<option value="3.01">' . _('Version 3.01') . '</option>'; + echo '<option value="3.02">' . _('Version 3.02') . '</option>'; + echo '<option value="3.03">' . _('Version 3.03') . '</option>'; + echo '<option value="3.04">' . _('Version 3.04') . '</option>'; + echo '<option value="3.05">' . _('Version 3.05') . '</option>'; + echo '<option value="3.06">' . _('Version 3.06') . '</option>'; + echo '<option value="3.07">' . _('Version 3.07') . '</option>'; + echo '<option value="3.08">' . _('Version 3.08') . '</option>'; + echo '<option value="3.09">' . _('Version 3.09') . '</option>'; + echo '<option value="3.10">' . _('Version 3.10') . '</option>'; + echo '<option value="3.11.x">' . _('Version 3.11 or 4.01 - 4.02') . '</option>'; + echo '</select></td></tr></table>'; + } else { + if ($_SESSION['VersionNumber']=='4.00RC1'){ + $_SESSION['VersionNumber']='3.12'; + } + prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is') . ' ' . $_SESSION['VersionNumber'],'info'); + echo '<input type="hidden" name="OldVersion" value="' . $_SESSION['VersionNumber'] . '" />'; + } + + echo '<div class="centre"><input type="submit" name="DoUpgrade" value="' . _('Perform Database Upgrade') . '" /></div>'; + echo '</form>'; +} + +if (isset($_POST['DoUpgrade'])){ + + if ($dbType=='mysql' OR $dbType =='mysqli'){ + + /* First do a backup + $BackupFile = $PathPrefix . './companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; + $Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . $BackupFile; + system($Command); + + //this could be a weighty file attachment!! + include('includes/htmlMimeMail.php'); + $mail = new htmlMimeMail(); + $attachment = $mail->getFile( $BackupFile); + $mail->setText(_('webERP backup file attached')); + $mail->addAttachment($attachment, $BackupFile, 'application/gz'); + $mail->setSubject(_('Database Backup')); + $mail->setFrom($_SESSION['CompanyRecord']['coyname'] . '<' . $_SESSION['CompanyRecord']['email'] . '>'); + $result = $mail->send(array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>')); + + prnMsg(_('A backup of the database has been taken and emailed to you'), 'info'); + unlink($BackupFile); // would be a security issue to leave it there for all to download/see + + */ + + $SQLScripts = array(); + + if ($_POST['OldVersion']=='Manual') { + prnMsg(_('No datbase updates have been done as you selected to apply these manually - upgrade SQL scripts are under sql/mysql/ directory in the distribution'),'info'); + } else { //we are into automatically applying database upgrades + + prnMsg(_('If there are any failures then please check with your system administrator. Please read all notes carefully to ensure they are expected'),'info'); + switch ($_POST['OldVersion']) { + //since there are no "break" statements subsequent upgrade scripts will be added to the array + case '3.00': + $SQLScripts[] = './sql/mysql/upgrade3.00-3.01.sql'; + case '3.01': + $SQLScripts[] = './sql/mysql/upgrade3.01-3.02.sql'; + case '3.02': + $SQLScripts[] = './sql/mysql/upgrade3.02-3.03.sql'; + case '3.03': + $SQLScripts[] = './sql/mysql/upgrade3.03-3.04.sql'; + case '3.04': + $SQLScripts[] = './sql/mysql/upgrade3.04-3.05.sql'; + case '3.05': + $SQLScripts[] = './sql/mysql/upgrade3.05-3.06.sql'; + case '3.06': + $SQLScripts[] = './sql/mysql/upgrade3.06-3.07.sql'; + case '3.07': + $SQLScripts[] = './sql/mysql/upgrade3.07-3.08.sql'; + case '3.08': + case '3.09': + $SQLScripts[] = './sql/mysql/upgrade3.09-3.10.sql'; + case '3.10': + $SQLScripts[] = './sql/mysql/upgrade3.10-3.11.sql'; + case '3.11.x': + case '3.11.1': + case '3.11.2': + case '3.11.3': + case '3.12.32': + case '4.0RC1': + case '4.01': + case '4.02': + case '4.03RC1': + case '4.03RC2': + case '4.03': + case '4.03.2': + case '4.03.3': + case '4.03.5': + case '4.03.6': + case '4.03.7': + $SQLScripts[] = './sql/mysql/upgrade3.11.1-4.00.sql'; + case '4.03.8': + $SQLScripts[] = './sql/mysql/upgrade4.03-4.04.sql'; + case '4.04': + $SQLScripts[] = './sql/mysql/upgrade4.04-4.04.1.sql'; + case '4.04.1': + $SQLScripts[] = './sql/mysql/upgrade4.04.1-4.04.4.sql'; + break; + } //end switch + } + } else { //dbType is not mysql or mysqli + prnMsg(_('Only mysql upgrades are performed seamlessly at this time. Your database will need to be manually updated'),'info'); + } + + $result = DB_IgnoreForeignKeys($db); + + foreach ($SQLScripts AS $SQLScriptFile) { + + $SQLEntries = file($SQLScriptFile); + $ScriptFileEntries = sizeof($SQLEntries); + $sql =''; + $InAFunction = false; + echo '<br /><table> + <tr><th colspan=2>' . _('Applying') . ' ' . $SQLScriptFile . '</th></tr>'; + + for ($i=0; $i<=$ScriptFileEntries; $i++) { + + $SQLEntries[$i] = trim($SQLEntries[$i]); + + if (substr($SQLEntries[$i], 0, 2) != '--' + AND substr($SQLEntries[$i], 0, 3) != 'USE' + AND strstr($SQLEntries[$i],'/*')==FALSE + AND strlen($SQLEntries[$i])>1){ + + $sql .= ' ' . $SQLEntries[$i]; + + //check if this line kicks off a function... [truncated message content] |
From: <dai...@us...> - 2011-06-11 07:26:53
|
Revision: 4594 http://web-erp.svn.sourceforge.net/web-erp/?rev=4594&view=rev Author: daintree Date: 2011-06-11 07:26:47 +0000 (Sat, 11 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/Customers.php trunk/SalesTypes.php Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2011-06-11 02:30:27 UTC (rev 4593) +++ trunk/Customers.php 2011-06-11 07:26:47 UTC (rev 4594) @@ -351,7 +351,7 @@ } //end if Delete Customer } -if(isset($reset)){ +if(isset($_POST['Reset'])){ unset($_POST['CustName']); unset($_POST['Address1']); unset($_POST['Address2']); @@ -482,45 +482,48 @@ echo '<tr><td>' . _('Address Line 6') . ':</td> <td><input tabindex=8 type="Text" name="Address6" size=17 maxlength=15></td></tr>'; - echo '</table></td><td><table class="selection">'; + // Show Sales Type drop down list $result=DB_query("SELECT typeabbrev, sales_type FROM salestypes ",$db); if (DB_num_rows($result)==0){ - $DataError =1; - echo '<a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a>'; - echo '<tr><td colspan=2>' . prnMsg(_('No sales types/price lists defined'),'error') . '</td></tr>'; - } else { - echo '<tr><td>' . _('Sales Type/Price List') . ':</td> - <td><select tabindex=9 name="SalesType">'; + $DataError =1; + echo '<tr><td colspan=2>' . prnMsg(_('No sales types/price lists defined'),'error') . '<br /><a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a></td></tr>'; + } else { + echo '<tr><td>' . _('Sales Type/Price List') . ':</td> + <td><select tabindex=9 name="SalesType">'; - while ($myrow = DB_fetch_array($result)) { - echo '<option value="'. $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; - } //end while loopre - DB_data_seek($result,0); - echo '</select></td></tr>'; - } + while ($myrow = DB_fetch_array($result)) { + echo '<option value="'. $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; + } //end while loopre + DB_data_seek($result,0); + echo '</select></td></tr>'; + } // Show Customer Type drop down list - $result=DB_query("SELECT typeid, typename FROM debtortype", $db); - if (DB_num_rows($result)==0){ - $DataError =1; - echo '<a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a>'; - echo '<tr><td colspan=2>' . prnMsg(_('No Customer types/price lists defined'),'error') . '</td></tr>'; - } else { - echo '<tr><td>' . _('Customer Type') . ':</td> - <td><select tabindex=9 name="typeid">'; + $result=DB_query("SELECT typeid, typename FROM debtortype", $db); + if (DB_num_rows($result)==0){ + $DataError =1; + echo '<a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a>'; + echo '<tr><td colspan=2>' . prnMsg(_('No Customer types/price lists defined'),'error') . '</td></tr>'; + } else { + echo '<tr><td>' . _('Customer Type') . ':</td> + <td><select tabindex=9 name="typeid">'; - while ($myrow = DB_fetch_array($result)) { - echo '<option value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; - } //end while loop - DB_data_seek($result,0); - echo '</select></td></tr>'; - } + while ($myrow = DB_fetch_array($result)) { + echo '<option value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; + } //end while loop + DB_data_seek($result,0); + echo '</select></td></tr>'; + } $DateString = Date($_SESSION['DefaultDateFormat']); echo '<tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> <td><input tabindex=10 type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size=12 maxlength=10></td></tr>'; + + echo '</table></td> + <td><table class="selection">'; + echo '<tr><td>' . _('Discount Percent') . ':</td> <td><input tabindex=11 type="textbox" class="number" name="Discount" value=0 size=5 maxlength=4></td></tr>'; echo '<tr><td>' . _('Discount Code') . ':</td> @@ -604,7 +607,7 @@ echo'</table></td></tr></table>'; if ($DataError ==0){ - echo '<br /><div class="centre"><input tabindex=20 type="Submit" name="submit" value="' . _('Add New Customer') . '"> <input tabindex=21 type="submit" action="reset" value="' . _('Reset') . '"></div>'; + echo '<br /><div class="centre"><input tabindex=20 type="Submit" name="submit" value="' . _('Add New Customer') . '"> <input tabindex=21 type="submit" action="Reset" value="' . _('Reset') . '"></div>'; } echo '</form>'; @@ -627,9 +630,6 @@ address4, address5, address6, - custbranch.phoneno as telephone, - custbranch.faxno as fax, - custbranch.email, currcode, salestype, clientsince, @@ -644,8 +644,6 @@ customerpoline, typeid FROM debtorsmaster - LEFT JOIN custbranch - ON debtorsmaster.debtorno=custbranch.debtorno WHERE debtorsmaster.debtorno = '" . $DebtorNo . "'"; $ErrMsg = _('The customer details could not be retrieved because'); @@ -667,9 +665,6 @@ $_POST['Address4'] = $myrow['address4']; $_POST['Address5'] = $myrow['address5']; $_POST['Address6'] = $myrow['address6']; - $_POST['Phone'] = $myrow['telephone']; - $_POST['Fax'] = $myrow['fax']; - $_POST['Email'] = $myrow['email']; $_POST['SalesType'] = $myrow['salestype']; $_POST['CurrCode'] = $myrow['currcode']; $_POST['ClientSince'] = ConvertSQLDate($myrow['clientsince']); @@ -699,9 +694,6 @@ } if (isset($_GET['Modify'])) { echo '<tr><td>' . _('Customer Name') . ':</td><td>' . $_POST['CustName'] . '</td></tr>'; - echo '<tr><td>' . _('Telephone') . ':</td><td>' . $_POST['Phone'] . '</td></tr>'; - echo '<tr><td>' . _('Facsimile') . ':</td><td>' . $_POST['Fax'] . '</td></tr>'; - echo '<tr><td>' . _('Email Address') . ':</td><td>' . $_POST['Email'] . '</td></tr>'; echo '<tr><td>' . _('Address Line 1 (Street)') . ':</td><td>' . $_POST['Address1'] . '</td></tr>'; echo '<tr><td>' . _('Address Line 2 (Suburb/City)') . ':</td><td>' . $_POST['Address2'] . '</td></tr>'; echo '<tr><td>' . _('Address Line 3 (State/Province)') . ':</td><td>' . $_POST['Address3'] . '</td></tr>'; @@ -712,12 +704,6 @@ } else { echo '<tr><td>' . _('Customer Name') . ':</td> <td><input ' . (in_array('CustName',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="CustName" value="' . $_POST['CustName'] . '" size=42 maxlength=40></td></tr>'; - echo '<tr><td>' . _('Telephone') . ':</td> - <td><input ' . (in_array('Phone',$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('Fax',$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('Email',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Email" value="' . $_POST['Email'] . '" size=42 maxlength=40></td></tr>'; echo '<tr><td>' . _('Address Line 1 (Street)') . ':</td> <td><input ' . (in_array('Address1',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Address1" size=42 maxlength=40 value="' . $_POST['Address1'] . '"></td></tr>'; echo '<tr><td>' . _('Address Line 2 (Suburb/City)') . ':</td> @@ -730,7 +716,7 @@ <td><input ' . (in_array('Address5',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Address5" size=42 maxlength=40 value="' . $_POST['Address5'] . '"></td></tr>'; echo '<tr><td>' . _('Address Line 6') . ':</td> <td><input ' . (in_array('Address6',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Address6" size=42 maxlength=40 value="' . $_POST['Address6'] . '"></td></tr>'; - echo '</table></td><td><table class=selection>'; + } // Select sales types for drop down list if (isset($_GET['Modify'])) { @@ -738,7 +724,7 @@ $myrow=DB_fetch_array($result); echo '<tr><td>' . _('Sales Type') . ':</td><td>' . $myrow['sales_type'] . '</td></tr>'; } else { - $result=DB_query('SELECT typeabbrev, sales_type FROM salestypes',$db); + $result=DB_query("SELECT typeabbrev, sales_type FROM salestypes",$db); echo '<tr><td>' . _('Sales Type') . '/' . _('Price List') . ':</td> <td><select name="SalesType">'; while ($myrow = DB_fetch_array($result)) { @@ -776,6 +762,9 @@ echo '</select></td></tr> <tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> <td>' . $_POST['ClientSince'] . '</td></tr>'; + + echo '</table></td><td><table class=selection>'; + echo '<tr><td>' . _('Discount Percent') . ':</td> <td>' . $_POST['Discount'] . '</td></tr>'; echo '<tr><td>' . _('Discount Code') . ':</td> @@ -790,6 +779,9 @@ echo '</select></td></tr> <tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> <td><input ' . (in_array('ClientSince',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" size=11 maxlength=10 value=' . $_POST['ClientSince'] . '></td></tr>'; + + echo '</table></td><td><table class="selection">'; + echo '<tr><td>' . _('Discount Percent') . ':</td> <td><input type="Text" name="Discount" class=number size=5 maxlength=4 value=' . $_POST['Discount'] . '></td></tr>'; echo '<tr><td>' . _('Discount Code') . ':</td> @@ -923,7 +915,7 @@ <th>' . _('Phone Number') . '</th> <th>' . _('Notes') . '</th> <th>' . _('Edit') . '</th> - <th colspan=2><input type="Submit" name="addcontact" VALUE="Add Contact"></th></tr>'; + <th colspan=2><input type="Submit" name="AddContact" value="Add Contact"></th></tr>'; } $k=0; //row colour counter @@ -955,7 +947,7 @@ <td>%s</td> <td>%s</td> <td><a href="AddCustomerContacts.php?Id=%s&DebtorNo=%s">'. _('Edit'). '</a></td> - <td><a href="%sID=%s&DebtorNo=%s&delete=1">'. _('Delete'). '</a></td> + <td><a href="%sID=%s&DebtorNo=%s&delete=1" onclick="return confirm(\'' . _('Are you sure you wish to delete this customer contact?') . '\');">'. _('Delete'). '</a></td> </tr>', $myrow[2], $myrow[3], @@ -1017,9 +1009,7 @@ $SQl="DELETE FROM custcontacts where debtorno='".$DebtorNo."' and contid='".$ID."'"; $resultupcc = DB_query($SQl,$db); - - echo '<meta http-equiv="Refresh" content="0; url=' . $_SERVER['PHP_SELF'] . '?'.SID.'&DebtorNo='.$DebtorNo.'">'; - echo '<br />'.$SQl; + echo '<meta http-equiv="Refresh" content="0; url=' . $_SERVER['PHP_SELF'] . '?DebtorNo='.$DebtorNo.'">'; prnmsg('Contact Deleted','success'); } @@ -1027,13 +1017,13 @@ echo'</td></tr></table>'; if (isset($_POST['New']) and $_POST['New']) { - echo '<div class="centre"><input type="Submit" name="submit" VALUE="' . _('Add New Customer') . - '"> <input type=submit name="reset" VALUE="' . _('Reset') . '"></div></form>'; + echo '<div class="centre"><input type="submit" name="submit" value="' . _('Add New Customer') . + '"> <input type=submit name="Reset" value="' . _('Reset') . '"></div></form>'; } else if (!isset($_GET['Modify'])){ - echo '<br /><div class="centre"><input type="Submit" name="submit" VALUE="' . _('Update Customer') . '">'; - echo ' <input type="Submit" name="delete" VALUE="' . _('Delete Customer') . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">'; + echo '<br /><div class="centre"><input type="submit" name="submit" value="' . _('Update Customer') . '">'; + echo ' <input type="Submit" name="delete" value="' . _('Delete Customer') . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">'; } - if(isset($_POST['addcontact']) AND (isset($_POST['addcontact'])!='')) + if(isset($_POST['AddContact']) AND (isset($_POST['AddContact'])!='')) { echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/AddCustomerContacts.php?DebtorNo=' .$DebtorNo.'">'; } Modified: trunk/SalesTypes.php =================================================================== --- trunk/SalesTypes.php 2011-06-11 02:30:27 UTC (rev 4593) +++ trunk/SalesTypes.php 2011-06-11 07:26:47 UTC (rev 4594) @@ -177,6 +177,13 @@ } //end if sales type used in debtor transactions or in customers set up } + +if(isset($_POST['Cancel'])){ + unset($SelectedType); + unset($_POST['TypeAbbrev']); + unset($_POST['Sales_Type']); +} + 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 @@ -184,7 +191,7 @@ links to delete or edit each. These will call the same page again and allow update/input or deletion of the records*/ - $sql = 'SELECT * FROM salestypes'; + $sql = "SELECT * FROM salestypes"; $result = DB_query($sql,$db); echo '<table class=selection>'; @@ -237,7 +244,7 @@ $sql = "SELECT typeabbrev, sales_type FROM salestypes - WHERE typeabbrev='$SelectedType'"; + WHERE typeabbrev='" . $SelectedType . "'"; $result = DB_query($sql, $db); $myrow = DB_fetch_array($result); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-11 07:26:54
|
Revision: 4594 http://web-erp.svn.sourceforge.net/web-erp/?rev=4594&view=rev Author: daintree Date: 2011-06-11 07:26:47 +0000 (Sat, 11 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/Customers.php trunk/SalesTypes.php Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2011-06-11 02:30:27 UTC (rev 4593) +++ trunk/Customers.php 2011-06-11 07:26:47 UTC (rev 4594) @@ -351,7 +351,7 @@ } //end if Delete Customer } -if(isset($reset)){ +if(isset($_POST['Reset'])){ unset($_POST['CustName']); unset($_POST['Address1']); unset($_POST['Address2']); @@ -482,45 +482,48 @@ echo '<tr><td>' . _('Address Line 6') . ':</td> <td><input tabindex=8 type="Text" name="Address6" size=17 maxlength=15></td></tr>'; - echo '</table></td><td><table class="selection">'; + // Show Sales Type drop down list $result=DB_query("SELECT typeabbrev, sales_type FROM salestypes ",$db); if (DB_num_rows($result)==0){ - $DataError =1; - echo '<a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a>'; - echo '<tr><td colspan=2>' . prnMsg(_('No sales types/price lists defined'),'error') . '</td></tr>'; - } else { - echo '<tr><td>' . _('Sales Type/Price List') . ':</td> - <td><select tabindex=9 name="SalesType">'; + $DataError =1; + echo '<tr><td colspan=2>' . prnMsg(_('No sales types/price lists defined'),'error') . '<br /><a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a></td></tr>'; + } else { + echo '<tr><td>' . _('Sales Type/Price List') . ':</td> + <td><select tabindex=9 name="SalesType">'; - while ($myrow = DB_fetch_array($result)) { - echo '<option value="'. $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; - } //end while loopre - DB_data_seek($result,0); - echo '</select></td></tr>'; - } + while ($myrow = DB_fetch_array($result)) { + echo '<option value="'. $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; + } //end while loopre + DB_data_seek($result,0); + echo '</select></td></tr>'; + } // Show Customer Type drop down list - $result=DB_query("SELECT typeid, typename FROM debtortype", $db); - if (DB_num_rows($result)==0){ - $DataError =1; - echo '<a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a>'; - echo '<tr><td colspan=2>' . prnMsg(_('No Customer types/price lists defined'),'error') . '</td></tr>'; - } else { - echo '<tr><td>' . _('Customer Type') . ':</td> - <td><select tabindex=9 name="typeid">'; + $result=DB_query("SELECT typeid, typename FROM debtortype", $db); + if (DB_num_rows($result)==0){ + $DataError =1; + echo '<a href="SalesTypes.php?" target="_parent">' . _('Setup Types') . '</a>'; + echo '<tr><td colspan=2>' . prnMsg(_('No Customer types/price lists defined'),'error') . '</td></tr>'; + } else { + echo '<tr><td>' . _('Customer Type') . ':</td> + <td><select tabindex=9 name="typeid">'; - while ($myrow = DB_fetch_array($result)) { - echo '<option value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; - } //end while loop - DB_data_seek($result,0); - echo '</select></td></tr>'; - } + while ($myrow = DB_fetch_array($result)) { + echo '<option value="'. $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; + } //end while loop + DB_data_seek($result,0); + echo '</select></td></tr>'; + } $DateString = Date($_SESSION['DefaultDateFormat']); echo '<tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> <td><input tabindex=10 type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" value="' . $DateString . '" size=12 maxlength=10></td></tr>'; + + echo '</table></td> + <td><table class="selection">'; + echo '<tr><td>' . _('Discount Percent') . ':</td> <td><input tabindex=11 type="textbox" class="number" name="Discount" value=0 size=5 maxlength=4></td></tr>'; echo '<tr><td>' . _('Discount Code') . ':</td> @@ -604,7 +607,7 @@ echo'</table></td></tr></table>'; if ($DataError ==0){ - echo '<br /><div class="centre"><input tabindex=20 type="Submit" name="submit" value="' . _('Add New Customer') . '"> <input tabindex=21 type="submit" action="reset" value="' . _('Reset') . '"></div>'; + echo '<br /><div class="centre"><input tabindex=20 type="Submit" name="submit" value="' . _('Add New Customer') . '"> <input tabindex=21 type="submit" action="Reset" value="' . _('Reset') . '"></div>'; } echo '</form>'; @@ -627,9 +630,6 @@ address4, address5, address6, - custbranch.phoneno as telephone, - custbranch.faxno as fax, - custbranch.email, currcode, salestype, clientsince, @@ -644,8 +644,6 @@ customerpoline, typeid FROM debtorsmaster - LEFT JOIN custbranch - ON debtorsmaster.debtorno=custbranch.debtorno WHERE debtorsmaster.debtorno = '" . $DebtorNo . "'"; $ErrMsg = _('The customer details could not be retrieved because'); @@ -667,9 +665,6 @@ $_POST['Address4'] = $myrow['address4']; $_POST['Address5'] = $myrow['address5']; $_POST['Address6'] = $myrow['address6']; - $_POST['Phone'] = $myrow['telephone']; - $_POST['Fax'] = $myrow['fax']; - $_POST['Email'] = $myrow['email']; $_POST['SalesType'] = $myrow['salestype']; $_POST['CurrCode'] = $myrow['currcode']; $_POST['ClientSince'] = ConvertSQLDate($myrow['clientsince']); @@ -699,9 +694,6 @@ } if (isset($_GET['Modify'])) { echo '<tr><td>' . _('Customer Name') . ':</td><td>' . $_POST['CustName'] . '</td></tr>'; - echo '<tr><td>' . _('Telephone') . ':</td><td>' . $_POST['Phone'] . '</td></tr>'; - echo '<tr><td>' . _('Facsimile') . ':</td><td>' . $_POST['Fax'] . '</td></tr>'; - echo '<tr><td>' . _('Email Address') . ':</td><td>' . $_POST['Email'] . '</td></tr>'; echo '<tr><td>' . _('Address Line 1 (Street)') . ':</td><td>' . $_POST['Address1'] . '</td></tr>'; echo '<tr><td>' . _('Address Line 2 (Suburb/City)') . ':</td><td>' . $_POST['Address2'] . '</td></tr>'; echo '<tr><td>' . _('Address Line 3 (State/Province)') . ':</td><td>' . $_POST['Address3'] . '</td></tr>'; @@ -712,12 +704,6 @@ } else { echo '<tr><td>' . _('Customer Name') . ':</td> <td><input ' . (in_array('CustName',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="CustName" value="' . $_POST['CustName'] . '" size=42 maxlength=40></td></tr>'; - echo '<tr><td>' . _('Telephone') . ':</td> - <td><input ' . (in_array('Phone',$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('Fax',$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('Email',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Email" value="' . $_POST['Email'] . '" size=42 maxlength=40></td></tr>'; echo '<tr><td>' . _('Address Line 1 (Street)') . ':</td> <td><input ' . (in_array('Address1',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Address1" size=42 maxlength=40 value="' . $_POST['Address1'] . '"></td></tr>'; echo '<tr><td>' . _('Address Line 2 (Suburb/City)') . ':</td> @@ -730,7 +716,7 @@ <td><input ' . (in_array('Address5',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Address5" size=42 maxlength=40 value="' . $_POST['Address5'] . '"></td></tr>'; echo '<tr><td>' . _('Address Line 6') . ':</td> <td><input ' . (in_array('Address6',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Address6" size=42 maxlength=40 value="' . $_POST['Address6'] . '"></td></tr>'; - echo '</table></td><td><table class=selection>'; + } // Select sales types for drop down list if (isset($_GET['Modify'])) { @@ -738,7 +724,7 @@ $myrow=DB_fetch_array($result); echo '<tr><td>' . _('Sales Type') . ':</td><td>' . $myrow['sales_type'] . '</td></tr>'; } else { - $result=DB_query('SELECT typeabbrev, sales_type FROM salestypes',$db); + $result=DB_query("SELECT typeabbrev, sales_type FROM salestypes",$db); echo '<tr><td>' . _('Sales Type') . '/' . _('Price List') . ':</td> <td><select name="SalesType">'; while ($myrow = DB_fetch_array($result)) { @@ -776,6 +762,9 @@ echo '</select></td></tr> <tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> <td>' . $_POST['ClientSince'] . '</td></tr>'; + + echo '</table></td><td><table class=selection>'; + echo '<tr><td>' . _('Discount Percent') . ':</td> <td>' . $_POST['Discount'] . '</td></tr>'; echo '<tr><td>' . _('Discount Code') . ':</td> @@ -790,6 +779,9 @@ echo '</select></td></tr> <tr><td>' . _('Customer Since') . ' (' . $_SESSION['DefaultDateFormat'] . '):</td> <td><input ' . (in_array('ClientSince',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ClientSince" size=11 maxlength=10 value=' . $_POST['ClientSince'] . '></td></tr>'; + + echo '</table></td><td><table class="selection">'; + echo '<tr><td>' . _('Discount Percent') . ':</td> <td><input type="Text" name="Discount" class=number size=5 maxlength=4 value=' . $_POST['Discount'] . '></td></tr>'; echo '<tr><td>' . _('Discount Code') . ':</td> @@ -923,7 +915,7 @@ <th>' . _('Phone Number') . '</th> <th>' . _('Notes') . '</th> <th>' . _('Edit') . '</th> - <th colspan=2><input type="Submit" name="addcontact" VALUE="Add Contact"></th></tr>'; + <th colspan=2><input type="Submit" name="AddContact" value="Add Contact"></th></tr>'; } $k=0; //row colour counter @@ -955,7 +947,7 @@ <td>%s</td> <td>%s</td> <td><a href="AddCustomerContacts.php?Id=%s&DebtorNo=%s">'. _('Edit'). '</a></td> - <td><a href="%sID=%s&DebtorNo=%s&delete=1">'. _('Delete'). '</a></td> + <td><a href="%sID=%s&DebtorNo=%s&delete=1" onclick="return confirm(\'' . _('Are you sure you wish to delete this customer contact?') . '\');">'. _('Delete'). '</a></td> </tr>', $myrow[2], $myrow[3], @@ -1017,9 +1009,7 @@ $SQl="DELETE FROM custcontacts where debtorno='".$DebtorNo."' and contid='".$ID."'"; $resultupcc = DB_query($SQl,$db); - - echo '<meta http-equiv="Refresh" content="0; url=' . $_SERVER['PHP_SELF'] . '?'.SID.'&DebtorNo='.$DebtorNo.'">'; - echo '<br />'.$SQl; + echo '<meta http-equiv="Refresh" content="0; url=' . $_SERVER['PHP_SELF'] . '?DebtorNo='.$DebtorNo.'">'; prnmsg('Contact Deleted','success'); } @@ -1027,13 +1017,13 @@ echo'</td></tr></table>'; if (isset($_POST['New']) and $_POST['New']) { - echo '<div class="centre"><input type="Submit" name="submit" VALUE="' . _('Add New Customer') . - '"> <input type=submit name="reset" VALUE="' . _('Reset') . '"></div></form>'; + echo '<div class="centre"><input type="submit" name="submit" value="' . _('Add New Customer') . + '"> <input type=submit name="Reset" value="' . _('Reset') . '"></div></form>'; } else if (!isset($_GET['Modify'])){ - echo '<br /><div class="centre"><input type="Submit" name="submit" VALUE="' . _('Update Customer') . '">'; - echo ' <input type="Submit" name="delete" VALUE="' . _('Delete Customer') . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">'; + echo '<br /><div class="centre"><input type="submit" name="submit" value="' . _('Update Customer') . '">'; + echo ' <input type="Submit" name="delete" value="' . _('Delete Customer') . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">'; } - if(isset($_POST['addcontact']) AND (isset($_POST['addcontact'])!='')) + if(isset($_POST['AddContact']) AND (isset($_POST['AddContact'])!='')) { echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/AddCustomerContacts.php?DebtorNo=' .$DebtorNo.'">'; } Modified: trunk/SalesTypes.php =================================================================== --- trunk/SalesTypes.php 2011-06-11 02:30:27 UTC (rev 4593) +++ trunk/SalesTypes.php 2011-06-11 07:26:47 UTC (rev 4594) @@ -177,6 +177,13 @@ } //end if sales type used in debtor transactions or in customers set up } + +if(isset($_POST['Cancel'])){ + unset($SelectedType); + unset($_POST['TypeAbbrev']); + unset($_POST['Sales_Type']); +} + 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 @@ -184,7 +191,7 @@ links to delete or edit each. These will call the same page again and allow update/input or deletion of the records*/ - $sql = 'SELECT * FROM salestypes'; + $sql = "SELECT * FROM salestypes"; $result = DB_query($sql,$db); echo '<table class=selection>'; @@ -237,7 +244,7 @@ $sql = "SELECT typeabbrev, sales_type FROM salestypes - WHERE typeabbrev='$SelectedType'"; + WHERE typeabbrev='" . $SelectedType . "'"; $result = DB_query($sql, $db); $myrow = DB_fetch_array($result); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-12 09:30:22
|
Revision: 4595 http://web-erp.svn.sourceforge.net/web-erp/?rev=4595&view=rev Author: daintree Date: 2011-06-12 09:30:10 +0000 (Sun, 12 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/doc/Change.log 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/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.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/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.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/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.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/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.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/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-11 07:26:47 UTC (rev 4594) +++ trunk/doc/Change.log 2011-06-12 09:30:10 UTC (rev 4595) @@ -1,6 +1,10 @@ webERP Change Log -9/6/11 Phil : Prices.php now updates the end date of a price when a new default (no end date) price is added +12/6/11 Version 4.04.4 + +12/6/11 Phil: Customers.php included telephone and email from the first branch found - removed as could be confusing. Customer contact information is stored in CustomerContacts and custbranch table +12/6/11 Phil: SupplierCredit.php variables containing value case consistency +9/6/11 Phil: Prices.php now updates the end date of a price when a new default (no end date) price is added 9/6/11 Ricard: PcExpensesTypeTab.php deletion question message fixed as does not delete any expenses set up with this expense type 9/6/11 Daniel Richert: includes/LanguageSetup.php changed to set $Locale = setlocale (LC_MESSAGES, $_SESSION['Language']); as using LC_ALL over-rides numeric and we need decimal points as . - commas stuff things up 9/6/11 Ricard: Added new field current to salesman table to flag if the salesman is currently still on the team or not - modified WWW_Users.php and CustomerBranches to only allow selection of current salesfolk 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 2011-06-11 07:26:47 UTC (rev 4594) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-06-12 09:30:10 UTC (rev 4595) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-30 20:51+1200\n" +"POT-Creation-Date: 2011-06-12 21:24+1200\n" "PO-Revision-Date: 2011-02-07 15:33+0000\n" "Last-Translator: Tim Schofield <Unknown>\n" "Language-Team: Czech <cs...@li...>\n" @@ -141,8 +141,8 @@ #: Locations.php:293 Locations.php:301 MRPDemandTypes.php:87 #: PaymentMethods.php:140 PaymentTerms.php:147 PaymentTerms.php:154 #: PcExpenses.php:152 SalesCategories.php:125 SalesCategories.php:133 -#: SalesPeople.php:144 SalesPeople.php:151 SalesTypes.php:145 -#: SalesTypes.php:155 Shippers.php:82 Shippers.php:94 StockCategories.php:179 +#: SalesPeople.php:149 SalesPeople.php:156 SalesTypes.php:150 +#: SalesTypes.php:160 Shippers.php:82 Shippers.php:94 StockCategories.php:179 #: Stocks.php:475 Stocks.php:484 Stocks.php:492 Stocks.php:500 Stocks.php:508 #: Stocks.php:516 Suppliers.php:609 Suppliers.php:618 Suppliers.php:626 #: SupplierTypes.php:145 TaxCategories.php:131 TaxGroups.php:127 @@ -199,7 +199,7 @@ #: BOMExtendedQty.php:272 BOMIndented.php:247 BOMIndentedReverse.php:246 #: BOMInquiry.php:165 BOMListing.php:112 BOMs.php:208 BOMs.php:790 #: COGSGLPostings.php:18 CompanyPreferences.php:155 CounterSales.php:1983 -#: CounterSales.php:2107 Credit_Invoice.php:257 CreditStatus.php:20 +#: CounterSales.php:2107 Credit_Invoice.php:255 CreditStatus.php:20 #: Currencies.php:28 CustEDISetup.php:17 DailyBankTransactions.php:10 #: DebtorsAtPeriodEnd.php:124 DiscountCategories.php:10 #: DiscountCategories.php:128 DiscountMatrix.php:16 EDIMessageFormat.php:104 @@ -217,7 +217,7 @@ #: PurchData.php:146 PurchData.php:257 PurchData.php:276 #: RecurringSalesOrders.php:310 SalesAnalReptCols.php:51 SalesAnalRepts.php:11 #: SalesCategories.php:11 SalesGLPostings.php:17 SalesGraph.php:34 -#: SalesPeople.php:22 SalesTypes.php:20 SelectAsset.php:45 +#: SalesPeople.php:20 SalesTypes.php:20 SelectAsset.php:45 #: SelectCompletedOrder.php:11 SelectContract.php:81 SelectCreditItems.php:202 #: SelectCreditItems.php:270 SelectCustomer.php:323 SelectGLAccount.php:19 #: SelectGLAccount.php:79 SelectOrderItems.php:617 SelectOrderItems.php:1443 @@ -279,7 +279,8 @@ #: SalesAnalReptCols.php:279 SalesAnalReptCols.php:401 #: SalesAnalReptCols.php:404 SalesAnalRepts.php:404 SalesAnalRepts.php:407 #: SalesAnalRepts.php:430 SalesAnalRepts.php:433 SalesAnalRepts.php:456 -#: SalesAnalRepts.php:459 SelectProduct.php:374 ShipmentCosting.php:627 +#: SalesAnalRepts.php:459 SalesPeople.php:208 SalesPeople.php:316 +#: SalesPeople.php:318 SelectProduct.php:374 ShipmentCosting.php:627 #: Stocks.php:878 Stocks.php:880 Stocks.php:898 Stocks.php:900 #: SuppContractChgs.php:83 SuppLoginSetup.php:508 SuppLoginSetup.php:510 #: SystemParameters.php:380 SystemParameters.php:403 SystemParameters.php:419 @@ -315,7 +316,8 @@ #: SalesAnalReptCols.php:277 SalesAnalReptCols.php:402 #: SalesAnalReptCols.php:405 SalesAnalRepts.php:403 SalesAnalRepts.php:406 #: SalesAnalRepts.php:429 SalesAnalRepts.php:432 SalesAnalRepts.php:455 -#: SalesAnalRepts.php:458 SelectProduct.php:376 ShipmentCosting.php:628 +#: SalesAnalRepts.php:458 SalesPeople.php:208 SalesPeople.php:321 +#: SalesPeople.php:323 SelectProduct.php:376 ShipmentCosting.php:628 #: Stocks.php:873 Stocks.php:875 Stocks.php:893 Stocks.php:895 #: SuppContractChgs.php:85 SuppLoginSetup.php:507 SuppLoginSetup.php:511 #: SystemParameters.php:381 SystemParameters.php:404 SystemParameters.php:420 @@ -343,8 +345,8 @@ #: PcClaimExpensesFromTab.php:252 PcExpenses.php:208 PcTabs.php:234 #: PcTypeTabs.php:172 PO_AuthorisationLevels.php:149 Prices_Customer.php:280 #: Prices.php:246 PurchData.php:210 SalesCategories.php:256 -#: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:210 -#: SalesTypes.php:204 SecurityTokens.php:110 SelectCustomer.php:613 +#: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:219 +#: SalesTypes.php:209 SecurityTokens.php:110 SelectCustomer.php:613 #: SelectCustomer.php:630 SelectCustomer.php:654 SelectCustomer.php:671 #: SelectCustomer.php:694 SelectCustomer.php:710 Shippers.php:144 #: StockCategories.php:240 SupplierContacts.php:157 SupplierTypes.php:189 @@ -361,7 +363,7 @@ #: AddCustomerNotes.php:126 AddCustomerTypeNotes.php:124 Areas.php:165 #: BankAccounts.php:222 BOMs.php:146 COGSGLPostings.php:109 #: COGSGLPostings.php:212 ContractBOM.php:270 ContractOtherReqts.php:121 -#: CounterSales.php:781 Credit_Invoice.php:386 CreditStatus.php:175 +#: CounterSales.php:781 Credit_Invoice.php:384 CreditStatus.php:175 #: Currencies.php:241 CustLoginSetup.php:308 CustomerReceipt.php:863 #: Customers.php:958 CustomerTypes.php:203 DiscountCategories.php:215 #: DiscountMatrix.php:173 EDIMessageFormat.php:151 @@ -374,7 +376,7 @@ #: PO_AuthorisationLevels.php:151 PO_Items.php:687 Prices_Customer.php:281 #: Prices.php:247 PurchData.php:211 SalesAnalReptCols.php:294 #: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 -#: SalesGLPostings.php:246 SalesPeople.php:211 SalesTypes.php:205 +#: SalesGLPostings.php:246 SalesPeople.php:220 SalesTypes.php:210 #: SecurityTokens.php:111 SelectCreditItems.php:745 SelectCustomer.php:614 #: SelectCustomer.php:631 SelectCustomer.php:655 SelectCustomer.php:672 #: SelectCustomer.php:695 SelectCustomer.php:711 SelectOrderItems.php:1370 @@ -385,7 +387,7 @@ #: SuppShiptChgs.php:89 SuppTransGLAnalysis.php:119 TaxAuthorities.php:173 #: TaxCategories.php:183 TaxGroups.php:179 TaxProvinces.php:177 #: UnitsOfMeasure.php:189 WorkCentres.php:138 WOSerialNos.php:303 -#: WWW_Access.php:124 WWW_Users.php:306 includes/InputSerialItemsKeyed.php:57 +#: WWW_Access.php:124 WWW_Users.php:306 includes/InputSerialItemsKeyed.php:59 #: includes/OutputSerialItems.php:98 #, php-format msgid "Delete" @@ -439,7 +441,7 @@ #: OffersReceived.php:52 OffersReceived.php:129 PaymentMethods.php:282 #: PaymentTerms.php:284 PO_AuthorisationLevels.php:244 Prices_Customer.php:350 #: SalesAnalReptCols.php:510 SalesAnalRepts.php:494 SalesGLPostings.php:416 -#: SalesPeople.php:302 Shippers.php:196 StockCategories.php:557 +#: SalesPeople.php:329 Shippers.php:196 StockCategories.php:557 #: SupplierContacts.php:258 SuppLoginSetup.php:529 TaxAuthorities.php:312 #: TaxCategories.php:233 TaxProvinces.php:227 UnitsOfMeasure.php:240 #: WorkCentres.php:261 WWW_Users.php:638 @@ -545,7 +547,7 @@ #: DeliveryDetails.php:771 Factors.php:105 FixedAssetItems.php:236 #: PcAssignCashToTab.php:88 PcClaimExpensesFromTab.php:79 PcExpenses.php:93 #: PcTabs.php:102 PcTypeTabs.php:60 PO_Items.php:356 SalesAnalReptCols.php:129 -#: SalesPeople.php:94 SalesTypes.php:61 Stocks.php:355 Suppliers.php:510 +#: SalesPeople.php:96 SalesTypes.php:66 Stocks.php:355 Suppliers.php:510 #: SupplierTypes.php:67 msgid "has been updated" msgstr "byla aktualizována" @@ -560,7 +562,7 @@ #: AddCustomerContacts.php:112 CompanyPreferences.php:224 #: CustomerBranches.php:368 Customers.php:915 Customers.php:921 -#: Customers.php:986 SalesPeople.php:185 SelectCustomer.php:609 +#: Customers.php:986 SalesPeople.php:191 SelectCustomer.php:609 #: StockDispatch.php:185 StockDispatch.php:197 SupplierContacts.php:145 #: SupplierCredit.php:441 SupplierInvoice.php:408 SuppTransGLAnalysis.php:103 #: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 @@ -664,9 +666,9 @@ msgstr "Datum" #: AddCustomerNotes.php:107 AddCustomerTypeNotes.php:105 PcReportTab.php:173 -#: Stocks.php:882 UpgradeDatabase.php:167 UpgradeDatabase.php:170 -#: UpgradeDatabase.php:173 UpgradeDatabase.php:176 UpgradeDatabase.php:179 -#: UpgradeDatabase.php:182 UpgradeDatabase.php:185 UpgradeDatabase.php:188 +#: Stocks.php:882 UpgradeDatabase.php:169 UpgradeDatabase.php:172 +#: UpgradeDatabase.php:175 UpgradeDatabase.php:178 UpgradeDatabase.php:181 +#: UpgradeDatabase.php:184 UpgradeDatabase.php:187 UpgradeDatabase.php:190 #: Z_Upgrade_3.10-3.11.php:62 Z_Upgrade_3.10-3.11.php:66 #: Z_Upgrade_3.10-3.11.php:70 Z_Upgrade_3.10-3.11.php:74 #: Z_Upgrade_3.10-3.11.php:78 Z_Upgrade_3.11-4.00.php:62 @@ -781,7 +783,7 @@ #: AgedSuppliers.php:108 AgedSuppliers.php:190 BOMExtendedQty.php:162 #: BOMExtendedQty.php:259 BOMIndented.php:153 BOMIndented.php:234 #: BOMIndentedReverse.php:154 BOMIndentedReverse.php:232 BOMListing.php:47 -#: Credit_Invoice.php:186 DebtorsAtPeriodEnd.php:59 DebtorsAtPeriodEnd.php:71 +#: Credit_Invoice.php:184 DebtorsAtPeriodEnd.php:59 DebtorsAtPeriodEnd.php:71 #: FTP_RadioBeacon.php:187 GetStockImage.php:154 GLBalanceSheet.php:93 #: GLBalanceSheet.php:131 GLBalanceSheet.php:294 GLProfit_Loss.php:160 #: GLProfit_Loss.php:172 GLTagProfit_Loss.php:175 GLTagProfit_Loss.php:187 @@ -844,7 +846,7 @@ #: AgedDebtors.php:374 AgedSuppliers.php:192 Areas.php:95 #: ConfirmDispatch_Invoice.php:150 ConfirmDispatch_Invoice.php:962 #: ConfirmDispatch_Invoice.php:976 Contracts.php:581 CounterSales.php:1323 -#: CounterSales.php:1337 Credit_Invoice.php:705 Credit_Invoice.php:727 +#: CounterSales.php:1337 Credit_Invoice.php:703 Credit_Invoice.php:725 #: CustomerReceipt.php:523 CustomerReceipt.php:655 CustomerReceipt.php:683 #: CustomerTransInquiry.php:79 DeliveryDetails.php:393 GLProfit_Loss.php:579 #: GLTagProfit_Loss.php:488 Payments.php:312 PDFRemittanceAdvice.php:86 @@ -1058,7 +1060,7 @@ #: MRPDemands.php:247 PcAssignCashToTab.php:135 PcClaimExpensesFromTab.php:126 #: PcExpenses.php:160 PcExpensesTypeTab.php:101 PcTabs.php:166 #: PcTypeTabs.php:135 SalesAnalReptCols.php:215 SalesCategories.php:137 -#: SalesTypes.php:161 StockCategories.php:196 Suppliers.php:635 +#: SalesTypes.php:166 StockCategories.php:196 Suppliers.php:635 #: SupplierTypes.php:151 Z_DeleteInvoice.php:146 msgid "has been deleted" msgstr "byl zrušen" @@ -1393,7 +1395,7 @@ msgstr "od" #: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:58 -#: EmailCustTrans.php:65 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 +#: EmailCustTrans.php:63 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 #: GLAccountCSV.php:171 GLAccountReport.php:102 Payments.php:717 #: PcReportTab.php:102 PDFChequeListing.php:107 PDFChequeListing.php:117 #: PDFChequeListing.php:192 PDFDeliveryDifferences.php:166 @@ -1506,7 +1508,7 @@ msgid "Ref" msgstr "Ref" -#: BankMatching.php:229 ConfirmDispatch_Invoice.php:274 Credit_Invoice.php:281 +#: BankMatching.php:229 ConfirmDispatch_Invoice.php:274 Credit_Invoice.php:279 #: CustomerAllocations.php:358 CustomerReceipt.php:842 #: CustomerTransInquiry.php:94 CustWhereAlloc.php:92 PaymentAllocations.php:78 #: Payments.php:969 Payments.php:972 Payments.php:984 @@ -1641,7 +1643,7 @@ #: BankReconciliation.php:196 BankReconciliation.php:268 #: CustomerAllocations.php:330 CustomerAllocations.php:356 #: CustomerInquiry.php:191 CustomerTransInquiry.php:86 CustWhereAlloc.php:89 -#: EmailCustTrans.php:17 GLAccountInquiry.php:153 GLAccountReportphp:156 +#: EmailCustTrans.php:15 GLAccountInquiry.php:153 GLAccountReportphp:156 #: PrintCustTrans.php:450 PrintCustTrans.php:651 PrintCustTrans.php:871 #: PrintCustTrans.php:918 PrintCustTransPortrait.php:502 #: PrintCustTransPortrait.php:703 PrintCustTransPortrait.php:922 @@ -1786,7 +1788,7 @@ #: ContractCosting.php:80 ContractCosting.php:131 ContractOtherReqts.php:95 #: Contracts.php:932 Contracts.php:956 CounterSales.php:701 #: CounterSales.php:1994 CounterSales.php:2174 CounterSales.php:2302 -#: Credit_Invoice.php:275 DeliveryDetails.php:822 DeliveryDetails.php:887 +#: Credit_Invoice.php:273 DeliveryDetails.php:822 DeliveryDetails.php:887 #: GoodsReceived.php:88 GoodsReceived.php:92 GoodsReceived.php:95 #: InventoryPlanningPrefSupplier.php:83 InventoryQuantities.php:223 #: MRPDemands.php:291 MRPDemands.php:381 MRPPlannedPurchaseOrders.php:326 @@ -2184,7 +2186,7 @@ #: BOMInquiry.php:25 BOMs.php:802 MRPDemands.php:331 MRPReport.php:542 #: PO_SelectOSPurchOrder.php:200 PO_SelectPurchOrder.php:170 #: SalesCategories.php:422 SelectProduct.php:512 Shipt_Select.php:166 -#: StockAdjustments.php:69 StockAdjustments.php:324 StockCounts.php:97 +#: StockAdjustments.php:76 StockAdjustments.php:335 StockCounts.php:97 #: StockCounts.php:132 StockMovements.php:31 StockReorderLevel.php:44 #: StockStatus.php:61 StockTransfers.php:38 StockTransfers.php:445 #: StockUsage.php:58 SupplierTenders.php:359 WorkOrderEntry.php:582 @@ -2237,7 +2239,7 @@ #: PDFOrderStatus.php:315 PDFPrintLabel.php:238 PO_Header.php:542 #: PO_Items.php:928 PO_SelectOSPurchOrder.php:210 PO_SelectPurchOrder.php:177 #: PricesByCost.php:151 PurchData.php:339 ReorderLevelLocation.php:54 -#: ReorderLevelLocation.php:203 SalesPeople.php:184 +#: ReorderLevelLocation.php:203 SalesPeople.php:190 #: SelectCompletedOrder.php:535 SelectCreditItems.php:220 #: SelectCreditItems.php:956 SelectCustomer.php:458 SelectGLAccount.php:105 #: SelectOrderItems.php:1447 SelectOrderItems.php:1627 SelectProduct.php:709 @@ -2251,7 +2253,7 @@ #: BOMInquiry.php:95 BOMs.php:815 ConfirmDispatch_Invoice.php:266 #: ContractBOM.php:342 CounterSales.php:1989 CounterSales.php:2169 -#: Credit_Invoice.php:274 GoodsReceived.php:89 GoodsReceived.php:93 +#: Credit_Invoice.php:272 GoodsReceived.php:89 GoodsReceived.php:93 #: MRPReport.php:741 OffersReceived.php:96 PO_Items.php:932 #: PO_SelectOSPurchOrder.php:214 PO_SelectPurchOrder.php:181 #: SelectCompletedOrder.php:540 SelectCreditItems.php:958 @@ -2293,7 +2295,7 @@ #: BOMInquiry.php:174 ContractBOM.php:243 ContractCosting.php:76 #: ContractCosting.php:82 ContractCosting.php:132 ContractOtherReqts.php:96 #: Contracts.php:934 Contracts.php:957 MRPPlannedWorkOrders.php:260 -#: MRPShortages.php:336 SpecialOrder.php:632 StockAdjustments.php:340 +#: MRPShortages.php:336 SpecialOrder.php:632 StockAdjustments.php:351 msgid "Unit Cost" msgstr "Jednotková cena" @@ -2406,12 +2408,12 @@ "Účinné k dnešnímu dni pole musí být data ve formátu dd / mm / rr nebo dd / " "mm / rrrr nebo ddmmrr nebo ddmmrrrr nebo dd-mm-rr nebo dd-mm-rrrr" -#: BOMs.php:231 StockAdjustments.php:89 StockTransfers.php:150 +#: BOMs.php:231 StockAdjustments.php:100 StockTransfers.php:150 #: WorkOrderEntry.php:260 msgid "The quantity entered must be numeric" msgstr "Množství uvedené musí být číslo" -#: BOMs.php:237 StockAdjustments.php:92 +#: BOMs.php:237 StockAdjustments.php:103 msgid "The quantity entered cannot be zero" msgstr "Množství uvedené nemůže být nula" @@ -2536,7 +2538,7 @@ msgstr "SQL slouží k získání popisu mateřské část byla" #: BOMs.php:397 ConfirmDispatch_Invoice.php:1009 CounterSales.php:1372 -#: Credit_Invoice.php:763 Credit_Invoice.php:792 SelectCreditItems.php:1417 +#: Credit_Invoice.php:761 Credit_Invoice.php:790 SelectCreditItems.php:1417 #: Stocks.php:810 Stocks.php:812 msgid "Assembly" msgstr "Sestava" @@ -2925,10 +2927,10 @@ msgstr "Vytvořte GL údaje pro obchodů s akciemi" #: CompanyPreferences.php:474 ConfirmDispatch_Invoice.php:618 -#: ConfirmDispatch_Invoice.php:1647 Credit_Invoice.php:1528 +#: ConfirmDispatch_Invoice.php:1647 Credit_Invoice.php:1526 #: FixedAssetItems.php:120 FixedAssetItems.php:566 GLBudgets.php:216 #: GLTags.php:62 GoodsReceived.php:229 GoodsReceived.php:235 -#: GoodsReceived.php:242 GoodsReceived.php:699 Labels.php:262 +#: GoodsReceived.php:242 GoodsReceived.php:698 Labels.php:262 #: MRPCalendar.php:307 Payments.php:860 PcAuthorizeExpenses.php:283 #: PO_AuthoriseMyOrders.php:132 PricesByCost.php:221 PurchData.php:505 #: ReorderLevelLocation.php:156 SecurityTokens.php:89 @@ -2989,7 +2991,7 @@ msgstr "Zpět na Potvrzení o odeslání" #: ConfirmDispatchControlled_Invoice.php:56 CounterSales.php:1207 -#: DeliveryDetails.php:583 DeliveryDetails.php:783 EmailCustTrans.php:11 +#: DeliveryDetails.php:583 DeliveryDetails.php:783 EmailCustTrans.php:9 #: PaymentAllocations.php:33 SelectSalesOrder.php:742 SelectSalesOrder.php:811 #: SelectSalesOrder.php:838 Z_SalesIntegrityCheck.php:46 #: includes/PDFDeliveryDifferencesPageHeader.inc:40 @@ -3031,7 +3033,7 @@ msgid "The SQL to get the order header was" msgstr "SQL získat pořadí záhlaví byl" -#: ConfirmDispatch_Invoice.php:149 Credit_Invoice.php:127 OrderDetails.php:140 +#: ConfirmDispatch_Invoice.php:149 Credit_Invoice.php:125 OrderDetails.php:140 #: RecurringSalesOrders.php:125 SelectOrderItems.php:220 msgid "The line items of the order cannot be retrieved because" msgstr "Řádkové položky v řádu nelze načíst, protože" @@ -3105,7 +3107,7 @@ #: ConfirmDispatch_Invoice.php:263 ContractBOM.php:239 ContractCosting.php:72 #: ContractCosting.php:78 Contracts.php:930 CounterSales.php:699 -#: CounterSales.php:2301 Credit_Invoice.php:271 DeliveryDetails.php:820 +#: CounterSales.php:2301 Credit_Invoice.php:269 DeliveryDetails.php:820 #: GoodsReceived.php:86 OrderDetails.php:153 PO_Items.php:639 #: PO_OrderDetails.php:142 PrintCustTrans.php:799 PrintCustTrans.php:887 #: PrintCustTrans.php:934 PrintCustTransPortrait.php:855 @@ -3130,7 +3132,7 @@ #: ConfirmDispatch_Invoice.php:264 ContractCosting.php:73 #: ContractCosting.php:79 Contracts.php:931 CounterSales.php:700 -#: Credit_Invoice.php:272 DeliveryDetails.php:821 DeliveryDetails.php:886 +#: Credit_Invoice.php:270 DeliveryDetails.php:821 DeliveryDetails.php:886 #: OrderDetails.php:154 PO_Items.php:706 PO_OrderDetails.php:143 #: PrintCustTrans.php:800 PrintCustTrans.php:888 PrintCustTrans.php:935 #: PrintCustTransPortrait.php:856 PrintCustTransPortrait.php:939 @@ -3168,7 +3170,7 @@ msgid "This Dispatch" msgstr "Tato zásilka" -#: ConfirmDispatch_Invoice.php:269 CounterSales.php:704 Credit_Invoice.php:276 +#: ConfirmDispatch_Invoice.php:269 CounterSales.php:704 Credit_Invoice.php:274 #: DeliveryDetails.php:824 DeliveryDetails.php:889 GoodsReceived.php:98 #: OffersReceived.php:97 OffersReceived.php:197 OffersReceived.php:244 #: OrderDetails.php:157 PDFOrdersInvoiced.php:385 PDFPriceList.php:359 @@ -3190,7 +3192,7 @@ msgid "Price" msgstr "Cena" -#: ConfirmDispatch_Invoice.php:270 CounterSales.php:705 Credit_Invoice.php:277 +#: ConfirmDispatch_Invoice.php:270 CounterSales.php:705 Credit_Invoice.php:275 #: CustomerReceipt.php:843 DeliveryDetails.php:825 OrderDetails.php:158 #: PrintCustTrans.php:804 PrintCustTrans.php:892 PrintCustTrans.php:939 #: PrintCustTransPortrait.php:860 PrintCustTransPortrait.php:943 @@ -3204,8 +3206,8 @@ msgstr "Sleva" #: ConfirmDispatch_Invoice.php:271 ConfirmDispatch_Invoice.php:275 -#: CounterSales.php:709 CounterSales.php:796 Credit_Invoice.php:278 -#: Credit_Invoice.php:282 CustomerAllocations.php:332 +#: CounterSales.php:709 CounterSales.php:796 Credit_Invoice.php:276 +#: Credit_Invoice.php:280 CustomerAllocations.php:332 #: CustomerAllocations.php:358 CustomerInquiry.php:197 DeliveryDetails.php:826 #: DeliveryDetails.php:890 GLBalanceSheet.php:172 GLBalanceSheet.php:181 #: GLBalanceSheet.php:258 GLBalanceSheet.php:267 GLBudgets.php:195 @@ -3234,12 +3236,12 @@ msgid "Total" msgstr "Celkem" -#: ConfirmDispatch_Invoice.php:271 Credit_Invoice.php:278 +#: ConfirmDispatch_Invoice.php:271 Credit_Invoice.php:276 #: SelectCreditItems.php:656 msgid "Excl Tax" msgstr "bez DPH" -#: ConfirmDispatch_Invoice.php:272 Credit_Invoice.php:279 +#: ConfirmDispatch_Invoice.php:272 Credit_Invoice.php:277 #: SelectCreditItems.php:657 SupplierInvoice.php:233 TaxGroups.php:270 msgid "Tax Authority" msgstr "Daňový úřad" @@ -3248,15 +3250,15 @@ msgid "Tax %" msgstr "DPH %" -#: ConfirmDispatch_Invoice.php:274 CounterSales.php:708 Credit_Invoice.php:280 -#: Credit_Invoice.php:281 PrintCustTrans.php:391 PrintCustTrans.php:976 +#: ConfirmDispatch_Invoice.php:274 CounterSales.php:708 Credit_Invoice.php:278 +#: Credit_Invoice.php:279 PrintCustTrans.php:391 PrintCustTrans.php:976 #: PrintCustTransPortrait.php:450 PrintCustTransPortrait.php:1023 #: SelectCreditItems.php:658 SelectCreditItems.php:659 #: includes/PDFTaxPageHeader.inc:40 msgid "Tax" msgstr "DPH" -#: ConfirmDispatch_Invoice.php:275 CounterSales.php:709 Credit_Invoice.php:282 +#: ConfirmDispatch_Invoice.php:275 CounterSales.php:709 Credit_Invoice.php:280 #: SelectCreditItems.php:660 msgid "Incl Tax" msgstr "včetně DPH" @@ -3292,8 +3294,8 @@ "nákladní společnost mají být použity" #: ConfirmDispatch_Invoice.php:438 DeliveryDetails.php:244 Prices.php:342 -#: includes/InputSerialItemsExisting.php:58 -#: includes/InputSerialItemsKeyed.php:139 +#: includes/InputSerialItemsExisting.php:59 +#: includes/InputSerialItemsKeyed.php:141 #: includes/InputSerialItemsSequential.php:48 #: includes/OutputSerialItems.php:204 msgid "Enter" @@ -3382,12 +3384,12 @@ msgid "Please remedy this" msgstr "Prosím nápravě tohoto" -#: ConfirmDispatch_Invoice.php:645 Credit_Invoice.php:485 +#: ConfirmDispatch_Invoice.php:645 Credit_Invoice.php:483 #: GoodsReceived.php:252 msgid "The company information and preferences could not be retrieved" msgstr "Informace o společnosti a preference se nepodařilo získat" -#: ConfirmDispatch_Invoice.php:645 Credit_Invoice.php:485 +#: ConfirmDispatch_Invoice.php:645 Credit_Invoice.php:483 #: GoodsReceived.php:252 msgid "see your system administrator" msgstr "kontaktujte administrátora" @@ -3490,19 +3492,19 @@ #: CounterSales.php:1336 CounterSales.php:1379 CounterSales.php:1389 #: CounterSales.php:1473 CounterSales.php:1494 CounterSales.php:1656 #: CounterSales.php:1678 CounterSales.php:1704 CounterSales.php:1726 -#: CounterSales.php:1752 CounterSales.php:1775 Credit_Invoice.php:193 -#: Credit_Invoice.php:543 Credit_Invoice.php:584 Credit_Invoice.php:601 -#: Credit_Invoice.php:617 Credit_Invoice.php:667 Credit_Invoice.php:682 -#: Credit_Invoice.php:798 Credit_Invoice.php:808 Credit_Invoice.php:890 -#: Credit_Invoice.php:905 Credit_Invoice.php:920 Credit_Invoice.php:930 -#: Credit_Invoice.php:945 Credit_Invoice.php:989 Credit_Invoice.php:1028 -#: Credit_Invoice.php:1069 Credit_Invoice.php:1092 Credit_Invoice.php:1263 -#: Credit_Invoice.php:1303 Credit_Invoice.php:1330 Credit_Invoice.php:1351 -#: Credit_Invoice.php:1380 Credit_Invoice.php:1406 Credit_Invoice.php:1432 -#: GoodsReceived.php:271 GoodsReceived.php:351 GoodsReceived.php:393 -#: GoodsReceived.php:423 GoodsReceived.php:451 GoodsReceived.php:482 -#: GoodsReceived.php:500 GoodsReceived.php:529 GoodsReceived.php:546 -#: GoodsReceived.php:636 GoodsReceived.php:661 PDFStockCheckComparison.php:122 +#: CounterSales.php:1752 CounterSales.php:1775 Credit_Invoice.php:191 +#: Credit_Invoice.php:541 Credit_Invoice.php:582 Credit_Invoice.php:599 +#: Credit_Invoice.php:615 Credit_Invoice.php:665 Credit_Invoice.php:680 +#: Credit_Invoice.php:796 Credit_Invoice.php:806 Credit_Invoice.php:888 +#: Credit_Invoice.php:903 Credit_Invoice.php:918 Credit_Invoice.php:928 +#: Credit_Invoice.php:943 Credit_Invoice.php:987 Credit_Invoice.php:1026 +#: Credit_Invoice.php:1067 Credit_Invoice.php:1090 Credit_Invoice.php:1261 +#: Credit_Invoice.php:1301 Credit_Invoice.php:1328 Credit_Invoice.php:1349 +#: Credit_Invoice.php:1378 Credit_Invoice.php:1404 Credit_Invoice.php:1430 +#: GoodsReceived.php:271 GoodsReceived.php:351 GoodsReceived.php:392 +#: GoodsReceived.php:422 GoodsReceived.php:450 GoodsReceived.php:481 +#: GoodsReceived.php:499 GoodsReceived.php:528 GoodsReceived.php:545 +#: GoodsReceived.php:635 GoodsReceived.php:660 PDFStockCheckComparison.php:122 #: PDFStockCheckComparison.php:130 PDFStockCheckComparison.php:137 #: PDFStockCheckComparison.php:156 PDFStockCheckComparison.php:175 #: RecurringSalesOrdersProcess.php:321 RecurringSalesOrdersProcess.php:361 @@ -3528,9 +3530,9 @@ #: ShipmentCosting.php:243 ShipmentCosting.php:289 ShipmentCosting.php:310 #: ShipmentCosting.php:324 ShipmentCosting.php:358 ShipmentCosting.php:381 #: ShipmentCosting.php:413 ShipmentCosting.php:431 ShipmentCosting.php:444 -#: StockAdjustments.php:157 StockAdjustments.php:191 StockAdjustments.php:208 -#: StockAdjustments.php:224 StockAdjustments.php:237 StockAdjustments.php:265 -#: StockAdjustments.php:287 StockDispatch.php:177 StockLocTransfer.php:74 +#: StockAdjustments.php:168 StockAdjustments.php:202 StockAdjustments.php:219 +#: StockAdjustments.php:235 StockAdjustments.php:248 StockAdjustments.php:276 +#: StockAdjustments.php:298 StockDispatch.php:177 StockLocTransfer.php:74 #: StockLocTransfer.php:96 StockLocTransfer.php:100 #: StockLocTransferReceive.php:105 StockLocTransferReceive.php:139 #: StockLocTransferReceive.php:153 StockLocTransferReceive.php:172 @@ -3599,19 +3601,19 @@ #: CounterSales.php:1336 CounterSales.php:1379 CounterSales.php:1389 #: CounterSales.php:1473 CounterSales.php:1494 CounterSales.php:1656 #: CounterSales.php:1678 CounterSales.php:1704 CounterSales.php:1726 -#: CounterSales.php:1752 CounterSales.php:1775 Credit_Invoice.php:543 -#: Credit_Invoice.php:584 Credit_Invoice.php:601 Credit_Invoice.php:617 -#: Credit_Invoice.php:667 Credit_Invoice.php:682 Credit_Invoice.php:798 -#: Credit_Invoice.php:808 Credit_Invoice.php:890 Credit_Invoice.php:905 -#: Credit_Invoice.php:920 Credit_Invoice.php:930 Credit_Invoice.php:945 -#: Credit_Invoice.php:989 Credit_Invoice.php:1028 Credit_Invoice.php:1069 -#: Credit_Invoice.php:1092 Credit_Invoice.php:1263 Credit_Invoice.php:1303 -#: Credit_Invoice.php:1330 Credit_Invoice.php:1351 Credit_Invoice.php:1380 -#: Credit_Invoice.php:1406 Credit_... [truncated message content] |
From: <dai...@us...> - 2011-06-12 09:30:22
|
Revision: 4595 http://web-erp.svn.sourceforge.net/web-erp/?rev=4595&view=rev Author: daintree Date: 2011-06-12 09:30:10 +0000 (Sun, 12 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/doc/Change.log 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/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.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/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.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/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.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/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.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/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-11 07:26:47 UTC (rev 4594) +++ trunk/doc/Change.log 2011-06-12 09:30:10 UTC (rev 4595) @@ -1,6 +1,10 @@ webERP Change Log -9/6/11 Phil : Prices.php now updates the end date of a price when a new default (no end date) price is added +12/6/11 Version 4.04.4 + +12/6/11 Phil: Customers.php included telephone and email from the first branch found - removed as could be confusing. Customer contact information is stored in CustomerContacts and custbranch table +12/6/11 Phil: SupplierCredit.php variables containing value case consistency +9/6/11 Phil: Prices.php now updates the end date of a price when a new default (no end date) price is added 9/6/11 Ricard: PcExpensesTypeTab.php deletion question message fixed as does not delete any expenses set up with this expense type 9/6/11 Daniel Richert: includes/LanguageSetup.php changed to set $Locale = setlocale (LC_MESSAGES, $_SESSION['Language']); as using LC_ALL over-rides numeric and we need decimal points as . - commas stuff things up 9/6/11 Ricard: Added new field current to salesman table to flag if the salesman is currently still on the team or not - modified WWW_Users.php and CustomerBranches to only allow selection of current salesfolk 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 2011-06-11 07:26:47 UTC (rev 4594) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-06-12 09:30:10 UTC (rev 4595) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-05-30 20:51+1200\n" +"POT-Creation-Date: 2011-06-12 21:24+1200\n" "PO-Revision-Date: 2011-02-07 15:33+0000\n" "Last-Translator: Tim Schofield <Unknown>\n" "Language-Team: Czech <cs...@li...>\n" @@ -141,8 +141,8 @@ #: Locations.php:293 Locations.php:301 MRPDemandTypes.php:87 #: PaymentMethods.php:140 PaymentTerms.php:147 PaymentTerms.php:154 #: PcExpenses.php:152 SalesCategories.php:125 SalesCategories.php:133 -#: SalesPeople.php:144 SalesPeople.php:151 SalesTypes.php:145 -#: SalesTypes.php:155 Shippers.php:82 Shippers.php:94 StockCategories.php:179 +#: SalesPeople.php:149 SalesPeople.php:156 SalesTypes.php:150 +#: SalesTypes.php:160 Shippers.php:82 Shippers.php:94 StockCategories.php:179 #: Stocks.php:475 Stocks.php:484 Stocks.php:492 Stocks.php:500 Stocks.php:508 #: Stocks.php:516 Suppliers.php:609 Suppliers.php:618 Suppliers.php:626 #: SupplierTypes.php:145 TaxCategories.php:131 TaxGroups.php:127 @@ -199,7 +199,7 @@ #: BOMExtendedQty.php:272 BOMIndented.php:247 BOMIndentedReverse.php:246 #: BOMInquiry.php:165 BOMListing.php:112 BOMs.php:208 BOMs.php:790 #: COGSGLPostings.php:18 CompanyPreferences.php:155 CounterSales.php:1983 -#: CounterSales.php:2107 Credit_Invoice.php:257 CreditStatus.php:20 +#: CounterSales.php:2107 Credit_Invoice.php:255 CreditStatus.php:20 #: Currencies.php:28 CustEDISetup.php:17 DailyBankTransactions.php:10 #: DebtorsAtPeriodEnd.php:124 DiscountCategories.php:10 #: DiscountCategories.php:128 DiscountMatrix.php:16 EDIMessageFormat.php:104 @@ -217,7 +217,7 @@ #: PurchData.php:146 PurchData.php:257 PurchData.php:276 #: RecurringSalesOrders.php:310 SalesAnalReptCols.php:51 SalesAnalRepts.php:11 #: SalesCategories.php:11 SalesGLPostings.php:17 SalesGraph.php:34 -#: SalesPeople.php:22 SalesTypes.php:20 SelectAsset.php:45 +#: SalesPeople.php:20 SalesTypes.php:20 SelectAsset.php:45 #: SelectCompletedOrder.php:11 SelectContract.php:81 SelectCreditItems.php:202 #: SelectCreditItems.php:270 SelectCustomer.php:323 SelectGLAccount.php:19 #: SelectGLAccount.php:79 SelectOrderItems.php:617 SelectOrderItems.php:1443 @@ -279,7 +279,8 @@ #: SalesAnalReptCols.php:279 SalesAnalReptCols.php:401 #: SalesAnalReptCols.php:404 SalesAnalRepts.php:404 SalesAnalRepts.php:407 #: SalesAnalRepts.php:430 SalesAnalRepts.php:433 SalesAnalRepts.php:456 -#: SalesAnalRepts.php:459 SelectProduct.php:374 ShipmentCosting.php:627 +#: SalesAnalRepts.php:459 SalesPeople.php:208 SalesPeople.php:316 +#: SalesPeople.php:318 SelectProduct.php:374 ShipmentCosting.php:627 #: Stocks.php:878 Stocks.php:880 Stocks.php:898 Stocks.php:900 #: SuppContractChgs.php:83 SuppLoginSetup.php:508 SuppLoginSetup.php:510 #: SystemParameters.php:380 SystemParameters.php:403 SystemParameters.php:419 @@ -315,7 +316,8 @@ #: SalesAnalReptCols.php:277 SalesAnalReptCols.php:402 #: SalesAnalReptCols.php:405 SalesAnalRepts.php:403 SalesAnalRepts.php:406 #: SalesAnalRepts.php:429 SalesAnalRepts.php:432 SalesAnalRepts.php:455 -#: SalesAnalRepts.php:458 SelectProduct.php:376 ShipmentCosting.php:628 +#: SalesAnalRepts.php:458 SalesPeople.php:208 SalesPeople.php:321 +#: SalesPeople.php:323 SelectProduct.php:376 ShipmentCosting.php:628 #: Stocks.php:873 Stocks.php:875 Stocks.php:893 Stocks.php:895 #: SuppContractChgs.php:85 SuppLoginSetup.php:507 SuppLoginSetup.php:511 #: SystemParameters.php:381 SystemParameters.php:404 SystemParameters.php:420 @@ -343,8 +345,8 @@ #: PcClaimExpensesFromTab.php:252 PcExpenses.php:208 PcTabs.php:234 #: PcTypeTabs.php:172 PO_AuthorisationLevels.php:149 Prices_Customer.php:280 #: Prices.php:246 PurchData.php:210 SalesCategories.php:256 -#: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:210 -#: SalesTypes.php:204 SecurityTokens.php:110 SelectCustomer.php:613 +#: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:219 +#: SalesTypes.php:209 SecurityTokens.php:110 SelectCustomer.php:613 #: SelectCustomer.php:630 SelectCustomer.php:654 SelectCustomer.php:671 #: SelectCustomer.php:694 SelectCustomer.php:710 Shippers.php:144 #: StockCategories.php:240 SupplierContacts.php:157 SupplierTypes.php:189 @@ -361,7 +363,7 @@ #: AddCustomerNotes.php:126 AddCustomerTypeNotes.php:124 Areas.php:165 #: BankAccounts.php:222 BOMs.php:146 COGSGLPostings.php:109 #: COGSGLPostings.php:212 ContractBOM.php:270 ContractOtherReqts.php:121 -#: CounterSales.php:781 Credit_Invoice.php:386 CreditStatus.php:175 +#: CounterSales.php:781 Credit_Invoice.php:384 CreditStatus.php:175 #: Currencies.php:241 CustLoginSetup.php:308 CustomerReceipt.php:863 #: Customers.php:958 CustomerTypes.php:203 DiscountCategories.php:215 #: DiscountMatrix.php:173 EDIMessageFormat.php:151 @@ -374,7 +376,7 @@ #: PO_AuthorisationLevels.php:151 PO_Items.php:687 Prices_Customer.php:281 #: Prices.php:247 PurchData.php:211 SalesAnalReptCols.php:294 #: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 -#: SalesGLPostings.php:246 SalesPeople.php:211 SalesTypes.php:205 +#: SalesGLPostings.php:246 SalesPeople.php:220 SalesTypes.php:210 #: SecurityTokens.php:111 SelectCreditItems.php:745 SelectCustomer.php:614 #: SelectCustomer.php:631 SelectCustomer.php:655 SelectCustomer.php:672 #: SelectCustomer.php:695 SelectCustomer.php:711 SelectOrderItems.php:1370 @@ -385,7 +387,7 @@ #: SuppShiptChgs.php:89 SuppTransGLAnalysis.php:119 TaxAuthorities.php:173 #: TaxCategories.php:183 TaxGroups.php:179 TaxProvinces.php:177 #: UnitsOfMeasure.php:189 WorkCentres.php:138 WOSerialNos.php:303 -#: WWW_Access.php:124 WWW_Users.php:306 includes/InputSerialItemsKeyed.php:57 +#: WWW_Access.php:124 WWW_Users.php:306 includes/InputSerialItemsKeyed.php:59 #: includes/OutputSerialItems.php:98 #, php-format msgid "Delete" @@ -439,7 +441,7 @@ #: OffersReceived.php:52 OffersReceived.php:129 PaymentMethods.php:282 #: PaymentTerms.php:284 PO_AuthorisationLevels.php:244 Prices_Customer.php:350 #: SalesAnalReptCols.php:510 SalesAnalRepts.php:494 SalesGLPostings.php:416 -#: SalesPeople.php:302 Shippers.php:196 StockCategories.php:557 +#: SalesPeople.php:329 Shippers.php:196 StockCategories.php:557 #: SupplierContacts.php:258 SuppLoginSetup.php:529 TaxAuthorities.php:312 #: TaxCategories.php:233 TaxProvinces.php:227 UnitsOfMeasure.php:240 #: WorkCentres.php:261 WWW_Users.php:638 @@ -545,7 +547,7 @@ #: DeliveryDetails.php:771 Factors.php:105 FixedAssetItems.php:236 #: PcAssignCashToTab.php:88 PcClaimExpensesFromTab.php:79 PcExpenses.php:93 #: PcTabs.php:102 PcTypeTabs.php:60 PO_Items.php:356 SalesAnalReptCols.php:129 -#: SalesPeople.php:94 SalesTypes.php:61 Stocks.php:355 Suppliers.php:510 +#: SalesPeople.php:96 SalesTypes.php:66 Stocks.php:355 Suppliers.php:510 #: SupplierTypes.php:67 msgid "has been updated" msgstr "byla aktualizována" @@ -560,7 +562,7 @@ #: AddCustomerContacts.php:112 CompanyPreferences.php:224 #: CustomerBranches.php:368 Customers.php:915 Customers.php:921 -#: Customers.php:986 SalesPeople.php:185 SelectCustomer.php:609 +#: Customers.php:986 SalesPeople.php:191 SelectCustomer.php:609 #: StockDispatch.php:185 StockDispatch.php:197 SupplierContacts.php:145 #: SupplierCredit.php:441 SupplierInvoice.php:408 SuppTransGLAnalysis.php:103 #: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 @@ -664,9 +666,9 @@ msgstr "Datum" #: AddCustomerNotes.php:107 AddCustomerTypeNotes.php:105 PcReportTab.php:173 -#: Stocks.php:882 UpgradeDatabase.php:167 UpgradeDatabase.php:170 -#: UpgradeDatabase.php:173 UpgradeDatabase.php:176 UpgradeDatabase.php:179 -#: UpgradeDatabase.php:182 UpgradeDatabase.php:185 UpgradeDatabase.php:188 +#: Stocks.php:882 UpgradeDatabase.php:169 UpgradeDatabase.php:172 +#: UpgradeDatabase.php:175 UpgradeDatabase.php:178 UpgradeDatabase.php:181 +#: UpgradeDatabase.php:184 UpgradeDatabase.php:187 UpgradeDatabase.php:190 #: Z_Upgrade_3.10-3.11.php:62 Z_Upgrade_3.10-3.11.php:66 #: Z_Upgrade_3.10-3.11.php:70 Z_Upgrade_3.10-3.11.php:74 #: Z_Upgrade_3.10-3.11.php:78 Z_Upgrade_3.11-4.00.php:62 @@ -781,7 +783,7 @@ #: AgedSuppliers.php:108 AgedSuppliers.php:190 BOMExtendedQty.php:162 #: BOMExtendedQty.php:259 BOMIndented.php:153 BOMIndented.php:234 #: BOMIndentedReverse.php:154 BOMIndentedReverse.php:232 BOMListing.php:47 -#: Credit_Invoice.php:186 DebtorsAtPeriodEnd.php:59 DebtorsAtPeriodEnd.php:71 +#: Credit_Invoice.php:184 DebtorsAtPeriodEnd.php:59 DebtorsAtPeriodEnd.php:71 #: FTP_RadioBeacon.php:187 GetStockImage.php:154 GLBalanceSheet.php:93 #: GLBalanceSheet.php:131 GLBalanceSheet.php:294 GLProfit_Loss.php:160 #: GLProfit_Loss.php:172 GLTagProfit_Loss.php:175 GLTagProfit_Loss.php:187 @@ -844,7 +846,7 @@ #: AgedDebtors.php:374 AgedSuppliers.php:192 Areas.php:95 #: ConfirmDispatch_Invoice.php:150 ConfirmDispatch_Invoice.php:962 #: ConfirmDispatch_Invoice.php:976 Contracts.php:581 CounterSales.php:1323 -#: CounterSales.php:1337 Credit_Invoice.php:705 Credit_Invoice.php:727 +#: CounterSales.php:1337 Credit_Invoice.php:703 Credit_Invoice.php:725 #: CustomerReceipt.php:523 CustomerReceipt.php:655 CustomerReceipt.php:683 #: CustomerTransInquiry.php:79 DeliveryDetails.php:393 GLProfit_Loss.php:579 #: GLTagProfit_Loss.php:488 Payments.php:312 PDFRemittanceAdvice.php:86 @@ -1058,7 +1060,7 @@ #: MRPDemands.php:247 PcAssignCashToTab.php:135 PcClaimExpensesFromTab.php:126 #: PcExpenses.php:160 PcExpensesTypeTab.php:101 PcTabs.php:166 #: PcTypeTabs.php:135 SalesAnalReptCols.php:215 SalesCategories.php:137 -#: SalesTypes.php:161 StockCategories.php:196 Suppliers.php:635 +#: SalesTypes.php:166 StockCategories.php:196 Suppliers.php:635 #: SupplierTypes.php:151 Z_DeleteInvoice.php:146 msgid "has been deleted" msgstr "byl zrušen" @@ -1393,7 +1395,7 @@ msgstr "od" #: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:58 -#: EmailCustTrans.php:65 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 +#: EmailCustTrans.php:63 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 #: GLAccountCSV.php:171 GLAccountReport.php:102 Payments.php:717 #: PcReportTab.php:102 PDFChequeListing.php:107 PDFChequeListing.php:117 #: PDFChequeListing.php:192 PDFDeliveryDifferences.php:166 @@ -1506,7 +1508,7 @@ msgid "Ref" msgstr "Ref" -#: BankMatching.php:229 ConfirmDispatch_Invoice.php:274 Credit_Invoice.php:281 +#: BankMatching.php:229 ConfirmDispatch_Invoice.php:274 Credit_Invoice.php:279 #: CustomerAllocations.php:358 CustomerReceipt.php:842 #: CustomerTransInquiry.php:94 CustWhereAlloc.php:92 PaymentAllocations.php:78 #: Payments.php:969 Payments.php:972 Payments.php:984 @@ -1641,7 +1643,7 @@ #: BankReconciliation.php:196 BankReconciliation.php:268 #: CustomerAllocations.php:330 CustomerAllocations.php:356 #: CustomerInquiry.php:191 CustomerTransInquiry.php:86 CustWhereAlloc.php:89 -#: EmailCustTrans.php:17 GLAccountInquiry.php:153 GLAccountReportphp:156 +#: EmailCustTrans.php:15 GLAccountInquiry.php:153 GLAccountReportphp:156 #: PrintCustTrans.php:450 PrintCustTrans.php:651 PrintCustTrans.php:871 #: PrintCustTrans.php:918 PrintCustTransPortrait.php:502 #: PrintCustTransPortrait.php:703 PrintCustTransPortrait.php:922 @@ -1786,7 +1788,7 @@ #: ContractCosting.php:80 ContractCosting.php:131 ContractOtherReqts.php:95 #: Contracts.php:932 Contracts.php:956 CounterSales.php:701 #: CounterSales.php:1994 CounterSales.php:2174 CounterSales.php:2302 -#: Credit_Invoice.php:275 DeliveryDetails.php:822 DeliveryDetails.php:887 +#: Credit_Invoice.php:273 DeliveryDetails.php:822 DeliveryDetails.php:887 #: GoodsReceived.php:88 GoodsReceived.php:92 GoodsReceived.php:95 #: InventoryPlanningPrefSupplier.php:83 InventoryQuantities.php:223 #: MRPDemands.php:291 MRPDemands.php:381 MRPPlannedPurchaseOrders.php:326 @@ -2184,7 +2186,7 @@ #: BOMInquiry.php:25 BOMs.php:802 MRPDemands.php:331 MRPReport.php:542 #: PO_SelectOSPurchOrder.php:200 PO_SelectPurchOrder.php:170 #: SalesCategories.php:422 SelectProduct.php:512 Shipt_Select.php:166 -#: StockAdjustments.php:69 StockAdjustments.php:324 StockCounts.php:97 +#: StockAdjustments.php:76 StockAdjustments.php:335 StockCounts.php:97 #: StockCounts.php:132 StockMovements.php:31 StockReorderLevel.php:44 #: StockStatus.php:61 StockTransfers.php:38 StockTransfers.php:445 #: StockUsage.php:58 SupplierTenders.php:359 WorkOrderEntry.php:582 @@ -2237,7 +2239,7 @@ #: PDFOrderStatus.php:315 PDFPrintLabel.php:238 PO_Header.php:542 #: PO_Items.php:928 PO_SelectOSPurchOrder.php:210 PO_SelectPurchOrder.php:177 #: PricesByCost.php:151 PurchData.php:339 ReorderLevelLocation.php:54 -#: ReorderLevelLocation.php:203 SalesPeople.php:184 +#: ReorderLevelLocation.php:203 SalesPeople.php:190 #: SelectCompletedOrder.php:535 SelectCreditItems.php:220 #: SelectCreditItems.php:956 SelectCustomer.php:458 SelectGLAccount.php:105 #: SelectOrderItems.php:1447 SelectOrderItems.php:1627 SelectProduct.php:709 @@ -2251,7 +2253,7 @@ #: BOMInquiry.php:95 BOMs.php:815 ConfirmDispatch_Invoice.php:266 #: ContractBOM.php:342 CounterSales.php:1989 CounterSales.php:2169 -#: Credit_Invoice.php:274 GoodsReceived.php:89 GoodsReceived.php:93 +#: Credit_Invoice.php:272 GoodsReceived.php:89 GoodsReceived.php:93 #: MRPReport.php:741 OffersReceived.php:96 PO_Items.php:932 #: PO_SelectOSPurchOrder.php:214 PO_SelectPurchOrder.php:181 #: SelectCompletedOrder.php:540 SelectCreditItems.php:958 @@ -2293,7 +2295,7 @@ #: BOMInquiry.php:174 ContractBOM.php:243 ContractCosting.php:76 #: ContractCosting.php:82 ContractCosting.php:132 ContractOtherReqts.php:96 #: Contracts.php:934 Contracts.php:957 MRPPlannedWorkOrders.php:260 -#: MRPShortages.php:336 SpecialOrder.php:632 StockAdjustments.php:340 +#: MRPShortages.php:336 SpecialOrder.php:632 StockAdjustments.php:351 msgid "Unit Cost" msgstr "Jednotková cena" @@ -2406,12 +2408,12 @@ "Účinné k dnešnímu dni pole musí být data ve formátu dd / mm / rr nebo dd / " "mm / rrrr nebo ddmmrr nebo ddmmrrrr nebo dd-mm-rr nebo dd-mm-rrrr" -#: BOMs.php:231 StockAdjustments.php:89 StockTransfers.php:150 +#: BOMs.php:231 StockAdjustments.php:100 StockTransfers.php:150 #: WorkOrderEntry.php:260 msgid "The quantity entered must be numeric" msgstr "Množství uvedené musí být číslo" -#: BOMs.php:237 StockAdjustments.php:92 +#: BOMs.php:237 StockAdjustments.php:103 msgid "The quantity entered cannot be zero" msgstr "Množství uvedené nemůže být nula" @@ -2536,7 +2538,7 @@ msgstr "SQL slouží k získání popisu mateřské část byla" #: BOMs.php:397 ConfirmDispatch_Invoice.php:1009 CounterSales.php:1372 -#: Credit_Invoice.php:763 Credit_Invoice.php:792 SelectCreditItems.php:1417 +#: Credit_Invoice.php:761 Credit_Invoice.php:790 SelectCreditItems.php:1417 #: Stocks.php:810 Stocks.php:812 msgid "Assembly" msgstr "Sestava" @@ -2925,10 +2927,10 @@ msgstr "Vytvořte GL údaje pro obchodů s akciemi" #: CompanyPreferences.php:474 ConfirmDispatch_Invoice.php:618 -#: ConfirmDispatch_Invoice.php:1647 Credit_Invoice.php:1528 +#: ConfirmDispatch_Invoice.php:1647 Credit_Invoice.php:1526 #: FixedAssetItems.php:120 FixedAssetItems.php:566 GLBudgets.php:216 #: GLTags.php:62 GoodsReceived.php:229 GoodsReceived.php:235 -#: GoodsReceived.php:242 GoodsReceived.php:699 Labels.php:262 +#: GoodsReceived.php:242 GoodsReceived.php:698 Labels.php:262 #: MRPCalendar.php:307 Payments.php:860 PcAuthorizeExpenses.php:283 #: PO_AuthoriseMyOrders.php:132 PricesByCost.php:221 PurchData.php:505 #: ReorderLevelLocation.php:156 SecurityTokens.php:89 @@ -2989,7 +2991,7 @@ msgstr "Zpět na Potvrzení o odeslání" #: ConfirmDispatchControlled_Invoice.php:56 CounterSales.php:1207 -#: DeliveryDetails.php:583 DeliveryDetails.php:783 EmailCustTrans.php:11 +#: DeliveryDetails.php:583 DeliveryDetails.php:783 EmailCustTrans.php:9 #: PaymentAllocations.php:33 SelectSalesOrder.php:742 SelectSalesOrder.php:811 #: SelectSalesOrder.php:838 Z_SalesIntegrityCheck.php:46 #: includes/PDFDeliveryDifferencesPageHeader.inc:40 @@ -3031,7 +3033,7 @@ msgid "The SQL to get the order header was" msgstr "SQL získat pořadí záhlaví byl" -#: ConfirmDispatch_Invoice.php:149 Credit_Invoice.php:127 OrderDetails.php:140 +#: ConfirmDispatch_Invoice.php:149 Credit_Invoice.php:125 OrderDetails.php:140 #: RecurringSalesOrders.php:125 SelectOrderItems.php:220 msgid "The line items of the order cannot be retrieved because" msgstr "Řádkové položky v řádu nelze načíst, protože" @@ -3105,7 +3107,7 @@ #: ConfirmDispatch_Invoice.php:263 ContractBOM.php:239 ContractCosting.php:72 #: ContractCosting.php:78 Contracts.php:930 CounterSales.php:699 -#: CounterSales.php:2301 Credit_Invoice.php:271 DeliveryDetails.php:820 +#: CounterSales.php:2301 Credit_Invoice.php:269 DeliveryDetails.php:820 #: GoodsReceived.php:86 OrderDetails.php:153 PO_Items.php:639 #: PO_OrderDetails.php:142 PrintCustTrans.php:799 PrintCustTrans.php:887 #: PrintCustTrans.php:934 PrintCustTransPortrait.php:855 @@ -3130,7 +3132,7 @@ #: ConfirmDispatch_Invoice.php:264 ContractCosting.php:73 #: ContractCosting.php:79 Contracts.php:931 CounterSales.php:700 -#: Credit_Invoice.php:272 DeliveryDetails.php:821 DeliveryDetails.php:886 +#: Credit_Invoice.php:270 DeliveryDetails.php:821 DeliveryDetails.php:886 #: OrderDetails.php:154 PO_Items.php:706 PO_OrderDetails.php:143 #: PrintCustTrans.php:800 PrintCustTrans.php:888 PrintCustTrans.php:935 #: PrintCustTransPortrait.php:856 PrintCustTransPortrait.php:939 @@ -3168,7 +3170,7 @@ msgid "This Dispatch" msgstr "Tato zásilka" -#: ConfirmDispatch_Invoice.php:269 CounterSales.php:704 Credit_Invoice.php:276 +#: ConfirmDispatch_Invoice.php:269 CounterSales.php:704 Credit_Invoice.php:274 #: DeliveryDetails.php:824 DeliveryDetails.php:889 GoodsReceived.php:98 #: OffersReceived.php:97 OffersReceived.php:197 OffersReceived.php:244 #: OrderDetails.php:157 PDFOrdersInvoiced.php:385 PDFPriceList.php:359 @@ -3190,7 +3192,7 @@ msgid "Price" msgstr "Cena" -#: ConfirmDispatch_Invoice.php:270 CounterSales.php:705 Credit_Invoice.php:277 +#: ConfirmDispatch_Invoice.php:270 CounterSales.php:705 Credit_Invoice.php:275 #: CustomerReceipt.php:843 DeliveryDetails.php:825 OrderDetails.php:158 #: PrintCustTrans.php:804 PrintCustTrans.php:892 PrintCustTrans.php:939 #: PrintCustTransPortrait.php:860 PrintCustTransPortrait.php:943 @@ -3204,8 +3206,8 @@ msgstr "Sleva" #: ConfirmDispatch_Invoice.php:271 ConfirmDispatch_Invoice.php:275 -#: CounterSales.php:709 CounterSales.php:796 Credit_Invoice.php:278 -#: Credit_Invoice.php:282 CustomerAllocations.php:332 +#: CounterSales.php:709 CounterSales.php:796 Credit_Invoice.php:276 +#: Credit_Invoice.php:280 CustomerAllocations.php:332 #: CustomerAllocations.php:358 CustomerInquiry.php:197 DeliveryDetails.php:826 #: DeliveryDetails.php:890 GLBalanceSheet.php:172 GLBalanceSheet.php:181 #: GLBalanceSheet.php:258 GLBalanceSheet.php:267 GLBudgets.php:195 @@ -3234,12 +3236,12 @@ msgid "Total" msgstr "Celkem" -#: ConfirmDispatch_Invoice.php:271 Credit_Invoice.php:278 +#: ConfirmDispatch_Invoice.php:271 Credit_Invoice.php:276 #: SelectCreditItems.php:656 msgid "Excl Tax" msgstr "bez DPH" -#: ConfirmDispatch_Invoice.php:272 Credit_Invoice.php:279 +#: ConfirmDispatch_Invoice.php:272 Credit_Invoice.php:277 #: SelectCreditItems.php:657 SupplierInvoice.php:233 TaxGroups.php:270 msgid "Tax Authority" msgstr "Daňový úřad" @@ -3248,15 +3250,15 @@ msgid "Tax %" msgstr "DPH %" -#: ConfirmDispatch_Invoice.php:274 CounterSales.php:708 Credit_Invoice.php:280 -#: Credit_Invoice.php:281 PrintCustTrans.php:391 PrintCustTrans.php:976 +#: ConfirmDispatch_Invoice.php:274 CounterSales.php:708 Credit_Invoice.php:278 +#: Credit_Invoice.php:279 PrintCustTrans.php:391 PrintCustTrans.php:976 #: PrintCustTransPortrait.php:450 PrintCustTransPortrait.php:1023 #: SelectCreditItems.php:658 SelectCreditItems.php:659 #: includes/PDFTaxPageHeader.inc:40 msgid "Tax" msgstr "DPH" -#: ConfirmDispatch_Invoice.php:275 CounterSales.php:709 Credit_Invoice.php:282 +#: ConfirmDispatch_Invoice.php:275 CounterSales.php:709 Credit_Invoice.php:280 #: SelectCreditItems.php:660 msgid "Incl Tax" msgstr "včetně DPH" @@ -3292,8 +3294,8 @@ "nákladní společnost mají být použity" #: ConfirmDispatch_Invoice.php:438 DeliveryDetails.php:244 Prices.php:342 -#: includes/InputSerialItemsExisting.php:58 -#: includes/InputSerialItemsKeyed.php:139 +#: includes/InputSerialItemsExisting.php:59 +#: includes/InputSerialItemsKeyed.php:141 #: includes/InputSerialItemsSequential.php:48 #: includes/OutputSerialItems.php:204 msgid "Enter" @@ -3382,12 +3384,12 @@ msgid "Please remedy this" msgstr "Prosím nápravě tohoto" -#: ConfirmDispatch_Invoice.php:645 Credit_Invoice.php:485 +#: ConfirmDispatch_Invoice.php:645 Credit_Invoice.php:483 #: GoodsReceived.php:252 msgid "The company information and preferences could not be retrieved" msgstr "Informace o společnosti a preference se nepodařilo získat" -#: ConfirmDispatch_Invoice.php:645 Credit_Invoice.php:485 +#: ConfirmDispatch_Invoice.php:645 Credit_Invoice.php:483 #: GoodsReceived.php:252 msgid "see your system administrator" msgstr "kontaktujte administrátora" @@ -3490,19 +3492,19 @@ #: CounterSales.php:1336 CounterSales.php:1379 CounterSales.php:1389 #: CounterSales.php:1473 CounterSales.php:1494 CounterSales.php:1656 #: CounterSales.php:1678 CounterSales.php:1704 CounterSales.php:1726 -#: CounterSales.php:1752 CounterSales.php:1775 Credit_Invoice.php:193 -#: Credit_Invoice.php:543 Credit_Invoice.php:584 Credit_Invoice.php:601 -#: Credit_Invoice.php:617 Credit_Invoice.php:667 Credit_Invoice.php:682 -#: Credit_Invoice.php:798 Credit_Invoice.php:808 Credit_Invoice.php:890 -#: Credit_Invoice.php:905 Credit_Invoice.php:920 Credit_Invoice.php:930 -#: Credit_Invoice.php:945 Credit_Invoice.php:989 Credit_Invoice.php:1028 -#: Credit_Invoice.php:1069 Credit_Invoice.php:1092 Credit_Invoice.php:1263 -#: Credit_Invoice.php:1303 Credit_Invoice.php:1330 Credit_Invoice.php:1351 -#: Credit_Invoice.php:1380 Credit_Invoice.php:1406 Credit_Invoice.php:1432 -#: GoodsReceived.php:271 GoodsReceived.php:351 GoodsReceived.php:393 -#: GoodsReceived.php:423 GoodsReceived.php:451 GoodsReceived.php:482 -#: GoodsReceived.php:500 GoodsReceived.php:529 GoodsReceived.php:546 -#: GoodsReceived.php:636 GoodsReceived.php:661 PDFStockCheckComparison.php:122 +#: CounterSales.php:1752 CounterSales.php:1775 Credit_Invoice.php:191 +#: Credit_Invoice.php:541 Credit_Invoice.php:582 Credit_Invoice.php:599 +#: Credit_Invoice.php:615 Credit_Invoice.php:665 Credit_Invoice.php:680 +#: Credit_Invoice.php:796 Credit_Invoice.php:806 Credit_Invoice.php:888 +#: Credit_Invoice.php:903 Credit_Invoice.php:918 Credit_Invoice.php:928 +#: Credit_Invoice.php:943 Credit_Invoice.php:987 Credit_Invoice.php:1026 +#: Credit_Invoice.php:1067 Credit_Invoice.php:1090 Credit_Invoice.php:1261 +#: Credit_Invoice.php:1301 Credit_Invoice.php:1328 Credit_Invoice.php:1349 +#: Credit_Invoice.php:1378 Credit_Invoice.php:1404 Credit_Invoice.php:1430 +#: GoodsReceived.php:271 GoodsReceived.php:351 GoodsReceived.php:392 +#: GoodsReceived.php:422 GoodsReceived.php:450 GoodsReceived.php:481 +#: GoodsReceived.php:499 GoodsReceived.php:528 GoodsReceived.php:545 +#: GoodsReceived.php:635 GoodsReceived.php:660 PDFStockCheckComparison.php:122 #: PDFStockCheckComparison.php:130 PDFStockCheckComparison.php:137 #: PDFStockCheckComparison.php:156 PDFStockCheckComparison.php:175 #: RecurringSalesOrdersProcess.php:321 RecurringSalesOrdersProcess.php:361 @@ -3528,9 +3530,9 @@ #: ShipmentCosting.php:243 ShipmentCosting.php:289 ShipmentCosting.php:310 #: ShipmentCosting.php:324 ShipmentCosting.php:358 ShipmentCosting.php:381 #: ShipmentCosting.php:413 ShipmentCosting.php:431 ShipmentCosting.php:444 -#: StockAdjustments.php:157 StockAdjustments.php:191 StockAdjustments.php:208 -#: StockAdjustments.php:224 StockAdjustments.php:237 StockAdjustments.php:265 -#: StockAdjustments.php:287 StockDispatch.php:177 StockLocTransfer.php:74 +#: StockAdjustments.php:168 StockAdjustments.php:202 StockAdjustments.php:219 +#: StockAdjustments.php:235 StockAdjustments.php:248 StockAdjustments.php:276 +#: StockAdjustments.php:298 StockDispatch.php:177 StockLocTransfer.php:74 #: StockLocTransfer.php:96 StockLocTransfer.php:100 #: StockLocTransferReceive.php:105 StockLocTransferReceive.php:139 #: StockLocTransferReceive.php:153 StockLocTransferReceive.php:172 @@ -3599,19 +3601,19 @@ #: CounterSales.php:1336 CounterSales.php:1379 CounterSales.php:1389 #: CounterSales.php:1473 CounterSales.php:1494 CounterSales.php:1656 #: CounterSales.php:1678 CounterSales.php:1704 CounterSales.php:1726 -#: CounterSales.php:1752 CounterSales.php:1775 Credit_Invoice.php:543 -#: Credit_Invoice.php:584 Credit_Invoice.php:601 Credit_Invoice.php:617 -#: Credit_Invoice.php:667 Credit_Invoice.php:682 Credit_Invoice.php:798 -#: Credit_Invoice.php:808 Credit_Invoice.php:890 Credit_Invoice.php:905 -#: Credit_Invoice.php:920 Credit_Invoice.php:930 Credit_Invoice.php:945 -#: Credit_Invoice.php:989 Credit_Invoice.php:1028 Credit_Invoice.php:1069 -#: Credit_Invoice.php:1092 Credit_Invoice.php:1263 Credit_Invoice.php:1303 -#: Credit_Invoice.php:1330 Credit_Invoice.php:1351 Credit_Invoice.php:1380 -#: Credit_Invoice.php:1406 Credit_... [truncated message content] |
From: <dai...@us...> - 2011-06-13 10:23:54
|
Revision: 4596 http://web-erp.svn.sourceforge.net/web-erp/?rev=4596&view=rev Author: daintree Date: 2011-06-13 10:23:44 +0000 (Mon, 13 Jun 2011) Log Message: ----------- xhtml case indent etc Modified Paths: -------------- trunk/Areas.php trunk/BOMInquiry.php trunk/BOMListing.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankMatching.php trunk/COGSGLPostings.php trunk/CompanyPreferences.php trunk/ConfirmDispatch_Invoice.php trunk/StockLocTransfer.php trunk/doc/Change.log 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/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.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/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.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/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.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/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.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/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/Areas.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -68,7 +68,7 @@ $sql = "UPDATE areas SET areadescription='" . $_POST['AreaDescription'] . "' - WHERE areacode = '$SelectedArea'"; + WHERE areacode = '" . $SelectedArea . "'"; $msg = _('Area code') . ' ' . $SelectedArea . ' ' . _('has been updated'); @@ -172,13 +172,13 @@ //end of ifs and buts! if (isset($SelectedArea)) { - echo '<div class="centre"><a href="' . $_SERVER['PHP_SELF'] . '?' . SID . '">' . _('Review Areas Defined') . '</a></div>'; + echo '<div class="centre"><a href="' . $_SERVER['PHP_SELF'] . '">' . _('Review Areas Defined') . '</a></div>'; } if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '"><br>'; + echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '"><br>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedArea)) { @@ -187,7 +187,7 @@ $sql = "SELECT areacode, areadescription FROM areas - WHERE areacode='$SelectedArea'"; + WHERE areacode='" . $SelectedArea . "'"; $result = DB_query($sql, $db); $myrow = DB_fetch_array($result); @@ -195,8 +195,8 @@ $_POST['AreaCode'] = $myrow['areacode']; $_POST['AreaDescription'] = $myrow['areadescription']; - echo '<input type=hidden name=SelectedArea VALUE=' . $SelectedArea . '>'; - echo '<input type=hidden name=AreaCode VALUE=' .$_POST['AreaCode'] . '>'; + echo '<input type=hidden name=SelectedArea value="' . $SelectedArea . '">'; + echo '<input type=hidden name=AreaCode value="' .$_POST['AreaCode'] . '">'; echo '<table class=selection><tr><td>' . _('Area Code') . ':</td><td>' . $_POST['AreaCode'] . '</td></tr>'; } else { @@ -206,7 +206,7 @@ if (!isset($_POST['AreaDescription'])) { $_POST['AreaDescription'] = ''; } - echo '<table class=selection> + echo '<table class="selection"> <tr> <td>' . _('Area Code') . ':</td> <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size=3 maxlength=3></td> @@ -217,7 +217,7 @@ <td><input tabindex="2" ' . (in_array('AreaDescription',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaDescription" value="' . $_POST['AreaDescription'] .'" size=26 maxlength=25></td> </tr>'; - echo '<tr><td colspan=2><div class="centre"><input tabindex="3" type="Submit" name="submit" value=' . _('Enter Information') .'></div></td></tr>'; + echo '<tr><td colspan=2><div class="centre"><input tabindex="3" type="submit" name="submit" value=' . _('Enter Information') .'></div></td></tr>'; echo '</table></form>'; } //end if record deleted no point displaying form to add record Modified: trunk/BOMInquiry.php =================================================================== --- trunk/BOMInquiry.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/BOMInquiry.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -1,7 +1,6 @@ <?php -/* $Revision: 1.12 $ */ + /* $Id$*/ -//$PageSecurity = 2; include('includes/session.inc'); $title = _('Costed Bill Of Material'); @@ -14,16 +13,20 @@ } if (!isset($_POST['StockID'])) { - echo "<form action=" . $_SERVER['PHP_SELF'] . "?" . SID ." method=post><b><br></b>". - '<div class="page_help_text">'. _('Select a manufactured part') . " (" . _('or Assembly or Kit part') . ") " . - _('to view the costed bill of materials') . "." . "<br><font size=1>" . - _('Parts must be defined in the stock item entry') . "/" . _('modification screen as manufactured') . - ", " . _('kits or assemblies to be available for construction of a bill of material').'</div>' - ."</font><br><table class=selection cellpadding=3 colspan=4><tr><td><font size=1>" . _('Enter text extracts in the') . - " <b>" . _('description') . "</b>:</font></td><td><input tabindex='1' type='Text' name='Keywords' size=20 maxlength=25></td> - <td><font size=3><b>" . _('OR') . "</b></font></td><td><font size=1>" . _('Enter extract of the') . - " <b>" . _('Stock Code') . "</b>:</font></td><td><input tabindex='2' type='Text' name='StockCode' size=15 maxlength=20></td> - </tr></table><br><div class='centre'><input tabindex='3' type=submit name='Search' VALUE=" . _('Search Now') . "></div><br>"; + echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post"><b><br></b>'. + '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . + _('to view the costed bill of materials') . '<br /><font size=1>' . + _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . + ', ' . _('kits or assemblies to be available for construction of a bill of material').'</div>' + .'</font><br /> + <table class="selection" cellpadding="3" colspan="4"> + <tr><td><font size="1">' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td> + <td><input tabindex="1" type="text" name="Keywords" size="20" maxlength="25"></td> + <td><font size="3"><b>' . _('OR') . '</b></font></td> + <td><font size="1">' . _('Enter extract of the') . ' <b>' . _('Stock Code') . '</b>:</font></td> + <td><input tabindex="2" type="text" name="StockCode" size="15" maxlength="20"></td> + </tr></table> + <br /><div class="centre"><input tabindex="3" type="submit" name="Search" value=' . _('Search Now') . '></div><br />'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; } @@ -90,10 +93,10 @@ echo '<br><hr><br><table class=selection cellpadding=2 colspan=7>'; $TableHeader = '<tr><th>' . _('Code') . '</th> - <th>' . _('Description') . '</th> - <th>' . _('On Hand') . '</th> - <th>' . _('Units') . '</th> - </tr>'; + <th>' . _('Description') . '</th> + <th>' . _('On Hand') . '</th> + <th>' . _('Units') . '</th> + </tr>'; echo $TableHeader; @@ -113,15 +116,14 @@ $StockOnHand = number_format($myrow['totalonhand'],2); } $tabindex=$j+4; - printf("<td><input tabindex='".$tabindex."' type=submit name='StockID' VALUE='%s'</td> + printf('<td><input tabindex="' .$tabindex . '" type="submit" name="StockID" value="%s"</td> <td>%s</td> - <td class=number>%s</td> - <td>%s</td></tr>", - $myrow['stockid'], - $myrow['description'], - $StockOnHand, - $myrow['units'] - ); + <td class=number>%s</td> + <td>%s</td></tr>', + $myrow['stockid'], + $myrow['description'], + $StockOnHand, + $myrow['units'] ); $j++; //end of page full new headings if } @@ -131,17 +133,18 @@ } if (isset($StockID) and $StockID!=""){ - /*CCF modification */ -// $result = DB_query("SELECT description, units FROM stockmaster WHERE stockid='" . $StockID . "'",$db); - $result = DB_query("SELECT description, units, labourcost, overheadcost FROM stockmaster WHERE stockid='" . $StockID . "'",$db); - /*CCF end modification */ + + $result = DB_query("SELECT description, + units, + labourcost, + overheadcost + FROM stockmaster + WHERE stockid='" . $StockID . "'", + $db); $myrow = DB_fetch_array($result); - /*CCF modification */ $ParentLabourCost = $myrow['labourcost']; $ParentOverheadCost = $myrow['overheadcost']; - /*CCF end modification */ - - + $sql = "SELECT bom.parent, bom.component, stockmaster.description, @@ -149,7 +152,8 @@ stockmaster.materialcost+ stockmaster.labourcost+stockmaster.overheadcost as standardcost, bom.quantity, bom.quantity * (stockmaster.materialcost+ stockmaster.labourcost+ stockmaster.overheadcost) AS componentcost - FROM bom INNER JOIN stockmaster ON bom.component = stockmaster.stockid + FROM bom INNER JOIN stockmaster + ON bom.component = stockmaster.stockid WHERE bom.parent = '" . $StockID . "' AND bom.effectiveafter < Now() AND bom.effectiveto > Now()"; @@ -161,20 +165,17 @@ prnMsg(_('The bill of material for this part is not set up') . ' - ' . _('there are no components defined for it'),'warn'); } else { echo '<a href="'.$rootpath.'/index.php">'._('Return to Main Menu').'</a>'; - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . - _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; - echo "<table class=selection cellpadding=2>"; - echo "<tr><th colspan=5><div class='centre'><font size=4><b>" . $myrow[0] . ' : ' . _('per') . ' ' . $myrow[1] . - "</b></font></div></th></tr>"; + echo '<table class="selection" cellpadding="2">'; + echo '<tr><th colspan=5><div class="centre"><font size=4><b>' . $myrow[0] . ' : ' . _('per') . ' ' . $myrow[1] . '</b></font></div></th></tr>'; $TableHeader = '<tr> - <th>' . _('Component') . '</th> - <th>' . _('Description') . '</th> - <th>' . _('Quantity') . '</th> - <th>' . _('Unit Cost') . '</th> - <th>' . _('Total Cost') . '</th> - </tr>'; - + <th>' . _('Component') . '</th> + <th>' . _('Description') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Unit Cost') . '</th> + <th>' . _('Total Cost') . '</th> + </tr>'; echo $TableHeader; $j = 1; @@ -192,39 +193,37 @@ $k++; } - $ComponentLink = "<a href='$rootpath/SelectProduct.php?" . SID . "&StockID=" . $myrow['component'] . "'>" . $myrow['component'] . "</a>"; + $ComponentLink = '<a href="' . $rootpath . '/SelectProduct.php?StockID=' . $myrow['component'] . '">' . $myrow['component'] . '</a>'; - /* Component Code Description Quantity Std Cost* Total Cost */ - printf("<td>%s</td> - <td>%s</td> - <td class=number>%s</td> - <td class=number>%.2f</td> - <td class=number>%.2f</td> - </tr>", - $ComponentLink, - $myrow['description'], - number_format($myrow['quantity'], - $myrow['decimalplaces']), - $myrow['standardcost'], - $myrow['componentcost']); + /* Component Code Description Quantity Std Cost Total Cost */ + printf('<td>%s</td> + <td>%s</td> + <td class=number>%s</td> + <td class=number>%.2f</td> + <td class=number>%.2f</td> + </tr>', + $ComponentLink, + $myrow['description'], + number_format($myrow['quantity'],$myrow['decimalplaces']), + $myrow['standardcost'], + $myrow['componentcost']); $TotalCost += $myrow['componentcost']; $j++; } - /*CCF modification */ + $TotalCost += $ParentLabourCost; echo '<tr> - <td colspan=4 class=number><b>' . _('Labour Cost') . '</b></td> - <td class=number><b>' . number_format($ParentLabourCost,2) . '</b></td> </tr>'; + <td colspan="4" class="number"><b>' . _('Labour Cost') . '</b></td> + <td class=number><b>' . number_format($ParentLabourCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td></tr>'; $TotalCost += $ParentOverheadCost; - echo '<tr><td colspan=4 class=number><b>' . _('Overhead Cost') . '</b></td> - <td class=number><b>' . number_format($ParentOverheadCost,2) . '</b></td></tr>'; - /*CCF end modification */ + echo '<tr><td colspan="4" class="number"><b>' . _('Overhead Cost') . '</b></td> + <td class=number><b>' . number_format($ParentOverheadCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td></tr>'; echo '<tr> <td colspan=4 class=number><b>' . _('Total Cost') . '</b></td> - <td class=number><b>' . number_format($TotalCost,2) . '</b></td> + <td class=number><b>' . number_format($TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> </tr>'; echo '</table>'; @@ -234,9 +233,9 @@ } if (!isset($_POST['StockID']) or $_POST['StockID']=='') { - echo "<script>defaultControl(document.forms[0].StockCode);</script>"; + echo '<script>defaultControl(document.forms[0].StockCode);</script>'; } echo '</form>'; include('includes/footer.inc'); -?> +?> \ No newline at end of file Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/BOMListing.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -77,7 +77,7 @@ $SQL = "SELECT description FROM stockmaster WHERE stockmaster.stockid = '" . $BOMList['parent'] . "'"; $ParentResult = DB_query($SQL,$db); $ParentRow = DB_fetch_row($ParentResult); - $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,400-$Left_Margin,$FontSize,$BOMList['parent'] . ' - ' . $ParentRow[0],'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,400-$Left_Margin,$FontSize,$BOMList['parent'] . ' - ' . $ParentRow[0],'left'); $ParentPart = $BOMList['parent']; } Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/BOMs.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -18,7 +18,7 @@ $c_result = DB_query("SELECT parent, component FROM bom WHERE parent='" . $parent. "'" - ,$db); + ,$db); if (DB_num_rows($c_result) > 0) { while ($row = DB_fetch_array($c_result)) { @@ -143,7 +143,7 @@ <td class=number>%s</td> <td><a href="%s&Select=%s&SelectedComponent=%s">' . _('Edit') . '</a></td> <td>'.$DrillText.'</a></td> - <td><a href="%s&Select=%s&SelectedComponent=%s&delete=1&ReSelect=%s">' . _('Delete') . '</a></td> + <td><a href="%s&Select=%s&SelectedComponent=%s&delete=1&ReSelect=%s" onclick="return confirm(\'' . _('Are you sure you wish to delete this component from the bill of material?') . '\');">' . _('Delete') . '</a></td> </tr>', $Level1, $myrow[0], @@ -216,13 +216,13 @@ if (!Is_Date($_POST['EffectiveAfter'])) { $InputError = 1; - prnMsg(_('The effective after date field must be a date in the format dd/mm/yy or dd/mm/yyyy or ddmmyy or ddmmyyyy or dd-mm-yy or dd-mm-yyyy'),'error'); + prnMsg(_('The effective after date field must be a date in the format') . ' ' .$_SESSION['DefaultDateFormat'],'error'); $Errors[$i] = 'EffectiveAfter'; $i++; } if (!Is_Date($_POST['EffectiveTo'])) { $InputError = 1; - prnMsg(_('The effective to date field must be a date in the format dd/mm/yy or dd/mm/yyyy or ddmmyy or ddmmyyyy or dd-mm-yy or dd-mm-yyyy'),'error'); + prnMsg(_('The effective to date field must be a date in the format') . ' ' .$_SESSION['DefaultDateFormat'],'error'); $Errors[$i] = 'EffectiveTo'; $i++; } @@ -380,9 +380,9 @@ //DisplayBOMItems($SelectedParent, $db); $sql = "SELECT stockmaster.description, - stockmaster.mbflag - FROM stockmaster - WHERE stockmaster.stockid='" . $SelectedParent . "'"; + stockmaster.mbflag + FROM stockmaster + WHERE stockmaster.stockid='" . $SelectedParent . "'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); $DbgMsg = _('The SQL used to retrieve description of the parent part was'); @@ -410,16 +410,16 @@ break; } - echo '<br /><div class=centre><a href=' . $_SERVER['PHP_SELF'] . '?' . SID . '>' . _('Select a Different BOM') . '</a></div><br />'; + echo '<br /><div class=centre><a href="' . $_SERVER['PHP_SELF'] . '">' . _('Select a Different BOM') . '</a></div><br />'; echo '<table class="selection">'; // Display Manufatured Parent Items $sql = "SELECT bom.parent, - stockmaster.description, - stockmaster.mbflag - FROM bom, stockmaster - WHERE bom.component='".$SelectedParent."' - AND stockmaster.stockid=bom.parent - AND stockmaster.mbflag='M'"; + stockmaster.description, + stockmaster.mbflag + FROM bom, stockmaster + WHERE bom.component='".$SelectedParent."' + AND stockmaster.stockid=bom.parent + AND stockmaster.mbflag='M'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); $DbgMsg = _('The SQL used to retrieve description of the parent part was'); @@ -429,7 +429,7 @@ if( DB_num_rows($result) > 0 ) { echo '<tr><td><div class="centre">'._('Manufactured parent items').' : '; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?' . SID . 'Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -437,10 +437,12 @@ $reqnl = $ix; } // Display Assembly Parent Items - $sql = "SELECT bom.parent, stockmaster.description, stockmaster.mbflag - FROM bom, stockmaster + $sql = "SELECT bom.parent, + stockmaster.description, + stockmaster.mbflag + FROM bom INNER JOIN stockmaster + ON bom.parent=stockmaster.stockid WHERE bom.component='".$SelectedParent."' - AND stockmaster.stockid=bom.parent AND stockmaster.mbflag='A'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); @@ -450,18 +452,20 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Assembly parent items').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?' . SID . 'Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop echo '</div></td></tr>'; } // Display Kit Sets - $sql = "SELECT bom.parent, stockmaster.description, stockmaster.mbflag - FROM bom, stockmaster - WHERE bom.component='".$SelectedParent."' - AND stockmaster.stockid=bom.parent - AND stockmaster.mbflag='K'"; + $sql = "SELECT bom.parent, + stockmaster.description, + stockmaster.mbflag + FROM bom INNER JOIN stockmaster + ON bom.parent=stockmaster.stockid + WHERE bom.component='".$SelectedParent."' + AND stockmaster.mbflag='K'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); $DbgMsg = _('The SQL used to retrieve description of the parent part was'); @@ -470,18 +474,20 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Kit sets').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?' . SID . 'Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop echo '</div></td></tr>'; } // Display Phantom/Ghosts - $sql = "SELECT bom.parent, stockmaster.description, stockmaster.mbflag - FROM bom, stockmaster - WHERE bom.component='".$SelectedParent."' - AND stockmaster.stockid=bom.parent - AND stockmaster.mbflag='G'"; + $sql = "SELECT bom.parent, + stockmaster.description, + stockmaster.mbflag + FROM bom INNER JOIN stockmaster + ON bom.parent=stockmaster.stockid + WHERE bom.component='".$SelectedParent."' + AND stockmaster.mbflag='G'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); $DbgMsg = _('The SQL used to retrieve description of the parent part was'); @@ -490,7 +496,7 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Phantom').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?' . SID . 'Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -575,44 +581,46 @@ echo '<br /> <input type="hidden" name="SelectedParent" value="' . $SelectedParent . '" />'; echo '<input type="hidden" name="SelectedComponent" value="' . $SelectedComponent . '" />'; - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr><th colspan=13><div class="centre"><font color=blue size=3><b>'. ('Edit Component Details') .'</font></b></th></tr>'; - echo '<tr><td>' . _('Component') . ':</td><td><b>' . $SelectedComponent . '</b></td></tr>'; + echo '<tr><td>' . _('Component') . ':</td> + <td><b>' . $SelectedComponent . '</b></td> + </tr>'; } else { //end of if $SelectedComponent echo '<input type=hidden name="SelectedParent" value="' . $SelectedParent . '" />'; /* echo "Enter the details of a new component in the fields below. <br />Click on 'Enter Information' to add the new component, once all fields are completed."; */ - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr><th colspan=13><div class="centre"><font color=blue size=3><b>' . ('New Component Details') .'</font></b></th></tr>'; echo '<tr><td>' . _('Component code') . ':</td><td>'; echo '<select ' . (in_array('ComponentCode',$Errors) ? 'class="selecterror"' : '' ) .' tabindex="1" name="Component">'; if ($ParentMBflag=='A'){ /*Its an assembly */ $sql = "SELECT stockmaster.stockid, - stockmaster.description - FROM stockmaster INNER JOIN stockcategory - ON stockmaster.categoryid = stockcategory.categoryid - WHERE ((stockcategory.stocktype='L' AND stockmaster.mbflag ='D') - OR stockmaster.mbflag !='D') - AND stockmaster.mbflag !='K' - AND stockmaster.mbflag !='A' - AND stockmaster.controlled = 0 - AND stockmaster.stockid != '".$SelectedParent."' - ORDER BY stockmaster.stockid"; + stockmaster.description + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid = stockcategory.categoryid + WHERE ((stockcategory.stocktype='L' AND stockmaster.mbflag ='D') + OR stockmaster.mbflag !='D') + AND stockmaster.mbflag !='K' + AND stockmaster.mbflag !='A' + AND stockmaster.controlled = 0 + AND stockmaster.stockid != '".$SelectedParent."' + ORDER BY stockmaster.stockid"; } else { /*Its either a normal manufac item, phantom, kitset - controlled items ok */ $sql = "SELECT stockmaster.stockid, - stockmaster.description - FROM stockmaster INNER JOIN stockcategory - ON stockmaster.categoryid = stockcategory.categoryid - WHERE ((stockcategory.stocktype='L' AND stockmaster.mbflag ='D') - OR stockmaster.mbflag !='D') - AND stockmaster.mbflag !='K' - AND stockmaster.mbflag !='A' - AND stockmaster.stockid != '".$SelectedParent."' - ORDER BY stockmaster.stockid"; + stockmaster.description + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid = stockcategory.categoryid + WHERE ((stockcategory.stocktype='L' AND stockmaster.mbflag ='D') + OR stockmaster.mbflag !='D') + AND stockmaster.mbflag !='K' + AND stockmaster.mbflag !='A' + AND stockmaster.stockid != '".$SelectedParent."' + ORDER BY stockmaster.stockid"; } $ErrMsg = _('Could not retrieve the list of potential components because'); @@ -789,11 +797,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . $title; echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">' . - '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . - _('to maintain the bill of material for using the options below') . '<br /><font size=1>' . - _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . - ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. - '</font> + '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . _('to maintain the bill of material for using the options below') . '<br /><font size=1>' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. '</font> <br /> <table class="selection" cellpadding="3" colspan="4"> <tr><td><font size=1>' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td> @@ -808,7 +812,7 @@ if (isset($_POST['Search']) AND isset($result) AND !isset($SelectedParent)) { - echo '<br /><table cellpadding=2 colspan=7 class=selection>'; + echo '<br /><table cellpadding="2" colspan="7" class="selection">'; $TableHeader = '<tr><th>' . _('Code') . '</th> <th>' . _('Description') . '</th> <th>' . _('On Hand') . '</th> @@ -834,13 +838,13 @@ } $tab = $j+3; printf('<td><input tabindex="' . $tab . '" type="submit" name="Select" value="%s"</td> - <td>%s</td> - <td class=number>%s</td> - <td>%s</td></tr>', - $myrow['stockid'], - $myrow['description'], - $StockOnHand, - $myrow['units']); + <td>%s</td> + <td class=number>%s</td> + <td>%s</td></tr>', + $myrow['stockid'], + $myrow['description'], + $StockOnHand, + $myrow['units']); $j++; //end of page full new headings if Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/BankAccounts.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -170,16 +170,15 @@ /* Always show the list of accounts */ If (!isset($SelectedBankAccount)) { $sql = "SELECT bankaccounts.accountcode, - bankaccounts.bankaccountcode, - chartmaster.accountname, - bankaccountname, - bankaccountnumber, - bankaddress, - currcode, - invoice - FROM bankaccounts, - chartmaster - WHERE bankaccounts.accountcode = chartmaster.accountcode"; + bankaccounts.bankaccountcode, + chartmaster.accountname, + bankaccountname, + bankaccountnumber, + bankaddress, + currcode, + invoice + FROM bankaccounts INNER JOIN chartmaster + ON bankaccounts.accountcode = chartmaster.accountcode"; $ErrMsg = _('The bank accounts set up could not be retrieved because'); $DbgMsg = _('The SQL used to retrieve the bank account details was') . '<br />' . $sql; @@ -198,7 +197,7 @@ </tr>'; $k=0; //row colour counter - while ($myrow = DB_fetch_row($result)) { + while ($myrow = DB_fetch_array($result)) { if ($k==1){ echo '<tr class="EvenTableRows">'; $k=0; @@ -206,33 +205,33 @@ echo '<tr class="OddTableRows">'; $k++; } - i... [truncated message content] |
From: <dai...@us...> - 2011-06-13 10:23:55
|
Revision: 4596 http://web-erp.svn.sourceforge.net/web-erp/?rev=4596&view=rev Author: daintree Date: 2011-06-13 10:23:44 +0000 (Mon, 13 Jun 2011) Log Message: ----------- xhtml case indent etc Modified Paths: -------------- trunk/Areas.php trunk/BOMInquiry.php trunk/BOMListing.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankMatching.php trunk/COGSGLPostings.php trunk/CompanyPreferences.php trunk/ConfirmDispatch_Invoice.php trunk/StockLocTransfer.php trunk/doc/Change.log 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/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.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/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.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/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.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/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.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/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/Areas.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -68,7 +68,7 @@ $sql = "UPDATE areas SET areadescription='" . $_POST['AreaDescription'] . "' - WHERE areacode = '$SelectedArea'"; + WHERE areacode = '" . $SelectedArea . "'"; $msg = _('Area code') . ' ' . $SelectedArea . ' ' . _('has been updated'); @@ -172,13 +172,13 @@ //end of ifs and buts! if (isset($SelectedArea)) { - echo '<div class="centre"><a href="' . $_SERVER['PHP_SELF'] . '?' . SID . '">' . _('Review Areas Defined') . '</a></div>'; + echo '<div class="centre"><a href="' . $_SERVER['PHP_SELF'] . '">' . _('Review Areas Defined') . '</a></div>'; } if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '"><br>'; + echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '"><br>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedArea)) { @@ -187,7 +187,7 @@ $sql = "SELECT areacode, areadescription FROM areas - WHERE areacode='$SelectedArea'"; + WHERE areacode='" . $SelectedArea . "'"; $result = DB_query($sql, $db); $myrow = DB_fetch_array($result); @@ -195,8 +195,8 @@ $_POST['AreaCode'] = $myrow['areacode']; $_POST['AreaDescription'] = $myrow['areadescription']; - echo '<input type=hidden name=SelectedArea VALUE=' . $SelectedArea . '>'; - echo '<input type=hidden name=AreaCode VALUE=' .$_POST['AreaCode'] . '>'; + echo '<input type=hidden name=SelectedArea value="' . $SelectedArea . '">'; + echo '<input type=hidden name=AreaCode value="' .$_POST['AreaCode'] . '">'; echo '<table class=selection><tr><td>' . _('Area Code') . ':</td><td>' . $_POST['AreaCode'] . '</td></tr>'; } else { @@ -206,7 +206,7 @@ if (!isset($_POST['AreaDescription'])) { $_POST['AreaDescription'] = ''; } - echo '<table class=selection> + echo '<table class="selection"> <tr> <td>' . _('Area Code') . ':</td> <td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size=3 maxlength=3></td> @@ -217,7 +217,7 @@ <td><input tabindex="2" ' . (in_array('AreaDescription',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaDescription" value="' . $_POST['AreaDescription'] .'" size=26 maxlength=25></td> </tr>'; - echo '<tr><td colspan=2><div class="centre"><input tabindex="3" type="Submit" name="submit" value=' . _('Enter Information') .'></div></td></tr>'; + echo '<tr><td colspan=2><div class="centre"><input tabindex="3" type="submit" name="submit" value=' . _('Enter Information') .'></div></td></tr>'; echo '</table></form>'; } //end if record deleted no point displaying form to add record Modified: trunk/BOMInquiry.php =================================================================== --- trunk/BOMInquiry.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/BOMInquiry.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -1,7 +1,6 @@ <?php -/* $Revision: 1.12 $ */ + /* $Id$*/ -//$PageSecurity = 2; include('includes/session.inc'); $title = _('Costed Bill Of Material'); @@ -14,16 +13,20 @@ } if (!isset($_POST['StockID'])) { - echo "<form action=" . $_SERVER['PHP_SELF'] . "?" . SID ." method=post><b><br></b>". - '<div class="page_help_text">'. _('Select a manufactured part') . " (" . _('or Assembly or Kit part') . ") " . - _('to view the costed bill of materials') . "." . "<br><font size=1>" . - _('Parts must be defined in the stock item entry') . "/" . _('modification screen as manufactured') . - ", " . _('kits or assemblies to be available for construction of a bill of material').'</div>' - ."</font><br><table class=selection cellpadding=3 colspan=4><tr><td><font size=1>" . _('Enter text extracts in the') . - " <b>" . _('description') . "</b>:</font></td><td><input tabindex='1' type='Text' name='Keywords' size=20 maxlength=25></td> - <td><font size=3><b>" . _('OR') . "</b></font></td><td><font size=1>" . _('Enter extract of the') . - " <b>" . _('Stock Code') . "</b>:</font></td><td><input tabindex='2' type='Text' name='StockCode' size=15 maxlength=20></td> - </tr></table><br><div class='centre'><input tabindex='3' type=submit name='Search' VALUE=" . _('Search Now') . "></div><br>"; + echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post"><b><br></b>'. + '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . + _('to view the costed bill of materials') . '<br /><font size=1>' . + _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . + ', ' . _('kits or assemblies to be available for construction of a bill of material').'</div>' + .'</font><br /> + <table class="selection" cellpadding="3" colspan="4"> + <tr><td><font size="1">' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td> + <td><input tabindex="1" type="text" name="Keywords" size="20" maxlength="25"></td> + <td><font size="3"><b>' . _('OR') . '</b></font></td> + <td><font size="1">' . _('Enter extract of the') . ' <b>' . _('Stock Code') . '</b>:</font></td> + <td><input tabindex="2" type="text" name="StockCode" size="15" maxlength="20"></td> + </tr></table> + <br /><div class="centre"><input tabindex="3" type="submit" name="Search" value=' . _('Search Now') . '></div><br />'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; } @@ -90,10 +93,10 @@ echo '<br><hr><br><table class=selection cellpadding=2 colspan=7>'; $TableHeader = '<tr><th>' . _('Code') . '</th> - <th>' . _('Description') . '</th> - <th>' . _('On Hand') . '</th> - <th>' . _('Units') . '</th> - </tr>'; + <th>' . _('Description') . '</th> + <th>' . _('On Hand') . '</th> + <th>' . _('Units') . '</th> + </tr>'; echo $TableHeader; @@ -113,15 +116,14 @@ $StockOnHand = number_format($myrow['totalonhand'],2); } $tabindex=$j+4; - printf("<td><input tabindex='".$tabindex."' type=submit name='StockID' VALUE='%s'</td> + printf('<td><input tabindex="' .$tabindex . '" type="submit" name="StockID" value="%s"</td> <td>%s</td> - <td class=number>%s</td> - <td>%s</td></tr>", - $myrow['stockid'], - $myrow['description'], - $StockOnHand, - $myrow['units'] - ); + <td class=number>%s</td> + <td>%s</td></tr>', + $myrow['stockid'], + $myrow['description'], + $StockOnHand, + $myrow['units'] ); $j++; //end of page full new headings if } @@ -131,17 +133,18 @@ } if (isset($StockID) and $StockID!=""){ - /*CCF modification */ -// $result = DB_query("SELECT description, units FROM stockmaster WHERE stockid='" . $StockID . "'",$db); - $result = DB_query("SELECT description, units, labourcost, overheadcost FROM stockmaster WHERE stockid='" . $StockID . "'",$db); - /*CCF end modification */ + + $result = DB_query("SELECT description, + units, + labourcost, + overheadcost + FROM stockmaster + WHERE stockid='" . $StockID . "'", + $db); $myrow = DB_fetch_array($result); - /*CCF modification */ $ParentLabourCost = $myrow['labourcost']; $ParentOverheadCost = $myrow['overheadcost']; - /*CCF end modification */ - - + $sql = "SELECT bom.parent, bom.component, stockmaster.description, @@ -149,7 +152,8 @@ stockmaster.materialcost+ stockmaster.labourcost+stockmaster.overheadcost as standardcost, bom.quantity, bom.quantity * (stockmaster.materialcost+ stockmaster.labourcost+ stockmaster.overheadcost) AS componentcost - FROM bom INNER JOIN stockmaster ON bom.component = stockmaster.stockid + FROM bom INNER JOIN stockmaster + ON bom.component = stockmaster.stockid WHERE bom.parent = '" . $StockID . "' AND bom.effectiveafter < Now() AND bom.effectiveto > Now()"; @@ -161,20 +165,17 @@ prnMsg(_('The bill of material for this part is not set up') . ' - ' . _('there are no components defined for it'),'warn'); } else { echo '<a href="'.$rootpath.'/index.php">'._('Return to Main Menu').'</a>'; - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . - _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; - echo "<table class=selection cellpadding=2>"; - echo "<tr><th colspan=5><div class='centre'><font size=4><b>" . $myrow[0] . ' : ' . _('per') . ' ' . $myrow[1] . - "</b></font></div></th></tr>"; + echo '<table class="selection" cellpadding="2">'; + echo '<tr><th colspan=5><div class="centre"><font size=4><b>' . $myrow[0] . ' : ' . _('per') . ' ' . $myrow[1] . '</b></font></div></th></tr>'; $TableHeader = '<tr> - <th>' . _('Component') . '</th> - <th>' . _('Description') . '</th> - <th>' . _('Quantity') . '</th> - <th>' . _('Unit Cost') . '</th> - <th>' . _('Total Cost') . '</th> - </tr>'; - + <th>' . _('Component') . '</th> + <th>' . _('Description') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Unit Cost') . '</th> + <th>' . _('Total Cost') . '</th> + </tr>'; echo $TableHeader; $j = 1; @@ -192,39 +193,37 @@ $k++; } - $ComponentLink = "<a href='$rootpath/SelectProduct.php?" . SID . "&StockID=" . $myrow['component'] . "'>" . $myrow['component'] . "</a>"; + $ComponentLink = '<a href="' . $rootpath . '/SelectProduct.php?StockID=' . $myrow['component'] . '">' . $myrow['component'] . '</a>'; - /* Component Code Description Quantity Std Cost* Total Cost */ - printf("<td>%s</td> - <td>%s</td> - <td class=number>%s</td> - <td class=number>%.2f</td> - <td class=number>%.2f</td> - </tr>", - $ComponentLink, - $myrow['description'], - number_format($myrow['quantity'], - $myrow['decimalplaces']), - $myrow['standardcost'], - $myrow['componentcost']); + /* Component Code Description Quantity Std Cost Total Cost */ + printf('<td>%s</td> + <td>%s</td> + <td class=number>%s</td> + <td class=number>%.2f</td> + <td class=number>%.2f</td> + </tr>', + $ComponentLink, + $myrow['description'], + number_format($myrow['quantity'],$myrow['decimalplaces']), + $myrow['standardcost'], + $myrow['componentcost']); $TotalCost += $myrow['componentcost']; $j++; } - /*CCF modification */ + $TotalCost += $ParentLabourCost; echo '<tr> - <td colspan=4 class=number><b>' . _('Labour Cost') . '</b></td> - <td class=number><b>' . number_format($ParentLabourCost,2) . '</b></td> </tr>'; + <td colspan="4" class="number"><b>' . _('Labour Cost') . '</b></td> + <td class=number><b>' . number_format($ParentLabourCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td></tr>'; $TotalCost += $ParentOverheadCost; - echo '<tr><td colspan=4 class=number><b>' . _('Overhead Cost') . '</b></td> - <td class=number><b>' . number_format($ParentOverheadCost,2) . '</b></td></tr>'; - /*CCF end modification */ + echo '<tr><td colspan="4" class="number"><b>' . _('Overhead Cost') . '</b></td> + <td class=number><b>' . number_format($ParentOverheadCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td></tr>'; echo '<tr> <td colspan=4 class=number><b>' . _('Total Cost') . '</b></td> - <td class=number><b>' . number_format($TotalCost,2) . '</b></td> + <td class=number><b>' . number_format($TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td> </tr>'; echo '</table>'; @@ -234,9 +233,9 @@ } if (!isset($_POST['StockID']) or $_POST['StockID']=='') { - echo "<script>defaultControl(document.forms[0].StockCode);</script>"; + echo '<script>defaultControl(document.forms[0].StockCode);</script>'; } echo '</form>'; include('includes/footer.inc'); -?> +?> \ No newline at end of file Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/BOMListing.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -77,7 +77,7 @@ $SQL = "SELECT description FROM stockmaster WHERE stockmaster.stockid = '" . $BOMList['parent'] . "'"; $ParentResult = DB_query($SQL,$db); $ParentRow = DB_fetch_row($ParentResult); - $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,400-$Left_Margin,$FontSize,$BOMList['parent'] . ' - ' . $ParentRow[0],'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,400-$Left_Margin,$FontSize,$BOMList['parent'] . ' - ' . $ParentRow[0],'left'); $ParentPart = $BOMList['parent']; } Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/BOMs.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -18,7 +18,7 @@ $c_result = DB_query("SELECT parent, component FROM bom WHERE parent='" . $parent. "'" - ,$db); + ,$db); if (DB_num_rows($c_result) > 0) { while ($row = DB_fetch_array($c_result)) { @@ -143,7 +143,7 @@ <td class=number>%s</td> <td><a href="%s&Select=%s&SelectedComponent=%s">' . _('Edit') . '</a></td> <td>'.$DrillText.'</a></td> - <td><a href="%s&Select=%s&SelectedComponent=%s&delete=1&ReSelect=%s">' . _('Delete') . '</a></td> + <td><a href="%s&Select=%s&SelectedComponent=%s&delete=1&ReSelect=%s" onclick="return confirm(\'' . _('Are you sure you wish to delete this component from the bill of material?') . '\');">' . _('Delete') . '</a></td> </tr>', $Level1, $myrow[0], @@ -216,13 +216,13 @@ if (!Is_Date($_POST['EffectiveAfter'])) { $InputError = 1; - prnMsg(_('The effective after date field must be a date in the format dd/mm/yy or dd/mm/yyyy or ddmmyy or ddmmyyyy or dd-mm-yy or dd-mm-yyyy'),'error'); + prnMsg(_('The effective after date field must be a date in the format') . ' ' .$_SESSION['DefaultDateFormat'],'error'); $Errors[$i] = 'EffectiveAfter'; $i++; } if (!Is_Date($_POST['EffectiveTo'])) { $InputError = 1; - prnMsg(_('The effective to date field must be a date in the format dd/mm/yy or dd/mm/yyyy or ddmmyy or ddmmyyyy or dd-mm-yy or dd-mm-yyyy'),'error'); + prnMsg(_('The effective to date field must be a date in the format') . ' ' .$_SESSION['DefaultDateFormat'],'error'); $Errors[$i] = 'EffectiveTo'; $i++; } @@ -380,9 +380,9 @@ //DisplayBOMItems($SelectedParent, $db); $sql = "SELECT stockmaster.description, - stockmaster.mbflag - FROM stockmaster - WHERE stockmaster.stockid='" . $SelectedParent . "'"; + stockmaster.mbflag + FROM stockmaster + WHERE stockmaster.stockid='" . $SelectedParent . "'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); $DbgMsg = _('The SQL used to retrieve description of the parent part was'); @@ -410,16 +410,16 @@ break; } - echo '<br /><div class=centre><a href=' . $_SERVER['PHP_SELF'] . '?' . SID . '>' . _('Select a Different BOM') . '</a></div><br />'; + echo '<br /><div class=centre><a href="' . $_SERVER['PHP_SELF'] . '">' . _('Select a Different BOM') . '</a></div><br />'; echo '<table class="selection">'; // Display Manufatured Parent Items $sql = "SELECT bom.parent, - stockmaster.description, - stockmaster.mbflag - FROM bom, stockmaster - WHERE bom.component='".$SelectedParent."' - AND stockmaster.stockid=bom.parent - AND stockmaster.mbflag='M'"; + stockmaster.description, + stockmaster.mbflag + FROM bom, stockmaster + WHERE bom.component='".$SelectedParent."' + AND stockmaster.stockid=bom.parent + AND stockmaster.mbflag='M'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); $DbgMsg = _('The SQL used to retrieve description of the parent part was'); @@ -429,7 +429,7 @@ if( DB_num_rows($result) > 0 ) { echo '<tr><td><div class="centre">'._('Manufactured parent items').' : '; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?' . SID . 'Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -437,10 +437,12 @@ $reqnl = $ix; } // Display Assembly Parent Items - $sql = "SELECT bom.parent, stockmaster.description, stockmaster.mbflag - FROM bom, stockmaster + $sql = "SELECT bom.parent, + stockmaster.description, + stockmaster.mbflag + FROM bom INNER JOIN stockmaster + ON bom.parent=stockmaster.stockid WHERE bom.component='".$SelectedParent."' - AND stockmaster.stockid=bom.parent AND stockmaster.mbflag='A'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); @@ -450,18 +452,20 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Assembly parent items').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?' . SID . 'Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop echo '</div></td></tr>'; } // Display Kit Sets - $sql = "SELECT bom.parent, stockmaster.description, stockmaster.mbflag - FROM bom, stockmaster - WHERE bom.component='".$SelectedParent."' - AND stockmaster.stockid=bom.parent - AND stockmaster.mbflag='K'"; + $sql = "SELECT bom.parent, + stockmaster.description, + stockmaster.mbflag + FROM bom INNER JOIN stockmaster + ON bom.parent=stockmaster.stockid + WHERE bom.component='".$SelectedParent."' + AND stockmaster.mbflag='K'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); $DbgMsg = _('The SQL used to retrieve description of the parent part was'); @@ -470,18 +474,20 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Kit sets').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?' . SID . 'Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop echo '</div></td></tr>'; } // Display Phantom/Ghosts - $sql = "SELECT bom.parent, stockmaster.description, stockmaster.mbflag - FROM bom, stockmaster - WHERE bom.component='".$SelectedParent."' - AND stockmaster.stockid=bom.parent - AND stockmaster.mbflag='G'"; + $sql = "SELECT bom.parent, + stockmaster.description, + stockmaster.mbflag + FROM bom INNER JOIN stockmaster + ON bom.parent=stockmaster.stockid + WHERE bom.component='".$SelectedParent."' + AND stockmaster.mbflag='G'"; $ErrMsg = _('Could not retrieve the description of the parent part because'); $DbgMsg = _('The SQL used to retrieve description of the parent part was'); @@ -490,7 +496,7 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Phantom').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?' . SID . 'Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.$_SERVER['PHP_SELF'] . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -575,44 +581,46 @@ echo '<br /> <input type="hidden" name="SelectedParent" value="' . $SelectedParent . '" />'; echo '<input type="hidden" name="SelectedComponent" value="' . $SelectedComponent . '" />'; - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr><th colspan=13><div class="centre"><font color=blue size=3><b>'. ('Edit Component Details') .'</font></b></th></tr>'; - echo '<tr><td>' . _('Component') . ':</td><td><b>' . $SelectedComponent . '</b></td></tr>'; + echo '<tr><td>' . _('Component') . ':</td> + <td><b>' . $SelectedComponent . '</b></td> + </tr>'; } else { //end of if $SelectedComponent echo '<input type=hidden name="SelectedParent" value="' . $SelectedParent . '" />'; /* echo "Enter the details of a new component in the fields below. <br />Click on 'Enter Information' to add the new component, once all fields are completed."; */ - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr><th colspan=13><div class="centre"><font color=blue size=3><b>' . ('New Component Details') .'</font></b></th></tr>'; echo '<tr><td>' . _('Component code') . ':</td><td>'; echo '<select ' . (in_array('ComponentCode',$Errors) ? 'class="selecterror"' : '' ) .' tabindex="1" name="Component">'; if ($ParentMBflag=='A'){ /*Its an assembly */ $sql = "SELECT stockmaster.stockid, - stockmaster.description - FROM stockmaster INNER JOIN stockcategory - ON stockmaster.categoryid = stockcategory.categoryid - WHERE ((stockcategory.stocktype='L' AND stockmaster.mbflag ='D') - OR stockmaster.mbflag !='D') - AND stockmaster.mbflag !='K' - AND stockmaster.mbflag !='A' - AND stockmaster.controlled = 0 - AND stockmaster.stockid != '".$SelectedParent."' - ORDER BY stockmaster.stockid"; + stockmaster.description + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid = stockcategory.categoryid + WHERE ((stockcategory.stocktype='L' AND stockmaster.mbflag ='D') + OR stockmaster.mbflag !='D') + AND stockmaster.mbflag !='K' + AND stockmaster.mbflag !='A' + AND stockmaster.controlled = 0 + AND stockmaster.stockid != '".$SelectedParent."' + ORDER BY stockmaster.stockid"; } else { /*Its either a normal manufac item, phantom, kitset - controlled items ok */ $sql = "SELECT stockmaster.stockid, - stockmaster.description - FROM stockmaster INNER JOIN stockcategory - ON stockmaster.categoryid = stockcategory.categoryid - WHERE ((stockcategory.stocktype='L' AND stockmaster.mbflag ='D') - OR stockmaster.mbflag !='D') - AND stockmaster.mbflag !='K' - AND stockmaster.mbflag !='A' - AND stockmaster.stockid != '".$SelectedParent."' - ORDER BY stockmaster.stockid"; + stockmaster.description + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid = stockcategory.categoryid + WHERE ((stockcategory.stocktype='L' AND stockmaster.mbflag ='D') + OR stockmaster.mbflag !='D') + AND stockmaster.mbflag !='K' + AND stockmaster.mbflag !='A' + AND stockmaster.stockid != '".$SelectedParent."' + ORDER BY stockmaster.stockid"; } $ErrMsg = _('Could not retrieve the list of potential components because'); @@ -789,11 +797,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . $title; echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">' . - '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . - _('to maintain the bill of material for using the options below') . '<br /><font size=1>' . - _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . - ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. - '</font> + '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . _('to maintain the bill of material for using the options below') . '<br /><font size=1>' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. '</font> <br /> <table class="selection" cellpadding="3" colspan="4"> <tr><td><font size=1>' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td> @@ -808,7 +812,7 @@ if (isset($_POST['Search']) AND isset($result) AND !isset($SelectedParent)) { - echo '<br /><table cellpadding=2 colspan=7 class=selection>'; + echo '<br /><table cellpadding="2" colspan="7" class="selection">'; $TableHeader = '<tr><th>' . _('Code') . '</th> <th>' . _('Description') . '</th> <th>' . _('On Hand') . '</th> @@ -834,13 +838,13 @@ } $tab = $j+3; printf('<td><input tabindex="' . $tab . '" type="submit" name="Select" value="%s"</td> - <td>%s</td> - <td class=number>%s</td> - <td>%s</td></tr>', - $myrow['stockid'], - $myrow['description'], - $StockOnHand, - $myrow['units']); + <td>%s</td> + <td class=number>%s</td> + <td>%s</td></tr>', + $myrow['stockid'], + $myrow['description'], + $StockOnHand, + $myrow['units']); $j++; //end of page full new headings if Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2011-06-12 09:30:10 UTC (rev 4595) +++ trunk/BankAccounts.php 2011-06-13 10:23:44 UTC (rev 4596) @@ -170,16 +170,15 @@ /* Always show the list of accounts */ If (!isset($SelectedBankAccount)) { $sql = "SELECT bankaccounts.accountcode, - bankaccounts.bankaccountcode, - chartmaster.accountname, - bankaccountname, - bankaccountnumber, - bankaddress, - currcode, - invoice - FROM bankaccounts, - chartmaster - WHERE bankaccounts.accountcode = chartmaster.accountcode"; + bankaccounts.bankaccountcode, + chartmaster.accountname, + bankaccountname, + bankaccountnumber, + bankaddress, + currcode, + invoice + FROM bankaccounts INNER JOIN chartmaster + ON bankaccounts.accountcode = chartmaster.accountcode"; $ErrMsg = _('The bank accounts set up could not be retrieved because'); $DbgMsg = _('The SQL used to retrieve the bank account details was') . '<br />' . $sql; @@ -198,7 +197,7 @@ </tr>'; $k=0; //row colour counter - while ($myrow = DB_fetch_row($result)) { + while ($myrow = DB_fetch_array($result)) { if ($k==1){ echo '<tr class="EvenTableRows">'; $k=0; @@ -206,33 +205,33 @@ echo '<tr class="OddTableRows">'; $k++; } - i... [truncated message content] |
From: <dai...@us...> - 2011-06-17 09:16:46
|
Revision: 4597 http://web-erp.svn.sourceforge.net/web-erp/?rev=4597&view=rev Author: daintree Date: 2011-06-17 09:16:37 +0000 (Fri, 17 Jun 2011) Log Message: ----------- consistency Modified Paths: -------------- trunk/AccountGroups.php trunk/AccountSections.php trunk/AddCustomerContacts.php trunk/AddCustomerNotes.php trunk/AddCustomerTypeNotes.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/BOMExtendedQty.php trunk/BOMIndented.php trunk/BOMIndentedReverse.php trunk/BOMInquiry.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankReconciliation.php trunk/COGSGLPostings.php trunk/ConfirmDispatchControlled_Invoice.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/ContractCosting.php trunk/ContractOtherReqts.php trunk/Contracts.php trunk/CounterSales.php trunk/CustomerInquiry.php trunk/Customers.php trunk/MRPPlannedWorkOrders.php trunk/SelectContract.php trunk/SelectCustomer.php trunk/StockLocTransfer.php trunk/UpgradeDatabase.php trunk/doc/Change.log trunk/doc/Manual/ManualARInquiries.html trunk/doc/Manual/ManualARReports.html trunk/doc/Manual/ManualARTransactions.html trunk/doc/Manual/ManualAccountsPayable.html trunk/doc/Manual/ManualAccountsReceivable.html trunk/doc/Manual/ManualContents.php trunk/doc/Manual/ManualCreatingNewSystem.html trunk/doc/Manual/ManualCreditStatus.html trunk/doc/Manual/ManualCurrencies.html trunk/doc/Manual/ManualFixedAssets.html trunk/doc/Manual/ManualGeneralLedger.html trunk/doc/Manual/ManualGettingStarted.html trunk/doc/Manual/ManualHeader.html trunk/doc/Manual/ManualIntroduction.html trunk/doc/Manual/ManualInventory.html trunk/doc/Manual/ManualMRP.html trunk/doc/Manual/ManualManufacturing.html trunk/doc/Manual/ManualMultilanguage.html trunk/doc/Manual/ManualNewScripts.html trunk/doc/Manual/ManualPaymentTerms.html trunk/doc/Manual/ManualPettyCash.html trunk/doc/Manual/ManualPrices.html trunk/doc/Manual/ManualPurchaseOrdering.html trunk/doc/Manual/ManualReportBuilder.html trunk/doc/Manual/ManualRequirements.html trunk/doc/Manual/ManualSalesAnalysis.html trunk/doc/Manual/ManualSalesOrders.html trunk/doc/Manual/ManualSalesPeople.html trunk/doc/Manual/ManualSalesTypes.html trunk/doc/Manual/ManualSecuritySchema.html trunk/doc/Manual/ManualShipments.html trunk/doc/Manual/ManualSpecialUtilities.html trunk/doc/Manual/ManualSystemConventions.html trunk/doc/Manual/ManualTax.html trunk/includes/ConnectDB.inc Added Paths: ----------- trunk/doc/Manual/images/AccountsPayable.jpg trunk/doc/Manual/images/BankReconciliation.jpg trunk/doc/Manual/images/GLIntegration.jpg trunk/doc/Manual/images/Purchasing.jpg trunk/doc/Manual/images/Sales.jpg Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AccountGroups.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -53,10 +53,10 @@ FROM accountgroups WHERE groupname='".$_POST['GroupName']."'"; $DbgMsg = _('The SQL that was used to retrieve the information was'); - $ErrMsg = _('Could not check whether the group exists because'); + $ErrMsg = _('Could not check whether the group exists because'); $result=DB_query($sql, $db,$ErrMsg,$DbgMsg); - $myrow=DB_fetch_row($result); + $myrow=DB_fetch_row($result); if ($myrow[0]!=0 and $_POST['SelectedAccountGroup']=='') { $InputError = 1; @@ -362,7 +362,7 @@ <td><select tabindex="3" ' . (in_array('SectionInAccounts',$Errors) ? 'class="selecterror"' : '' ) . ' name="SectionInAccounts">'; - $sql = 'SELECT sectionid, sectionname FROM accountsection ORDER BY sectionid'; + $sql = "SELECT sectionid, sectionname FROM accountsection ORDER BY sectionid"; $secresult = DB_query($sql, $db,$ErrMsg,$DbgMsg); while( $secrow = DB_fetch_array($secresult) ) { if ($_POST['SectionInAccounts']==$secrow['sectionid']) { Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AccountSections.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -172,7 +172,8 @@ $ErrMsg = _('Could not get account group sections because'); $result = DB_query($sql,$db,$ErrMsg); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p> + <br />'; echo '<table name="SectionList" class="selection"> <tr> Modified: trunk/AddCustomerContacts.php =================================================================== --- trunk/AddCustomerContacts.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AddCustomerContacts.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -17,16 +17,16 @@ } elseif (isset($_GET['DebtorNo'])){ $DebtorNo = $_GET['DebtorNo']; } -echo "<a href='" . $rootpath . '/Customers.php?' . SID .'&DebtorNo='.$DebtorNo."'>" . _('Back to Customers') . '</a><br />'; +echo '<a href="' . $rootpath . '/Customers.php?DebtorNo=' . $DebtorNo .'">' . _('Back to Customers') . '</a><br />'; $SQLname="SELECT name FROM debtorsmaster where debtorno='" .$DebtorNo."'"; $Result = DB_query($SQLname,$db); $row = DB_fetch_array($Result); if (!isset($_GET['Id'])) { echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . - '" alt="" />' . ' ' . _('Contacts for Customer: <b>') .$row['name'].'</p><br />'; + '" alt="" />' . ' ' . _('Contacts for Customer:') . ' <b>' . $row['name'].'</b></p><br />'; } else { echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . - '" alt="" />' . ' ' . _('Edit contact for <b>') .$row['name'].'</p><br />'; + '" alt="" />' . ' ' . _('Edit contact for') . '<b>' . $row['name'].'</b></p><br />'; } if ( isset($_POST['submit']) ) { @@ -39,34 +39,40 @@ if (isset($_POST['Con_ID']) and !is_long((integer)$_POST['Con_ID'])) { $InputError = 1; prnMsg( _('The Contact ID must be an integer.'), 'error'); - } elseif (strlen($_POST['conName']) >40) { + } elseif (strlen($_POST['ContactName']) >40) { $InputError = 1; prnMsg( _('The contact name must be forty characters or less long'), 'error'); - } elseif( trim($_POST['conName']) == '' ) { + } elseif( trim($_POST['ContactName']) == '' ) { $InputError = 1; prnMsg( _('The contact name may not be empty'), 'error'); + }elseif (!IsEmailAddress($_POST['ContactEmail']) AND strlen($_POST['ContactEmail'])>0){ + $InputError = 1; + prnMsg( _('The contact email address is not a valid email address'), 'error'); } - if (isset($Id) and ($Id and $InputError !=1)) { - $sql = "UPDATE custcontacts SET - contactname='" . $_POST['conName'] . "', - role='" . $_POST['conRole'] . "', - phoneno='" . $_POST['conPhone'] . "', - notes='" . $_POST['conNotes'] . "' - WHERE debtorno ='".$DebtorNo."' - AND contid='".$Id."'"; + $sql = "UPDATE custcontacts SET contactname='" . $_POST['ContactName'] . "', + role='" . $_POST['ContactRole'] . "', + phoneno='" . $_POST['ContactPhone'] . "', + notes='" . $_POST['ContactNotes'] . "', + email='" . $_POST['ContactEmail'] . "' + WHERE debtorno ='".$DebtorNo."' + AND contid='".$Id."'"; $msg = _('Customer Contacts') . ' ' . $DebtorNo . ' ' . _('has been updated'); } elseif ($InputError !=1) { - $sql = "INSERT INTO custcontacts (debtorno,contactname,role,phoneno,notes) - VALUES ( - '" . $DebtorNo. "', - '" . $_POST['conName'] . "', - '" . $_POST['conRole'] . "', - '" . $_POST['conPhone'] . "', - '" . $_POST['conNotes'] . "' - )"; + $sql = "INSERT INTO custcontacts (debtorno, + contactname, + role, + phoneno, + notes, + email) + VALUES ('" . $DebtorNo. "', + '" . $_POST['ContactName'] . "', + '" . $_POST['ContactRole'] . "', + '" . $_POST['ContactPhone'] . "', + '" . $_POST['ContactNotes'] . "', + '" . $_POST['ContactEmail'] . "')"; $msg = _('The contact record has been added'); } @@ -78,40 +84,51 @@ prnMsg($msg, 'success'); echo '<br />'; unset($Id); - unset($_POST['conName']); - unset($_POST['conRole']); - unset($_POST['conPhone']); - unset($_POST['conNotes']); + unset($_POST['ContactName']); + unset($_POST['ContactRole']); + unset($_POST['ContactPhone']); + unset($_POST['ContactNotes']); + unset($_POST['ContactEmail']); unset($_POST['Con_ID']); } - } elseif (isset($_GET['delete']) and $_GET['delete']) { +} elseif (isset($_GET['delete']) and $_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 custcontacts WHERE contid=".$Id." - and debtorno='".$DebtorNo."'"; + $sql="DELETE FROM custcontacts + WHERE contid='" . $Id . "' + AND debtorno='" . $DebtorNo . "'"; $result = DB_query($sql,$db); - //echo '<br />'.$sql; - echo '<br />'; - prnMsg( _('The contact record has been deleted'), 'success'); - unset($Id); - unset($_GET['delete']); + echo '<br />'; + prnMsg( _('The contact record has been deleted'), 'success'); + unset($Id); + unset($_GET['delete']); - } +} if (!isset($Id)) { - $sql = "SELECT * FROM custcontacts where debtorno='".$DebtorNo."' ORDER BY contid"; + $sql = "SELECT contid, + debtorno, + contactname, + role, + phoneno, + notes, + email + FROM custcontacts + WHERE debtorno='".$DebtorNo."' + ORDER BY contid"; $result = DB_query($sql,$db); //echo '<br />'.$sql; - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr> <th>' . _('Name') . '</th> <th>' . _('Role') . '</th> <th>' . _('Phone no') . '</th> + <th>' . _('Email') . '</th> <th>' . _('Notes') . '</th>'; $k=0; //row colour counter @@ -127,83 +144,102 @@ printf('<td>%s</td> <td>%s</td> <td>%s</td> + <td><a href=mailto:%s>%s</a></td> <td>%s</td> <td><a href="%sId=%s&DebtorNo=%s">'. _('Edit').' </td> - <td><a href="%sId=%s&DebtorNo=%s&delete=1">'. _('Delete'). '</td></tr>', - $myrow[2], - $myrow[3], - $myrow[4], - $myrow[5], - $_SERVER['PHP_SELF'] . "?" . SID, - $myrow[0], - $myrow[1], - $_SERVER['PHP_SELF'] . "?" . SID, - $myrow[0], - $myrow[1]); + <td><a href="%sId=%s&DebtorNo=%s&delete=1" onclick="return confirm(\'' . _('Are you sure you wish to delete this contact?') . '\');">'. _('Delete'). '</td></tr>', + $myrow['contactname'], + $myrow['role'], + $myrow['phoneno'], + $myrow['email'], + $myrow['email'], + $myrow['notes'], + $_SERVER['PHP_SELF'] . '?', + $myrow['contid'], + $myrow['debtorno'], + $_SERVER['PHP_SELF'] . '?', + $myrow['contid'], + $myrow['debtorno']); } //END WHILE LIST LOOP echo '</table>'; } -if (isset($Id)) { ?> - <div class="centre"><a href="<?php echo $_SERVER['PHP_SELF'] . '?' . SID .'&DebtorNo='.$DebtorNo;?>"><?=_('Review all contacts for this Customer')?></a></div> -<?php } ?> -<p> +if (isset($Id)) { + echo '<div class="centre"><a href="' . $_SERVER['PHP_SELF'] . '?DebtorNo='.$DebtorNo .'">' . _('Review all contacts for this Customer') . '</a></div>'; +} -<?php if (!isset($_GET['delete'])) { echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?DebtorNo='.$DebtorNo.'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($Id)) { - //editing an existing Shipper - $sql = "SELECT * FROM custcontacts WHERE contid='".$Id."' - and debtorno='".$DebtorNo."'"; + $sql = "SELECT contid, + debtorno, + contactname, + role, + phoneno, + notes, + email + FROM custcontacts + WHERE contid='".$Id."' + AND debtorno='".$DebtorNo."'"; $result = DB_query($sql, $db); - //echo '<br />'.$sql; - $myrow = DB_fetch_array($result); $_POST['Con_ID'] = $myrow['contid']; - $_POST['conName'] = $myrow['contactname']; - $_POST['conRole'] = $myrow['role']; - $_POST['conPhone'] = $myrow['phoneno']; - $_POST['conNotes'] = $myrow['notes']; - $_POST['debtorno'] = $myrow['debtorno']; + $_POST['ContactName'] = $myrow['contactname']; + $_POST['ContactRole'] = $myrow['role']; + $_POST['ContactPhone'] = $myrow['phoneno']; + $_POST['ContactNotes'] = $myrow['notes']; + $_POST['ContactEmail'] = $myrow['email']; + $_POST['DebtorNo'] = $myrow['debtorno']; echo '<input type=hidden name="Id" value='. $Id .'>'; echo '<input type=hidden name="Con_ID" value=' . $_POST['Con_ID'] . '>'; - echo '<input type=hidden name="DebtorNo" value=' . $_POST['debtorno'] . '>'; - echo '<table class=selection><tr><td>'. _('Contact Code').':</td><td>' . $_POST['Con_ID'] . '</td></tr>'; + echo '<input type=hidden name="DebtorNo" value=' . $_POST['DebtorNo'] . '>'; + echo '<br /> + <table class="selection"> + <tr> + <td>'. _('Contact Code').':</td> + <td>' . $_POST['Con_ID'] . '</td> + </tr>'; } else { - echo '<table class=selection>'; + echo '<br /> + <table class="selection">'; } echo '<tr><td>'. _('Contact Name') . '</td>'; - if (isset($_POST['conName'])) { - echo '<td><input type="Text" name="conName" value="' . $_POST['conName']. '" size=35 maxlength=40></td></tr>'; + if (isset($_POST['ContactName'])) { + echo '<td><input type="text" name="ContactName" value="' . $_POST['ContactName']. '" size=35 maxlength=40></td></tr>'; } else { - echo '<td><input type="Text" name="conName" size=35 maxlength=40></td></tr>'; + echo '<td><input type="text" name="ContactName" size=35 maxlength=40></td></tr>'; } echo '<tr><td>' . _('Role') . '</td>'; - if (isset($_POST['conRole'])) { - echo '<td><input type="text" name="conRole" value="'. $_POST['conRole']. '" size=35 maxlength=40></td></tr>'; + if (isset($_POST['ContactRole'])) { + echo '<td><input type="text" name="ContactRole" value="'. $_POST['ContactRole']. '" size=35 maxlength=40></td></tr>'; } else { - echo '<td><input type="text" name="conRole" size=35 maxlength=40></td></tr>'; + echo '<td><input type="text" name="ContactRole" size=35 maxlength=40></td></tr>'; } echo '<tr><td>' . _('Phone') . '</td>'; - if (isset($_POST['conPhone'])) { - echo '<td><input type="Text" name="conPhone" value="' . $_POST['conPhone'] . '" size=35 maxlength=40></td></tr>'; + if (isset($_POST['ContactPhone'])) { + echo '<td><input type="text" name="ContactPhone" value="' . $_POST['ContactPhone'] . '" size=35 maxlength=40></td></tr>'; } else { - echo '<td><input type="Text" name="conPhone"" size=35 maxlength=40></td></tr>'; + echo '<td><input type="text" name="ContactPhone" size=35 maxlength=40></td></tr>'; } + echo '<tr><td>' . _('Email') . '</td>'; + if (isset($_POST['ContactEmail'])) { + echo '<td><input type="text" name="ContactEmail" value="' . $_POST['ContactEmail'] . '" size=55 maxlength="55"></td></tr>'; + } else { + echo '<td><input type="text" name="ContactEmail" size="55" maxlength="55"></td></tr>'; + } echo '<tr><td>' . _('Notes') . '</td>'; - if (isset($_POST['conNotes'])) { - echo '<td><textarea name="conNotes">'. $_POST['conNotes'] . '</textarea>'; + if (isset($_POST['ContactNotes'])) { + echo '<td><textarea name="ContactNotes">'. $_POST['ContactNotes'] . '</textarea>'; } else { - echo '<td><textarea name="conNotes"></textarea>'; + echo '<td><textarea name="ContactNotes"></textarea>'; } echo '<tr><td colspan=2><div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information') . '"></div></td></tr>'; echo '</table>'; @@ -212,4 +248,4 @@ } //end if record deleted no point displaying form to add record include('includes/footer.inc'); -?> +?> \ No newline at end of file Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AddCustomerNotes.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -1,7 +1,7 @@ <?php -/* $Revision: 1.4 $ */ + /* $Id$*/ -//$PageSecurity = 3; + include('includes/session.inc'); $title = _('Customer Notes'); include('includes/header.inc'); @@ -17,7 +17,8 @@ } elseif (isset($_GET['DebtorNo'])){ $DebtorNo = $_GET['DebtorNo']; } -echo "<a href='" . $rootpath . '/SelectCustomer.php?' . SID .'&DebtorNo='.$DebtorNo."'>" . _('Back to Select Customer') . '</a><br>'; + +echo '<a href="' . $rootpath . '/SelectCustomer.php?DebtorNo=' . $DebtorNo . '">' . _('Back to Select Customer') . '</a><br />'; if ( isset($_POST['submit']) ) { //initialise no input errors assumed initially before we test @@ -49,22 +50,24 @@ $msg = _('Customer Notes') . ' ' . $DebtorNo . ' ' . _('has been updated'); } elseif ($InputError !=1) { - $sql = "INSERT INTO custnotes (debtorno,href,note,date,priority) - VALUES ( - '" . $DebtorNo. "', - '" . $_POST['href'] . "', - '" . $_POST['note'] . "', - '" . FormatDateForSQL($_POST['date']) . "', - '" . $_POST['priority'] . "' - )"; + $sql = "INSERT INTO custnotes (debtorno, + href, + note, + date, + priority) + VALUES ('" . $DebtorNo. "', + '" . $_POST['href'] . "', + '" . $_POST['note'] . "', + '" . FormatDateForSQL($_POST['date']) . "', + '" . $_POST['priority'] . "')"; $msg = _('The contact notes record has been added'); } if ($InputError !=1) { $result = DB_query($sql,$db); - //echo '<br>'.$sql; + //echo '<br />'.$sql; - echo '<br>'; + echo '<br />'; prnMsg($msg, 'success'); unset($Id); unset($_POST['note']); @@ -78,28 +81,32 @@ // PREVENT DELETES IF DEPENDENT RECORDS IN 'SalesOrders' - $sql="DELETE FROM custnotes WHERE noteid='".$Id."' - and debtorno='".$DebtorNo."'"; - $result = DB_query($sql,$db); - //echo '<br>'.$sql; + $sql="DELETE FROM custnotes + WHERE noteid='".$Id."' + AND debtorno='".$DebtorNo."'"; + $result = DB_query($sql,$db); + //echo '<br />'.$sql; - echo '<br>'; - prnMsg( _('The contact note record has been deleted'), 'success'); - unset($Id); - unset($_GET['delete']); + echo '<br />'; + prnMsg( _('The contact note record has been deleted'), 'success'); + unset($Id); + unset($_GET['delete']); +} - } - if (!isset($Id)) { - $SQLname="SELECT * from debtorsmaster where debtorno='".$DebtorNo."'"; + $SQLname="SELECT * FROM debtorsmaster + WHERE debtorno='".$DebtorNo."'"; $Result = DB_query($SQLname,$db); $row = DB_fetch_array($Result); echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . - '" alt="" />' . _('Notes for Customer').': <b>' .$row['name'].'</b></p><br />'; + '" alt="" />' . _('Notes for Customer').': <b>' .$row['name'].'</b></p> + <br />'; - $sql = "SELECT * FROM custnotes where debtorno='".$DebtorNo."' ORDER BY date DESC"; + $sql = "SELECT * FROM custnotes + WHERE debtorno='".$DebtorNo."' + ORDER BY date DESC"; $result = DB_query($sql,$db); - //echo '<br>'.$sql; + //echo '<br />'.$sql; echo '<table class=selection>'; echo '<tr> @@ -128,10 +135,10 @@ $myrow[3], $myrow[2], $myrow[5], - $_SERVER['PHP_SELF'] . "?" . SID, + $_SERVER['PHP_SELF'] . '?', $myrow[0], $myrow[1], - $_SERVER['PHP_SELF'] . "?" . SID, + $_SERVER['PHP_SELF'] . '?', $myrow[0], $myrow[1]); @@ -140,9 +147,9 @@ echo '</table>'; } if (isset($Id)) { - echo '<div class="centre"><a href="'.$_SERVER['PHP_SELF'] . '?' . SID .'&DebtorNo='.$DebtorNo.'"><?='._('Review all notes for this Customer').'</a></div>'; + echo '<div class="centre"><a href="'.$_SERVER['PHP_SELF'] . '?DebtorNo='.$DebtorNo.'">'._('Review all notes for this Customer').'</a></div>'; } -echo '<p>'; +echo '<br />'; if (!isset($_GET['delete'])) { @@ -156,7 +163,6 @@ and debtorno='".$DebtorNo."'"; $result = DB_query($sql, $db); - //echo '<br>'.$sql; $myrow = DB_fetch_array($result); @@ -169,9 +175,13 @@ echo '<input type=hidden name="Id" value='. $Id .'>'; echo '<input type=hidden name="Con_ID" value=' . $_POST['noteid'] . '>'; echo '<input type=hidden name="DebtorNo" value=' . $_POST['debtorno'] . '>'; - echo '<table class=selection><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 class=selection>'; + echo '<table class="selection">'; } echo '<tr><td>' . _('Contact Note'). '</td>'; @@ -188,15 +198,15 @@ } echo '<tr><td>' . _('Date') .'</td>'; if (isset($_POST['date'])) { - echo '<td><input type="Text" name="date" value="'.ConvertSQLDate($_POST['date']).'" size=10 maxlength=10></td></tr>'; + echo '<td><input type="text" name="date" class="date" alt="' .$_SESSION['DefaultDateFormat']. '" id="datepicker" value="'.ConvertSQLDate($_POST['date']).'" size=10 maxlength=10></td></tr>'; } else { - echo '<td><input type="Text" name="date" size=10 maxlength=10></td></tr>'; + echo '<td><input type="text" name="date" class="date" alt="' .$_SESSION['DefaultDateFormat']. '" id="datepicker" size=10 maxlength=10></td></tr>'; } echo '<tr><td>'. _('Priority'). '</td>'; if (isset($_POST['priority'])) { echo '<td><input type="Text" name="priority" value="' .$_POST['priority']. '" size=1 maxlength=3></td></td>'; } else { - echo '<td><input type="Text" name="priority" size=1 maxlength=3></td></td>'; + echo '<td><input type="text" name="priority" size=1 maxlength=3></td></td>'; } echo '<tr><td colspan=2><div class="centre"><input type="Submit" name="submit" value="'._('Enter Information').'"></div></td></tr>'; echo '</table>'; @@ -206,4 +216,4 @@ } //end if record deleted no point displaying form to add record include('includes/footer.inc'); -?> +?> \ No newline at end of file Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AddCustomerTypeNotes.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -1,7 +1,6 @@ <?php -/* $Revision: 1.3 $ */ /* $Id$*/ -//$PageSecurity = 3; + include('includes/session.inc'); $title = _('Customer Type (Group) Notes'); include('includes/header.inc'); @@ -17,8 +16,8 @@ } elseif (isset($_GET['DebtorType'])){ $DebtorType = $_GET['DebtorType']; } -echo "<a href='" . $rootpath . '/SelectCustomer.php?' . SID .'&DebtorType='.$DebtorType."'>" . _('Back to Select Customer') . '</a><br>'; -if ( isset($_POST['submit']) ) { +echo '<a href="' . $rootpath . '/SelectCustomer.php?DebtorType='.$DebtorType.'">' . _('Back to Select Customer') . '</a><br />'; +if (isset($_POST['submit']) ) { //initialise no input errors assumed initially before we test $InputError = 0; @@ -28,10 +27,10 @@ //first off validate inputs sensible if (!is_long((integer)$_POST['priority'])) { $InputError = 1; - prnMsg( _('The Contact priority must be an integer.'), 'error'); + prnMsg(_('The Contact priority must be an integer.'), 'error'); } elseif (strlen($_POST['note']) >200) { $InputError = 1; - prnMsg( _("The contact's notes must be two hundred characters or less long"), 'error'); + prnMsg(_("The contact's notes must be two hundred characters or less long"), 'error'); } elseif( trim($_POST['note']) == '' ) { $InputError = 1; prnMsg( _("The contact's notes may not be empty"), 'error'); @@ -40,31 +39,32 @@ if ($Id AND $InputError !=1) { $sql = "UPDATE debtortypenotes SET - note='" . $_POST['note'] . "', - date='" . $_POST['date'] . "', - href='" . $_POST['href'] . "', - priority='" . $_POST['priority'] . "' - WHERE typeid ='".$DebtorType."' - AND noteid='".$Id."'"; + note='" . $_POST['note'] . "', + date='" . $_POST['date'] . "', + href='" . $_POST['href'] . "', + priority='" . $_POST['priority'] . "' + WHERE typeid ='".$DebtorType."' + AND noteid='".$Id."'"; $msg = _('Customer Group Notes') . ' ' . $DebtorType . ' ' . _('has been updated'); } elseif ($InputError !=1) { - $sql = "INSERT INTO debtortypenotes (typeid,href,note,date,priority) - VALUES ( - '" . $DebtorType. "', - '" . $_POST['href'] . "', - '" . $_POST['note'] . "', - '" . $_POST['date'] . "', - '" . $_POST['priority'] . "' - )"; + $sql = "INSERT INTO debtortypenotes (typeid, + href, + note, + date, + priority) + VALUES ('" . $DebtorType. "', + '" . $_POST['href'] . "', + '" . $_POST['note'] . "', + '" . $_POST['date'] . "', + '" . $_POST['priority'] . "')"; $msg = _('The contact group notes record has been added'); } if ($InputError !=1) { $result = DB_query($sql,$db); - //echo '<br>'.$sql; - echo '<br>'; + echo '<br />'; prnMsg($msg, 'success'); unset($Id); unset($_POST['note']); @@ -75,12 +75,13 @@ // PREVENT DELETES IF DEPENDENT RECORDS IN 'SalesOrders' - $sql="DELETE FROM debtortypenotes WHERE noteid='".$Id."' - and typeid='".$DebtorType."'"; + $sql="DELETE FROM debtortypenotes + WHERE noteid='".$Id."' + AND typeid='".$DebtorType."'"; $result = DB_query($sql,$db); - //echo '<br>'.$sql; + //echo '<br />'.$sql; - echo '<br>'; + echo '<br />'; prnMsg( _('The contact group note record has been deleted'), 'success'); unset($Id); unset($_GET['delete']); @@ -97,9 +98,8 @@ $sql = "SELECT * FROM debtortypenotes where typeid='".$DebtorType."' ORDER BY date DESC"; $result = DB_query($sql,$db); - //echo '<br>'.$sql; - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr> <th>' . _('Date') . '</th> <th>' . _('Note') . '</th> @@ -121,15 +121,15 @@ <td>%s</td> <td>%s</td> <td><a href="%sId=%s&DebtorType=%s">'. _('Edit').' </td> - <td><a href="%sId=%s&DebtorType=%s&delete=1">'. _('Delete'). '</td></tr>', + <td><a href="%sId=%s&DebtorType=%s&delete=1" onclick="return confirm(\'' . _('Are you sure you wish to delete this customer type note?') . '\');">'. _('Delete'). '</td></tr>', $myrow[4], $myrow[3], $myrow[2], $myrow[5], - $_SERVER['PHP_SELF'] . "?" . SID, + $_SERVER['PHP_SELF'] . '?', $myrow[0], $myrow[1], - $_SERVER['PHP_SELF'] . "?" . SID, + $_SERVER['PHP_SELF'] . '?', $myrow[0], $myrow[1]); @@ -145,7 +145,7 @@ <?php if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '&DebtorType='.$DebtorType.'">'; + echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?DebtorType='.$DebtorType.'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($Id)) { @@ -155,7 +155,6 @@ and typeid='".$DebtorType."'"; $result = DB_query($sql, $db); - //echo '<br>'.$sql; $myrow = DB_fetch_array($result); @@ -189,7 +188,7 @@ echo '<tr><td>'. _('Priority').':</td>'; echo '<td><input type="Text" name="priority" value="'. $_POST['priority'].'" size=1 maxlength=3></td></td> </table>'; - echo '<br><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/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AgedDebtors.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -80,7 +80,7 @@ AND debtorsmaster.debtorno >= '" . $_POST['FromCriteria'] . "' AND debtorsmaster.debtorno <= '" . $_POST['ToCriteria'] . "' AND debtorsmaster.currcode ='" . $_POST['Currency'] . "' - $SalesLimit + " . $SalesLimit . " GROUP BY debtorsmaster.debtorno, debtorsmaster.name, currencies.currency, @@ -154,7 +154,7 @@ AND debtorsmaster.debtorno >= '" . $_POST['FromCriteria'] . "' AND debtorsmaster.debtorno <= '" . $_POST['ToCriteria'] . "' AND debtorsmaster.currcode ='" . $_POST['Currency'] . "' - $SalesLimit + " . $SalesLimit . " GROUP BY debtorsmaster.debtorno, debtorsmaster.name, currencies.currency, @@ -243,7 +243,7 @@ AND debtorsmaster.debtorno >= '" . $_POST['FromCriteria'] . "' AND debtorsmaster.debtorno <= '" . $_POST['ToCriteria'] . "' AND debtorsmaster.currcode ='" . $_POST['Currency'] . "' - $SalesLimit + " . $SalesLimit . " GROUP BY debtorsmaster.debtorno, debtorsmaster.name, currencies.currency, @@ -269,7 +269,7 @@ if (DB_error_no($db) !=0) { $title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '.... '; include('includes/header.inc'); - echo '<p>' . _('The customer details could not be retrieved by the SQL because') . ' ' . DB_error_msg($db); + prnMsg(_('The customer details could not be retrieved by the SQL because') . ' ' . DB_error_msg($db),'error'); echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . $SQL; @@ -368,10 +368,10 @@ if (DB_error_no($db) !=0) { $title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); - echo '<br /><br />' . _('The details of outstanding transactions for customer') . ' - ' . $AgedAnalysis['debtorno'] . ' ' . _('could not be retrieved because') . ' - ' . DB_error_msg($db); + prnMsg(_('The details of outstanding transactions for customer') . ' - ' . $Aged... [truncated message content] |
From: <dai...@us...> - 2011-06-17 09:16:47
|
Revision: 4597 http://web-erp.svn.sourceforge.net/web-erp/?rev=4597&view=rev Author: daintree Date: 2011-06-17 09:16:37 +0000 (Fri, 17 Jun 2011) Log Message: ----------- consistency Modified Paths: -------------- trunk/AccountGroups.php trunk/AccountSections.php trunk/AddCustomerContacts.php trunk/AddCustomerNotes.php trunk/AddCustomerTypeNotes.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/BOMExtendedQty.php trunk/BOMIndented.php trunk/BOMIndentedReverse.php trunk/BOMInquiry.php trunk/BOMs.php trunk/BankAccounts.php trunk/BankReconciliation.php trunk/COGSGLPostings.php trunk/ConfirmDispatchControlled_Invoice.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/ContractCosting.php trunk/ContractOtherReqts.php trunk/Contracts.php trunk/CounterSales.php trunk/CustomerInquiry.php trunk/Customers.php trunk/MRPPlannedWorkOrders.php trunk/SelectContract.php trunk/SelectCustomer.php trunk/StockLocTransfer.php trunk/UpgradeDatabase.php trunk/doc/Change.log trunk/doc/Manual/ManualARInquiries.html trunk/doc/Manual/ManualARReports.html trunk/doc/Manual/ManualARTransactions.html trunk/doc/Manual/ManualAccountsPayable.html trunk/doc/Manual/ManualAccountsReceivable.html trunk/doc/Manual/ManualContents.php trunk/doc/Manual/ManualCreatingNewSystem.html trunk/doc/Manual/ManualCreditStatus.html trunk/doc/Manual/ManualCurrencies.html trunk/doc/Manual/ManualFixedAssets.html trunk/doc/Manual/ManualGeneralLedger.html trunk/doc/Manual/ManualGettingStarted.html trunk/doc/Manual/ManualHeader.html trunk/doc/Manual/ManualIntroduction.html trunk/doc/Manual/ManualInventory.html trunk/doc/Manual/ManualMRP.html trunk/doc/Manual/ManualManufacturing.html trunk/doc/Manual/ManualMultilanguage.html trunk/doc/Manual/ManualNewScripts.html trunk/doc/Manual/ManualPaymentTerms.html trunk/doc/Manual/ManualPettyCash.html trunk/doc/Manual/ManualPrices.html trunk/doc/Manual/ManualPurchaseOrdering.html trunk/doc/Manual/ManualReportBuilder.html trunk/doc/Manual/ManualRequirements.html trunk/doc/Manual/ManualSalesAnalysis.html trunk/doc/Manual/ManualSalesOrders.html trunk/doc/Manual/ManualSalesPeople.html trunk/doc/Manual/ManualSalesTypes.html trunk/doc/Manual/ManualSecuritySchema.html trunk/doc/Manual/ManualShipments.html trunk/doc/Manual/ManualSpecialUtilities.html trunk/doc/Manual/ManualSystemConventions.html trunk/doc/Manual/ManualTax.html trunk/includes/ConnectDB.inc Added Paths: ----------- trunk/doc/Manual/images/AccountsPayable.jpg trunk/doc/Manual/images/BankReconciliation.jpg trunk/doc/Manual/images/GLIntegration.jpg trunk/doc/Manual/images/Purchasing.jpg trunk/doc/Manual/images/Sales.jpg Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AccountGroups.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -53,10 +53,10 @@ FROM accountgroups WHERE groupname='".$_POST['GroupName']."'"; $DbgMsg = _('The SQL that was used to retrieve the information was'); - $ErrMsg = _('Could not check whether the group exists because'); + $ErrMsg = _('Could not check whether the group exists because'); $result=DB_query($sql, $db,$ErrMsg,$DbgMsg); - $myrow=DB_fetch_row($result); + $myrow=DB_fetch_row($result); if ($myrow[0]!=0 and $_POST['SelectedAccountGroup']=='') { $InputError = 1; @@ -362,7 +362,7 @@ <td><select tabindex="3" ' . (in_array('SectionInAccounts',$Errors) ? 'class="selecterror"' : '' ) . ' name="SectionInAccounts">'; - $sql = 'SELECT sectionid, sectionname FROM accountsection ORDER BY sectionid'; + $sql = "SELECT sectionid, sectionname FROM accountsection ORDER BY sectionid"; $secresult = DB_query($sql, $db,$ErrMsg,$DbgMsg); while( $secrow = DB_fetch_array($secresult) ) { if ($_POST['SectionInAccounts']==$secrow['sectionid']) { Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AccountSections.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -172,7 +172,8 @@ $ErrMsg = _('Could not get account group sections because'); $result = DB_query($sql,$db,$ErrMsg); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p> + <br />'; echo '<table name="SectionList" class="selection"> <tr> Modified: trunk/AddCustomerContacts.php =================================================================== --- trunk/AddCustomerContacts.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AddCustomerContacts.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -17,16 +17,16 @@ } elseif (isset($_GET['DebtorNo'])){ $DebtorNo = $_GET['DebtorNo']; } -echo "<a href='" . $rootpath . '/Customers.php?' . SID .'&DebtorNo='.$DebtorNo."'>" . _('Back to Customers') . '</a><br />'; +echo '<a href="' . $rootpath . '/Customers.php?DebtorNo=' . $DebtorNo .'">' . _('Back to Customers') . '</a><br />'; $SQLname="SELECT name FROM debtorsmaster where debtorno='" .$DebtorNo."'"; $Result = DB_query($SQLname,$db); $row = DB_fetch_array($Result); if (!isset($_GET['Id'])) { echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . - '" alt="" />' . ' ' . _('Contacts for Customer: <b>') .$row['name'].'</p><br />'; + '" alt="" />' . ' ' . _('Contacts for Customer:') . ' <b>' . $row['name'].'</b></p><br />'; } else { echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . - '" alt="" />' . ' ' . _('Edit contact for <b>') .$row['name'].'</p><br />'; + '" alt="" />' . ' ' . _('Edit contact for') . '<b>' . $row['name'].'</b></p><br />'; } if ( isset($_POST['submit']) ) { @@ -39,34 +39,40 @@ if (isset($_POST['Con_ID']) and !is_long((integer)$_POST['Con_ID'])) { $InputError = 1; prnMsg( _('The Contact ID must be an integer.'), 'error'); - } elseif (strlen($_POST['conName']) >40) { + } elseif (strlen($_POST['ContactName']) >40) { $InputError = 1; prnMsg( _('The contact name must be forty characters or less long'), 'error'); - } elseif( trim($_POST['conName']) == '' ) { + } elseif( trim($_POST['ContactName']) == '' ) { $InputError = 1; prnMsg( _('The contact name may not be empty'), 'error'); + }elseif (!IsEmailAddress($_POST['ContactEmail']) AND strlen($_POST['ContactEmail'])>0){ + $InputError = 1; + prnMsg( _('The contact email address is not a valid email address'), 'error'); } - if (isset($Id) and ($Id and $InputError !=1)) { - $sql = "UPDATE custcontacts SET - contactname='" . $_POST['conName'] . "', - role='" . $_POST['conRole'] . "', - phoneno='" . $_POST['conPhone'] . "', - notes='" . $_POST['conNotes'] . "' - WHERE debtorno ='".$DebtorNo."' - AND contid='".$Id."'"; + $sql = "UPDATE custcontacts SET contactname='" . $_POST['ContactName'] . "', + role='" . $_POST['ContactRole'] . "', + phoneno='" . $_POST['ContactPhone'] . "', + notes='" . $_POST['ContactNotes'] . "', + email='" . $_POST['ContactEmail'] . "' + WHERE debtorno ='".$DebtorNo."' + AND contid='".$Id."'"; $msg = _('Customer Contacts') . ' ' . $DebtorNo . ' ' . _('has been updated'); } elseif ($InputError !=1) { - $sql = "INSERT INTO custcontacts (debtorno,contactname,role,phoneno,notes) - VALUES ( - '" . $DebtorNo. "', - '" . $_POST['conName'] . "', - '" . $_POST['conRole'] . "', - '" . $_POST['conPhone'] . "', - '" . $_POST['conNotes'] . "' - )"; + $sql = "INSERT INTO custcontacts (debtorno, + contactname, + role, + phoneno, + notes, + email) + VALUES ('" . $DebtorNo. "', + '" . $_POST['ContactName'] . "', + '" . $_POST['ContactRole'] . "', + '" . $_POST['ContactPhone'] . "', + '" . $_POST['ContactNotes'] . "', + '" . $_POST['ContactEmail'] . "')"; $msg = _('The contact record has been added'); } @@ -78,40 +84,51 @@ prnMsg($msg, 'success'); echo '<br />'; unset($Id); - unset($_POST['conName']); - unset($_POST['conRole']); - unset($_POST['conPhone']); - unset($_POST['conNotes']); + unset($_POST['ContactName']); + unset($_POST['ContactRole']); + unset($_POST['ContactPhone']); + unset($_POST['ContactNotes']); + unset($_POST['ContactEmail']); unset($_POST['Con_ID']); } - } elseif (isset($_GET['delete']) and $_GET['delete']) { +} elseif (isset($_GET['delete']) and $_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 custcontacts WHERE contid=".$Id." - and debtorno='".$DebtorNo."'"; + $sql="DELETE FROM custcontacts + WHERE contid='" . $Id . "' + AND debtorno='" . $DebtorNo . "'"; $result = DB_query($sql,$db); - //echo '<br />'.$sql; - echo '<br />'; - prnMsg( _('The contact record has been deleted'), 'success'); - unset($Id); - unset($_GET['delete']); + echo '<br />'; + prnMsg( _('The contact record has been deleted'), 'success'); + unset($Id); + unset($_GET['delete']); - } +} if (!isset($Id)) { - $sql = "SELECT * FROM custcontacts where debtorno='".$DebtorNo."' ORDER BY contid"; + $sql = "SELECT contid, + debtorno, + contactname, + role, + phoneno, + notes, + email + FROM custcontacts + WHERE debtorno='".$DebtorNo."' + ORDER BY contid"; $result = DB_query($sql,$db); //echo '<br />'.$sql; - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr> <th>' . _('Name') . '</th> <th>' . _('Role') . '</th> <th>' . _('Phone no') . '</th> + <th>' . _('Email') . '</th> <th>' . _('Notes') . '</th>'; $k=0; //row colour counter @@ -127,83 +144,102 @@ printf('<td>%s</td> <td>%s</td> <td>%s</td> + <td><a href=mailto:%s>%s</a></td> <td>%s</td> <td><a href="%sId=%s&DebtorNo=%s">'. _('Edit').' </td> - <td><a href="%sId=%s&DebtorNo=%s&delete=1">'. _('Delete'). '</td></tr>', - $myrow[2], - $myrow[3], - $myrow[4], - $myrow[5], - $_SERVER['PHP_SELF'] . "?" . SID, - $myrow[0], - $myrow[1], - $_SERVER['PHP_SELF'] . "?" . SID, - $myrow[0], - $myrow[1]); + <td><a href="%sId=%s&DebtorNo=%s&delete=1" onclick="return confirm(\'' . _('Are you sure you wish to delete this contact?') . '\');">'. _('Delete'). '</td></tr>', + $myrow['contactname'], + $myrow['role'], + $myrow['phoneno'], + $myrow['email'], + $myrow['email'], + $myrow['notes'], + $_SERVER['PHP_SELF'] . '?', + $myrow['contid'], + $myrow['debtorno'], + $_SERVER['PHP_SELF'] . '?', + $myrow['contid'], + $myrow['debtorno']); } //END WHILE LIST LOOP echo '</table>'; } -if (isset($Id)) { ?> - <div class="centre"><a href="<?php echo $_SERVER['PHP_SELF'] . '?' . SID .'&DebtorNo='.$DebtorNo;?>"><?=_('Review all contacts for this Customer')?></a></div> -<?php } ?> -<p> +if (isset($Id)) { + echo '<div class="centre"><a href="' . $_SERVER['PHP_SELF'] . '?DebtorNo='.$DebtorNo .'">' . _('Review all contacts for this Customer') . '</a></div>'; +} -<?php if (!isset($_GET['delete'])) { echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?DebtorNo='.$DebtorNo.'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($Id)) { - //editing an existing Shipper - $sql = "SELECT * FROM custcontacts WHERE contid='".$Id."' - and debtorno='".$DebtorNo."'"; + $sql = "SELECT contid, + debtorno, + contactname, + role, + phoneno, + notes, + email + FROM custcontacts + WHERE contid='".$Id."' + AND debtorno='".$DebtorNo."'"; $result = DB_query($sql, $db); - //echo '<br />'.$sql; - $myrow = DB_fetch_array($result); $_POST['Con_ID'] = $myrow['contid']; - $_POST['conName'] = $myrow['contactname']; - $_POST['conRole'] = $myrow['role']; - $_POST['conPhone'] = $myrow['phoneno']; - $_POST['conNotes'] = $myrow['notes']; - $_POST['debtorno'] = $myrow['debtorno']; + $_POST['ContactName'] = $myrow['contactname']; + $_POST['ContactRole'] = $myrow['role']; + $_POST['ContactPhone'] = $myrow['phoneno']; + $_POST['ContactNotes'] = $myrow['notes']; + $_POST['ContactEmail'] = $myrow['email']; + $_POST['DebtorNo'] = $myrow['debtorno']; echo '<input type=hidden name="Id" value='. $Id .'>'; echo '<input type=hidden name="Con_ID" value=' . $_POST['Con_ID'] . '>'; - echo '<input type=hidden name="DebtorNo" value=' . $_POST['debtorno'] . '>'; - echo '<table class=selection><tr><td>'. _('Contact Code').':</td><td>' . $_POST['Con_ID'] . '</td></tr>'; + echo '<input type=hidden name="DebtorNo" value=' . $_POST['DebtorNo'] . '>'; + echo '<br /> + <table class="selection"> + <tr> + <td>'. _('Contact Code').':</td> + <td>' . $_POST['Con_ID'] . '</td> + </tr>'; } else { - echo '<table class=selection>'; + echo '<br /> + <table class="selection">'; } echo '<tr><td>'. _('Contact Name') . '</td>'; - if (isset($_POST['conName'])) { - echo '<td><input type="Text" name="conName" value="' . $_POST['conName']. '" size=35 maxlength=40></td></tr>'; + if (isset($_POST['ContactName'])) { + echo '<td><input type="text" name="ContactName" value="' . $_POST['ContactName']. '" size=35 maxlength=40></td></tr>'; } else { - echo '<td><input type="Text" name="conName" size=35 maxlength=40></td></tr>'; + echo '<td><input type="text" name="ContactName" size=35 maxlength=40></td></tr>'; } echo '<tr><td>' . _('Role') . '</td>'; - if (isset($_POST['conRole'])) { - echo '<td><input type="text" name="conRole" value="'. $_POST['conRole']. '" size=35 maxlength=40></td></tr>'; + if (isset($_POST['ContactRole'])) { + echo '<td><input type="text" name="ContactRole" value="'. $_POST['ContactRole']. '" size=35 maxlength=40></td></tr>'; } else { - echo '<td><input type="text" name="conRole" size=35 maxlength=40></td></tr>'; + echo '<td><input type="text" name="ContactRole" size=35 maxlength=40></td></tr>'; } echo '<tr><td>' . _('Phone') . '</td>'; - if (isset($_POST['conPhone'])) { - echo '<td><input type="Text" name="conPhone" value="' . $_POST['conPhone'] . '" size=35 maxlength=40></td></tr>'; + if (isset($_POST['ContactPhone'])) { + echo '<td><input type="text" name="ContactPhone" value="' . $_POST['ContactPhone'] . '" size=35 maxlength=40></td></tr>'; } else { - echo '<td><input type="Text" name="conPhone"" size=35 maxlength=40></td></tr>'; + echo '<td><input type="text" name="ContactPhone" size=35 maxlength=40></td></tr>'; } + echo '<tr><td>' . _('Email') . '</td>'; + if (isset($_POST['ContactEmail'])) { + echo '<td><input type="text" name="ContactEmail" value="' . $_POST['ContactEmail'] . '" size=55 maxlength="55"></td></tr>'; + } else { + echo '<td><input type="text" name="ContactEmail" size="55" maxlength="55"></td></tr>'; + } echo '<tr><td>' . _('Notes') . '</td>'; - if (isset($_POST['conNotes'])) { - echo '<td><textarea name="conNotes">'. $_POST['conNotes'] . '</textarea>'; + if (isset($_POST['ContactNotes'])) { + echo '<td><textarea name="ContactNotes">'. $_POST['ContactNotes'] . '</textarea>'; } else { - echo '<td><textarea name="conNotes"></textarea>'; + echo '<td><textarea name="ContactNotes"></textarea>'; } echo '<tr><td colspan=2><div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information') . '"></div></td></tr>'; echo '</table>'; @@ -212,4 +248,4 @@ } //end if record deleted no point displaying form to add record include('includes/footer.inc'); -?> +?> \ No newline at end of file Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AddCustomerNotes.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -1,7 +1,7 @@ <?php -/* $Revision: 1.4 $ */ + /* $Id$*/ -//$PageSecurity = 3; + include('includes/session.inc'); $title = _('Customer Notes'); include('includes/header.inc'); @@ -17,7 +17,8 @@ } elseif (isset($_GET['DebtorNo'])){ $DebtorNo = $_GET['DebtorNo']; } -echo "<a href='" . $rootpath . '/SelectCustomer.php?' . SID .'&DebtorNo='.$DebtorNo."'>" . _('Back to Select Customer') . '</a><br>'; + +echo '<a href="' . $rootpath . '/SelectCustomer.php?DebtorNo=' . $DebtorNo . '">' . _('Back to Select Customer') . '</a><br />'; if ( isset($_POST['submit']) ) { //initialise no input errors assumed initially before we test @@ -49,22 +50,24 @@ $msg = _('Customer Notes') . ' ' . $DebtorNo . ' ' . _('has been updated'); } elseif ($InputError !=1) { - $sql = "INSERT INTO custnotes (debtorno,href,note,date,priority) - VALUES ( - '" . $DebtorNo. "', - '" . $_POST['href'] . "', - '" . $_POST['note'] . "', - '" . FormatDateForSQL($_POST['date']) . "', - '" . $_POST['priority'] . "' - )"; + $sql = "INSERT INTO custnotes (debtorno, + href, + note, + date, + priority) + VALUES ('" . $DebtorNo. "', + '" . $_POST['href'] . "', + '" . $_POST['note'] . "', + '" . FormatDateForSQL($_POST['date']) . "', + '" . $_POST['priority'] . "')"; $msg = _('The contact notes record has been added'); } if ($InputError !=1) { $result = DB_query($sql,$db); - //echo '<br>'.$sql; + //echo '<br />'.$sql; - echo '<br>'; + echo '<br />'; prnMsg($msg, 'success'); unset($Id); unset($_POST['note']); @@ -78,28 +81,32 @@ // PREVENT DELETES IF DEPENDENT RECORDS IN 'SalesOrders' - $sql="DELETE FROM custnotes WHERE noteid='".$Id."' - and debtorno='".$DebtorNo."'"; - $result = DB_query($sql,$db); - //echo '<br>'.$sql; + $sql="DELETE FROM custnotes + WHERE noteid='".$Id."' + AND debtorno='".$DebtorNo."'"; + $result = DB_query($sql,$db); + //echo '<br />'.$sql; - echo '<br>'; - prnMsg( _('The contact note record has been deleted'), 'success'); - unset($Id); - unset($_GET['delete']); + echo '<br />'; + prnMsg( _('The contact note record has been deleted'), 'success'); + unset($Id); + unset($_GET['delete']); +} - } - if (!isset($Id)) { - $SQLname="SELECT * from debtorsmaster where debtorno='".$DebtorNo."'"; + $SQLname="SELECT * FROM debtorsmaster + WHERE debtorno='".$DebtorNo."'"; $Result = DB_query($SQLname,$db); $row = DB_fetch_array($Result); echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . - '" alt="" />' . _('Notes for Customer').': <b>' .$row['name'].'</b></p><br />'; + '" alt="" />' . _('Notes for Customer').': <b>' .$row['name'].'</b></p> + <br />'; - $sql = "SELECT * FROM custnotes where debtorno='".$DebtorNo."' ORDER BY date DESC"; + $sql = "SELECT * FROM custnotes + WHERE debtorno='".$DebtorNo."' + ORDER BY date DESC"; $result = DB_query($sql,$db); - //echo '<br>'.$sql; + //echo '<br />'.$sql; echo '<table class=selection>'; echo '<tr> @@ -128,10 +135,10 @@ $myrow[3], $myrow[2], $myrow[5], - $_SERVER['PHP_SELF'] . "?" . SID, + $_SERVER['PHP_SELF'] . '?', $myrow[0], $myrow[1], - $_SERVER['PHP_SELF'] . "?" . SID, + $_SERVER['PHP_SELF'] . '?', $myrow[0], $myrow[1]); @@ -140,9 +147,9 @@ echo '</table>'; } if (isset($Id)) { - echo '<div class="centre"><a href="'.$_SERVER['PHP_SELF'] . '?' . SID .'&DebtorNo='.$DebtorNo.'"><?='._('Review all notes for this Customer').'</a></div>'; + echo '<div class="centre"><a href="'.$_SERVER['PHP_SELF'] . '?DebtorNo='.$DebtorNo.'">'._('Review all notes for this Customer').'</a></div>'; } -echo '<p>'; +echo '<br />'; if (!isset($_GET['delete'])) { @@ -156,7 +163,6 @@ and debtorno='".$DebtorNo."'"; $result = DB_query($sql, $db); - //echo '<br>'.$sql; $myrow = DB_fetch_array($result); @@ -169,9 +175,13 @@ echo '<input type=hidden name="Id" value='. $Id .'>'; echo '<input type=hidden name="Con_ID" value=' . $_POST['noteid'] . '>'; echo '<input type=hidden name="DebtorNo" value=' . $_POST['debtorno'] . '>'; - echo '<table class=selection><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 class=selection>'; + echo '<table class="selection">'; } echo '<tr><td>' . _('Contact Note'). '</td>'; @@ -188,15 +198,15 @@ } echo '<tr><td>' . _('Date') .'</td>'; if (isset($_POST['date'])) { - echo '<td><input type="Text" name="date" value="'.ConvertSQLDate($_POST['date']).'" size=10 maxlength=10></td></tr>'; + echo '<td><input type="text" name="date" class="date" alt="' .$_SESSION['DefaultDateFormat']. '" id="datepicker" value="'.ConvertSQLDate($_POST['date']).'" size=10 maxlength=10></td></tr>'; } else { - echo '<td><input type="Text" name="date" size=10 maxlength=10></td></tr>'; + echo '<td><input type="text" name="date" class="date" alt="' .$_SESSION['DefaultDateFormat']. '" id="datepicker" size=10 maxlength=10></td></tr>'; } echo '<tr><td>'. _('Priority'). '</td>'; if (isset($_POST['priority'])) { echo '<td><input type="Text" name="priority" value="' .$_POST['priority']. '" size=1 maxlength=3></td></td>'; } else { - echo '<td><input type="Text" name="priority" size=1 maxlength=3></td></td>'; + echo '<td><input type="text" name="priority" size=1 maxlength=3></td></td>'; } echo '<tr><td colspan=2><div class="centre"><input type="Submit" name="submit" value="'._('Enter Information').'"></div></td></tr>'; echo '</table>'; @@ -206,4 +216,4 @@ } //end if record deleted no point displaying form to add record include('includes/footer.inc'); -?> +?> \ No newline at end of file Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AddCustomerTypeNotes.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -1,7 +1,6 @@ <?php -/* $Revision: 1.3 $ */ /* $Id$*/ -//$PageSecurity = 3; + include('includes/session.inc'); $title = _('Customer Type (Group) Notes'); include('includes/header.inc'); @@ -17,8 +16,8 @@ } elseif (isset($_GET['DebtorType'])){ $DebtorType = $_GET['DebtorType']; } -echo "<a href='" . $rootpath . '/SelectCustomer.php?' . SID .'&DebtorType='.$DebtorType."'>" . _('Back to Select Customer') . '</a><br>'; -if ( isset($_POST['submit']) ) { +echo '<a href="' . $rootpath . '/SelectCustomer.php?DebtorType='.$DebtorType.'">' . _('Back to Select Customer') . '</a><br />'; +if (isset($_POST['submit']) ) { //initialise no input errors assumed initially before we test $InputError = 0; @@ -28,10 +27,10 @@ //first off validate inputs sensible if (!is_long((integer)$_POST['priority'])) { $InputError = 1; - prnMsg( _('The Contact priority must be an integer.'), 'error'); + prnMsg(_('The Contact priority must be an integer.'), 'error'); } elseif (strlen($_POST['note']) >200) { $InputError = 1; - prnMsg( _("The contact's notes must be two hundred characters or less long"), 'error'); + prnMsg(_("The contact's notes must be two hundred characters or less long"), 'error'); } elseif( trim($_POST['note']) == '' ) { $InputError = 1; prnMsg( _("The contact's notes may not be empty"), 'error'); @@ -40,31 +39,32 @@ if ($Id AND $InputError !=1) { $sql = "UPDATE debtortypenotes SET - note='" . $_POST['note'] . "', - date='" . $_POST['date'] . "', - href='" . $_POST['href'] . "', - priority='" . $_POST['priority'] . "' - WHERE typeid ='".$DebtorType."' - AND noteid='".$Id."'"; + note='" . $_POST['note'] . "', + date='" . $_POST['date'] . "', + href='" . $_POST['href'] . "', + priority='" . $_POST['priority'] . "' + WHERE typeid ='".$DebtorType."' + AND noteid='".$Id."'"; $msg = _('Customer Group Notes') . ' ' . $DebtorType . ' ' . _('has been updated'); } elseif ($InputError !=1) { - $sql = "INSERT INTO debtortypenotes (typeid,href,note,date,priority) - VALUES ( - '" . $DebtorType. "', - '" . $_POST['href'] . "', - '" . $_POST['note'] . "', - '" . $_POST['date'] . "', - '" . $_POST['priority'] . "' - )"; + $sql = "INSERT INTO debtortypenotes (typeid, + href, + note, + date, + priority) + VALUES ('" . $DebtorType. "', + '" . $_POST['href'] . "', + '" . $_POST['note'] . "', + '" . $_POST['date'] . "', + '" . $_POST['priority'] . "')"; $msg = _('The contact group notes record has been added'); } if ($InputError !=1) { $result = DB_query($sql,$db); - //echo '<br>'.$sql; - echo '<br>'; + echo '<br />'; prnMsg($msg, 'success'); unset($Id); unset($_POST['note']); @@ -75,12 +75,13 @@ // PREVENT DELETES IF DEPENDENT RECORDS IN 'SalesOrders' - $sql="DELETE FROM debtortypenotes WHERE noteid='".$Id."' - and typeid='".$DebtorType."'"; + $sql="DELETE FROM debtortypenotes + WHERE noteid='".$Id."' + AND typeid='".$DebtorType."'"; $result = DB_query($sql,$db); - //echo '<br>'.$sql; + //echo '<br />'.$sql; - echo '<br>'; + echo '<br />'; prnMsg( _('The contact group note record has been deleted'), 'success'); unset($Id); unset($_GET['delete']); @@ -97,9 +98,8 @@ $sql = "SELECT * FROM debtortypenotes where typeid='".$DebtorType."' ORDER BY date DESC"; $result = DB_query($sql,$db); - //echo '<br>'.$sql; - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr> <th>' . _('Date') . '</th> <th>' . _('Note') . '</th> @@ -121,15 +121,15 @@ <td>%s</td> <td>%s</td> <td><a href="%sId=%s&DebtorType=%s">'. _('Edit').' </td> - <td><a href="%sId=%s&DebtorType=%s&delete=1">'. _('Delete'). '</td></tr>', + <td><a href="%sId=%s&DebtorType=%s&delete=1" onclick="return confirm(\'' . _('Are you sure you wish to delete this customer type note?') . '\');">'. _('Delete'). '</td></tr>', $myrow[4], $myrow[3], $myrow[2], $myrow[5], - $_SERVER['PHP_SELF'] . "?" . SID, + $_SERVER['PHP_SELF'] . '?', $myrow[0], $myrow[1], - $_SERVER['PHP_SELF'] . "?" . SID, + $_SERVER['PHP_SELF'] . '?', $myrow[0], $myrow[1]); @@ -145,7 +145,7 @@ <?php if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '&DebtorType='.$DebtorType.'">'; + echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?DebtorType='.$DebtorType.'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($Id)) { @@ -155,7 +155,6 @@ and typeid='".$DebtorType."'"; $result = DB_query($sql, $db); - //echo '<br>'.$sql; $myrow = DB_fetch_array($result); @@ -189,7 +188,7 @@ echo '<tr><td>'. _('Priority').':</td>'; echo '<td><input type="Text" name="priority" value="'. $_POST['priority'].'" size=1 maxlength=3></td></td> </table>'; - echo '<br><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/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2011-06-13 10:23:44 UTC (rev 4596) +++ trunk/AgedDebtors.php 2011-06-17 09:16:37 UTC (rev 4597) @@ -80,7 +80,7 @@ AND debtorsmaster.debtorno >= '" . $_POST['FromCriteria'] . "' AND debtorsmaster.debtorno <= '" . $_POST['ToCriteria'] . "' AND debtorsmaster.currcode ='" . $_POST['Currency'] . "' - $SalesLimit + " . $SalesLimit . " GROUP BY debtorsmaster.debtorno, debtorsmaster.name, currencies.currency, @@ -154,7 +154,7 @@ AND debtorsmaster.debtorno >= '" . $_POST['FromCriteria'] . "' AND debtorsmaster.debtorno <= '" . $_POST['ToCriteria'] . "' AND debtorsmaster.currcode ='" . $_POST['Currency'] . "' - $SalesLimit + " . $SalesLimit . " GROUP BY debtorsmaster.debtorno, debtorsmaster.name, currencies.currency, @@ -243,7 +243,7 @@ AND debtorsmaster.debtorno >= '" . $_POST['FromCriteria'] . "' AND debtorsmaster.debtorno <= '" . $_POST['ToCriteria'] . "' AND debtorsmaster.currcode ='" . $_POST['Currency'] . "' - $SalesLimit + " . $SalesLimit . " GROUP BY debtorsmaster.debtorno, debtorsmaster.name, currencies.currency, @@ -269,7 +269,7 @@ if (DB_error_no($db) !=0) { $title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '.... '; include('includes/header.inc'); - echo '<p>' . _('The customer details could not be retrieved by the SQL because') . ' ' . DB_error_msg($db); + prnMsg(_('The customer details could not be retrieved by the SQL because') . ' ' . DB_error_msg($db),'error'); echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . $SQL; @@ -368,10 +368,10 @@ if (DB_error_no($db) !=0) { $title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); - echo '<br /><br />' . _('The details of outstanding transactions for customer') . ' - ' . $AgedAnalysis['debtorno'] . ' ' . _('could not be retrieved because') . ' - ' . DB_error_msg($db); + prnMsg(_('The details of outstanding transactions for customer') . ' - ' . $Aged... [truncated message content] |
From: <dai...@us...> - 2011-06-18 04:55:22
|
Revision: 4598 http://web-erp.svn.sourceforge.net/web-erp/?rev=4598&view=rev Author: daintree Date: 2011-06-18 04:55:08 +0000 (Sat, 18 Jun 2011) Log Message: ----------- languages names Modified Paths: -------------- trunk/CreditItemsControlled.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustomerTransInquiry.php trunk/DeliveryDetails.php trunk/UserSettings.php trunk/WWW_Users.php trunk/doc/Change.log trunk/includes/session.inc trunk/index.php Added Paths: ----------- trunk/includes/LanguagesArray.php Modified: trunk/CreditItemsControlled.php =================================================================== --- trunk/CreditItemsControlled.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/CreditItemsControlled.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -1,9 +1,9 @@ <?php -/* $Revision: 1.11 $ */ + /* $Id$*/ + include('includes/DefineCartClass.php'); include('includes/DefineSerialItems.php'); -//$PageSecurity = 3; include('includes/session.inc'); $title = _('Specify Credited Controlled Items'); @@ -29,18 +29,18 @@ } elseif (isset($_POST['LineNo'])){ $LineNo = $_POST['LineNo']; } else { - echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '?' . SID . '">'. _('Select Credit Items'). '</a><br><br>'; + echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Select Credit Items'). '</a><br /><br />'; prnMsg( _('This page can only be opened if a Line Item on a credit note has been selected.') . ' ' . _('Please do that first'), 'error'); echo '</div>'; include('includes/footer.inc'); exit; } - - if (!isset($_SESSION['CreditItems'])) { /* This page can only be called with a credit note entry part entered */ - echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '?' . SID . '">'. _('Select Credit Items'). '</a><br><br>'; + echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Select Credit Items'). '</a> + <br /> + <br />'; prnMsg( _('This page can only be opened if a controlled credit note line item has been selected.') . ' ' . _('Please do that first'),'error'); echo '</div>'; include('includes/footer.inc'); @@ -53,8 +53,8 @@ //Make sure this item is really controlled if ( $LineItem->Controlled != 1 ){ - echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '?' . SID . '">'. _('Back to Credit Note Entry').'</a></div>'; - echo '<br>'; + echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Back to Credit Note Entry').'</a></div>'; + echo '<br />'; prnMsg( _('Notice') . ' - ' . _('The line item must be defined as controlled to require input of the batch numbers or serial numbers being credited'),'warn'); include('includes/footer.inc'); exit; @@ -70,17 +70,16 @@ echo '<div class="centre">'; if ($CreditLink == 'Credit_Invoice.php'){ - echo '<input type=hidden name="CreditInvoice" VALUE="Yes">'; + echo '<input type="hidden" name="CreditInvoice" value="Yes">'; } -echo '<br><a href="' . $rootpath . '/' . $CreditLink . '?' . SID . '">'. _('Back to Credit Note Entry'). '</a>'; +echo '<br /><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Back to Credit Note Entry'). '</a>'; -echo '<br><font size=2><b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>'; +echo '<br /><font size=2><b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>'; /** vars needed by InputSerialItem : **/ $LocationOut = $_SESSION['CreditItems']->Location; -/* $_SESSION['CreditingControlledItems_MustExist'] is in config.php - Phil and Jesse disagree on the default treatment -compromise position make it user configurable */ +/* $_SESSION['CreditingControlledItems_MustExist'] is in config.php - Phil and Jesse disagree on the default treatment compromise position make it user configurable */ $ItemMustExist = $_SESSION['CreditingControlledItems_MustExist']; $StockID = $LineItem->StockID; $InOutModifier=1; @@ -88,7 +87,8 @@ $IsCredit = true; include ('includes/InputSerialItems.php'); - echo '</tr></table>'; +echo '</tr> + </table>'; /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for dispatch */ @@ -100,4 +100,4 @@ include('includes/footer.inc'); exit; -?> +?> \ No newline at end of file Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/CreditStatus.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -17,7 +17,8 @@ } $Errors = array(); $InputError = 0; -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p> + <br />'; if (isset($_POST['submit'])) { @@ -80,24 +81,21 @@ /*Selected Reason is null cos no item selected on first time round so must be adding a record must be submitting new entries in the new status code form */ - if (isset($_POST['DisallowInvoices']) and $_POST['DisallowInvoices']=='on'){ + if (isset($_POST['DisallowInvoices']) AND $_POST['DisallowInvoices']=='on'){ - $sql = "INSERT INTO holdreasons ( - reasoncode, - reasondescription, - dissallowinvoices) - VALUES ( - '" .$_POST['ReasonCode'] . "', - '".$_POST['ReasonDescription'] . "' - , 1)"; + $sql = "INSERT INTO holdreasons (reasoncode, + reasondescription, + dissallowinvoices) + VALUES ('" .$_POST['ReasonCode'] . "', + '".$_POST['ReasonDescription'] . "', + 1)"; } else { - $sql = "INSERT INTO holdreasons ( - reasoncode, - reasondescription, - dissallowinvoices) - VALUES ( - '" . $_POST['ReasonCode'] . "', - '" . $_POST['ReasonDescription'] ."', 0)"; + $sql = "INSERT INTO holdreasons (reasoncode, + reasondescription, + dissallowinvoices) + VALUES ('" . $_POST['ReasonCode'] . "', + '" . $_POST['ReasonDescription'] ."', + 0)"; } $msg = _('A new credit status record has been inserted'); @@ -122,7 +120,7 @@ $myrow = DB_fetch_row($result); if ($myrow[0] > 0) { prnMsg( _('Cannot delete this credit status code because customer accounts have been created referring to it'),'warn'); - echo '<br>' . _('There are') . ' ' . $myrow[0] . ' ' . _('customer accounts that refer to this credit status code'); + echo '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('customer accounts that refer to this credit status code'); } else { //only delete if used in neither customer or supplier accounts @@ -200,10 +198,10 @@ //editing an existing status code $sql = "SELECT reasoncode, - reasondescription, - dissallowinvoices - FROM holdreasons - WHERE reasoncode='".$SelectedReason."'"; + reasondescription, + dissallowinvoices + FROM holdreasons + WHERE reasoncode='".$SelectedReason."'"; $result = DB_query($sql, $db); $myrow = DB_fetch_array($result); @@ -215,14 +213,17 @@ echo '<input type="hidden" name="SelectedReason" value="' . $SelectedReason . '">'; echo '<input type="hidden" name="ReasonCode" value="' . $_POST['ReasonCode'] . '">'; echo '<table class="selection"> - <tr><td>'. _('Status Code') .':</td> - <td>' . $_POST['ReasonCode'] . '</td></tr>'; + <tr> + <td>'. _('Status Code') .':</td> + <td>' . $_POST['ReasonCode'] . '</td> + </tr>'; } else { //end of if $SelectedReason only do the else when a new record is being entered if (!isset($_POST['ReasonCode'])) { $_POST['ReasonCode'] = ''; } - echo '<br /><table class="selection"> + echo '<br /> + <table class="selection"> <tr> <td>'. _('Status Code') .':</td> <td><input ' . (in_array('ReasonCode',$Errors) ? 'class="inputerror"' : '' ) . ' tabindex=1 type="text" name="ReasonCode" value="'. $_POST['ReasonCode'] .'" size=3 maxlength=2></td> @@ -233,17 +234,21 @@ $_POST['ReasonDescription'] = ''; } echo '<tr> - <td>'. _('Description') .':</td> - <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30"> - </td></tr> - <tr><td>'. _('Disallow Invoices') . '</td>'; + <td>'. _('Description') .':</td> + <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . + ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30"></td> + </tr> + <tr> + <td>'. _('Disallow Invoices') . '</td>'; if (isset($_POST['DisallowInvoices']) and $_POST['DisallowInvoices']==1) { echo '<td><input tabindex=3 type="checkbox" checked name="DisallowInvoices"></td></tr>'; } else { echo '<td><input tabindex=3 type="checkbox" name="DisallowInvoices"></td></tr>'; } - echo '</table><br><div class="centre"><input tabindex=4 type="submit" name="submit" value="' . _('Enter Information') . '"></div></form>'; + echo '</table> + <br /> + <div class="centre"><input tabindex=4 type="submit" name="submit" value="' . _('Enter Information') . '"></div> + </form>'; } //end if record deleted no point displaying form to add record include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/Credit_Invoice.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -357,7 +357,7 @@ echo '<br />'; } if (!isset($_POST['ProcessCredit'])) { - echo '<input type=text class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder . + echo '<input type="text" class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder . '_TaxRate" maxlength=4 size=4 value="' . $Tax->TaxRate*100 . '">'; } $i++; @@ -381,7 +381,7 @@ echo '<td class=number>' . $DisplayTaxAmount . '</td> <td class=number>' . $DisplayGrossLineTotal . '</td> - <td><a href="' . $_SERVER['PHP_SELF'] . '?Delete=' . $LnItm->LineNumber . '">' . _('Delete') . '</a></td></tr>'; + <td><a href="' . $_SERVER['PHP_SELF'] . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; echo '<tr' . $RowStarter . '><td colspan=12><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols=100% rows=1>' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; $j++; @@ -395,7 +395,7 @@ if (!isset($_POST['ProcessCredit'])) { echo '<tr> <td colspan=3 class=number>' . _('Freight cost charged on invoice') . '</td> - <td class=number>' . number_format($_SESSION['Old_FreightCost'],2) . '</td> + <td class=number>' . number_format($_SESSION['Old_FreightCost'],$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> <td></td> <td colspan=2 class=number>' . _('Credit Freight Cost') . '</td> <td><input tabindex='.$j.' type=text class="number" size=6 maxlength=6 name="ChargeFreightCost" value="' . $_SESSION['CreditItems']->FreightCost . '"></td>'; @@ -449,7 +449,7 @@ <td colspan=7 class=number>' . _('Credit Totals') . '</td> <td class=number><hr><b>' . $DisplayTotal . '</b><hr></td> <td colspan=2></td> - <td class=number><hr><b>' . number_format($TaxTotal,2) . '<hr></td> + <td class=number><hr><b>' . number_format($TaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces) . '<hr></td> <td class=number><hr><b>' . number_format($TaxTotal+($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost),$_SESSION['CreditItems']->CurrDecimalPlaces) . '</b><hr></td> </tr></table>'; } @@ -507,8 +507,8 @@ /*Do some rounding */ - $_SESSION['CreditItems']->total = round($_SESSION['CreditItems']->total,2); - $TaxTotal = round($TaxTotal,2); + $_SESSION['CreditItems']->total = round($_SESSION['CreditItems']->total,$_SESSION['CreditItems']->CurrDecimalPlaces); + $TaxTotal = round($TaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); $Allocate_amount=0; $Settled =0; @@ -623,7 +623,7 @@ foreach ($_SESSION['CreditItems']->LineItems as $OrderLine) { if ($OrderLine->QtyDispatched >0){ - $LocalCurrencyPrice= round(($OrderLine->Price / $_SESSION['CurrencyRate']),2); + $LocalCurrencyPrice= round(($OrderLine->Price / $_SESSION['CurrencyRate']),$_SESSION['CompanyRecord']['decimalplaces']); /*Determine the type of stock item being credited */ $SQL = "SELECT mbflag FROM stockmaster WHERE stockid = '" . $OrderLine->StockID . "'"; @@ -1255,7 +1255,7 @@ '" . $PeriodNo . "', '" . $COGSAccount . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " x " . $OrderLine->QtyDispatched . " @ " . $OrderLine->StandardCost . "', - '" . -round($OrderLine->StandardCost * $OrderLine->QtyDispatched,2) . "' + '" . -round($OrderLine->StandardCost * $OrderLine->QtyDispatched,$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The cost of sales GL posting could not be inserted because'); @@ -1279,7 +1279,7 @@ '" . $PeriodNo . "', '" . $_POST['WriteOffGLCode'] . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " x " . $OrderLine->QtyDispatched . " @ " . $OrderLine->StandardCost . "', - '" . round($OrderLine->StandardCost * $OrderLine->QtyDispatched,2) . "')"; + '" . round($OrderLine->StandardCost * $OrderLine->QtyDispatched,$_SESSION['CompanyRecord']['decimalplaces']) . "')"; } else { $StockGLCode = GetStockGLCode($OrderLine->StockID, $db); $SQL = "INSERT INTO gltrans (type, @@ -1295,7 +1295,7 @@ '" . $PeriodNo . "', '" . $StockGLCode['stockact'] . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " x " . $OrderLine->QtyDispatched . " @ " . $OrderLine->StandardCost . "', - '" . round($OrderLine->StandardCost * $OrderLine->QtyDispatched,2) . "')"; + '" . round($OrderLine->StandardCost * $OrderLine->QtyDispatched,$_SESSION['CompanyRecord']['decimalplaces']) . "')"; } $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The stock side or write off of the cost of sales GL posting could not be inserted because'); @@ -1322,7 +1322,7 @@ '" . $PeriodNo . "', '" . $SalesGLAccounts['salesglcode'] . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " x " . $OrderLine->QtyDispatched . " @ " . $OrderLine->Price . "', - '" . round(($OrderLine->Price * $OrderLine->QtyDispatched)/$_SESSION['CurrencyRate'],2) . "' + '" . round(($OrderLine->Price * $OrderLine->QtyDispatched)/$_SESSION['CurrencyRate'],$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The credit note GL posting could not be inserted because'); @@ -1344,7 +1344,7 @@ '" . $PeriodNo . "', '" . $SalesGLAccounts['discountglcode'] . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " @ " . ($OrderLine->DiscountPercent * 100) . "%', - '" . -round(($OrderLine->Price * $OrderLine->QtyDispatched * $OrderLine->DiscountPercent)/$_SESSION['CurrencyRate'],2) . "' + '" . -round(($OrderLine->Price * $OrderLine->QtyDispatched * $OrderLine->DiscountPercent)/$_SESSION['CurrencyRate'],$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The credit note discount GL posting could not be inserted because'); $DbgMsg = _('The following SQL to insert the GLTrans record was used'); @@ -1372,7 +1372,7 @@ '" . $PeriodNo . "', '" . $_SESSION['CompanyRecord']['debtorsact'] . "', '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . -round(($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost + $TaxTotal)/$_SESSION['CurrencyRate'],2) . "' + '" . -round(($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost + $TaxTotal)/$_SESSION['CurrencyRate'],$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The total debtor GL posting for the credit note could not be inserted because'); @@ -1384,7 +1384,7 @@ /*Could do with setting up a more flexible freight posting schema that looks at the sales type and area of the customer branch to determine where to post the freight recovery */ - if (round($_SESSION['CreditItems']->FreightCost,2) !=0 ) { + if (round($_SESSION['CreditItems']->FreightCost,$_SESSION['CreditItems']->CurrDecimalPlaces) !=0 ) { $SQL = "INSERT INTO gltrans (type, typeno, trandate, @@ -1398,7 +1398,7 @@ '" . $PeriodNo . "', '" . $_SESSION['CompanyRecord']['freightact'] . "', '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . round($_SESSION['CreditItems']->FreightCost/$_SESSION['CurrencyRate'],2) . "' + '" . round($_SESSION['CreditItems']->FreightCost/$_SESSION['CurrencyRate'],$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The freight GL posting for this credit note could not be inserted because'); Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/Currencies.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -25,7 +25,8 @@ $Errors = array(); -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p> + <br />'; if (isset($_POST['submit'])) { @@ -61,6 +62,22 @@ $Errors[$i] = 'ExchangeRate'; $i++; } + if (!is_numeric($_POST['DecimalPlaces'])){ + $InputError = 1; + prnMsg(_('The number of decimal places to display for amounts in this currency must be numeric'),'error'); + $Errors[$i] = 'DecimalPlaces'; + $i++; + }elseif ($_POST['DecimalPlaces']<=0){ + $InputError = 1; + prnMsg(_('The number of decimal places to display for amounts in this currency must be positive or zero'),'error'); + $Errors[$i] = 'DecimalPlaces'; + $i++; + } elseif ($_POST['DecimalPlaces']>2){ + $InputError = 1; + prnMsg(_('The number of decimal places to display for amounts in this currency is expected to be 2 or less'),'error'); + $Errors[$i] = 'DecimalPlaces'; + $i++; + } if (strlen($_POST['CurrencyName']) > 20) { $InputError = 1; prnMsg(_('The currency name must be 20 characters or less long'),'error'); @@ -79,7 +96,7 @@ $Errors[$i] = 'HundredsName'; $i++; } - if (($FunctionalCurrency != '') and (isset($SelectedCurrency) and $SelectedCurrency==$FunctionalCurrency)){ + if (($FunctionalCurrency != '') AND (isset($SelectedCurrency) AND $SelectedCurrency==$FunctionalCurrency)){ $InputError = 1; prnMsg(_('The functional currency cannot be modified or deleted'),'error'); } @@ -93,11 +110,11 @@ if (isset($SelectedCurrency) AND $InputError !=1) { /*SelectedCurrency could also exist if submit had not been clicked this code would not run in this case cos submit is false of course see the delete code below*/ - $sql = "UPDATE currencies SET - currency='" . $_POST['CurrencyName'] . "', - country='". $_POST['Country']. "', - hundredsname='" . $_POST['HundredsName'] . "', - rate='" .$_POST['ExchangeRate'] . "' + $sql = "UPDATE currencies SET currency='" . $_POST['CurrencyName'] . "', + country='". $_POST['Country']. "', + hundredsname='" . $_POST['HundredsName'] . "', + decimalplaces='" . $_POST['DecimalPlaces'] . "', + rate='" .$_POST['ExchangeRate'] . "' WHERE currabrev = '" . $SelectedCurrency . "'"; $msg = _('The currency definition record has been updated'); @@ -105,16 +122,18 @@ /*Selected currencies is null cos no item selected on first time round so must be adding a record must be submitting new entries in the new payment terms form */ $sql = "INSERT INTO currencies (currency, - currabrev, - country, - hundredsname, - rate) - VALUES ('" . $_POST['CurrencyName'] . "', - '" . $_POST['Abbreviation'] . "', - '" . $_POST['Country'] . "', - '" . $_POST['HundredsName'] . "', - '" . $_POST['ExchangeRate'] . "')"; - + currabrev, + country, + hundredsname, + decimalplaces, + rate) + VALUES ('" . $_POST['CurrencyName'] . "', + '" . $_POST['Abbreviation'] . "', + '" . $_POST['Country'] . "', + '" . $_POST['HundredsName'] . "', + '" . $_POST['DecimalPlaces'] . "', + '" . $_POST['ExchangeRate'] . "')"; + $msg = _('The currency definition record has been added'); } //run the SQL from either of the above possibilites @@ -126,6 +145,7 @@ unset($_POST['CurrencyName']); unset($_POST['Country']); unset($_POST['HundredsName']); + unset($_POST['DecimalPlaces']); unset($_POST['ExchangeRate']); unset($_POST['Abbreviation']); @@ -134,7 +154,8 @@ // PREVENT DELETES IF DEPENDENT RECORDS IN DebtorsMaster - $sql= "SELECT COUNT(*) FROM debtorsmaster WHERE debtorsmaster.currcode = '" . $SelectedCurrency . "'"; + $sql= "SELECT COUNT(*) FROM debtorsmaster + WHERE currcode = '" . $SelectedCurrency . "'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0] > 0) @@ -142,15 +163,16 @@ prnMsg(_('Cannot delete this currency because customer accounts have been created referring to this currency') . '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('customer accounts that refer to this currency'),'warn'); } else { - $sql= "SELECT COUNT(*) FROM suppliers WHERE suppliers.currcode = '".$SelectedCurrency."'"; + $sql= "SELECT COUNT(*) FROM suppliers + WHERE suppliers.currcode = '".$SelectedCurrency."'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); - if ($myrow[0] > 0) - { + if ($myrow[0] > 0) { prnMsg(_('Cannot delete this currency because supplier accounts have been created referring to this currency') . '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('supplier accounts that refer to this currency'),'warn'); } else { - $sql= "SELECT COUNT(*) FROM banktrans WHERE banktrans.currcode = '" . $SelectedCurrency . "'"; + $sql= "SELECT COUNT(*) FROM banktrans + WHERE currcode = '" . $SelectedCurrency . "'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0] > 0){ @@ -176,15 +198,22 @@ links to delete or edit each. These will call the same page again and allow update/input or deletion of the records*/ - $sql = 'SELECT currency, currabrev, country, hundredsname, rate FROM currencies'; + $sql = "SELECT currency, + currabrev, + country, + hundredsname, + rate, + decimalplaces + FROM currencies"; $result = DB_query($sql, $db); - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr><td></td> <th>' . _('ISO4217 Code') . '</th> <th>' . _('Currency Name') . '</th> <th>' . _('Country') . '</th> <th>' . _('Hundredths Name') . '</th> + <th>' . _('Decimal Places') . '</th> <th>' . _('Exchange Rate') . '</th> <th>' . _('Ex Rate - ECB') .'</th> </tr>'; @@ -197,7 +226,7 @@ $CurrencyRatesArray = array(); } - while ($myrow = DB_fetch_row($result)) { + while ($myrow = DB_fetch_array($result)) { if ($myrow[1]==$FunctionalCurrency){ echo '<tr bgcolor=#FFbbbb>'; } elseif ($k==1){ @@ -222,39 +251,43 @@ <td>%s</td> <td class=number>%s</td> <td class=number>%s</td> + <td class=number>%s</td> <td><a href="%s&SelectedCurrency=%s">%s</a></td> - <td><a href="%s&SelectedCurrency=%s&delete=1">%s</a></td> + <td><a href="%s&SelectedCurrency=%s&delete=1" onclick="return confirm(\'' . _('Are you sure you wish to delete this currency?') . '\');">%s</a></td> <td><a href="%s/ExchangeRateTrend.php?%s">' . _('Graph') . '</a></td> </tr>', $ImageFile, - $myrow[1], - $myrow[0], - $myrow[2], - $myrow[3], - number_format($myrow[4],5), - number_format(GetCurrencyRate($myrow[1],$CurrencyRatesArray),5), + $myrow['currabrev'], + $myrow['currency'], + $myrow['country'], + $myrow['hundredsname'], + $myrow['decimalplaces'], + number_format($myrow['rate'],5), + number_format(GetCurrencyRate($myrow['currabrev'],$CurrencyRatesArray),5), $_SERVER['PHP_SELF'] . '?', - $myrow[1], + $myrow['currabrev'], _('Edit'), $_SERVER['PHP_SELF'] . '?', - $myrow[1], + $myrow['currabrev'], _('Delete'), $rootpath, - '&CurrencyToShow=' . $myrow[1]); + '&CurrencyToShow=' . $myrow['currabrev']); } else { printf('<td><img src="%s"></td> <td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> + <td class="number">%s</td> <td colspan=4>%s</td> </tr>', $ImageFile, - $myrow[1], - $myrow[0], - $myrow[2], - $myrow[3], + $myrow['currabrev'], + $myrow['currency'], + $myrow['country'], + $myrow['hundredsname'], + $myrow['decimalplaces'], 1, _('Functional Currency')); } @@ -282,6 +315,7 @@ currabrev, country, hundredsname, + decimalplaces, rate FROM currencies WHERE currabrev='" . $SelectedCurrency . "'"; @@ -296,18 +330,22 @@ $_POST['Country'] = $myrow['country']; $_POST['HundredsName'] = $myrow['hundredsname']; $_POST['ExchangeRate'] = $myrow['rate']; + $_POST['DecimalPlaces'] = $myrow['decimalplaces']; echo '<input type="hidden" name="SelectedCurrency" value="' . $SelectedCurrency . '">'; echo '<input type="hidden" name="Abbreviation" value="' . $_POST['Abbreviation'] . '">'; - echo '<table class=selection><tr> + echo '<table class="selection"> + <tr> <td>' . _('ISO 4217 Currency Code').':</td> - <td>' . $_POST['Abbreviation'] . '</td></tr>'; + <td>' . $_POST['Abbreviation'] . '</td> + </tr>'; } else { //end of if $SelectedCurrency only do the else when a new record is being entered if (!isset($_POST['Abbreviation'])) {$_POST['Abbreviation']='';} - echo '<table class=selection><tr> + echo '<table class="selection"> + <tr> <td>' ._('Currency Abbreviation') . ':</td> <td><input ' . (in_array('Abbreviation',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Abbreviation" value="' . $_POST['Abbreviation'] . '" size=4 maxlength=3></td></tr>'; } @@ -317,15 +355,16 @@ if (!isset($_POST['CurrencyName'])) { $_POST['CurrencyName']=''; } - echo '<input ' . (in_array('CurrencyName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="CurrencyName" size=20 maxlength=20 VALUE="' . $_POST['CurrencyName'] . '">'; + echo '<input ' . (in_array('CurrencyName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="CurrencyName" size=20 maxlength=20 value="' . $_POST['CurrencyName'] . '">'; echo '</td></tr>'; echo '<tr><td>'._('Country').':</td>'; echo '<td>'; if (!isset($_POST['Country'])) { $_POST['Country']=''; } - echo '<input ' . (in_array('Country',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="Country" size=30 maxlength=50 VALUE="' . $_POST['Country'] . '">'; + echo '<input ' . (in_array('Country',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="Country" size=30 maxlength=50 value="' . $_POST['Country'] . '">'; echo '</td></tr>'; + echo '<tr><td>'._('Hundredths Name').':</td>'; echo '<td>'; if (!isset($_POST['HundredsName'])) { @@ -333,6 +372,15 @@ } echo '<input ' . (in_array('HundredsName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="HundredsName" size=10 maxlength=15 value="'. $_POST['HundredsName'].'">'; echo '</td></tr>'; + + echo '<tr><td>'._('Decimal Places to Display').':</td>'; + echo '<td>'; + if (!isset($_POST['DecimalPlaces'])) { + $_POST['DecimalPlaces']=''; + } + echo '<input ' . (in_array('DecimalPlaces',$Errors) ? 'class="inputerror"' : 'class="number"' ) .' type="text" name="DecimalPlaces" size="2" maxlength="2" value="'. $_POST['DecimalPlaces'].'">'; + echo '</td></tr>'; + echo '<tr><td>'._('Exchange Rate').':</td>'; echo '<td>'; if (!isset($_POST['ExchangeRate'])) { Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/CustEDISetup.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -62,9 +62,8 @@ WHERE debtorno = '" . $_SESSION['CustomerID'] . "'"; $ErrMsg = _('The customer EDI setup data could not be updated because'); - $result = DB_query($sql,$db,$ErrMsg); + $result = DB_query($sql,$db,$ErrMsg); prnMsg(_('Customer EDI configuration updated'),'success'); - } else { prnMsg(_('Customer EDI configuration failed'),'error'); } @@ -72,7 +71,7 @@ echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<br /><table clas... [truncated message content] |
From: <dai...@us...> - 2011-06-18 04:55:22
|
Revision: 4598 http://web-erp.svn.sourceforge.net/web-erp/?rev=4598&view=rev Author: daintree Date: 2011-06-18 04:55:08 +0000 (Sat, 18 Jun 2011) Log Message: ----------- languages names Modified Paths: -------------- trunk/CreditItemsControlled.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustomerTransInquiry.php trunk/DeliveryDetails.php trunk/UserSettings.php trunk/WWW_Users.php trunk/doc/Change.log trunk/includes/session.inc trunk/index.php Added Paths: ----------- trunk/includes/LanguagesArray.php Modified: trunk/CreditItemsControlled.php =================================================================== --- trunk/CreditItemsControlled.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/CreditItemsControlled.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -1,9 +1,9 @@ <?php -/* $Revision: 1.11 $ */ + /* $Id$*/ + include('includes/DefineCartClass.php'); include('includes/DefineSerialItems.php'); -//$PageSecurity = 3; include('includes/session.inc'); $title = _('Specify Credited Controlled Items'); @@ -29,18 +29,18 @@ } elseif (isset($_POST['LineNo'])){ $LineNo = $_POST['LineNo']; } else { - echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '?' . SID . '">'. _('Select Credit Items'). '</a><br><br>'; + echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Select Credit Items'). '</a><br /><br />'; prnMsg( _('This page can only be opened if a Line Item on a credit note has been selected.') . ' ' . _('Please do that first'), 'error'); echo '</div>'; include('includes/footer.inc'); exit; } - - if (!isset($_SESSION['CreditItems'])) { /* This page can only be called with a credit note entry part entered */ - echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '?' . SID . '">'. _('Select Credit Items'). '</a><br><br>'; + echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Select Credit Items'). '</a> + <br /> + <br />'; prnMsg( _('This page can only be opened if a controlled credit note line item has been selected.') . ' ' . _('Please do that first'),'error'); echo '</div>'; include('includes/footer.inc'); @@ -53,8 +53,8 @@ //Make sure this item is really controlled if ( $LineItem->Controlled != 1 ){ - echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '?' . SID . '">'. _('Back to Credit Note Entry').'</a></div>'; - echo '<br>'; + echo '<div class="centre"><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Back to Credit Note Entry').'</a></div>'; + echo '<br />'; prnMsg( _('Notice') . ' - ' . _('The line item must be defined as controlled to require input of the batch numbers or serial numbers being credited'),'warn'); include('includes/footer.inc'); exit; @@ -70,17 +70,16 @@ echo '<div class="centre">'; if ($CreditLink == 'Credit_Invoice.php'){ - echo '<input type=hidden name="CreditInvoice" VALUE="Yes">'; + echo '<input type="hidden" name="CreditInvoice" value="Yes">'; } -echo '<br><a href="' . $rootpath . '/' . $CreditLink . '?' . SID . '">'. _('Back to Credit Note Entry'). '</a>'; +echo '<br /><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Back to Credit Note Entry'). '</a>'; -echo '<br><font size=2><b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>'; +echo '<br /><font size=2><b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>'; /** vars needed by InputSerialItem : **/ $LocationOut = $_SESSION['CreditItems']->Location; -/* $_SESSION['CreditingControlledItems_MustExist'] is in config.php - Phil and Jesse disagree on the default treatment -compromise position make it user configurable */ +/* $_SESSION['CreditingControlledItems_MustExist'] is in config.php - Phil and Jesse disagree on the default treatment compromise position make it user configurable */ $ItemMustExist = $_SESSION['CreditingControlledItems_MustExist']; $StockID = $LineItem->StockID; $InOutModifier=1; @@ -88,7 +87,8 @@ $IsCredit = true; include ('includes/InputSerialItems.php'); - echo '</tr></table>'; +echo '</tr> + </table>'; /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for dispatch */ @@ -100,4 +100,4 @@ include('includes/footer.inc'); exit; -?> +?> \ No newline at end of file Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/CreditStatus.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -17,7 +17,8 @@ } $Errors = array(); $InputError = 0; -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p> + <br />'; if (isset($_POST['submit'])) { @@ -80,24 +81,21 @@ /*Selected Reason is null cos no item selected on first time round so must be adding a record must be submitting new entries in the new status code form */ - if (isset($_POST['DisallowInvoices']) and $_POST['DisallowInvoices']=='on'){ + if (isset($_POST['DisallowInvoices']) AND $_POST['DisallowInvoices']=='on'){ - $sql = "INSERT INTO holdreasons ( - reasoncode, - reasondescription, - dissallowinvoices) - VALUES ( - '" .$_POST['ReasonCode'] . "', - '".$_POST['ReasonDescription'] . "' - , 1)"; + $sql = "INSERT INTO holdreasons (reasoncode, + reasondescription, + dissallowinvoices) + VALUES ('" .$_POST['ReasonCode'] . "', + '".$_POST['ReasonDescription'] . "', + 1)"; } else { - $sql = "INSERT INTO holdreasons ( - reasoncode, - reasondescription, - dissallowinvoices) - VALUES ( - '" . $_POST['ReasonCode'] . "', - '" . $_POST['ReasonDescription'] ."', 0)"; + $sql = "INSERT INTO holdreasons (reasoncode, + reasondescription, + dissallowinvoices) + VALUES ('" . $_POST['ReasonCode'] . "', + '" . $_POST['ReasonDescription'] ."', + 0)"; } $msg = _('A new credit status record has been inserted'); @@ -122,7 +120,7 @@ $myrow = DB_fetch_row($result); if ($myrow[0] > 0) { prnMsg( _('Cannot delete this credit status code because customer accounts have been created referring to it'),'warn'); - echo '<br>' . _('There are') . ' ' . $myrow[0] . ' ' . _('customer accounts that refer to this credit status code'); + echo '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('customer accounts that refer to this credit status code'); } else { //only delete if used in neither customer or supplier accounts @@ -200,10 +198,10 @@ //editing an existing status code $sql = "SELECT reasoncode, - reasondescription, - dissallowinvoices - FROM holdreasons - WHERE reasoncode='".$SelectedReason."'"; + reasondescription, + dissallowinvoices + FROM holdreasons + WHERE reasoncode='".$SelectedReason."'"; $result = DB_query($sql, $db); $myrow = DB_fetch_array($result); @@ -215,14 +213,17 @@ echo '<input type="hidden" name="SelectedReason" value="' . $SelectedReason . '">'; echo '<input type="hidden" name="ReasonCode" value="' . $_POST['ReasonCode'] . '">'; echo '<table class="selection"> - <tr><td>'. _('Status Code') .':</td> - <td>' . $_POST['ReasonCode'] . '</td></tr>'; + <tr> + <td>'. _('Status Code') .':</td> + <td>' . $_POST['ReasonCode'] . '</td> + </tr>'; } else { //end of if $SelectedReason only do the else when a new record is being entered if (!isset($_POST['ReasonCode'])) { $_POST['ReasonCode'] = ''; } - echo '<br /><table class="selection"> + echo '<br /> + <table class="selection"> <tr> <td>'. _('Status Code') .':</td> <td><input ' . (in_array('ReasonCode',$Errors) ? 'class="inputerror"' : '' ) . ' tabindex=1 type="text" name="ReasonCode" value="'. $_POST['ReasonCode'] .'" size=3 maxlength=2></td> @@ -233,17 +234,21 @@ $_POST['ReasonDescription'] = ''; } echo '<tr> - <td>'. _('Description') .':</td> - <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . - ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30"> - </td></tr> - <tr><td>'. _('Disallow Invoices') . '</td>'; + <td>'. _('Description') .':</td> + <td><input ' . (in_array('ReasonDescription',$Errors) ? 'class="inputerror"' : '' ) . + ' tabindex=2 type="text" name="ReasonDescription" VALUE="'. $_POST['ReasonDescription'] .'" size="28" maxlength="30"></td> + </tr> + <tr> + <td>'. _('Disallow Invoices') . '</td>'; if (isset($_POST['DisallowInvoices']) and $_POST['DisallowInvoices']==1) { echo '<td><input tabindex=3 type="checkbox" checked name="DisallowInvoices"></td></tr>'; } else { echo '<td><input tabindex=3 type="checkbox" name="DisallowInvoices"></td></tr>'; } - echo '</table><br><div class="centre"><input tabindex=4 type="submit" name="submit" value="' . _('Enter Information') . '"></div></form>'; + echo '</table> + <br /> + <div class="centre"><input tabindex=4 type="submit" name="submit" value="' . _('Enter Information') . '"></div> + </form>'; } //end if record deleted no point displaying form to add record include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/Credit_Invoice.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -357,7 +357,7 @@ echo '<br />'; } if (!isset($_POST['ProcessCredit'])) { - echo '<input type=text class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder . + echo '<input type="text" class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder . '_TaxRate" maxlength=4 size=4 value="' . $Tax->TaxRate*100 . '">'; } $i++; @@ -381,7 +381,7 @@ echo '<td class=number>' . $DisplayTaxAmount . '</td> <td class=number>' . $DisplayGrossLineTotal . '</td> - <td><a href="' . $_SERVER['PHP_SELF'] . '?Delete=' . $LnItm->LineNumber . '">' . _('Delete') . '</a></td></tr>'; + <td><a href="' . $_SERVER['PHP_SELF'] . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; echo '<tr' . $RowStarter . '><td colspan=12><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols=100% rows=1>' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; $j++; @@ -395,7 +395,7 @@ if (!isset($_POST['ProcessCredit'])) { echo '<tr> <td colspan=3 class=number>' . _('Freight cost charged on invoice') . '</td> - <td class=number>' . number_format($_SESSION['Old_FreightCost'],2) . '</td> + <td class=number>' . number_format($_SESSION['Old_FreightCost'],$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> <td></td> <td colspan=2 class=number>' . _('Credit Freight Cost') . '</td> <td><input tabindex='.$j.' type=text class="number" size=6 maxlength=6 name="ChargeFreightCost" value="' . $_SESSION['CreditItems']->FreightCost . '"></td>'; @@ -449,7 +449,7 @@ <td colspan=7 class=number>' . _('Credit Totals') . '</td> <td class=number><hr><b>' . $DisplayTotal . '</b><hr></td> <td colspan=2></td> - <td class=number><hr><b>' . number_format($TaxTotal,2) . '<hr></td> + <td class=number><hr><b>' . number_format($TaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces) . '<hr></td> <td class=number><hr><b>' . number_format($TaxTotal+($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost),$_SESSION['CreditItems']->CurrDecimalPlaces) . '</b><hr></td> </tr></table>'; } @@ -507,8 +507,8 @@ /*Do some rounding */ - $_SESSION['CreditItems']->total = round($_SESSION['CreditItems']->total,2); - $TaxTotal = round($TaxTotal,2); + $_SESSION['CreditItems']->total = round($_SESSION['CreditItems']->total,$_SESSION['CreditItems']->CurrDecimalPlaces); + $TaxTotal = round($TaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); $Allocate_amount=0; $Settled =0; @@ -623,7 +623,7 @@ foreach ($_SESSION['CreditItems']->LineItems as $OrderLine) { if ($OrderLine->QtyDispatched >0){ - $LocalCurrencyPrice= round(($OrderLine->Price / $_SESSION['CurrencyRate']),2); + $LocalCurrencyPrice= round(($OrderLine->Price / $_SESSION['CurrencyRate']),$_SESSION['CompanyRecord']['decimalplaces']); /*Determine the type of stock item being credited */ $SQL = "SELECT mbflag FROM stockmaster WHERE stockid = '" . $OrderLine->StockID . "'"; @@ -1255,7 +1255,7 @@ '" . $PeriodNo . "', '" . $COGSAccount . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " x " . $OrderLine->QtyDispatched . " @ " . $OrderLine->StandardCost . "', - '" . -round($OrderLine->StandardCost * $OrderLine->QtyDispatched,2) . "' + '" . -round($OrderLine->StandardCost * $OrderLine->QtyDispatched,$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The cost of sales GL posting could not be inserted because'); @@ -1279,7 +1279,7 @@ '" . $PeriodNo . "', '" . $_POST['WriteOffGLCode'] . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " x " . $OrderLine->QtyDispatched . " @ " . $OrderLine->StandardCost . "', - '" . round($OrderLine->StandardCost * $OrderLine->QtyDispatched,2) . "')"; + '" . round($OrderLine->StandardCost * $OrderLine->QtyDispatched,$_SESSION['CompanyRecord']['decimalplaces']) . "')"; } else { $StockGLCode = GetStockGLCode($OrderLine->StockID, $db); $SQL = "INSERT INTO gltrans (type, @@ -1295,7 +1295,7 @@ '" . $PeriodNo . "', '" . $StockGLCode['stockact'] . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " x " . $OrderLine->QtyDispatched . " @ " . $OrderLine->StandardCost . "', - '" . round($OrderLine->StandardCost * $OrderLine->QtyDispatched,2) . "')"; + '" . round($OrderLine->StandardCost * $OrderLine->QtyDispatched,$_SESSION['CompanyRecord']['decimalplaces']) . "')"; } $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The stock side or write off of the cost of sales GL posting could not be inserted because'); @@ -1322,7 +1322,7 @@ '" . $PeriodNo . "', '" . $SalesGLAccounts['salesglcode'] . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " x " . $OrderLine->QtyDispatched . " @ " . $OrderLine->Price . "', - '" . round(($OrderLine->Price * $OrderLine->QtyDispatched)/$_SESSION['CurrencyRate'],2) . "' + '" . round(($OrderLine->Price * $OrderLine->QtyDispatched)/$_SESSION['CurrencyRate'],$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The credit note GL posting could not be inserted because'); @@ -1344,7 +1344,7 @@ '" . $PeriodNo . "', '" . $SalesGLAccounts['discountglcode'] . "', '" . $_SESSION['CreditItems']->DebtorNo . " - " . $OrderLine->StockID . " @ " . ($OrderLine->DiscountPercent * 100) . "%', - '" . -round(($OrderLine->Price * $OrderLine->QtyDispatched * $OrderLine->DiscountPercent)/$_SESSION['CurrencyRate'],2) . "' + '" . -round(($OrderLine->Price * $OrderLine->QtyDispatched * $OrderLine->DiscountPercent)/$_SESSION['CurrencyRate'],$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The credit note discount GL posting could not be inserted because'); $DbgMsg = _('The following SQL to insert the GLTrans record was used'); @@ -1372,7 +1372,7 @@ '" . $PeriodNo . "', '" . $_SESSION['CompanyRecord']['debtorsact'] . "', '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . -round(($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost + $TaxTotal)/$_SESSION['CurrencyRate'],2) . "' + '" . -round(($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost + $TaxTotal)/$_SESSION['CurrencyRate'],$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The total debtor GL posting for the credit note could not be inserted because'); @@ -1384,7 +1384,7 @@ /*Could do with setting up a more flexible freight posting schema that looks at the sales type and area of the customer branch to determine where to post the freight recovery */ - if (round($_SESSION['CreditItems']->FreightCost,2) !=0 ) { + if (round($_SESSION['CreditItems']->FreightCost,$_SESSION['CreditItems']->CurrDecimalPlaces) !=0 ) { $SQL = "INSERT INTO gltrans (type, typeno, trandate, @@ -1398,7 +1398,7 @@ '" . $PeriodNo . "', '" . $_SESSION['CompanyRecord']['freightact'] . "', '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . round($_SESSION['CreditItems']->FreightCost/$_SESSION['CurrencyRate'],2) . "' + '" . round($_SESSION['CreditItems']->FreightCost/$_SESSION['CurrencyRate'],$_SESSION['CompanyRecord']['decimalplaces']) . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The freight GL posting for this credit note could not be inserted because'); Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/Currencies.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -25,7 +25,8 @@ $Errors = array(); -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p> + <br />'; if (isset($_POST['submit'])) { @@ -61,6 +62,22 @@ $Errors[$i] = 'ExchangeRate'; $i++; } + if (!is_numeric($_POST['DecimalPlaces'])){ + $InputError = 1; + prnMsg(_('The number of decimal places to display for amounts in this currency must be numeric'),'error'); + $Errors[$i] = 'DecimalPlaces'; + $i++; + }elseif ($_POST['DecimalPlaces']<=0){ + $InputError = 1; + prnMsg(_('The number of decimal places to display for amounts in this currency must be positive or zero'),'error'); + $Errors[$i] = 'DecimalPlaces'; + $i++; + } elseif ($_POST['DecimalPlaces']>2){ + $InputError = 1; + prnMsg(_('The number of decimal places to display for amounts in this currency is expected to be 2 or less'),'error'); + $Errors[$i] = 'DecimalPlaces'; + $i++; + } if (strlen($_POST['CurrencyName']) > 20) { $InputError = 1; prnMsg(_('The currency name must be 20 characters or less long'),'error'); @@ -79,7 +96,7 @@ $Errors[$i] = 'HundredsName'; $i++; } - if (($FunctionalCurrency != '') and (isset($SelectedCurrency) and $SelectedCurrency==$FunctionalCurrency)){ + if (($FunctionalCurrency != '') AND (isset($SelectedCurrency) AND $SelectedCurrency==$FunctionalCurrency)){ $InputError = 1; prnMsg(_('The functional currency cannot be modified or deleted'),'error'); } @@ -93,11 +110,11 @@ if (isset($SelectedCurrency) AND $InputError !=1) { /*SelectedCurrency could also exist if submit had not been clicked this code would not run in this case cos submit is false of course see the delete code below*/ - $sql = "UPDATE currencies SET - currency='" . $_POST['CurrencyName'] . "', - country='". $_POST['Country']. "', - hundredsname='" . $_POST['HundredsName'] . "', - rate='" .$_POST['ExchangeRate'] . "' + $sql = "UPDATE currencies SET currency='" . $_POST['CurrencyName'] . "', + country='". $_POST['Country']. "', + hundredsname='" . $_POST['HundredsName'] . "', + decimalplaces='" . $_POST['DecimalPlaces'] . "', + rate='" .$_POST['ExchangeRate'] . "' WHERE currabrev = '" . $SelectedCurrency . "'"; $msg = _('The currency definition record has been updated'); @@ -105,16 +122,18 @@ /*Selected currencies is null cos no item selected on first time round so must be adding a record must be submitting new entries in the new payment terms form */ $sql = "INSERT INTO currencies (currency, - currabrev, - country, - hundredsname, - rate) - VALUES ('" . $_POST['CurrencyName'] . "', - '" . $_POST['Abbreviation'] . "', - '" . $_POST['Country'] . "', - '" . $_POST['HundredsName'] . "', - '" . $_POST['ExchangeRate'] . "')"; - + currabrev, + country, + hundredsname, + decimalplaces, + rate) + VALUES ('" . $_POST['CurrencyName'] . "', + '" . $_POST['Abbreviation'] . "', + '" . $_POST['Country'] . "', + '" . $_POST['HundredsName'] . "', + '" . $_POST['DecimalPlaces'] . "', + '" . $_POST['ExchangeRate'] . "')"; + $msg = _('The currency definition record has been added'); } //run the SQL from either of the above possibilites @@ -126,6 +145,7 @@ unset($_POST['CurrencyName']); unset($_POST['Country']); unset($_POST['HundredsName']); + unset($_POST['DecimalPlaces']); unset($_POST['ExchangeRate']); unset($_POST['Abbreviation']); @@ -134,7 +154,8 @@ // PREVENT DELETES IF DEPENDENT RECORDS IN DebtorsMaster - $sql= "SELECT COUNT(*) FROM debtorsmaster WHERE debtorsmaster.currcode = '" . $SelectedCurrency . "'"; + $sql= "SELECT COUNT(*) FROM debtorsmaster + WHERE currcode = '" . $SelectedCurrency . "'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0] > 0) @@ -142,15 +163,16 @@ prnMsg(_('Cannot delete this currency because customer accounts have been created referring to this currency') . '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('customer accounts that refer to this currency'),'warn'); } else { - $sql= "SELECT COUNT(*) FROM suppliers WHERE suppliers.currcode = '".$SelectedCurrency."'"; + $sql= "SELECT COUNT(*) FROM suppliers + WHERE suppliers.currcode = '".$SelectedCurrency."'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); - if ($myrow[0] > 0) - { + if ($myrow[0] > 0) { prnMsg(_('Cannot delete this currency because supplier accounts have been created referring to this currency') . '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('supplier accounts that refer to this currency'),'warn'); } else { - $sql= "SELECT COUNT(*) FROM banktrans WHERE banktrans.currcode = '" . $SelectedCurrency . "'"; + $sql= "SELECT COUNT(*) FROM banktrans + WHERE currcode = '" . $SelectedCurrency . "'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0] > 0){ @@ -176,15 +198,22 @@ links to delete or edit each. These will call the same page again and allow update/input or deletion of the records*/ - $sql = 'SELECT currency, currabrev, country, hundredsname, rate FROM currencies'; + $sql = "SELECT currency, + currabrev, + country, + hundredsname, + rate, + decimalplaces + FROM currencies"; $result = DB_query($sql, $db); - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr><td></td> <th>' . _('ISO4217 Code') . '</th> <th>' . _('Currency Name') . '</th> <th>' . _('Country') . '</th> <th>' . _('Hundredths Name') . '</th> + <th>' . _('Decimal Places') . '</th> <th>' . _('Exchange Rate') . '</th> <th>' . _('Ex Rate - ECB') .'</th> </tr>'; @@ -197,7 +226,7 @@ $CurrencyRatesArray = array(); } - while ($myrow = DB_fetch_row($result)) { + while ($myrow = DB_fetch_array($result)) { if ($myrow[1]==$FunctionalCurrency){ echo '<tr bgcolor=#FFbbbb>'; } elseif ($k==1){ @@ -222,39 +251,43 @@ <td>%s</td> <td class=number>%s</td> <td class=number>%s</td> + <td class=number>%s</td> <td><a href="%s&SelectedCurrency=%s">%s</a></td> - <td><a href="%s&SelectedCurrency=%s&delete=1">%s</a></td> + <td><a href="%s&SelectedCurrency=%s&delete=1" onclick="return confirm(\'' . _('Are you sure you wish to delete this currency?') . '\');">%s</a></td> <td><a href="%s/ExchangeRateTrend.php?%s">' . _('Graph') . '</a></td> </tr>', $ImageFile, - $myrow[1], - $myrow[0], - $myrow[2], - $myrow[3], - number_format($myrow[4],5), - number_format(GetCurrencyRate($myrow[1],$CurrencyRatesArray),5), + $myrow['currabrev'], + $myrow['currency'], + $myrow['country'], + $myrow['hundredsname'], + $myrow['decimalplaces'], + number_format($myrow['rate'],5), + number_format(GetCurrencyRate($myrow['currabrev'],$CurrencyRatesArray),5), $_SERVER['PHP_SELF'] . '?', - $myrow[1], + $myrow['currabrev'], _('Edit'), $_SERVER['PHP_SELF'] . '?', - $myrow[1], + $myrow['currabrev'], _('Delete'), $rootpath, - '&CurrencyToShow=' . $myrow[1]); + '&CurrencyToShow=' . $myrow['currabrev']); } else { printf('<td><img src="%s"></td> <td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> + <td class="number">%s</td> <td colspan=4>%s</td> </tr>', $ImageFile, - $myrow[1], - $myrow[0], - $myrow[2], - $myrow[3], + $myrow['currabrev'], + $myrow['currency'], + $myrow['country'], + $myrow['hundredsname'], + $myrow['decimalplaces'], 1, _('Functional Currency')); } @@ -282,6 +315,7 @@ currabrev, country, hundredsname, + decimalplaces, rate FROM currencies WHERE currabrev='" . $SelectedCurrency . "'"; @@ -296,18 +330,22 @@ $_POST['Country'] = $myrow['country']; $_POST['HundredsName'] = $myrow['hundredsname']; $_POST['ExchangeRate'] = $myrow['rate']; + $_POST['DecimalPlaces'] = $myrow['decimalplaces']; echo '<input type="hidden" name="SelectedCurrency" value="' . $SelectedCurrency . '">'; echo '<input type="hidden" name="Abbreviation" value="' . $_POST['Abbreviation'] . '">'; - echo '<table class=selection><tr> + echo '<table class="selection"> + <tr> <td>' . _('ISO 4217 Currency Code').':</td> - <td>' . $_POST['Abbreviation'] . '</td></tr>'; + <td>' . $_POST['Abbreviation'] . '</td> + </tr>'; } else { //end of if $SelectedCurrency only do the else when a new record is being entered if (!isset($_POST['Abbreviation'])) {$_POST['Abbreviation']='';} - echo '<table class=selection><tr> + echo '<table class="selection"> + <tr> <td>' ._('Currency Abbreviation') . ':</td> <td><input ' . (in_array('Abbreviation',$Errors) ? 'class="inputerror"' : '' ) .' type="Text" name="Abbreviation" value="' . $_POST['Abbreviation'] . '" size=4 maxlength=3></td></tr>'; } @@ -317,15 +355,16 @@ if (!isset($_POST['CurrencyName'])) { $_POST['CurrencyName']=''; } - echo '<input ' . (in_array('CurrencyName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="CurrencyName" size=20 maxlength=20 VALUE="' . $_POST['CurrencyName'] . '">'; + echo '<input ' . (in_array('CurrencyName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="CurrencyName" size=20 maxlength=20 value="' . $_POST['CurrencyName'] . '">'; echo '</td></tr>'; echo '<tr><td>'._('Country').':</td>'; echo '<td>'; if (!isset($_POST['Country'])) { $_POST['Country']=''; } - echo '<input ' . (in_array('Country',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="Country" size=30 maxlength=50 VALUE="' . $_POST['Country'] . '">'; + echo '<input ' . (in_array('Country',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="Country" size=30 maxlength=50 value="' . $_POST['Country'] . '">'; echo '</td></tr>'; + echo '<tr><td>'._('Hundredths Name').':</td>'; echo '<td>'; if (!isset($_POST['HundredsName'])) { @@ -333,6 +372,15 @@ } echo '<input ' . (in_array('HundredsName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="HundredsName" size=10 maxlength=15 value="'. $_POST['HundredsName'].'">'; echo '</td></tr>'; + + echo '<tr><td>'._('Decimal Places to Display').':</td>'; + echo '<td>'; + if (!isset($_POST['DecimalPlaces'])) { + $_POST['DecimalPlaces']=''; + } + echo '<input ' . (in_array('DecimalPlaces',$Errors) ? 'class="inputerror"' : 'class="number"' ) .' type="text" name="DecimalPlaces" size="2" maxlength="2" value="'. $_POST['DecimalPlaces'].'">'; + echo '</td></tr>'; + echo '<tr><td>'._('Exchange Rate').':</td>'; echo '<td>'; if (!isset($_POST['ExchangeRate'])) { Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2011-06-17 09:16:37 UTC (rev 4597) +++ trunk/CustEDISetup.php 2011-06-18 04:55:08 UTC (rev 4598) @@ -62,9 +62,8 @@ WHERE debtorno = '" . $_SESSION['CustomerID'] . "'"; $ErrMsg = _('The customer EDI setup data could not be updated because'); - $result = DB_query($sql,$db,$ErrMsg); + $result = DB_query($sql,$db,$ErrMsg); prnMsg(_('Customer EDI configuration updated'),'success'); - } else { prnMsg(_('Customer EDI configuration failed'),'error'); } @@ -72,7 +71,7 @@ echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<br /><table clas... [truncated message content] |