From: Tim S. <ti...@we...> - 2012-07-07 08:41:31
|
Hi Phil, Did you forget the new Z_DeleteOldPrices.php script with this commit? Thanks Tim ---------- Forwarded message ---------- From: <dai...@us...> Date: 7 July 2012 07:21 Subject: [Web-erp-svn] SF.net SVN: web-erp:[5481] trunk To: web...@li... Revision: 5481 http://web-erp.svn.sourceforge.net/web-erp/?rev=5481&view=rev Author: daintree Date: 2012-07-07 06:21:07 +0000 (Sat, 07 Jul 2012) Log Message: ----------- new purge prices script Modified Paths: -------------- trunk/Prices.php trunk/doc/Change.log trunk/includes/DateFunctions.inc trunk/includes/MainMenuLinksArray.php trunk/sql/mysql/upgrade4.08-4.09.sql Modified: trunk/Prices.php =================================================================== --- trunk/Prices.php 2012-07-06 09:24:44 UTC (rev 5480) +++ trunk/Prices.php 2012-07-07 06:21:07 UTC (rev 5481) @@ -74,35 +74,35 @@ $InputError =1; prnMsg (_('The date this price is to take effect from must be entered in the format') . ' ' . $_SESSION['DefaultDateFormat'],'error'); } - - if (FormatDateForSQL($_POST['EndDate'])!='0000-00-00'){ - if (! Is_Date($_POST['EndDate']) AND $_POST['EndDate']!=''){ - $InputError =1; - prnMsg (_('The date this price is be in effect to must be entered in the format') . ' ' . $_SESSION['DefaultDateFormat'],'error'); + if ($_POST['EndDate']!='') { + if (FormatDateForSQL($_POST['EndDate'])!='0000-00-00'){ + if (! Is_Date($_POST['EndDate']) AND $_POST['EndDate']!=''){ + $InputError =1; + prnMsg (_('The date this price is be in effect to must be entered in the format') . ' ' . $_SESSION['DefaultDateFormat'],'error'); + } + if (Date1GreaterThanDate2($_POST['StartDate'],$_POST['EndDate']) AND $_POST['EndDate']!='' AND FormatDateForSQL($_POST['EndDate'])!='0000-00-00'){ + $InputError =1; + prnMsg (_('The end date is expected to be after the start date, enter an end date after the start date for this price'),'error'); + } + if (Date1GreaterThanDate2(Date($_SESSION['DefaultDateFormat']),$_POST['EndDate']) AND $_POST['EndDate']!='' AND FormatDateForSQL($_POST['EndDate'])!='0000-00-00'){ + $InputError =1; + prnMsg(_('The end date is expected to be after today. There is no point entering a new price where the effective date is before today!'),'error'); + } } - if (Date1GreaterThanDate2($_POST['StartDate'],$_POST['EndDate']) AND $_POST['EndDate']!='' AND FormatDateForSQL($_POST['EndDate'])!='0000-00-00'){ - $InputError =1; - prnMsg (_('The end date is expected to be after the start date, enter an end date after the start date for this price'),'error'); - } - if (Date1GreaterThanDate2(Date($_SESSION['DefaultDateFormat']),$_POST['EndDate']) AND $_POST['EndDate']!='' AND FormatDateForSQL($_POST['EndDate'])!='0000-00-00'){ - $InputError =1; - prnMsg(_('The end date is expected to be after today. There is no point entering a new price where the effective date is before today!'),'error'); - } } if (Is_Date($_POST['EndDate'])){ $SQLEndDate = FormatDateForSQL($_POST['EndDate']); } else { $SQLEndDate = '0000-00-00'; } - + $sql = "SELECT COUNT(typeabbrev) FROM prices WHERE prices.stockid='".$Item."' AND startdate='" .FormatDateForSQL($_POST['StartDate']) . "' AND enddate ='" . $SQLEndDate . "' AND prices.typeabbrev='" . $_POST['TypeAbbrev'] . "' - AND prices.currabrev='" . $_POST['CurrAbrev'] . "' - AND prices.price='" . filter_number_format($_POST['Price']) . "'"; + AND prices.currabrev='" . $_POST['CurrAbrev'] . "'"; $result = DB_query($sql, $db); $myrow = DB_fetch_row($result); @@ -111,9 +111,9 @@ prnMsg( _('This price has already been entered. To change it you should edit it') , 'warn'); $InputError =1; } - - - + + + if (isset($_POST['OldTypeAbbrev']) AND isset($_POST['OldCurrAbrev']) AND mb_strlen($Item)>1 AND $InputError !=1) { /* Need to see if there is also a price entered that has an end date after the start date of this price and if so we will need to update it so there is no ambiguity as to which price will be used*/ @@ -157,10 +157,11 @@ '" . filter_number_format($_POST['Price']) . "')"; $ErrMsg = _('The new price could not be added'); $result = DB_query($sql,$db,$ErrMsg); - + ReSequenceEffectiveDates ($Item, $_POST['TypeAbbrev'], $_POST['CurrAbrev'], $db) ; prnMsg(_('The new price has been inserted'),'success'); } + unset($_POST['Price']); unset($_POST['StartDate']); unset($_POST['EndDate']); @@ -182,176 +183,176 @@ } //Always do this stuff -if ($InputError ==0){ - $sql = "SELECT currencies.currency, - salestypes.sales_type, - prices.price, - prices.stockid, - prices.typeabbrev, - prices.currabrev, - prices.startdate, - prices.enddate, - currencies.decimalplaces AS currdecimalplaces - FROM prices - INNER JOIN salestypes - ON prices.typeabbrev = salestypes.typeabbrev - INNER JOIN currencies - ON prices.currabrev=currencies.currabrev - WHERE prices.stockid='".$Item."' - AND prices.debtorno='' - ORDER BY prices.currabrev, - prices.typeabbrev, - prices.startdate"; - $result = DB_query($sql,$db); +$sql = "SELECT currencies.currency, + salestypes.sales_type, + prices.price, + prices.stockid, + prices.typeabbrev, + prices.currabrev, + prices.startdate, + prices.enddate, + currencies.decimalplaces AS currdecimalplaces + FROM prices + INNER JOIN salestypes + ON prices.typeabbrev = salestypes.typeabbrev + INNER JOIN currencies + ON prices.currabrev=currencies.currabrev + WHERE prices.stockid='".$Item."' + AND prices.debtorno='' + ORDER BY prices.currabrev, + prices.typeabbrev, + prices.startdate"; - if (DB_num_rows($result) > 0) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; - echo '<div>'; - echo '<table class="selection"> - <tr> - <th colspan="7"> - <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />' . - _('Pricing for part') . ': - <input type="text" name="Item" size="22" value="' . $Item . '" maxlength="20" /> - <input type="submit" name="NewPart" value="' . _('Review Prices') . '" /></th> - </tr>'; +$result = DB_query($sql,$db); - echo '<tr><th>' . _('Currency') . '</th> - <th>' . _('Sales Type') . '</th> - <th>' . _('Price') . '</th> - <th>' . _('Start Date') . ' </th> - <th>' . _('End Date') . '</th> - </tr>'; +if (DB_num_rows($result) > 0) { + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; + echo '<div>'; + echo '<table class="selection"> + <tr> + <th colspan="7"> + <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />' . + _('Pricing for part') . ': + <input type="text" name="Item" size="22" value="' . $Item . '" maxlength="20" /> + <input type="submit" name="NewPart" value="' . _('Review Prices') . '" /></th> + </tr>'; - $k=0; //row colour counter + echo '<tr><th>' . _('Currency') . '</th> + <th>' . _('Sales Type') . '</th> + <th>' . _('Price') . '</th> + <th>' . _('Start Date') . ' </th> + <th>' . _('End Date') . '</th> + </tr>'; - while ($myrow = DB_fetch_array($result)) { - if ($k==1){ - echo '<tr class="EvenTableRows">'; - $k=0; - } else { - echo '<tr class="OddTableRows">'; - $k=1; - } - if ($myrow['enddate']=='0000-00-00'){ - $EndDateDisplay = _('No End Date'); - } else { - $EndDateDisplay = ConvertSQLDate($myrow['enddate']); - } - /*Only allow access to modify prices if securiy token 5 is allowed */ - if (in_array(5,$_SESSION['AllowedPageSecurityTokens'])) { - echo '<td>' . $myrow['currency'] . '</td> - <td>' . $myrow['sales_type'] . '</td> - <td class="number">' . locale_number_format($myrow['price'],$myrow['currdecimalplaces']) . '</td> - <td>' . ConvertSQLDate($myrow['startdate']) . '</td> - <td>' . $EndDateDisplay . '</td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Item=' . $myrow['stockid'] . '&TypeAbbrev=' .$myrow['typeabbrev'] . '&CurrAbrev=' . $myrow['currabrev'] . '&Price=' . $myrow['price'] . '&StartDate=' . $myrow['startdate'] . '&EndDate=' . $myrow['enddate'] . '&Edit=1">' . _('Edit') . '</a></td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Item=' . $myrow['stockid'] . '&TypeAbbrev=' .$myrow['typeabbrev'] . '&CurrAbrev=' . $myrow['currabrev'] . '&StartDate=' . $myrow['startdate'] . '&EndDate=' . $myrow['enddate'] . '&delete=yes" onclick="return confirm(\'' . _('Are you sure you wish to delete this price?') . '\');">' . _('Delete') . '</a></td></tr>'; - - } else { - echo '<td>' . $myrow['currency'] . '</td> - <td>' . $myrow['sales_type'] . '</td> - <td class="number">' . locale_number_format($myrow['price'],$myrow['currdecimalplaces']) . '</td> - <td>' . ConvertSQLDate($myrow['startdate']) . '</td> - <td>' . $EndDateDisplay . '</td></tr>'; - } + $k=0; //row colour counter + while ($myrow = DB_fetch_array($result)) { + if ($k==1){ + echo '<tr class="EvenTableRows">'; + $k=0; + } else { + echo '<tr class="OddTableRows">'; + $k=1; } - //END WHILE LIST LOOP - echo '</table><br />'; - echo '</div> - </form>'; - } else { - prnMsg(_('There are no prices set up for this part'),'warn'); - } + if ($myrow['enddate']=='0000-00-00'){ + $EndDateDisplay = _('No End Date'); + } else { + $EndDateDisplay = ConvertSQLDate($myrow['enddate']); + } + /*Only allow access to modify prices if securiy token 5 is allowed */ + if (in_array(5,$_SESSION['AllowedPageSecurityTokens'])) { + echo '<td>' . $myrow['currency'] . '</td> + <td>' . $myrow['sales_type'] . '</td> + <td class="number">' . locale_number_format($myrow['price'],$myrow['currdecimalplaces']) . '</td> + <td>' . ConvertSQLDate($myrow['startdate']) . '</td> + <td>' . $EndDateDisplay . '</td> + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Item=' . $myrow['stockid'] . '&TypeAbbrev=' .$myrow['typeabbrev'] . '&CurrAbrev=' . $myrow['currabrev'] . '&Price=' . $myrow['price'] . '&StartDate=' . $myrow['startdate'] . '&EndDate=' . $myrow['enddate'] . '&Edit=1">' . _('Edit') . '</a></td> + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Item=' . $myrow['stockid'] . '&TypeAbbrev=' .$myrow['typeabbrev'] . '&CurrAbrev=' . $myrow['currabrev'] . '&StartDate=' . $myrow['startdate'] . '&EndDate=' . $myrow['enddate'] . '&delete=yes" onclick="return confirm(\'' . _('Are you sure you wish to delete this price?') . '\');">' . _('Delete') . '</a></td></tr>'; - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; - echo '<div>'; - echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - if (isset($_GET['Edit'])){ - echo '<input type="hidden" name="OldTypeAbbrev" value="' . $_GET['TypeAbbrev'] .'" />'; - echo '<input type="hidden" name="OldCurrAbrev" value="' . $_GET['CurrAbrev'] . '" />'; - echo '<input type="hidden" name="OldStartDate" value="' . $_GET['StartDate'] . '" />'; - echo '<input type="hidden" name="OldEndDate" value="' . $_GET['EndDate'] . '" />'; - $_POST['CurrAbrev'] = $_GET['CurrAbrev']; - $_POST['TypeAbbrev'] = $_GET['TypeAbbrev']; - /*the price sent with the get is sql format price so no need to filter */ - $_POST['Price'] = $_GET['Price']; - $_POST['StartDate'] = ConvertSQLDate($_GET['StartDate']); - if ($_GET['EndDate']=='' OR $_GET['EndDate']=='0000-00-00'){ - $_POST['EndDate'] = ''; } else { - $_POST['EndDate'] = ConvertSQLDate($_GET['EndDate']); + echo '<td>' . $myrow['currency'] . '</td> + <td>' . $myrow['sales_type'] . '</td> + <td class="number">' . locale_number_format($myrow['price'],$myrow['currdecimalplaces']) . '</td> + <td>' . ConvertSQLDate($myrow['startdate']) . '</td> + <td>' . $EndDateDisplay . '</td></tr>'; } + } + //END WHILE LIST LOOP + echo '</table><br />'; + echo '</div> + </form>'; +} else { + prnMsg(_('There are no prices set up for this part'),'warn'); +} - $SQL = "SELECT currabrev, - currency - FROM currencies"; - $result = DB_query($SQL,$db); +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; +echo '<div>'; +echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; +if (isset($_GET['Edit'])){ + echo '<input type="hidden" name="OldTypeAbbrev" value="' . $_GET['TypeAbbrev'] .'" />'; + echo '<input type="hidden" name="OldCurrAbrev" value="' . $_GET['CurrAbrev'] . '" />'; + echo '<input type="hidden" name="OldStartDate" value="' . $_GET['StartDate'] . '" />'; + echo '<input type="hidden" name="OldEndDate" value="' . $_GET['EndDate'] . '" />'; + $_POST['CurrAbrev'] = $_GET['CurrAbrev']; + $_POST['TypeAbbrev'] = $_GET['TypeAbbrev']; + /*the price sent with the get is sql format price so no need to filter */ + $_POST['Price'] = $_GET['Price']; + $_POST['StartDate'] = ConvertSQLDate($_GET['StartDate']); + if ($_GET['EndDate']=='' OR $_GET['EndDate']=='0000-00-00'){ + $_POST['EndDate'] = ''; + } else { + $_POST['EndDate'] = ConvertSQLDate($_GET['EndDate']); + } +} - echo '<br /><table class="selection">'; - echo '<tr><th colspan="5"><h3>' . $Item . ' - ' . $PartDescription . '</h3></th></tr>'; - echo '<tr><td>' . _('Currency') . ':</td> - <td><select name="CurrAbrev">'; - while ($myrow = DB_fetch_array($result)) { - if ($myrow['currabrev']==$_POST['CurrAbrev']) { - echo '<option selected="selected" value="'; - } else { - echo '<option value="'; - } - echo $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; - } //end while loop +$SQL = "SELECT currabrev, + currency + FROM currencies"; +$result = DB_query($SQL,$db); - DB_free_result($result); +echo '<br /><table class="selection">'; +echo '<tr><th colspan="5"><h3>' . $Item . ' - ' . $PartDescription . '</h3></th></tr>'; +echo '<tr><td>' . _('Currency') . ':</td> + <td><select name="CurrAbrev">'; +while ($myrow = DB_fetch_array($result)) { + if ($myrow['currabrev']==$_POST['CurrAbrev']) { + echo '<option selected="selected" value="'; + } else { + echo '<option value="'; + } + echo $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>'; +} //end while loop - echo '</select> </td></tr> - <tr> - <td>' . _('Sales Type Price List') . ':</td> - <td><select name="TypeAbbrev">'; +DB_free_result($result); - $SQL = "SELECT typeabbrev, sales_type FROM salestypes"; - $result = DB_query($SQL,$db); +echo '</select> </td></tr> + <tr> + <td>' . _('Sales Type Price List') . ':</td> + <td><select name="TypeAbbrev">'; - while ($myrow = DB_fetch_array($result)) { - if ($myrow['typeabbrev']==$_POST['TypeAbbrev']) { - echo '<option selected="selected" value="'; - } else { - echo '<option value="'; - } - echo $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; +$SQL = "SELECT typeabbrev, sales_type FROM salestypes"; +$result = DB_query($SQL,$db); - } //end while loop - echo '</select></td></tr>'; - - DB_free_result($result); +while ($myrow = DB_fetch_array($result)) { + if ($myrow['typeabbrev']==$_POST['TypeAbbrev']) { + echo '<option selected="selected" value="'; + } else { + echo '<option value="'; + } + echo $myrow['typeabbrev'] . '">' . $myrow['sales_type'] . '</option>'; - if (!isset($_POST['StartDate'])){ - $_POST['StartDate'] = Date($_SESSION['DefaultDateFormat']); - } - if (!isset($_POST['EndDate'])){ - $_POST['EndDate'] = ''; - } - echo '<tr><td>' . _('Price Effective From Date') . ':</td> - <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="StartDate" size="10" maxlength="10" value="' . $_POST['StartDate'] . '" /></td></tr>'; - echo '<tr><td>' . _('Price Effective To Date') . ':</td> - <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="EndDate" size="10" maxlength="10" value="' . $_POST['EndDate'] . '" />'; - echo '<input type="hidden" name="Item" value="' . $Item.'" /></td></tr>'; - echo '<tr><td>' . _('Price') . ':</td> - <td> - <input type="text" class="number" name="Price" size="12" maxlength="11" value="'; - if (isset($_POST['Price'])) { - echo $_POST['Price']; - } - echo '" /> - </td></tr> - </table> - <br /><div class="centre"> - <input type="submit" name="submit" value="' . _('Enter') . '/' . _('Amend Price') . '" /> - </div>'; +} //end while loop +echo '</select></td></tr>'; + +DB_free_result($result); + +if (!isset($_POST['StartDate'])){ + $_POST['StartDate'] = Date($_SESSION['DefaultDateFormat']); } +if (!isset($_POST['EndDate'])){ + $_POST['EndDate'] = ''; +} +echo '<tr><td>' . _('Price Effective From Date') . ':</td> + <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="StartDate" size="10" maxlength="10" value="' . $_POST['StartDate'] . '" /></td></tr>'; +echo '<tr><td>' . _('Price Effective To Date') . ':</td> + <td><input type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="EndDate" size="10" maxlength="10" value="' . $_POST['EndDate'] . '" />'; +echo '<input type="hidden" name="Item" value="' . $Item.'" /></td></tr>'; +echo '<tr><td>' . _('Price') . ':</td> + <td> + <input type="text" class="number" name="Price" size="12" maxlength="11" value="'; + if (isset($_POST['Price'])) { + echo $_POST['Price']; + } + echo '" /> + </td></tr> +</table> +<br /><div class="centre"> +<input type="submit" name="submit" value="' . _('Enter') . '/' . _('Amend Price') . '" /> +</div>'; + echo '</div> </form>'; include('includes/footer.inc'); @@ -361,7 +362,7 @@ /*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 @@ -376,7 +377,7 @@ AND enddate <>'0000-00-00' ORDER BY startdate, enddate"; $result = DB_query($SQL,$db); - + while ($myrow = DB_fetch_array($result)){ if (isset($NextStartDate)){ if (Date1GreaterThanDate2(ConvertSQLDate($myrow['startdate']),$NextStartDate)){ @@ -402,7 +403,7 @@ $EndDate = $myrow['enddate']; $Price = $myrow['price']; } // end of loop around all prices - + //Now look for duplicate prices with no end $SQL = "SELECT price, startdate, @@ -415,7 +416,7 @@ AND enddate ='0000-00-00' ORDER BY startdate"; $result = DB_query($SQL,$db); - + while ($myrow = DB_fetch_array($result)) { if (isset($OldStartDate)){ /*Need to make the end date the new start date less 1 day */ @@ -431,7 +432,7 @@ } $OldStartDate = $myrow['startdate']; } // end of loop around duplicate no end date prices - + } // end function ReSequenceEffectiveDates ?> \ No newline at end of file Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2012-07-06 09:24:44 UTC (rev 5480) +++ trunk/doc/Change.log 2012-07-07 06:21:07 UTC (rev 5481) @@ -1,5 +1,7 @@ webERP Change Log +6/7/12 Phil: Add stable versions to UpgradeDatabase.php script +6/7/12 Phil: Added new Z_DeleteOldPrices.php script to purge prices which are past their end date 30/6/12 Phil: Attempt at quicker price retrieval 30/6/12 Phil: Allow creation of work orders for Raw materials - well intermediary components manufacture - per Bob Thomas email 26/06/12 Bob Thomas: StockAdjustments fix link to controlled stock adjustments entry Modified: trunk/includes/DateFunctions.inc =================================================================== --- trunk/includes/DateFunctions.inc 2012-07-06 09:24:44 UTC (rev 5480) +++ trunk/includes/DateFunctions.inc 2012-07-07 06:21:07 UTC (rev 5481) @@ -92,7 +92,7 @@ if (mb_strlen($Date_Array[2])>4) { $Date_Array[2]= mb_substr($Date_Array[2],0,2); } - + $MonthName = GetMonthText(date('n', mktime(0,0,0, (int)$Date_Array[1],(int)$Date_Array[2],(int)$Date_Array[0]))); return $MonthName . ' ' . date('Y', mktime(0,0,0, (int)$Date_Array[1],(int)$Date_Array[2],(int)$Date_Array[0])); @@ -458,7 +458,7 @@ /* takes a date in a the format specified in $_SESSION['DefaultDateFormat'] and converts to a yyyy/mm/dd format */ - $DateArray = array(); + $Date_Array = array(); $DateEntry = trim($DateEntry); if (mb_strpos($DateEntry,'/')) { @@ -487,7 +487,7 @@ } return $Date_Array[0].'-'.$Date_Array[1].'-'.$Date_Array[2]; - }elseif (($_SESSION['DefaultDateFormat']=='d/m/Y') + } elseif (($_SESSION['DefaultDateFormat']=='d/m/Y') OR $_SESSION['DefaultDateFormat']=='d.m.Y'){ if (mb_strlen($Date_Array[2])==2) { if ((int)$Date_Array[2] <=60) { @@ -522,11 +522,11 @@ function LastDayOfMonth ( $DateEntry) { /*Expects a date in DefaultDateFormat and * Returns the last day of the month in the entered date - * in the DefaultDateFormat - * + * in the DefaultDateFormat + * * mktime (0,0,0 month, day, year) */ - + $DateEntry = trim($DateEntry); if (mb_strpos($DateEntry,'/')) { @@ -565,8 +565,8 @@ } } $DateStamp = mktime(0,0,0, $Date_Array[1]+1, 0, $Date_Array[2]); - - + + } elseif ($_SESSION['DefaultDateFormat']=='m/d/Y') { if (mb_strlen($Date_Array[2])==2) { if ((int)$Date_Array[2] <=60) { @@ -719,13 +719,13 @@ } function DateAdd ($DateToAddTo,$PeriodString,$NumberPeriods){ - /*Takes - * DateToAddTo in $_SESSION['DefaultDateFormat'] format + /*Takes + * DateToAddTo in $_SESSION['DefaultDateFormat'] format * $PeriodString is one of: * d - days * w - weeks * m - months - * y - years + * y - years * $NumberPeriods is an integer positve or negative */ $DateToAddTo = trim($DateToAddTo); @@ -925,7 +925,7 @@ } elseif (mb_strpos ($TransDate,'.')) { $Date_Array = explode('.',$TransDate); } - + if (($_SESSION['DefaultDateFormat']=='d/m/Y') or ($_SESSION['DefaultDateFormat']=='d.m.Y')){ $TransDate = mktime(0,0,0,$Date_Array[1],$Date_Array[0],$Date_Array[2]); } elseif ($_SESSION['DefaultDateFormat']=='m/d/Y'){ @@ -947,7 +947,7 @@ $sql = "SELECT MAX(lastdate_in_period), MAX(periodno) from periods"; $result = DB_query($sql, $db); $myrow=DB_fetch_row($result); - + if (is_null($myrow[0])){ $InsertFirstPeriodResult = DB_query("INSERT INTO periods VALUES (0,'" . Date('Y-m-d',mktime(0,0,0,Date('m')+1,0,Date('Y'))) . "')",$db,_('Could not insert first period')); $InsertFirstPeriodResult = DB_query("INSERT INTO periods VALUES (1,'" . Date('Y-m-d',mktime(0,0,0,Date('m')+2,0,Date('Y'))) . "')",$db,_('Could not insert second period')); @@ -969,11 +969,11 @@ /* If the period number doesn't exist */ if (!PeriodExists($TransDate, $db)) { /* if the transaction is after the last period */ - + if ($TransDate > $LastPeriodEnd) { - + $PeriodEnd = mktime(0,0,0,Date('m', $TransDate)+1, 0, Date('Y', $TransDate)); - + while ($PeriodEnd >= $LastPeriodEnd) { if (Date('m', $LastPeriodEnd)<=13) { $LastPeriodEnd = mktime(0,0,0,Date('m', $LastPeriodEnd)+2, 0, Date('Y', $LastPeriodEnd)); @@ -1011,9 +1011,9 @@ /* Now return the period number of the transaction */ $MonthAfterTransDate = Mktime(0,0,0,Date('m',$TransDate)+1,Date('d',$TransDate),Date('Y',$TransDate)); - $GetPrdSQL = "SELECT periodno - FROM periods - WHERE lastdate_in_period < '" . Date('Y-m-d', $MonthAfterTransDate) . "' + $GetPrdSQL = "SELECT periodno + FROM periods + WHERE lastdate_in_period < '" . Date('Y-m-d', $MonthAfterTransDate) . "' AND lastdate_in_period >= '" . Date('Y-m-d', $TransDate) . "'"; $ErrMsg = _('An error occurred in retrieving the period number'); Modified: trunk/includes/MainMenuLinksArray.php =================================================================== --- trunk/includes/MainMenuLinksArray.php 2012-07-06 09:24:44 UTC (rev 5480) +++ trunk/includes/MainMenuLinksArray.php 2012-07-07 06:21:07 UTC (rev 5481) @@ -565,7 +565,8 @@ _('Import Fixed Assets from .csv file'), _('Create new company template SQL file and submit to webERP'), _('Re-calculate brought forward amounts in GL'), - _('Re-Post all GL transactions from a specified period') + _('Re-Post all GL transactions from a specified period'), + _('Purge all old prices') ); $MenuItems['Utilities']['Maintenance']['URL'] = array ('/Z_poAdmin.php', @@ -575,6 +576,7 @@ '/Z_ImportFixedAssets.php', '/Z_CreateCompanyTemplateFile.php', '/Z_UpdateChartDetailsBFwd.php', - '/Z_RePostGLFromPeriod.php' + '/Z_RePostGLFromPeriod.php', + '/Z_DeleteOldPrices.php' ); ?> \ No newline at end of file Modified: trunk/sql/mysql/upgrade4.08-4.09.sql =================================================================== --- trunk/sql/mysql/upgrade4.08-4.09.sql 2012-07-06 09:24:44 UTC (rev 5480) +++ trunk/sql/mysql/upgrade4.08-4.09.sql 2012-07-07 06:21:07 UTC (rev 5481) @@ -1,2 +1,4 @@ +INSERT INTO scripts VALUES ('Z_DeleteOldPrices.php','15','Deletes all old prices'); +INSERT INTO scripts VALUES ('Z_ChangeLocationCode.php','15','Change a locations code and in all tables where the old code was used to the new code') UPDATE config SET confvalue='4.08.1' WHERE confname='VersionNumber'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Web-erp-svn mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-svn -- Course View Towers, Plot 21 Yusuf Lule Road, Kampala T +256 (0) 312 314 418 M +256 (0) 752 963 325 www.weberpafrica.com @TimSchofield2 |
From: webERP D. <web...@li...> - 2012-12-18 23:18:52
|
Tim, Whilst I am a bit pedantic about the code, I am thinking that a commit like this has the potential to destroy the system and it is simply not possible to reveiw this much work. For the sake of the odd bit of white-space which is mostly helpful to easy reading of the code I am intending to reverse this commital. I am concerned that you are in tail spin mode and are hell bent on destroying the project - given your other interests outside of webERP. If this is the case then the decision I must make in relation to protection of our code base are obvious. If you just cannot tow the line then let me know and I will remove you altogether. Regards Phil Phil Daintree Logic Works Ltd http://www.logicworks.co.nz Cell: +64 (0)275 567890 Skype: daintree On Wed 19/12/12 11:00 AM , tim...@us... wrote:Revision: 5765 http://sourceforge.net/p/web-erp/reponame/5765 [1]">http://sourceforge.net/p/web-erp/reponame/5765 Author: tim_schofield Date: 2012-12-18 23:00:00 +0000 (Tue, 18 Dec 2012) Log Message: ----------- Remove superfluous whitesdpace from the end of lines. Originally input by Phil Daintree to inflate his contribution to project Modified Paths: -------------- trunk/AccountGroups.php trunk/AccountSections.php trunk/AddCustomerContacts.php trunk/AddCustomerNotes.php trunk/AddCustomerTypeNotes.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/Areas.php trunk/AuditTrail.php trunk/BOMExtendedQty.php trunk/BOMIndented.php trunk/BOMIndentedReverse.php trunk/BOMInquiry.php trunk/BOMListing.php trunk/BOMs.php trunk/BackupDatabase.php trunk/BankAccounts.php trunk/BankMatching.php trunk/BankReconciliation.php trunk/COGSGLPostings.php trunk/CompanyPreferences.php trunk/ConfirmDispatchControlled_Invoice.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/ContractCosting.php trunk/ContractOtherReqts.php trunk/CopyBOM.php trunk/CounterReturns.php trunk/CounterSales.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustomerAllocations.php trunk/CustomerBranches.php trunk/CustomerInquiry.php trunk/CustomerReceipt.php trunk/CustomerTransInquiry.php trunk/CustomerTypes.php trunk/Customers.php trunk/DailyBankTransactions.php trunk/DailySalesInquiry.php trunk/DebtorsAtPeriodEnd.php trunk/DeliveryDetails.php trunk/Departments.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/EDISendInvoices.php trunk/EDISendInvoices_Reece.php trunk/EmailConfirmation.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/Factors.php trunk/FixedAssetCategories.php trunk/FixedAssetDepreciation.php trunk/FixedAssetItems.php trunk/FixedAssetLocations.php trunk/FixedAssetRegister.php trunk/FixedAssetTransfer.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountCSV.php trunk/GLAccountInquiry.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLBalanceSheet.php trunk/GLBudgets.php trunk/GLCodesInquiry.php trunk/GLJournal.php trunk/GLProfit_Loss.php trunk/GLTagProfit_Loss.php trunk/GLTags.php trunk/GLTrialBalance.php trunk/GLTrialBalance_csv.php trunk/GeocodeSetup.php trunk/GetStockImage.php trunk/GoodsReceived.php trunk/InternalStockCategoriesByRole.php trunk/InternalStockRequest.php trunk/InternalStockRequestAuthorisation.php trunk/InternalStockRequestFulfill.php trunk/InventoryPlanning.php trunk/InventoryPlanningPrefSupplier.php trunk/InventoryQuantities.php trunk/InventoryValuation.php trunk/Locations.php trunk/MRP.php trunk/MRPCalendar.php trunk/MRPCreateDemands.php trunk/MRPDemandTypes.php trunk/MRPDemands.php trunk/MRPPlannedPurchaseOrders.php trunk/MRPPlannedWorkOrders.php trunk/MRPReport.php trunk/MRPReschedules.php trunk/MRPShortages.php trunk/NoSalesItems.php trunk/OffersReceived.php trunk/OutstandingGRNs.php trunk/PDFBankingSummary.php trunk/PDFChequeListing.php trunk/PDFCustTransListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFGLJournal.php trunk/PDFGrn.php trunk/PDFLowGP.php trunk/PDFOrderStatus.php trunk/PDFOrdersInvoiced.php trunk/PDFPeriodStockTransListing.php trunk/PDFPickingList.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFQuotation.php trunk/PDFQuotationPortrait.php trunk/PDFReceipt.php trunk/PDFRemittanceAdvice.php trunk/PDFStockCheckComparison.php trunk/PDFStockLocTransfer.php trunk/PDFStockNegatives.php trunk/PDFStockTransfer.php trunk/PDFSuppTransListing.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_AuthoriseMyOrders.php trunk/PO_Chk_ShiptRef_JobRef.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_OrderDetails.php trunk/PO_PDFPurchOrder.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PageSecurity.php trunk/PaymentMethods.php trunk/PaymentTerms.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcClaimExpensesFromTab.php trunk/PcExpenses.php trunk/PcExpensesTypeTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/PcTypeTabs.php trunk/PeriodsInquiry.php trunk/Prices.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PrintCheque.php trunk/PrintCustOrder.php trunk/PrintCustOrder_generic.php trunk/PrintCustStatements.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/PurchData.php trunk/RecurringSalesOrders.php trunk/ReorderLevel.php trunk/ReorderLevelLocation.php trunk/ReprintGRN.php trunk/ReverseGRN.php trunk/SMTPServer.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesByTypePeriodInquiry.php trunk/SalesCategories.php trunk/SalesCategoryPeriodInquiry.php trunk/SalesGLPostings.php trunk/SalesGraph.php trunk/SalesInquiry.php trunk/SalesPeople.php trunk/SalesTopItemsInquiry.php trunk/SalesTypes.php trunk/SecurityTokens.php trunk/SelectAsset.php trunk/SelectCompletedOrder.php trunk/SelectContract.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectRecurringSalesOrder.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/SelectWorkOrder.php trunk/ShipmentCosting.php trunk/Shipments.php trunk/Shippers.php trunk/Shipt_Select.php trunk/ShiptsList.php trunk/SpecialOrder.php trunk/StockAdjustments.php trunk/StockAdjustmentsControlled.php trunk/StockCategories.php trunk/StockCheck.php trunk/StockCostUpdate.php trunk/StockCounts.php trunk/StockLocMovements.php trunk/StockLocStatus.php trunk/StockLocTransfer.php trunk/StockLocTransferReceive.php trunk/StockMovements.php trunk/StockQties_csv.php trunk/StockQuantityByDate.php trunk/StockReorderLevel.php trunk/StockSerialItems.php trunk/StockStatus.php trunk/StockTransfers.php trunk/StockUsage.php trunk/Stocks.php trunk/SuppContractChgs.php trunk/SuppCreditGRNs.php trunk/SuppFixedAssetChgs.php trunk/SuppInvGRNs.php trunk/SuppLoginSetup.php trunk/SuppPaymentRun.php trunk/SuppPriceList.php trunk/SuppShiptChgs.php trunk/SuppTransGLAnalysis.php trunk/SupplierAllocations.php trunk/SupplierBalsAtPeriodEnd.php trunk/SupplierContacts.php trunk/SupplierCredit.php trunk/SupplierInquiry.php trunk/SupplierInvoice.php trunk/SupplierPriceList.php trunk/SupplierTenderCreate.php trunk/SupplierTenders.php trunk/SupplierTransInquiry.php trunk/SupplierTypes.php trunk/Suppliers.php trunk/SystemParameters.php trunk/Tax.php trunk/TaxAuthorities.php trunk/TaxAuthorityRates.php trunk/TaxCategories.php trunk/TaxGroups.php trunk/TaxProvinces.php trunk/TopItems.php trunk/UnitsOfMeasure.php trunk/UpgradeDatabase.php trunk/UserSettings.php trunk/WOSerialNos.php trunk/WWW_Access.php trunk/WWW_Users.php trunk/WhereUsedInquiry.php trunk/WorkCentres.php trunk/WorkOrderCosting.php trunk/WorkOrderEntry.php trunk/WorkOrderIssue.php trunk/WorkOrderReceive.php trunk/Z_BottomUpCosts.php trunk/Z_ChangeBranchCode.php trunk/Z_ChangeLocationCode.php trunk/Z_ChangeStockCode.php trunk/Z_CheckDebtorsControl.php trunk/Z_CheckGLTransBalance.php trunk/Z_CreateCompanyTemplateFile.php trunk/Z_CurrencyDebtorsBalances.php trunk/Z_CurrencySuppliersBalances.php trunk/Z_DataExport.php trunk/Z_DeleteCreditNote.php trunk/Z_DeleteInvoice.php trunk/Z_DeleteOldPrices.php trunk/Z_DeleteSalesTransActions.php trunk/Z_ImportChartOfAccounts.php trunk/Z_ImportFixedAssets.php trunk/Z_ImportGLAccountGroups.php trunk/Z_ImportGLAccountSections.php trunk/Z_ImportPartCodes.php trunk/Z_ImportStocks.php trunk/Z_MakeNewCompany.php trunk/Z_MakeStockLocns.php trunk/Z_RePostGLFromPeriod.php trunk/Z_ReverseSuppPaymentRun.php trunk/Z_UpdateChartDetailsBFwd.php trunk/Z_Upgrade3.10.php trunk/Z_Upgrade_3.01-3.02.php trunk/Z_Upgrade_3.04-3.05.php trunk/Z_Upgrade_3.05-3.06.php trunk/Z_Upgrade_3.07-3.08.php trunk/Z_Upgrade_3.08-3.09.php trunk/Z_Upgrade_3.09-3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/Z_poAdmin.php trunk/Z_poEditLangHeader.php trunk/Z_poEditLangModule.php trunk/Z_poEditLangRemaining.php trunk/Z_poRebuildDefault.php trunk/geo_displaymap_customers.php trunk/geocode.php trunk/includes/Add_SerialItems.php trunk/includes/Add_SerialItemsOut.php trunk/includes/ConnectDB.inc trunk/includes/ConnectDB_mysql.inc trunk/includes/ConnectDB_mysqli.inc trunk/includes/ConnectDB_postgres.inc trunk/includes/ConstructSQLForUserDefinedSalesReport.inc trunk/includes/CountriesArray.php trunk/includes/DateFunctions.inc trunk/includes/DefineCartClass.php trunk/includes/DefineContractClass.php trunk/includes/DefineJournalClass.php trunk/includes/DefineLabelClass.php trunk/includes/DefineOfferClass.php trunk/includes/DefineReceiptClass.php trunk/includes/DefineSpecialOrderClass.php trunk/includes/DefineStockAdjustment.php trunk/includes/DefineStockTransfers.php trunk/includes/DefineSuppAllocsClass.php trunk/includes/DefineSuppTransClass.php trunk/includes/DefineTenderClass.php trunk/includes/EDIconfig.inc trunk/includes/FreightCalculation.inc trunk/includes/GetConfig.php trunk/includes/GetSalesTransGLCodes.inc trunk/includes/InputSerialItems.php trunk/includes/InputSerialItemsExisting.php trunk/includes/InputSerialItemsKeyed.php trunk/includes/InputSerialItemsSequential.php trunk/includes/LanguageSetup.php trunk/includes/LanguagesArray.php trunk/includes/Login.php trunk/includes/MiscFunctions.php trunk/includes/OutputSerialItems.php trunk/includes/PDFAgedDebtorsPageHeader.inc trunk/includes/PDFDeliveryDifferencesPageHeader.inc trunk/includes/PDFOrderPageHeader_generic.inc trunk/includes/PDFOrderStatusPageHeader.inc trunk/includes/PDFOrdersInvoicedPageHeader.inc trunk/includes/PDFPaymentRun_PymtFooter.php trunk/includes/PDFProfitAndLossPageHeader.inc trunk/includes/PDFSalesAnalPageHeader.inc trunk/includes/PDFSalesAnalysis.inc trunk/includes/PDFSalesOrder_generic.inc trunk/includes/PDFStarter.php trunk/includes/PDFStatementPageHeader.inc trunk/includes/PDFTopItemsHeader.inc trunk/includes/PDFTransPageHeader.inc trunk/includes/PDFTransPageHeaderPortrait.inc trunk/includes/PDFTrialBalancePageHeader.inc trunk/includes/PO_ReadInOrder.inc trunk/includes/PO_UnsetFormVbls.php trunk/includes/SelectOrderItems_IntoCart.inc trunk/includes/Z_POSDataCreation.php trunk/includes/class.pdf.php trunk/includes/footer.inc trunk/includes/header.inc trunk/includes/htmlMimeMail.php trunk/includes/session.inc trunk/index.php trunk/report_runner.php Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/AccountGroups.php2012-12-18 23:00:00 UTC (rev 5765) @@ -63,7 +63,7 @@ $i=1; $sql="SELECT count(groupname) -FROM accountgroups +FROM accountgroups WHERE groupname='".$_POST['GroupName']."'"; $DbgMsg = _('The SQL that was used to retrieve the information was'); @@ -191,7 +191,7 @@ prnMsg( _('Cannot delete this account group because general ledger accounts have been created using this group'),'warn'); echo ' ' . _('There are') . ' ' . $myrow['groups'] . ' ' . _('general ledger accounts that refer to this account group'); echo ' '; - + echo ''; echo ' '; echo ''; @@ -313,7 +313,7 @@ if (!isset($_GET['delete'])) { echo ''; - echo ' '; +echo ' '; echo ''; if (isset($_GET['SelectedAccountGroup'])) { @@ -347,10 +347,10 @@ echo ' '; - echo ' - - - '; +echo ' + + + '; echo ' ' . _('Account Group') . ':' . ' @@ -358,7 +358,7 @@ '; } elseif (!isset($_POST['MoveGroup'])) { //end of if $_POST['SelectedAccountGroup'] only do the else when a new record is being entered - + if (!isset($_POST['SelectedAccountGroup'])){ $_POST['SelectedAccountGroup']=''; } @@ -379,10 +379,10 @@ echo ' '; - echo ' - - '; echo ' + + '; +echo ' ' . _('Account Group Name') . ':' . ' '; @@ -455,7 +455,7 @@ echo ' '; echo ''; - echo ''; +echo ''; echo ''; } //end if record deleted no point displaying form to add record Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/AccountSections.php2012-12-18 23:00:00 UTC (rev 5765) @@ -126,9 +126,9 @@ $myrow = DB_fetch_array($result); if ($myrow['sections']>0) { prnMsg( _('Cannot delete this account section because general ledger accounts groups have been created using this section'),'warn'); - echo ''; +echo ''; echo ' ' . _('There are') . ' ' . $myrow['sections'] . ' ' . _('general ledger accounts groups that refer to this account section'); - echo ''; +echo ''; } else { //Fetch section name @@ -205,7 +205,7 @@ if (! isset($_GET['delete'])) { echo ''; - echo ' '; +echo ' '; echo ''; if (isset($_GET['SelectedSectionID'])) { @@ -266,7 +266,7 @@ } else { echo ''; } - echo ''; +echo ''; echo ''; } //end if record deleted no point displaying form to add record Modified: trunk/AddCustomerContacts.php =================================================================== --- trunk/AddCustomerContacts.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/AddCustomerContacts.php2012-12-18 23:00:00 UTC (rev 5765) @@ -171,7 +171,7 @@ if (!isset($_GET['delete'])) { echo ''; - echo ''; +echo ''; echo ''; if (isset($Id)) { @@ -253,7 +253,7 @@ } else { echo ' '; } - echo ' '; +echo ' '; echo ' @@ -262,7 +262,7 @@ - + '; } //end if record deleted no point displaying form to add record Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/AddCustomerNotes.php2012-12-18 23:00:00 UTC (rev 5765) @@ -162,7 +162,7 @@ if (!isset($_GET['delete'])) { echo ''; - echo ''; +echo ''; echo ''; if (isset($Id)) { @@ -244,7 +244,7 @@ - + '; } //end if record deleted no point displaying form to add record Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/AddCustomerTypeNotes.php2012-12-18 23:00:00 UTC (rev 5765) @@ -154,7 +154,7 @@ if (!isset($_GET['delete'])) { echo ''; - echo ''; +echo ''; echo ''; if (isset($Id)) { @@ -220,7 +220,7 @@ - + '; } //end if record deleted no point displaying form to add record Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/AgedDebtors.php2012-12-18 23:00:00 UTC (rev 5765) @@ -448,7 +448,7 @@ /*if $FromCriteria is not set then show a form to allow input*/ echo ' - + @@ -510,8 +510,8 @@ - - '; + +'; } include('includes/footer.inc'); } /*end of else not PrintPDF */ Modified: trunk/AgedSuppliers.php =================================================================== --- trunk/AgedSuppliers.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/AgedSuppliers.php2012-12-18 23:00:00 UTC (rev 5765) @@ -280,7 +280,7 @@ /*if $FromCriteria is not set then show a form to allow input*/ echo ' - + @@ -326,10 +326,10 @@ - - '; + +'; } include('includes/footer.inc'); } /*end of else not PrintPDF */ -?> +?> No newline at end of file Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/Areas.php2012-12-18 23:00:00 UTC (rev 5765) @@ -180,7 +180,7 @@ if (!isset($_GET['delete'])) { echo ''; - echo ' '; +echo ' '; echo ''; if (isset($SelectedArea)) { @@ -231,7 +231,7 @@ - + '; } //end if record deleted no point displaying form to add record Modified: trunk/AuditTrail.php =================================================================== --- trunk/AuditTrail.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/AuditTrail.php2012-12-18 23:00:00 UTC (rev 5765) @@ -117,7 +117,7 @@ $SQLString = str_replace('SET','',$SQLString); $SQLString = str_replace('WHERE',',',$SQLString); $SQLString = str_replace('AND',',',$SQLString); -$FieldArray = preg_split("/[[:space:]]*([[:alnum:].]+[[:space:]]*=[[:space:]]*(?:'[^']*'|[[:digit:].]+))[[:space:]]*,/", $SQLString, 0, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); +$FieldArray = preg_split("/[[:space:]]*([[:alnum:].]+[[:space:]]*=[[:space:]]*(?:'[^']*'|[[:digit:].]+))[[:space:]]*,/", $SQLString, 0, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); for ($i=0; $i 0) { - $ContainingText = " AND querystring LIKE '%" . $ContainingText . "%' "; +$ContainingText = " AND querystring LIKE '%" . $ContainingText . "%' "; }else{ - $ContainingText = ""; +$ContainingText = ""; } if ($_POST['SelectedUser'] == 'ALL') { Modified: trunk/BOMExtendedQty.php =================================================================== --- trunk/BOMExtendedQty.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/BOMExtendedQty.php2012-12-18 23:00:00 UTC (rev 5765) @@ -14,7 +14,7 @@ $FontSize=9; $PageNumber=1; $line_height=12; - PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width,$Right_Margin); +PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width,$Right_Margin); if (!$_POST['Quantity'] or !is_numeric(filter_number_format($_POST['Quantity']))) { $_POST['Quantity'] = 1; @@ -250,8 +250,8 @@ echo ' ' . ' ' . $title.' '; echo ' - - + + ' . _('Part') . ': @@ -282,8 +282,8 @@ - - '; + +'; include('includes/footer.inc'); Modified: trunk/BOMIndented.php =================================================================== --- trunk/BOMIndented.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/BOMIndented.php2012-12-18 23:00:00 UTC (rev 5765) @@ -11,7 +11,7 @@ include('includes/PDFStarter.php'); $pdf->addInfo('Title',_('Indented BOM Listing')); $pdf->addInfo('Subject',_('Indented BOM Listing')); - $FontSize=9; +$FontSize=9; $PageNumber=1; $line_height=12; @@ -49,7 +49,7 @@ CONCAT(bom.parent,bom.component) AS sortpart FROM bom WHERE bom.parent ='" . $_POST['Part'] . "' - AND bom.effectiveto >= NOW() + AND bom.effectiveto >= NOW() AND bom.effectiveafter = NOW() AND bom.effectiveafter line($Page_Width-$Right_Margin, $YPos,$Left_Margin, $YPos); - - $pdf->OutputD($_SESSION['DatabaseName'] . '_BOMListing_' . date('Y-m-d').'.pdf'); - $pdf->__destruct(); +$pdf->OutputD($_SESSION['DatabaseName'] . '_BOMListing_' . date('Y-m-d').'.pdf'); +$pdf->__destruct(); + } else { /*The option to print PDF was not hit */ $title=_('Bill Of Material Listing'); @@ -113,8 +113,8 @@ /*if $FromCriteria is not set then show a form to allow input*/ echo ' - - + + '; echo ' ' . _('From Inventory Part Code') . ':' . ' @@ -128,8 +128,8 @@ echo ' - - '; + + '; echo ''; } include('includes/footer.inc'); Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/BOMs.php2012-12-18 23:00:00 UTC (rev 5765) @@ -20,7 +20,7 @@ FROM bom WHERE parent='" . $Parent. "'" ,$db); if (DB_num_rows($c_result) > 0) { - + while ($row = DB_fetch_array($c_result)) { //echo ' Parent: ' . $Parent . ' Level: ' . $Level . ' row[component]: ' . $row['component'] .' '; if ($Parent != $row['component']) { @@ -85,13 +85,13 @@ locstock.quantity AS qoh, stockmaster.decimalplaces FROM bom INNER JOIN stockmaster -ON bom.component=stockmaster.stockid -INNER JOIN locations ON -bom.loccode = locations.loccode -INNER JOIN workcentres +ON bom.component=stockmaster.stockid +INNER JOIN locations ON +bom.loccode = locations.loccode +INNER JOIN workcentres ON bom.workcentreadded=workcentres.code -INNER JOIN locstock -ON bom.loccode=locstock.loccode +INNER JOIN locstock +ON bom.loccode=locstock.loccode AND bom.component = locstock.stockid WHERE bom.component='".$Component."' AND bom.parent = '".$Parent."'"; @@ -106,10 +106,10 @@ while ($myrow=DB_fetch_array($result)) { $Level1 = str_repeat('- ',$Level-1).$Level; -if( $myrow['mbflag']=='B' -OR $myrow['mbflag']=='K' +if( $myrow['mbflag']=='B' +OR $myrow['mbflag']=='K' OR $myrow['mbflag']=='D') { - + $DrillText = '%s%s'; $DrillLink = ''._('No lower levels').''; $DrillID=''; @@ -132,12 +132,12 @@ OR $myrow['mbflag']=='K' //kit-set OR $myrow['mbflag']=='A' // assembly OR $myrow['mbflag']=='G') /* ghost */ { - + $QuantityOnHand = _('N/A'); } else { $QuantityOnHand = locale_number_format($myrow['qoh'],$myrow['decimalplaces']); -} - +} + printf(' %s %s %s @@ -372,8 +372,8 @@ //the link to delete a selected record was clicked instead of the Submit button -$sql="DELETE FROM bom -WHERE parent='".$SelectedParent."' +$sql="DELETE FROM bom +WHERE parent='".$SelectedParent."' AND component='".$SelectedComponent."' AND loccode='".$Location."' AND workcentreadded='".$WorkCentre."'"; @@ -382,8 +382,8 @@ $DbgMsg = _('The SQL used to delete the BOM was'); $result = DB_query($sql,$db,$ErrMsg,$DbgMsg); -$ComponentSQL = "SELECT component -FROM bom +$ComponentSQL = "SELECT component +FROM bom WHERE parent='" . $SelectedParent ."'"; $ComponentResult = DB_query($ComponentSQL,$db); $ComponentArray = DB_fetch_row($ComponentResult); @@ -453,7 +453,7 @@ $result=DB_query($sql,$db,$ErrMsg,$DbgMsg); $ix = 0; if( DB_num_rows($result) > 0 ) { - echo ' '; + echo ' '; echo ' '._('Manufactured parent items').' : '; while ($myrow = DB_fetch_array($result)){ echo (($ix)?', ':'').''. @@ -461,14 +461,14 @@ $ix++; } //end while loop echo ' '; - echo ' '; + echo ' '; } // Display Assembly Parent Items -$sql = "SELECT bom.parent, -stockmaster.description, +$sql = "SELECT bom.parent, +stockmaster.description, stockmaster.mbflag FROM bom INNER JOIN stockmaster -ON bom.parent=stockmaster.stockid +ON bom.parent=stockmaster.stockid WHERE bom.component='".$SelectedParent."' AND stockmaster.mbflag='A'"; @@ -476,7 +476,7 @@ $DbgMsg = _('The SQL used to retrieve description of the parent part was'); $result=DB_query($sql,$db,$ErrMsg,$DbgMsg); if( DB_num_rows($result) > 0 ) { - echo ' '; +echo ' '; echo ' '._('Assembly parent items').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ @@ -485,14 +485,14 @@ $ix++; } //end while loop echo ' '; - echo ' '; +echo ' '; } // Display Kit Sets -$sql = "SELECT bom.parent, -stockmaster.description, +$sql = "SELECT bom.parent, +stockmaster.description, stockmaster.mbflag FROM bom INNER JOIN stockmaster -ON bom.parent=stockmaster.stockid +ON bom.parent=stockmaster.stockid WHERE bom.component='".$SelectedParent."' AND stockmaster.mbflag='K'"; @@ -500,7 +500,7 @@ $DbgMsg = _('The SQL used to retrieve description of the parent part was'); $result=DB_query($sql,$db,$ErrMsg,$DbgMsg); if( DB_num_rows($result) > 0 ) { - echo ' '; +echo ' '; echo ' '._('Kit sets').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ @@ -509,14 +509,14 @@ $ix++; } //end while loop echo ' '; - echo ' '; +echo ' '; } // Display Phantom/Ghosts -$sql = "SELECT bom.parent, -stockmaster.description, +$sql = "SELECT bom.parent, +stockmaster.description, stockmaster.mbflag FROM bom INNER JOIN stockmaster -ON bom.parent=stockmaster.stockid +ON bom.parent=stockmaster.stockid WHERE bom.component='".$SelectedParent."' AND stockmaster.mbflag='G'"; @@ -525,7 +525,7 @@ $result=DB_query($sql,$db,$ErrMsg,$DbgMsg); if( DB_num_rows($result) > 0 ) { echo ' '; - echo ' '._('Phantom').' : '; +echo ' '._('Phantom').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ echo (($ix)?', ':'').''. @@ -533,7 +533,7 @@ $ix++; } //end while loop echo ' '; - echo ' '; +echo ' '; } echo ' '; @@ -589,7 +589,7 @@ if (! isset($_GET['delete'])) { echo ''; - echo ''; +echo ''; echo ''; if (isset($_GET['SelectedComponent']) and $InputError !=1) { @@ -601,7 +601,7 @@ workcentreadded, quantity, autoissue -FROM bom +FROM bom WHERE parent='".$SelectedParent."' AND component='".$SelectedComponent."'"; @@ -784,7 +784,7 @@ echo ' - + '; } //end if record deleted no point displaying form to add record @@ -858,9 +858,9 @@ echo ' ' . ' ' . $title . ''; echo '' . ''. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . _('to maintain the bill of material for using the options below') . ' ' . _('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') .''. ' - - - + + + ' . _('Enter text extracts in the') . ' ' . _('DESCRIPTION') . ': ' . _('OR') . ' @@ -871,10 +871,10 @@ '; echo ''; -if (isset($_POST['Search']) -AND isset($result) +if (isset($_POST['Search']) +AND isset($result) AND !isset($SelectedParent)) { - + echo ' '; $TableHeader = ' @@ -883,9 +883,9 @@ '; - + echo $TableHeader; - + $j = 1; $k=0; //row colour counter while ($myrow=DB_fetch_array($result)) { @@ -911,17 +911,17 @@ $myrow['description'], $StockOnHand, $myrow['units']); - + $j++; //end of page full new headings if } //end of while loop - + echo ' '; - + } //end if results to show - + if (!isset($SelectedParent) or $SelectedParent=='') { echo ''; } else { @@ -941,7 +941,7 @@ foreach($array as $key => $item) { // Serialize the current element and create a md5 hash $hash = md5(serialize($item)); -// If the md5 didn't come up yet, add the element to +// If the md5 didn't come up yet, add the element to // arrayRewrite, otherwise drop it if (!isset($arrayHashes[$hash])) { // Save the current element hash @@ -958,4 +958,4 @@ } include('includes/footer.inc'); -?> +?> No newline at end of file Modified: trunk/BackupDatabase.php =================================================================== --- trunk/BackupDatabase.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/BackupDatabase.php2012-12-18 23:00:00 UTC (rev 5765) @@ -11,11 +11,11 @@ $BackupFiles = scandir('companies/' . $_SESSION['DatabaseName'], 0); $DeletedFiles = false; foreach ($BackupFiles as $BackupFile){ - + if (mb_substr($BackupFile,0,6)=='Backup'){ - + $DeleteResult = unlink('companies/' . $_SESSION['DatabaseName'] . '/' . $BackupFile); - + if ($DeleteResult==true){ prnMsg(_('Deleted') . ' companies/' . $_SESSION['DatabaseName'] . '/' . $BackupFile,'info'); $DeletedFiles = true; @@ -30,15 +30,15 @@ prnMsg(_('No backup files on the server were deleted'),'info'); } } else { - + $BackupFile = $rootpath . '/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 > ' . +$Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . $_SERVER['DOCUMENT_ROOT'] . $BackupFile; - - + + $CommandOutput = array(); exec($Command,$CommandOutput, $ReturnValue); - + if ($ReturnValue ==0) { prnMsg(_('The backup file has now been created. You must now download this to your computer because in case the web-server has a disk failure the backup would then not on the same machine. Use the link below') . ' ' . _('Download the backup file to your locale machine') . '','success'); prnMsg(_('Once you have downloaded the database backup file to your local machine you should use the link below to delete it - backup files can consume a lot of space on your hosting account and will accumulate if not deleted - they also contain sensitive information which would otherwise be available for others to download!'),'info'); @@ -50,7 +50,7 @@ } } /* -//this could be a weighty file attachment!! +//this could be a weighty file attachment!! include('includes/htmlMimeMail.php'); $mail = new htmlMimeMail(); $attachment = $mail->getFile( $BackupFile); Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/BankAccounts.php2012-12-18 23:00:00 UTC (rev 5765) @@ -318,7 +318,7 @@ $_POST['BankAccountNumber']=''; } if (!isset($_POST['BankAccountCode'])) { - $_POST['BankAccountCode']=''; +$_POST['BankAccountCode']=''; } if (!isset($_POST['BankAddress'])) { $_POST['BankAddress']=''; Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/BankMatching.php2012-12-18 23:00:00 UTC (rev 5765) @@ -125,7 +125,7 @@ '; echo ' - ' . _('to') . ': + ' . _('to') . ': '; echo ' @@ -343,4 +343,4 @@ echo ''; echo ''; include('includes/footer.inc'); -?> +?> No newline at end of file Modified: trunk/BankReconciliation.php =================================================================== --- trunk/BankReconciliation.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/BankReconciliation.php2012-12-18 23:00:00 UTC (rev 5765) @@ -254,8 +254,8 @@ //end of while loop echo ' - - + + ' . _('Total of all unpresented cheques') . ' ' . locale_number_format($TotalUnpresentedCheques,$CurrencyRow['currdecimalplaces']) . ' @@ -330,7 +330,7 @@ } //end of while loop echo ' - + ' . _('Total of all uncleared deposits') . ' @@ -338,7 +338,7 @@ '; $FXStatementBalance = ($Balance*$CurrencyRow['rate'] - $TotalUnpresentedCheques -$TotalUnclearedDeposits); echo ' - + ' . _('BANK STATEMENT BALANCE SHOULD BE') . ' (' . $CURRENCYROW['CURRCODE'] . ') Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/COGSGLPostings.php2012-12-18 23:00:00 UTC (rev 5765) @@ -138,12 +138,12 @@ $sql = "INSERT INTO accountgroups (groupname, sectioninaccounts, pandl, -sequenceintb ) +sequenceintb ) VALUES ('Sales', '1', '1', '10')"; - + $result = DB_query($sql,$db); } $sql = "SELECT accountcode FROM chartmaster WHERE accountcode ='1'"; @@ -215,7 +215,7 @@ $myrow['id'], htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['id']); - + }//END WHILE LIST LOOP echo ' '; } @@ -355,8 +355,8 @@ - + '; include('includes/footer.inc'); -?> +?> No newline at end of file Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/CompanyPreferences.php2012-12-18 23:00:00 UTC (rev 5765) @@ -524,4 +524,4 @@ echo ''; include('includes/footer.inc'); -?> +?> No newline at end of file Modified: trunk/ConfirmDispatchControlled_Invoice.php =================================================================== --- trunk/ConfirmDispatchControlled_Invoice.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/ConfirmDispatchControlled_Invoice.php2012-12-18 23:00:00 UTC (rev 5765) @@ -19,9 +19,9 @@ } if (isset($_GET['LineNo'])){ - $LineNo = (int)$_GET['LineNo']; +$LineNo = (int)$_GET['LineNo']; } elseif (isset($_POST['LineNo'])){ - $LineNo = (int)$_POST['LineNo']; +$LineNo = (int)$_POST['LineNo']; } else { echo ' '. _('Select a line item to invoice').' Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/ConfirmDispatch_Invoice.php2012-12-18 23:00:00 UTC (rev 5765) @@ -116,7 +116,7 @@ $_SESSION['Items'.$identifier]->PhoneNo = $myrow['contactphone']; $_SESSION['Items'.$identifier]->Email = $myrow['contactemail']; $_SESSION['Items'.$identifier]->SalesPerson = $myrow['salesperson']; - + $_SESSION['Items'.$identifier]->Location = $myrow['fromstkloc']; $_SESSION['Items'.$identifier]->FreightCost = $myrow['freightcost']; $_SESSION['Old_FreightCost'] = $myrow['freightcost']; @@ -322,7 +322,7 @@ $_SESSION['Items'.$identifier]->totalVolume += ($LnItm->QtyDispatched * $LnItm->Volume); $_SESSION['Items'.$identifier]->totalWeight += ($LnItm->QtyDispatched * $LnItm->Weight); - echo $RowStarter; +echo $RowStarter; echo ' '.$LnItm->StockID.' LongDescription . '">' .$LnItm->ItemDescription.' ' . locale_number_format($LnItm->Quantity,$LnItm->DecimalPlaces) . ' @@ -635,9 +635,9 @@ } //end of loop around items on the order for negative check if ($NegativesFound){ - echo ''; - echo ''; - echo ' +echo ''; +echo ''; +echo ' '; include('includes/footer.inc'); exit; @@ -941,7 +941,7 @@ /* Need to get the current location quantity will need it later for the stock movement */ - $SQL="SELECT locstock.quantity + $SQL="SELECT locstock.quantity FROM locstock WHERE locstock.stockid='" . $OrderLine->StockID . "' AND loccode= '" . $_SESSION['Items'.$identifier]->Location . "'"; @@ -949,8 +949,8 @@ $Result = DB_query($SQL, $db, $ErrMsg); if (DB_num_rows($Result)==1){ - $LocQtyRow = DB_fetch_row($Result); - $QtyOnHandPrior = $LocQtyRow[0]; + $LocQtyRow = DB_fetch_row($Result); + $QtyOnHandPrior = $LocQtyRow[0]; } else { /* There must be some error this should never happen */ $QtyOnHandPrior = 0; @@ -988,7 +988,7 @@ $StandardCost += ($AssParts['standard'] * $AssParts['quantity']) ; /* Need to get the current location quantity will need it later for the stock movement */ - $SQL="SELECT locstock.quantity + $SQL="SELECT locstock.quantity FROM locstock WHERE locstock.stockid='" . $AssParts['component'] . "' AND loccode= '" . $_SESSION['Items'.$identifier]->Location . "'"; @@ -996,9 +996,9 @@ $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Can not retrieve assembly components location stock quantities because '); $DbgMsg = _('The SQL that failed was'); $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); - if (DB_num_rows($Result)==1){ - $LocQtyRow = DB_fetch_row($Result); - $QtyOnHandPrior = $LocQtyRow[0]; + if (DB_num_rows($Result)==1){ + $LocQtyRow = DB_fetch_row($Result); + $QtyOnHandPrior = $LocQtyRow[0]; } else { /*There must be some error this should never happen */ $QtyOnHandPrior = 0; @@ -1060,7 +1060,7 @@ $OrderLine->StandardCost=0; } if ($MBFlag=='B' OR $MBFlag=='M'){ - $SQL = "INSERT INTO stockmoves (stockid, +$SQL = "INSERT INTO stockmoves (stockid, type, transno, loccode, @@ -1091,7 +1091,7 @@ '" . ($QtyOnHandPrior - $OrderLine->QtyDispatched) . "', '" . $OrderLine->Narrative . "' )"; } else { - // its an assembly or dummy and assemblies/dummies always have nil stock (by definition they are made up at the time of dispatch so new qty on hand will be nil +// its an assembly or dummy and assemblies/dummies always have nil stock (by definition they are made up at the time of dispatch so new qty on hand will be nil if (empty($OrderLine->StandardCost)) { $OrderLine->StandardCost=0; } @@ -1157,7 +1157,7 @@ if ($OrderLine->Controlled ==1){ foreach($OrderLine->SerialItems as $Item){ - /*We need to add the StockSerialItem record and the StockSerialMoves as well */ + /*We need to add the StockSerialItem record and the StockSerialMoves as well */ $SQL = "UPDATE stockserialitemsSET quantity= quantity - " . $Item->BundleQty . " WHERE stockid='" . $OrderLine->StockID . "' @@ -1678,4 +1678,4 @@ echo ''; include('includes/footer.inc'); -?> +?> No newline at end of file Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/ContractBOM.php2012-12-18 23:00:00 UTC (rev 5765) @@ -399,7 +399,7 @@ }#end if SearchResults to show echo ' ------------------------- - + '; include('includes/footer.inc'); ?> No newline at end of file Modified: trunk/ContractCosting.php =================================================================== --- trunk/ContractCosting.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/ContractCosting.php2012-12-18 23:00:00 UTC (rev 5765) @@ -51,7 +51,7 @@ $InventoryIssues[$InventoryIssuesRow['stockid']]->Units = $InventoryIssuesRow['units']; $InventoryIssues[$InventoryIssuesRow['stockid']]->DecimalPlaces = $InventoryIssuesRow['decimalplaces']; $InventoryIssues[$InventoryIssuesRow['stockid']]->Matched = 0; - + } echo ' @@ -89,7 +89,7 @@ '; - + $ContractBOMBudget = 0; $ContractBOMActual = 0; foreach ($_SESSION['Contract'.$identifier]->ContractBOM as $Component) { @@ -100,9 +100,9 @@ ' . $Component->UOM . ' ' . locale_number_format($Component->ItemCost,$_SESSION['CompanyRecord']['decimalplaces']) . ' ' . locale_number_format(($Component->ItemCost * $Component->Quantity),$_SESSION['CompanyRecord']['decimalplaces']) . ' '; - + $ContractBOMBudget += ($Component->ItemCost * $Component->Quantity); - + if (isset($InventoryIssues[$Component->StockID])){ $InventoryIssues[$Component->StockID]->Matched=1; echo ' ' . _('Actual usage') . ' @@ -153,7 +153,7 @@ '; - + foreach ($_SESSION['Contract'.$identifier]->ContractReqts as $Requirement) { echo ' ' . $Requirement->Requirement . ' ' . locale_number_format($Requirement->Quantity,'Variable') . ' @@ -355,7 +355,7 @@ 1, '" . ($OtherReqtsBudget+$ContractBOMBudget) . "', '" . ($QtyOnHandPrior + 1) . "')"; - + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('stock movement records could not be inserted when processing the work order receipt because'); $DbgMsg = _('The following SQL to insert the stock movement records was used'); $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true); @@ -433,13 +433,13 @@ if ($_SESSION['Contract'.$identifier]->Status ==2){//the contract is an order being processed now echo 'Branch . "' AND custbranch.debtorno = '" . $_SESSION['Items'.$identifier]->DebtorNo . "'"; - $ErrMsg = _('The customer branch record of the customer selected') . ': ' . $_SESSION['Items'.$identifier]->Branch . ' ' . _('cannot be retrieved because'); +$ErrMsg = _('The customer branch record of the customer selected') . ': ' . $_SESSION['Items'.$identifier]->Branch . ' ' . _('cannot be retrieved because'); $DbgMsg = _('SQL used to retrieve the branch details was') . ':'; $result =DB_query($sql,$db,$ErrMsg,$DbgMsg); @@ -179,9 +179,9 @@ $_SESSION['Items'.$identifier]->DeliverBlind = $myrow['deliverblind']; $_SESSION['Items'.$identifier]->SpecialInstructions = $myrow['specialinstructions']; $_SESSION['Items'.$identifier]->DeliveryDays = $myrow['estdeliverydays']; -$_SESSION['Items'.$identifier]->TaxGroup = $myrow['taxgroupid']; +$_SESSION['Items'.$identifier]->TaxGroup = $myrow['taxgroupid']; $_SESSION['Items'.$identifier]->SalesPerson = $myrow['salesman']; - + if ($_SESSION['Items'.$identifier]->SpecialInstructions) { prnMsg($_SESSION['Items'.$identifier]->SpecialInstructions,'warn'); } @@ -318,7 +318,7 @@ AND stockmaster.controlled 1 AND stockmaster.discontinued=0 ORDER BY stockmaster.stockid"; - } else { +} else { $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units, @@ -662,8 +662,8 @@ if ($myrow=DB_fetch_array($KitResult)){ if ($myrow['mbflag']=='K'){/*It is a kit set item */ $sql = "SELECT bom.component, - bom.quantity - FROM bom +bom.quantity + FROM bom WHERE bom.parent='" . $NewItem . "' AND bom.effectiveto > '" . Date('Y-m-d') . "' AND bom.effectiveafter < '" . Date('Y-m-d') . "'"; @@ -741,19 +741,19 @@ '; echo ' - - - - - '; + + + + + '; if (in_array($_SESSION['PageSecurityArray']['OrderEntryDiscountPricing'], $_SESSION['AllowedPageSecurityTokens'])){ echo ' '; } echo ' - - ' . _('Total') . ' ' . _('Incl Tax') . ' - '; + + ' . _('Total') . ' ' . _('Incl Tax') . ' + '; $_SESSION['Items'.$identifier]->total = 0; $_SESSION['Items'.$identifier]->totalVolume = 0; @@ -880,7 +880,7 @@ if (!isset($_POST['SalesPerson']) AND $_SESSION['SalesmanLogin']!=NULL ){ $_SESSION['Items'.$identifier]->SalesPerson = $_SESSION['SalesmanLogin']; } - + while ($SalesPersonRow = DB_fetch_array($SalesPeopleResult)){ if ($SalesPersonRow['salesmancode']==$_SESSION['Items'.$identifier]->SalesPerson){ echo '' . $SalesPersonRow['salesmanname'] . ''; @@ -888,7 +888,7 @@ echo '' . $SalesPersonRow['salesmanname'] . ''; } } - + echo ' '; echo ' @@ -1448,7 +1448,7 @@ qty, standardcost, show_on_inv_crds, -newqoh) +newqoh) VALUES ('" . $AssParts['component'] . "', 10, '" . $InvoiceNo . "', @@ -2224,13 +2224,13 @@ echo ' ' . _('ENTER PARTIAL DESCRIPTION') . ': +if (isset($_POST['Keywords'])) echo $_POST['Keywords']; +echo '" /> ' . _('OR') . ' ' . _('ENTER EXTRACT OF THE STOCK CODE') . ': +if (isset($_POST['StockCode'])) echo $_POST['StockCode']; +echo '" /> @@ -2376,13 +2376,13 @@ #end of page full new headings if } #end of while loop - echo ' '; +echo ' '; echo ''; echo ''; echo ''; echo ''; echo ''; - echo ' '; +echo ' '; echo ' '; echo ' '; @@ -2395,13 +2395,13 @@ else { /* show the quick entry form variable */ echo '' . _('USE THIS FORM TO ADD ITEMS QUICKLY IF THE ITEM CODES ARE ALREADY KNOWN') . ' '; - if (count($_SESSION['Items'.$identifier]->LineItems)==0) { - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - } +if (count($_SESSION['Items'.$identifier]->LineItems)==0) { +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; +} echo ' '; /*do not display colum unless customer requires po line number by sales order line*/ @@ -2420,11 +2420,11 @@ echo ' '; - echo ''; - echo ''; - echo ''; +echo ''; +echo ''; +echo ''; - } +} if ($_SESSION['Items'.$identifier]->ItemsOrdered >=1){ echo ' '; } Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/CreditStatus.php2012-12-18 23:00:00 UTC (rev 5765) @@ -151,7 +151,7 @@ - '; + '; $k=0; //row colour counter while ($myrow=DB_fetch_array($result)) { @@ -197,7 +197,7 @@ if (!isset($_GET['delete'])) { echo ''; - echo ''; +echo ''; echo ''; if (isset($SelectedReason) and ($InputError!=1)) { @@ -258,7 +258,7 @@ - + '; } //end if record deleted no point displaying form to add record include('includes/footer.inc'); Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/Credit_Invoice.php2012-12-18 23:00:00 UTC (rev 5765) @@ -57,14 +57,14 @@ stockmoves.loccode, locations.taxprovinceid, currencies.decimalplaces -FROM debtortrans INNER JOIN debtorsmaster +FROM debtortrans INNER JOIN debtorsmaster ON debtortrans.debtorno = debtorsmaster.debtorno -INNER JOIN custbranch +INNER JOIN custbranch ON debtortrans.branchcode = custbranch.branchcode AND debtortrans.debtorno = custbranch.debtorno -INNER JOIN currencies +INNER JOIN currencies ON debtorsmaster.currcode = currencies.currabrev -INNER JOIN stockmoves +INNER JOIN stockmoves ON stockmoves.transno=debtortrans.transno AND stockmoves.type=debtortrans.type INNER JOIN locations ON @@ -100,7 +100,7 @@ $_SESSION['CreditItems' . $identifier]->GetFreightTaxes(); $_SESSION['CreditItems' . $identifier]->CurrDecimalPlaces = $myrow['decimalplaces']; $_SESSION['CreditItems' . $identifier]->SalesPerson = $myrow['salesman']; - + DB_free_result($GetInvHdrResult); /*now populate the line items array with the stock movement records for the invoice*/ @@ -168,7 +168,7 @@ '', '', $myrow['standardcost']); - + $_SESSION['CreditItems' . $identifier]->GetExistingTaxes($LineNumber, $myrow['stkmoveno']); if ($myrow['controlled']==1){/* Populate the SerialItems array too*/ @@ -272,7 +272,7 @@ if (!isset($_POST['ProcessCredit'])) { echo ''; - echo ''; +echo ''; echo ''; @@ -521,7 +521,7 @@ /*Start an SQL transaction */ - + $Result = DB_Txn_Begin($db); $DefaultDispatchDate= FormatDateForSQL($DefaultDispatchDate); @@ -530,7 +530,7 @@ $SQL = "SELECT (ovamount+ovgst+ovfreight-ovdiscount-alloc) AS baltoallocate FROM debtortrans -WHERE transno=" . $_SESSION['ProcessingCredit'] . " +WHERE transno=" . $_SESSION['ProcessingCredit'] . " AND type=10"; $Result = DB_query($SQL,$db); $myrow = DB_fetch_row($Result); @@ -653,7 +653,7 @@ foreach ($_SESSION['CreditItems' . $identifier]->LineItems as $CreditLine) { if ($CreditLine->QtyDispatched >0){ - + $LocalCurrencyPrice= round(($CreditLine->Price / $_SESSION['CurrencyRate']),$_SESSION['CompanyRecord']['decimalplaces']); if ($CreditLine->MBflag=='M' oR $CreditLine->MBflag=='B'){ @@ -662,7 +662,7 @@ FROM locstock WHERE locstock.stockid='" . $CreditLine->StockID . "' AND loccode= '" . $_SESSION['CreditItems' . $identifier]->Location . "'"; - + $Result = DB_query($SQL, $db); if (DB_num_rows($Result)==1){ $LocQtyRow = DB_fetch_row($Result); @@ -677,10 +677,10 @@ if ($_POST['CreditType']=='Return'){ -/* some want this some do not +/* some want this some do not * We cannot use the orderlineno to update with as it could be different when added to the credit note than it was when the order was created * Also there could potentially be the same item on the order multiple times with different delivery dates - * So all up the SQL below is a bit hit and miss !! + * So all up the SQL below is a bit hit and miss !! * Probably right 99% of time with the item on the order only once */ $SQL = "UPDATE salesorderdetails @@ -689,8 +689,8 @@ WHERE orderno = '" . $_SESSION['CreditItems' . $identifier]->OrderNo . "' AND stkcode = '" . $CreditLine->StockID . "' AND quantity >=" . $CreditLine->QtyDispatched; - + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The sales order detail record could not be updated for the reduced quantity invoiced because'); $DbgMsg = _('The following SQL to update the sales order detail record was used'); $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); @@ -998,13 +998,13 @@ '" . $CreditLine->StandardCost . "', '" . ($QtyOnHandPrior + $CreditLine->QtyDispatched) . "', '" . $CreditLine->Narrative . "')"; - + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Stock movement records could not be inserted because'); $DbgMsg = _('The following SQL to insert the stock movement records was used'); $Result = DB_query($SQL, $db,$ErrMsg, $DbgMsg, true); /*Get the ID of the StockMove... */ $StkMoveNo = DB_Last_Insert_ID($db,'stockmoves','stkmoveno'); - + $SQL = "INSERT INTO stockmoves (stockid, type, transno, @@ -1038,7 +1038,7 @@ 0, '" . $QtyOnHandPrior . "', '" . $CreditLine->Narrative . "')"; - + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Stock movement records could not be inserted because'); $DbgMsg = _('The following SQL to insert the stock movement records was used'); $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true); @@ -1077,8 +1077,8 @@ '" . $QtyOnHandPrior . "', 1, '" . $CreditLine->Narrative . "')"; - + $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Stock movement records could not be inserted because'); $DbgMsg = _('The following SQL to insert the stock movement records for the purpose of display on the credit note was used'); @@ -1125,8 +1125,8 @@ AND salesanalysis.stockid = '" . $CreditLine->StockID . "' AND budgetoractual=1 AND salesanalysis.salesperson='" . $_SESSION['CreditItems' . $identifier]->SalesPerson . "' -GROUP BY stkcategory, -salesanalysis.area, +GROUP BY stkcategory, +salesanalysis.area, salesperson"; $ErrMsg = _('The count to check for existing Sales analysis records could not run because'); @@ -1527,9 +1527,9 @@ accountname FROM chartmaster INNER JOIN accountgroups ON chartmaster.group_=accountgroups.groupname -WHERE accountgroups.pandl=1 +WHERE accountgroups.pandl=1 ORDER BY chartmaster.accountcode"; - + $Result = DB_query($SQL,$db); while ($myrow = DB_fetch_array($Result)) { @@ -1554,7 +1554,7 @@ if (!isset($_POST['SalesPerson']) AND $_SESSION['SalesmanLogin']!=NULL ){ $_SESSION['CreditItems'.$identifier]->SalesPerson = $_SESSION['SalesmanLogin']; } - + while ($SalesPersonRow = DB_fetch_array($SalesPeopleResult)){ if ($SalesPersonRow['salesmancode']==$_SESSION['CreditItems'.$identifier]->SalesPerson){ echo '' . $SalesPersonRow['salesmanname'] . ''; @@ -1562,7 +1562,7 @@ echo '' . $SalesPersonRow['salesmanname'] . ''; } } - + echo ' '; echo ' @@ -1582,4 +1582,4 @@ echo ''; echo ''; include('includes/footer.inc'); -?> +?> No newline at end of file Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/Currencies.php2012-12-18 23:00:00 UTC (rev 5765) @@ -41,9 +41,9 @@ $i=1; $sql="SELECT count(currabrev) -FROM currencies +FROM currencies WHERE currabrev='".$_POST['Abbreviation']."'"; - + $result=DB_query($sql, $db); $myrow=DB_fetch_row($result); @@ -136,7 +136,7 @@ '" . $_POST['HundredsName'] . "', '" . filter_number_format($_POST['DecimalPlaces']) . "', '" . filter_number_format($_POST['ExchangeRate']) . "')"; - + $msg = _('The currency definition record has been added'); } //run the SQL from either of the above possibilites @@ -157,7 +157,7 @@ // PREVENT DELETES IF DEPENDENT RECORDS IN DebtorsMaster -$sql= "SELECT COUNT(*) FROM debtorsmaster +$sql= "SELECT COUNT(*) FROM debtorsmaster WHERE currcode = '" . $SelectedCurrency . "'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); @@ -166,7 +166,7 @@ prnMsg(_('Cannot delete this currency because customer accounts have been created referring to this currency') . ' ' . _('There are') . ' ' . $myrow[0] . ' ' . _('customer accounts that refer to this currency'),'warn'); } else { -$sql= "SELECT COUNT(*) FROM suppliers +$sql= "SELECT COUNT(*) FROM suppliers WHERE suppliers.currcode = '".$SelectedCurrency."'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); @@ -174,7 +174,7 @@ prnMsg(_('Cannot delete this currency because supplier accounts have been created referring to this currency') . ' ' . _('There are') . ' ' . $myrow[0] . ' ' . _('supplier accounts that refer to this currency'),'warn'); } else { -$sql= "SELECT COUNT(*) FROM banktrans +$sql= "SELECT COUNT(*) FROM banktrans WHERE currcode = '" . $SelectedCurrency . "'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); @@ -201,12 +201,12 @@ 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, +$sql = "SELECT currency, +currabrev, +country, +hundredsname, rate, -decimalplaces +decimalplaces FROM currencies"; $result = DB_query($sql, $db); @@ -313,7 +313,7 @@ if (!isset($_GET['delete'])) { echo ''; - echo ''; +echo ''; echo ''; if (isset($SelectedCurrency) AND $SelectedCurrency!='') { @@ -405,7 +405,7 @@ - + '; } //end if record deleted no point displaying form to add record Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/CustEDISetup.php2012-12-18 23:00:00 UTC (rev 5765) @@ -129,7 +129,7 @@ echo ' '._('Customer EDI Reference') . ': '; +' tabindex="3" type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '" /> '; echo ' '._('EDI Communication Method') . ': '; @@ -146,7 +146,7 @@ echo ' '._('FTP Server or Email Address') . ': '; +' tabindex="5" type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '" /> '; if ($myrow['editransport']=='ftp'){ @@ -158,7 +158,7 @@ echo ' - + '; include('includes/footer.inc'); Modified: trunk/CustLoginSetup.php =================================================================== --- trunk/CustLoginSetup.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/CustLoginSetup.php2012-12-18 23:00:00 UTC (rev 5765) @@ -162,7 +162,7 @@ ' . _('Email Address') .': - + ' . _('Branch Code') . ': '; @@ -272,7 +272,7 @@ - + '; if (isset($_GET['SelectedUser'])) { Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/CustomerAllocations.php2012-12-18 23:00:00 UTC (rev 5765) @@ -226,12 +226,12 @@ debtortrans.diffonexch, debtortrans.alloc, currencies.decimalplaces -FROM debtortrans INNER JOIN systypes +FROM debtortrans INNER JOIN systypes ON debtortrans.type = systypes.typeid -INNER JOIN debtorsmaster -ON debtortrans.debtorno = debtorsmaster.debtorno -INNER JOIN currencies -ON debtorsmaster.currcode=currencies.currabrev +INNER JOIN debtorsmaster +ON debtortrans.debtorno = debtorsmaster.debtorno +INNER JOIN currencies +ON debtorsmaster.currcode=currencies.currabrev WHERE debtortrans.id='" . $_POST['AllocTrans'] . "'"; $Result = DB_query($SQL,$db); $myrow = DB_fetch_array($Result); @@ -291,13 +291,13 @@ amt, custallocns.id AS allocid FROM debtortrans INNER JOIN systypes -ON debtortrans.type = systypes.typeid +ON debtortrans.type = systypes.typeid INNER JOIN custallocns ON debtortrans.id=custallocns.transid_allocto -WHERE custallocns.transid_allocfrom='" . $_POST['AllocTrans'] . "' +WHERE custallocns.transid_allocfrom='" . $_POST['AllocTrans'] . "' AND debtorno='" . $_SESSION['Alloc']->DebtorNo . "' ORDER BY debtortrans.trandate"; - + $Result=DB_query($SQL,$db); while ($myrow=DB_fetch_array($Result)) { @@ -337,7 +337,7 @@ if (isset($_POST['AllocTrans'])) { // Page called with trans number echo ''; - echo ''; +echo ''; echo ''; echo ''; @@ -423,7 +423,7 @@ $j++; echo ' - + '._('LEFT TO ALLOCATE').' ' . LOCALE_NUMBER_FORMAT(-$_SESSION['ALLOC']->TRANSAMT-$TOTALALLOCATED,$_SESSION['ALLOC']->CURRDECIMALPLACES).' @@ -435,8 +435,8 @@ - - '; + +'; } elseif (isset($_GET['DebtorNo'])) { // Page called with customer code @@ -456,14 +456,14 @@ debtortrans.alloc, currencies.decimalplaces AS currdecimalplaces, debtorsmaster.currcode -FROM debtortrans INNER JOIN debtorsmaster +FROM debtortrans INNER JOIN debtorsmaster ON debtortrans.debtorno=debtorsmaster.debtorno -INNER JOIN systypes +INNER JOIN systypes ON debtortrans.type=systypes.typeid -INNER JOIN currencies +INNER JOIN currencies ON debtorsmaster.currcode=currencies.currabrev -WHERE debtortrans.debtorno='" . $_GET['DebtorNo'] . "' -AND (debtortrans.type=12 OR debtortrans.type=11) +WHERE debtortrans.debtorno='" . $_GET['DebtorNo'] . "' +AND (debtortrans.type=12 OR debtortrans.type=11) AND debtortrans.settled=0 ORDER BY debtortrans.id"; $result = DB_query($SQL,$db); @@ -499,7 +499,7 @@ /* Page called with no parameters */ unset($_SESSION['Alloc']->Allocs); unset($_SESSION['Alloc']); - + $SQL = "SELECT debtortrans.id, debtortrans.transno, systypes.typename, @@ -513,14 +513,14 @@ debtortrans.alloc, debtorsmaster.currcode, currencies.decimalplaces AS currdecimalplaces -FROM debtortrans INNER JOIN debtorsmaster -ON debtortrans.debtorno=debtorsmaster.debtorno -INNER JOIN systypes -ON debtortrans.type=systypes.typeid -INNER JOIN currencies +FROM debtortrans INNER JOIN debtorsmaster +ON debtortrans.debtorno=debtorsmaster.debtorno +INNER JOIN systypes +ON debtortrans.type=systypes.typeid +INNER JOIN currencies ON debtorsmaster.currcode=currencies.currabrev -WHERE (debtortrans.type=12 OR debtortrans.type=11) -AND debtortrans.settled=0 +WHERE (debtortrans.type=12 OR debtortrans.type=11) +AND debtortrans.settled=0 AND debtortrans.ovamount= 10 +$sql = "SELECT typeid, +typename +FROM systypes +WHERE typeid >= 10 AND typeid No newline at end of file Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php2012-12-18 08:41:23 UTC (rev 5764) +++ trunk/CustomerTypes.php2012-12-18 23:00:00 UTC (rev 5765) @@ -48,8 +48,8 @@ } $checksql = "SELECT count(*) - FROM debtortype - WHERE typename = '" . $_POST['typename'] . "'"; + FROM debtortype + WHERE typename = '" . $_POST['typename'] . "'"; $checkresult=DB_query($checksql, $db); $checkrow=DB_fetch_row($checkresult); if ($checkrow[0]>0 and !isset($SelectedType)) { @@ -72,8 +72,8 @@ // First check the type is not being duplicated $checkSql = "SELECT count(*) - FROM debtortype - WHERE typename = '" . $_POST['typename'] . "'"; + FROM debtortype + WHERE typename = '" . $_POST['typename'] . "'"; $checkresult = DB_query($checkSql,$db); $checkrow = DB_fetch_row($checkresult); @@ -92,7 +92,7 @@ $msg = _('Customer type') . ' ' . $_POST["typename"] . ' ' . _('has been created'); $checkSql = "SELECT count(typeid) - FROM debtortype"; + FROM debtortype"; $result = DB_query($checkSql, $db); $row = DB_fetch_row($result); @@ -109,8 +109,8 @@ // Does it exist $checkSql = "SELECT count(*) - FROM debtortype - WHERE typeid = '" . $DefaultCustomerType . "'"; + FROM debtortype + WHERE typeid = '" . $DefaultCustomerType . "'"; $checkresult = DB_query($checkSql,$db); $checkrow = DB_fetch_row($checkresult); @@ -136,8 +136,8 @@ // Prevent delete if saletype exist in customer transactions $sql= "SELECT COUNT(*) - FROM debtortrans - WHERE debtortrans.type='".$SelectedType."'"; + FROM debtortrans + WHERE debtortrans.type='".$SelectedType."'"; $ErrMsg = _('The number of transactions using this customer type could not be retrieved'); $result = DB_query($sql,$db,$ErrMsg); @@ -160,7 +160,7 @@ if (DB_Num_Rows($result)>0){ $TypeRow = DB_fetch_array($result); $TypeName = $TypeRow['typename']; - + $sql="DELETE FROM debtortype WHERE typeid='".$SelectedType."'"; $ErrMsg = _('The Type record could not be deleted because'); $result = DB_query($sql,$db,$ErrMsg); @@ -208,9 +208,9 @@ ', $myrow[0], $myrow[1], -htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', +htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow[0], -htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', +htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow[0]); } //END WHILE LIST LOOP @@ -225,7 +225,7 @@ if (! isset($_GET['delete'])) { echo ''; - echo ''; +echo ''; echo ''; echo ' '; @@ -234,9 +234,9 @@ if ( isset($SelectedType) AND $SelectedType!='' ) { $sql = "SELECT typeid, - typename - FROM debtortype - WHERE typeid='".$SelectedType."'"; + typename +FROM debtortype +WHERE typeid='".$SelectedType."'"; $result = DB_query($sql, $db); $myrow = DB_fetch_array($result); @@ -246,7 +246,7 @@ echo ''; echo ''; -echo ' '; +echo ' '; // We dont allow the user to change an existing type code @@ -266,7 +266,7 @@ echo ' '; // close main table echo ' '; - echo ''; +echo ''; echo ''; } // end if us... [truncated message content] |
From: webERP D. <web...@li...> - 2012-12-19 11:01:59
|
Phil, Trailing whitespace is unanimously (well except it seems apart from you) considered a bad thing: http://programmers.stackexchange.com/questions/121555/why-is-trailing-whitespace-a-big-deal It does nothing for readability. I am currently trying to use some code analysis tools such as http://pear.php.net/package/PHP_CodeSniffer/redirected to improve the readability of the code. Your trailing whitespace interferes with these tools. I am not sure how you believe that is an attempt to destroy the project? Perhaps you can explain? Thanks Tim On 18 December 2012 23:18, webERP Developers <web...@li...> wrote: > > Tim, > > Whilst I am a bit pedantic about the code, I am thinking that a commit like > this has the potential to destroy the system and it is simply not possible > to reveiw this much work. > > For the sake of the odd bit of white-space which is mostly helpful to easy > reading of the code I am intending to reverse this commital. > > I am concerned that you are in tail spin mode and are hell bent on > destroying the project - given your other interests outside of webERP. If > this is the case then the decision I must make in relation to protection of > our code base are obvious. > > If you just cannot tow the line then let me know and I will remove you > altogether. > > Regards > > Phil > > Phil Daintree > Logic Works Ltd > http://www.logicworks.co.nz > Cell: +64 (0)275 567890 > Skype: daintree > > On Wed 19/12/12 11:00 AM , tim...@us... wrote: > > Revision: 5765 > http://sourceforge.net/p/web-erp/reponame/5765">http://sourceforge.net/p/web-erp/reponame/5765 > Author: tim_schofield > Date: 2012-12-18 23:00:00 +0000 (Tue, 18 Dec 2012) > Log Message: > ----------- > Remove superfluous whitesdpace from the end of lines. Originally input by > Phil Daintree to inflate his contribution to project > > Modified Paths: > -------------- > trunk/AccountGroups.php > trunk/AccountSections.php > trunk/AddCustomerContacts.php > trunk/AddCustomerNotes.php > trunk/AddCustomerTypeNotes.php > trunk/AgedDebtors.php > trunk/AgedSuppliers.php > trunk/Areas.php > trunk/AuditTrail.php > trunk/BOMExtendedQty.php > trunk/BOMIndented.php > trunk/BOMIndentedReverse.php > trunk/BOMInquiry.php > trunk/BOMListing.php > trunk/BOMs.php > trunk/BackupDatabase.php > trunk/BankAccounts.php > trunk/BankMatching.php > trunk/BankReconciliation.php > trunk/COGSGLPostings.php > trunk/CompanyPreferences.php > trunk/ConfirmDispatchControlled_Invoice.php > trunk/ConfirmDispatch_Invoice.php > trunk/ContractBOM.php > trunk/ContractCosting.php > trunk/ContractOtherReqts.php > trunk/CopyBOM.php > trunk/CounterReturns.php > trunk/CounterSales.php > trunk/CreditStatus.php > trunk/Credit_Invoice.php > trunk/Currencies.php > trunk/CustEDISetup.php > trunk/CustLoginSetup.php > trunk/CustomerAllocations.php > trunk/CustomerBranches.php > trunk/CustomerInquiry.php > trunk/CustomerReceipt.php > trunk/CustomerTransInquiry.php > trunk/CustomerTypes.php > trunk/Customers.php > trunk/DailyBankTransactions.php > trunk/DailySalesInquiry.php > trunk/DebtorsAtPeriodEnd.php > trunk/DeliveryDetails.php > trunk/Departments.php > trunk/DiscountCategories.php > trunk/DiscountMatrix.php > trunk/EDISendInvoices.php > trunk/EDISendInvoices_Reece.php > trunk/EmailConfirmation.php > trunk/EmailCustTrans.php > trunk/ExchangeRateTrend.php > trunk/Factors.php > trunk/FixedAssetCategories.php > trunk/FixedAssetDepreciation.php > trunk/FixedAssetItems.php > trunk/FixedAssetLocations.php > trunk/FixedAssetRegister.php > trunk/FixedAssetTransfer.php > trunk/FormDesigner.php > trunk/FreightCosts.php > trunk/GLAccountCSV.php > trunk/GLAccountInquiry.php > trunk/GLAccountReport.php > trunk/GLAccounts.php > trunk/GLBalanceSheet.php > trunk/GLBudgets.php > trunk/GLCodesInquiry.php > trunk/GLJournal.php > trunk/GLProfit_Loss.php > trunk/GLTagProfit_Loss.php > trunk/GLTags.php > trunk/GLTrialBalance.php > trunk/GLTrialBalance_csv.php > trunk/GeocodeSetup.php > trunk/GetStockImage.php > trunk/GoodsReceived.php > trunk/InternalStockCategoriesByRole.php > trunk/InternalStockRequest.php > trunk/InternalStockRequestAuthorisation.php > trunk/InternalStockRequestFulfill.php > trunk/InventoryPlanning.php > trunk/InventoryPlanningPrefSupplier.php > trunk/InventoryQuantities.php > trunk/InventoryValuation.php > trunk/Locations.php > trunk/MRP.php > trunk/MRPCalendar.php > trunk/MRPCreateDemands.php > trunk/MRPDemandTypes.php > trunk/MRPDemands.php > trunk/MRPPlannedPurchaseOrders.php > trunk/MRPPlannedWorkOrders.php > trunk/MRPReport.php > trunk/MRPReschedules.php > trunk/MRPShortages.php > trunk/NoSalesItems.php > trunk/OffersReceived.php > trunk/OutstandingGRNs.php > trunk/PDFBankingSummary.php > trunk/PDFChequeListing.php > trunk/PDFCustTransListing.php > trunk/PDFCustomerList.php > trunk/PDFDIFOT.php > trunk/PDFDeliveryDifferences.php > trunk/PDFGLJournal.php > trunk/PDFGrn.php > trunk/PDFLowGP.php > trunk/PDFOrderStatus.php > trunk/PDFOrdersInvoiced.php > trunk/PDFPeriodStockTransListing.php > trunk/PDFPickingList.php > trunk/PDFPriceList.php > trunk/PDFPrintLabel.php > trunk/PDFQuotation.php > trunk/PDFQuotationPortrait.php > trunk/PDFReceipt.php > trunk/PDFRemittanceAdvice.php > trunk/PDFStockCheckComparison.php > trunk/PDFStockLocTransfer.php > trunk/PDFStockNegatives.php > trunk/PDFStockTransfer.php > trunk/PDFSuppTransListing.php > trunk/POReport.php > trunk/PO_AuthorisationLevels.php > trunk/PO_AuthoriseMyOrders.php > trunk/PO_Chk_ShiptRef_JobRef.php > trunk/PO_Header.php > trunk/PO_Items.php > trunk/PO_OrderDetails.php > trunk/PO_PDFPurchOrder.php > trunk/PO_SelectOSPurchOrder.php > trunk/PO_SelectPurchOrder.php > trunk/PageSecurity.php > trunk/PaymentMethods.php > trunk/PaymentTerms.php > trunk/Payments.php > trunk/PcAssignCashToTab.php > trunk/PcAuthorizeExpenses.php > trunk/PcClaimExpensesFromTab.php > trunk/PcExpenses.php > trunk/PcExpensesTypeTab.php > trunk/PcReportTab.php > trunk/PcTabs.php > trunk/PcTypeTabs.php > trunk/PeriodsInquiry.php > trunk/Prices.php > trunk/PricesBasedOnMarkUp.php > trunk/PricesByCost.php > trunk/Prices_Customer.php > trunk/PrintCheque.php > trunk/PrintCustOrder.php > trunk/PrintCustOrder_generic.php > trunk/PrintCustStatements.php > trunk/PrintCustTrans.php > trunk/PrintCustTransPortrait.php > trunk/PurchData.php > trunk/RecurringSalesOrders.php > trunk/ReorderLevel.php > trunk/ReorderLevelLocation.php > trunk/ReprintGRN.php > trunk/ReverseGRN.php > trunk/SMTPServer.php > trunk/SalesAnalReptCols.php > trunk/SalesAnalRepts.php > trunk/SalesByTypePeriodInquiry.php > trunk/SalesCategories.php > trunk/SalesCategoryPeriodInquiry.php > trunk/SalesGLPostings.php > trunk/SalesGraph.php > trunk/SalesInquiry.php > trunk/SalesPeople.php > trunk/SalesTopItemsInquiry.php > trunk/SalesTypes.php > trunk/SecurityTokens.php > trunk/SelectAsset.php > trunk/SelectCompletedOrder.php > trunk/SelectContract.php > trunk/SelectCreditItems.php > trunk/SelectCustomer.php > trunk/SelectGLAccount.php > trunk/SelectOrderItems.php > trunk/SelectProduct.php > trunk/SelectRecurringSalesOrder.php > trunk/SelectSalesOrder.php > trunk/SelectSupplier.php > trunk/SelectWorkOrder.php > trunk/ShipmentCosting.php > trunk/Shipments.php > trunk/Shippers.php > trunk/Shipt_Select.php > trunk/ShiptsList.php > trunk/SpecialOrder.php > trunk/StockAdjustments.php > trunk/StockAdjustmentsControlled.php > trunk/StockCategories.php > trunk/StockCheck.php > trunk/StockCostUpdate.php > trunk/StockCounts.php > trunk/StockLocMovements.php > trunk/StockLocStatus.php > trunk/StockLocTransfer.php > trunk/StockLocTransferReceive.php > trunk/StockMovements.php > trunk/StockQties_csv.php > trunk/StockQuantityByDate.php > trunk/StockReorderLevel.php > trunk/StockSerialItems.php > trunk/StockStatus.php > trunk/StockTransfers.php > trunk/StockUsage.php > trunk/Stocks.php > trunk/SuppContractChgs.php > trunk/SuppCreditGRNs.php > trunk/SuppFixedAssetChgs.php > trunk/SuppInvGRNs.php > trunk/SuppLoginSetup.php > trunk/SuppPaymentRun.php > trunk/SuppPriceList.php > trunk/SuppShiptChgs.php > trunk/SuppTransGLAnalysis.php > trunk/SupplierAllocations.php > trunk/SupplierBalsAtPeriodEnd.php > trunk/SupplierContacts.php > trunk/SupplierCredit.php > trunk/SupplierInquiry.php > trunk/SupplierInvoice.php > trunk/SupplierPriceList.php > trunk/SupplierTenderCreate.php > trunk/SupplierTenders.php > trunk/SupplierTransInquiry.php > trunk/SupplierTypes.php > trunk/Suppliers.php > trunk/SystemParameters.php > trunk/Tax.php > trunk/TaxAuthorities.php > trunk/TaxAuthorityRates.php > trunk/TaxCategories.php > trunk/TaxGroups.php > trunk/TaxProvinces.php > trunk/TopItems.php > trunk/UnitsOfMeasure.php > trunk/UpgradeDatabase.php > trunk/UserSettings.php > trunk/WOSerialNos.php > trunk/WWW_Access.php > trunk/WWW_Users.php > trunk/WhereUsedInquiry.php > trunk/WorkCentres.php > trunk/WorkOrderCosting.php > trunk/WorkOrderEntry.php > trunk/WorkOrderIssue.php > trunk/WorkOrderReceive.php > trunk/Z_BottomUpCosts.php > trunk/Z_ChangeBranchCode.php > trunk/Z_ChangeLocationCode.php > trunk/Z_ChangeStockCode.php > trunk/Z_CheckDebtorsControl.php > trunk/Z_CheckGLTransBalance.php > trunk/Z_CreateCompanyTemplateFile.php > trunk/Z_CurrencyDebtorsBalances.php > trunk/Z_CurrencySuppliersBalances.php > trunk/Z_DataExport.php > trunk/Z_DeleteCreditNote.php > trunk/Z_DeleteInvoice.php > trunk/Z_DeleteOldPrices.php > trunk/Z_DeleteSalesTransActions.php > trunk/Z_ImportChartOfAccounts.php > trunk/Z_ImportFixedAssets.php > trunk/Z_ImportGLAccountGroups.php > trunk/Z_ImportGLAccountSections.php > trunk/Z_ImportPartCodes.php > trunk/Z_ImportStocks.php > trunk/Z_MakeNewCompany.php > trunk/Z_MakeStockLocns.php > trunk/Z_RePostGLFromPeriod.php > trunk/Z_ReverseSuppPaymentRun.php > trunk/Z_UpdateChartDetailsBFwd.php > trunk/Z_Upgrade3.10.php > trunk/Z_Upgrade_3.01-3.02.php > trunk/Z_Upgrade_3.04-3.05.php > trunk/Z_Upgrade_3.05-3.06.php > trunk/Z_Upgrade_3.07-3.08.php > trunk/Z_Upgrade_3.08-3.09.php > trunk/Z_Upgrade_3.09-3.10.php > trunk/Z_Upgrade_3.10-3.11.php > trunk/Z_Upgrade_3.11-4.00.php > trunk/Z_poAdmin.php > trunk/Z_poEditLangHeader.php > trunk/Z_poEditLangModule.php > trunk/Z_poEditLangRemaining.php > trunk/Z_poRebuildDefault.php > trunk/geo_displaymap_customers.php > trunk/geocode.php > trunk/includes/Add_SerialItems.php > trunk/includes/Add_SerialItemsOut.php > trunk/includes/ConnectDB.inc > trunk/includes/ConnectDB_mysql.inc > trunk/includes/ConnectDB_mysqli.inc > trunk/includes/ConnectDB_postgres.inc > trunk/includes/ConstructSQLForUserDefinedSalesReport.inc > trunk/includes/CountriesArray.php > trunk/includes/DateFunctions.inc > trunk/includes/DefineCartClass.php > trunk/includes/DefineContractClass.php > trunk/includes/DefineJournalClass.php > trunk/includes/DefineLabelClass.php > trunk/includes/DefineOfferClass.php > trunk/includes/DefineReceiptClass.php > trunk/includes/DefineSpecialOrderClass.php > trunk/includes/DefineStockAdjustment.php > trunk/includes/DefineStockTransfers.php > trunk/includes/DefineSuppAllocsClass.php > trunk/includes/DefineSuppTransClass.php > trunk/includes/DefineTenderClass.php > trunk/includes/EDIconfig.inc > trunk/includes/FreightCalculation.inc > trunk/includes/GetConfig.php > trunk/includes/GetSalesTransGLCodes.inc > trunk/includes/InputSerialItems.php > trunk/includes/InputSerialItemsExisting.php > trunk/includes/InputSerialItemsKeyed.php > trunk/includes/InputSerialItemsSequential.php > trunk/includes/LanguageSetup.php > trunk/includes/LanguagesArray.php > trunk/includes/Login.php > trunk/includes/MiscFunctions.php > trunk/includes/OutputSerialItems.php > trunk/includes/PDFAgedDebtorsPageHeader.inc > trunk/includes/PDFDeliveryDifferencesPageHeader.inc > trunk/includes/PDFOrderPageHeader_generic.inc > trunk/includes/PDFOrderStatusPageHeader.inc > trunk/includes/PDFOrdersInvoicedPageHeader.inc > trunk/includes/PDFPaymentRun_PymtFooter.php > trunk/includes/PDFProfitAndLossPageHeader.inc > trunk/includes/PDFSalesAnalPageHeader.inc > trunk/includes/PDFSalesAnalysis.inc > trunk/includes/PDFSalesOrder_generic.inc > trunk/includes/PDFStarter.php > trunk/includes/PDFStatementPageHeader.inc > trunk/includes/PDFTopItemsHeader.inc > trunk/includes/PDFTransPageHeader.inc > trunk/includes/PDFTransPageHeaderPortrait.inc > trunk/includes/PDFTrialBalancePageHeader.inc > trunk/includes/PO_ReadInOrder.inc > trunk/includes/PO_UnsetFormVbls.php > trunk/includes/SelectOrderItems_IntoCart.inc > trunk/includes/Z_POSDataCreation.php > trunk/includes/class.pdf.php > trunk/includes/footer.inc > trunk/includes/header.inc > trunk/includes/htmlMimeMail.php > trunk/includes/session.inc > trunk/index.php > trunk/report_runner.php > > Modified: trunk/AccountGroups.php > =================================================================== > --- trunk/AccountGroups.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/AccountGroups.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -63,7 +63,7 @@ > $i=1; > > $sql="SELECT count(groupname) > -FROM accountgroups > +FROM accountgroups > WHERE groupname='".$_POST['GroupName']."'"; > > $DbgMsg = _('The SQL that was used to retrieve the information was'); > @@ -191,7 +191,7 @@ > prnMsg( _('Cannot delete this account group because general ledger accounts > have been created using this group'),'warn'); > echo '<br />' . _('There are') . ' ' . $myrow['groups'] . ' ' . _('general > ledger accounts that refer to this account group'); > echo '<br /><form method="post" id="AccountGroups" action="' . > htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '">'; > - > + > echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" > />'; > echo '<table class="selection">'; > echo '<input type="hidden" name="OriginalAccountGroup" value="' . > $_GET['SelectedAccountGroup'] . '" />'; > @@ -313,7 +313,7 @@ > if (!isset($_GET['delete'])) { > > echo '<form method="post" id="AccountGroups" action="' . > htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '">'; > - echo '<div><br />'; > +echo '<div><br />'; > echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" > />'; > > if (isset($_GET['SelectedAccountGroup'])) { > @@ -347,10 +347,10 @@ > echo '<tr> > <th colspan="2">' . _('Edit Account Group Details') . '</th> > </tr>'; > - echo '<tr> > - <td><input type="hidden" name="SelectedAccountGroup" value="' . > $_GET['SelectedAccountGroup'] . '" /></td> > - <td><input type="hidden" name="GroupName" value="' . $_POST['GroupName'] . > '" /></td> > - </tr>'; > +echo '<tr> > + <td><input type="hidden" name="SelectedAccountGroup" value="' . > $_GET['SelectedAccountGroup'] . '" /></td> > + <td><input type="hidden" name="GroupName" value="' . $_POST['GroupName'] . > '" /></td> > + </tr>'; > > echo '<tr> > <td>' . _('Account Group') . ':' . '</td> > @@ -358,7 +358,7 @@ > </tr>'; > > } elseif (!isset($_POST['MoveGroup'])) { //end of if > $_POST['SelectedAccountGroup'] only do the else when a new record is being > entered > - > + > if (!isset($_POST['SelectedAccountGroup'])){ > $_POST['SelectedAccountGroup']=''; > } > @@ -379,10 +379,10 @@ > echo '<tr> > <th colspan="2">' . _('New Account Group Details') . '</th> > </tr>'; > - echo '<tr> > - <td><input type="hidden" name="SelectedAccountGroup" value="' . > $_POST['SelectedAccountGroup'] . '" /></td> > - </tr>'; > echo '<tr> > + <td><input type="hidden" name="SelectedAccountGroup" value="' . > $_POST['SelectedAccountGroup'] . '" /></td> > +</tr>'; > +echo '<tr> > <td>' . _('Account Group Name') . ':' . '</td> > <td><input tabindex="1" ' . (in_array('GroupName',$Errors) ? > 'class="inputerror"' : '' ) .' type="text" name="GroupName" size="50" > maxlength="50" value="' . $_POST['GroupName'] . '" /></td> > </tr>'; > @@ -455,7 +455,7 @@ > echo '</table><br />'; > > echo '<script > type="text/javascript">defaultControl(document.forms[0].GroupName);</script>'; > - echo '</div>'; > +echo '</div>'; > echo '</form>'; > > } //end if record deleted no point displaying form to add record > > Modified: trunk/AccountSections.php > =================================================================== > --- trunk/AccountSections.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/AccountSections.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -126,9 +126,9 @@ > $myrow = DB_fetch_array($result); > if ($myrow['sections']>0) { > prnMsg( _('Cannot delete this account section because general ledger > accounts groups have been created using this section'),'warn'); > - echo '<div>'; > +echo '<div>'; > echo '<br />' . _('There are') . ' ' . $myrow['sections'] . ' ' . _('general > ledger accounts groups that refer to this account section'); > - echo '</div>'; > +echo '</div>'; > > } else { > //Fetch section name > @@ -205,7 +205,7 @@ > if (! isset($_GET['delete'])) { > > echo '<form method="post" id="AccountSections" action="' . > htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '">'; > - echo '<div><br />'; > +echo '<div><br />'; > echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" > />'; > > if (isset($_GET['SelectedSectionID'])) { > @@ -266,7 +266,7 @@ > } else { > echo '<script > type="text/javascript">defaultControl(document.AccountSections.SectionName);</script>'; > } > - echo '</div>'; > +echo '</div>'; > echo '</form>'; > > } //end if record deleted no point displaying form to add record > > Modified: trunk/AddCustomerContacts.php > =================================================================== > --- trunk/AddCustomerContacts.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/AddCustomerContacts.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -171,7 +171,7 @@ > if (!isset($_GET['delete'])) { > > echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], > ENT_QUOTES, 'UTF-8') . '?DebtorNo='.$DebtorNo.'">'; > - echo '<div>'; > +echo '<div>'; > echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" > />'; > > if (isset($Id)) { > @@ -253,7 +253,7 @@ > } else { > echo '<td><textarea name="ContactNotes" rows="3" > cols="40"></textarea></td>'; > } > - echo '</tr>'; > +echo '</tr>'; > echo '<tr> > <td colspan="2"> > <div class="centre"> > @@ -262,7 +262,7 @@ > </td> > </tr> > </table> > - </div> > +</div> > </form>'; > > } //end if record deleted no point displaying form to add record > > Modified: trunk/AddCustomerNotes.php > =================================================================== > --- trunk/AddCustomerNotes.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/AddCustomerNotes.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -162,7 +162,7 @@ > if (!isset($_GET['delete'])) { > > echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], > ENT_QUOTES, 'UTF-8') . '?DebtorNo=' . $DebtorNo . '">'; > - echo '<div>'; > +echo '<div>'; > echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" > />'; > > if (isset($Id)) { > @@ -244,7 +244,7 @@ > </td> > </tr> > </table> > - </div> > +</div> > </form>'; > > } //end if record deleted no point displaying form to add record > > Modified: trunk/AddCustomerTypeNotes.php > =================================================================== > --- trunk/AddCustomerTypeNotes.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/AddCustomerTypeNotes.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -154,7 +154,7 @@ > if (!isset($_GET['delete'])) { > > echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], > ENT_QUOTES, 'UTF-8') . '?DebtorType='.$DebtorType.'">'; > - echo '<div>'; > +echo '<div>'; > echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" > />'; > > if (isset($Id)) { > @@ -220,7 +220,7 @@ > <div class="centre"> > <input type="submit" name="submit" value="'. _('Enter Information').'" /> > </div> > - </div> > +</div> > </form>'; > > } //end if record deleted no point displaying form to add record > > Modified: trunk/AgedDebtors.php > =================================================================== > --- trunk/AgedDebtors.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/AgedDebtors.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -448,7 +448,7 @@ > /*if $FromCriteria is not set then show a form to allow input*/ > > echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, > 'UTF-8') . '" method="post"> > - <div> > +<div> > <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > <table class="selection"> > <tr> > @@ -510,8 +510,8 @@ > <div class="centre"> > <input tabindex="7" type="submit" name="PrintPDF" value="' . _('Print PDF') > , '" /> > </div> > - </div> > - </form>'; > +</div> > +</form>'; > } > include('includes/footer.inc'); > } /*end of else not PrintPDF */ > > Modified: trunk/AgedSuppliers.php > =================================================================== > --- trunk/AgedSuppliers.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/AgedSuppliers.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -280,7 +280,7 @@ > /*if $FromCriteria is not set then show a form to allow input*/ > > echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, > 'UTF-8') . '" method="post"> > - <div> > +<div> > <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > <table class="selection"> > <tr> > @@ -326,10 +326,10 @@ > <div class="centre"> > <input tabindex="6" type="submit" name="PrintPDF" value="' . _('Print PDF') > . '" /> > </div> > - </div> > - </form>'; > +</div> > +</form>'; > } > include('includes/footer.inc'); > } /*end of else not PrintPDF */ > > -?> > +?> > \ No newline at end of file > > Modified: trunk/Areas.php > =================================================================== > --- trunk/Areas.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/Areas.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -180,7 +180,7 @@ > if (!isset($_GET['delete'])) { > > echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], > ENT_QUOTES, 'UTF-8') . '">'; > - echo '<div><br />'; > +echo '<div><br />'; > echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" > />'; > > if (isset($SelectedArea)) { > @@ -231,7 +231,7 @@ > </td> > </tr> > </table> > - </div> > +</div> > </form>'; > > } //end if record deleted no point displaying form to add record > > Modified: trunk/AuditTrail.php > =================================================================== > --- trunk/AuditTrail.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/AuditTrail.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -117,7 +117,7 @@ > $SQLString = str_replace('SET','',$SQLString); > $SQLString = str_replace('WHERE',',',$SQLString); > $SQLString = str_replace('AND',',',$SQLString); > -$FieldArray = > preg_split("/[[:space:]]*([[:alnum:].]+[[:space:]]*=[[:space:]]*(?:'[^']*'|[[:digit:].]+))[[:space:]]*,/", > $SQLString, 0, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); > +$FieldArray = > preg_split("/[[:space:]]*([[:alnum:].]+[[:space:]]*=[[:space:]]*(?:'[^']*'|[[:digit:].]+))[[:space:]]*,/", > $SQLString, 0, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); > for ($i=0; $i<sizeof($FieldArray); $i++) { > $Assigment = explode('=', $FieldArray[$i]); > $_SESSION['SQLString']['fields'][$i] = $Assigment[0]; > @@ -138,11 +138,11 @@ > $_SESSION['SQLString']['fields'][0] = $Assigment[0]; > $_SESSION['SQLString']['values'][0] = $Assigment[1]; > } > - > + > if (mb_strlen($ContainingText) > 0) { > - $ContainingText = " AND querystring LIKE '%" . $ContainingText . "%' "; > +$ContainingText = " AND querystring LIKE '%" . $ContainingText . "%' "; > }else{ > - $ContainingText = ""; > +$ContainingText = ""; > } > > if ($_POST['SelectedUser'] == 'ALL') { > > Modified: trunk/BOMExtendedQty.php > =================================================================== > --- trunk/BOMExtendedQty.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BOMExtendedQty.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -14,7 +14,7 @@ > $FontSize=9; > $PageNumber=1; > $line_height=12; > - > PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width,$Right_Margin); > +PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width,$Right_Margin); > > if (!$_POST['Quantity'] or > !is_numeric(filter_number_format($_POST['Quantity']))) { > $_POST['Quantity'] = 1; > @@ -250,8 +250,8 @@ > echo '<p class="page_title_text"><img > src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . > _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; > > echo '<form action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" > method="post"> > - <div> > - <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > +<div> > +<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > <table class="selection"> > <tr> > <td>' . _('Part') . ':</td> > @@ -282,8 +282,8 @@ > <br /> > <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> > </div> > - </div> > - </form>'; > +</div> > +</form>'; > > include('includes/footer.inc'); > > > Modified: trunk/BOMIndented.php > =================================================================== > --- trunk/BOMIndented.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BOMIndented.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -11,7 +11,7 @@ > include('includes/PDFStarter.php'); > $pdf->addInfo('Title',_('Indented BOM Listing')); > $pdf->addInfo('Subject',_('Indented BOM Listing')); > - $FontSize=9; > +$FontSize=9; > $PageNumber=1; > $line_height=12; > > @@ -49,7 +49,7 @@ > CONCAT(bom.parent,bom.component) AS sortpart > FROM bom > WHERE bom.parent ='" . $_POST['Part'] . "' > - AND bom.effectiveto >= NOW() > + AND bom.effectiveto >= NOW() > AND bom.effectiveafter <= NOW()"; > $result = DB_query($sql,$db); > > @@ -76,7 +76,7 @@ > bom.quantity > FROM bom > WHERE bom.parent ='" . $_POST['Part'] . "' > - AND bom.effectiveto >= NOW() > + AND bom.effectiveto >= NOW() > AND bom.effectiveafter <= NOW()"; > $result = DB_query($sql,$db); > //echo "<br />sql is $sql<br />"; > @@ -132,7 +132,7 @@ > CONCAT(passbom2.sortpart,bom.component) AS sortpart > FROM bom,passbom2 > WHERE bom.parent = passbom2.part > -AND bom.effectiveto >= NOW() > +AND bom.effectiveto >= NOW() > AND bom.effectiveafter <= NOW()"; > $result = DB_query($sql,$db); > > @@ -152,27 +152,27 @@ > prnMsg( _('The Indented BOM Listing 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; > + echo '<br />' . $sql; > } > include('includes/footer.inc'); > exit; > } > > > - $sql = "SELECT stockmaster.stockid, > - stockmaster.description > - FROM stockmaster > - WHERE stockid = " . "'" . $_POST['Part'] . "'"; > +$sql = "SELECT stockmaster.stockid, > + stockmaster.description > + FROM stockmaster > + WHERE stockid = " . "'" . $_POST['Part'] . "'"; > $result = DB_query($sql,$db); > $myrow = DB_fetch_array($result,$db); > $assembly = $_POST['Part']; > $assemblydesc = $myrow['description']; > > PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width, > - $Right_Margin,$assemblydesc); > + $Right_Margin,$assemblydesc); > > - $Tot_Val=0; > - $sql = "SELECT tempbom.*, > +$Tot_Val=0; > +$sql = "SELECT tempbom.*, > stockmaster.description, > stockmaster.mbflag > FROM tempbom,stockmaster > @@ -184,7 +184,7 @@ > $fill = false; > $pdf->SetFillColor(224,235,255); > > -$ListCount = DB_num_rows($result); > +$ListCount = DB_num_rows($result); > > while ($myrow = DB_fetch_array($result,$db)){ > > @@ -196,7 +196,7 @@ > > > if ($_POST['Fill'] == 'yes'){ > - $fill=!$fill; > +$fill=!$fill; > } > > // Parameters for addTextWrap are defined in /includes/class.pdf.php > @@ -214,7 +214,7 @@ > > if ($YPos < $Bottom_Margin + $line_height){ > PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width, > - $Right_Margin,$assemblydesc); > + $Right_Margin,$assemblydesc); > } > > } /*end while loop */ > @@ -224,10 +224,10 @@ > > if ($YPos < $Bottom_Margin + $line_height){ > PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width, > - $Right_Margin,$assemblydesc); > + $Right_Margin,$assemblydesc); > } > > - if ($ListCount == 0) { > +if ($ListCount == 0) { > $title = _('Print Indented BOM Listing Error'); > include('includes/header.inc'); > prnMsg(_('There were no items for the selected assembly'),'error'); > @@ -243,11 +243,11 @@ > > $title=_('Indented BOM Listing'); > include('includes/header.inc'); > - 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 '<form action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" > method="post"> > - <div> > - <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > + <div> > + <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > <table class="selection">'; > echo '<tr> > <td>' . _('Part') . ':</td> > @@ -271,11 +271,11 @@ > </tr> > </table> > <div class="centre"> > - <br /> > +<br /> > <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> > </div> > - </div> > - </form>'; > +</div> > +</form>'; > > include('includes/footer.inc'); > > @@ -283,7 +283,7 @@ > > > function > PrintHeader(&$pdf,&$YPos,&$PageNumber,$Page_Height,$Top_Margin,$Left_Margin, > - $Page_Width,$Right_Margin,$assemblydesc) { > + $Page_Width,$Right_Margin,$assemblydesc) { > > $line_height=12; > /*PDF page header for Indented BOM Listing report */ > > Modified: trunk/BOMIndentedReverse.php > =================================================================== > --- trunk/BOMIndentedReverse.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BOMIndentedReverse.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -12,7 +12,7 @@ > include('includes/PDFStarter.php'); > $pdf->addInfo('Title',_('Indented BOM Listing')); > $pdf->addInfo('Subject',_('Indented BOM Listing')); > - $FontSize=9; > +$FontSize=9; > $PageNumber=1; > $line_height=12; > > @@ -143,17 +143,17 @@ > echo '<br /> > <a href="' .$rootpath .'/index.php">' . _('Back to the menu') . '</a>'; > if ($debug==1){ > - echo '<br />' . $sql; > + echo '<br />' . $sql; > } > include('includes/footer.inc'); > exit; > } > > > - $sql = "SELECT stockmaster.stockid, > - stockmaster.description > - FROM stockmaster > - WHERE stockid = '" . $_POST['Part'] . "'"; > +$sql = "SELECT stockmaster.stockid, > + stockmaster.description > + FROM stockmaster > + WHERE stockid = '" . $_POST['Part'] . "'"; > $result = DB_query($sql,$db); > $myrow = DB_fetch_array($result,$db); > $Assembly = $_POST['Part']; > @@ -161,18 +161,18 @@ > > PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width,$Right_Margin,$AssemblyDesc); > > - $Tot_Val=0; > - $fill = false; > - $pdf->SetFillColor(224,235,255); > - $sql = "SELECT tempbom.*, > - stockmaster.description, > - stockmaster.mbflag > - FROM tempbom INNER JOIN stockmaster > - ON tempbom.parent = stockmaster.stockid > - ORDER BY sortpart"; > +$Tot_Val=0; > +$fill = false; > +$pdf->SetFillColor(224,235,255); > +$sql = "SELECT tempbom.*, > + stockmaster.description, > + stockmaster.mbflag > + FROM tempbom INNER JOIN stockmaster > + ON tempbom.parent = stockmaster.stockid > + ORDER BY sortpart"; > $result = DB_query($sql,$db); > > - $ListCount = DB_num_rows($result); > +$ListCount = DB_num_rows($result); > > While ($myrow = DB_fetch_array($result,$db)){ > > @@ -184,7 +184,7 @@ > > // Use to alternate between lines with transparent and painted background > if ($_POST['Fill'] == 'yes'){ > - $fill=!$fill; > +$fill=!$fill; > } > > // Parameters for addTextWrap are defined in /includes/class.pdf.php > @@ -202,7 +202,7 @@ > > if ($YPos < $Bottom_Margin + $line_height){ > PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width, > - $Right_Margin,$AssemblyDesc); > + $Right_Margin,$AssemblyDesc); > } > > } /*end while loop */ > @@ -212,7 +212,7 @@ > > if ($YPos < $Bottom_Margin + $line_height){ > PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width, > - $Right_Margin,$AssemblyDesc); > + $Right_Margin,$AssemblyDesc); > } > if ($ListCount == 0) { > $title = _('Print Reverse Indented BOM Listing Error'); > @@ -234,8 +234,8 @@ > echo '<p class="page_title_text"><img > src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . > _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; > echo '<form action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" > method="post"> > - <div> > - <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > +<div> > +<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > <table class="selection"> > <tr> > <td>' . _('Part') . ':</td> > @@ -250,11 +250,11 @@ > </tr> > </table> > <div class="centre"> > - <br /> > +<br /> > <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" /> > </div> > </div> > - </form>'; > +</form>'; > > include('includes/footer.inc'); > > @@ -262,7 +262,7 @@ > > > function > PrintHeader(&$pdf,&$YPos,&$PageNumber,$Page_Height,$Top_Margin,$Left_Margin, > - $Page_Width,$Right_Margin,$AssemblyDesc) { > + $Page_Width,$Right_Margin,$AssemblyDesc) { > > > $line_height=12; > > Modified: trunk/BOMInquiry.php > =================================================================== > --- trunk/BOMInquiry.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BOMInquiry.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -14,7 +14,7 @@ > > if (!isset($_POST['StockID'])) { > echo '<form action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" > method="post"> > - <div> > +<div> > <br /> > <div class="page_help_text"> > '. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . > ') ' . _('to view the costed bill of materials') . ' > @@ -61,9 +61,9 @@ > FROM stockmaster INNER JOIN locstock > ON stockmaster.stockid = locstock.stockid > WHERE stockmaster.description " . LIKE . " '$SearchString' > -AND (stockmaster.mbflag='M' > -OR stockmaster.mbflag='K' > -OR stockmaster.mbflag='A' > +AND (stockmaster.mbflag='M' > +OR stockmaster.mbflag='K' > +OR stockmaster.mbflag='A' > OR stockmaster.mbflag='G') > GROUP BY stockmaster.stockid, > stockmaster.description, > @@ -98,8 +98,8 @@ > } //one of keywords or StockCode was more than a zero length string > } //end of if search > > -if (isset($_POST['Search']) > -AND isset($result) > +if (isset($_POST['Search']) > +AND isset($result) > AND !isset($SelectedParent)) { > > echo '<br /> > @@ -130,7 +130,7 @@ > } > $tabindex=$j+4; > printf('<td><input tabindex="' .$tabindex . '" type="submit" name="StockID" > value="%s" /></td> > - <td>%s</td> > +<td>%s</td> > <td class="number">%s</td> > <td>%s</td> > </tr>', > @@ -146,23 +146,23 @@ > echo '</table><br />'; > } > if (!isset($_POST['StockID'])) { > - echo '</div> > - </form>'; > +echo '</div> > + </form>'; > } > > if (isset($StockID) and $StockID!=""){ > - > -$result = DB_query("SELECT description, > -units, > -labourcost, > -overheadcost > -FROM stockmaster > + > +$result = DB_query("SELECT description, > +units, > +labourcost, > +overheadcost > +FROM stockmaster > WHERE stockid='" . $StockID . "'", > $db); > $myrow = DB_fetch_array($result); > $ParentLabourCost = $myrow['labourcost']; > $ParentOverheadCost = $myrow['overheadcost']; > - > + > $sql = "SELECT bom.parent, > bom.component, > stockmaster.description, > @@ -170,7 +170,7 @@ > 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 > +FROM bom INNER JOIN stockmaster > ON bom.component = stockmaster.stockid > WHERE bom.parent = '" . $StockID . "' > AND bom.effectiveafter < Now() > @@ -237,7 +237,7 @@ > > $j++; > } > - > + > $TotalCost += $ParentLabourCost; > echo '<tr> > <td colspan="4" class="number"><b>' . _('Labour Cost') . '</b></td> > > Modified: trunk/BOMListing.php > =================================================================== > --- trunk/BOMListing.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BOMListing.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -17,7 +17,7 @@ > $PageNumber=0; > $line_height=12; > > - /*Now figure out the bills to report for the part range under review */ > + /*Now figure out the bills to report for the part range under review */ > $SQL = "SELECT bom.parent, > bom.component, > stockmaster.description as compdescription, > @@ -43,7 +43,7 @@ > prnMsg(_('The Bill of Material listing could not be retrieved by the SQL > because'),'error'); > echo '<br /><a href="' .$rootpath .'/index.php">' . _('Back to the menu') . > '</a>'; > if ($debug==1){ > - echo '<br />' . $SQL; > + echo '<br />' . $SQL; > } > include('includes/footer.inc'); > exit; > @@ -98,10 +98,10 @@ > > $YPos -=$line_height; > $pdf->line($Page_Width-$Right_Margin, $YPos,$Left_Margin, $YPos); > - > - $pdf->OutputD($_SESSION['DatabaseName'] . '_BOMListing_' . > date('Y-m-d').'.pdf'); > - $pdf->__destruct(); > > +$pdf->OutputD($_SESSION['DatabaseName'] . '_BOMListing_' . > date('Y-m-d').'.pdf'); > +$pdf->__destruct(); > + > } else { /*The option to print PDF was not hit */ > > $title=_('Bill Of Material Listing'); > @@ -113,8 +113,8 @@ > /*if $FromCriteria is not set then show a form to allow input*/ > > echo '<form action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" > method="post"> > - <div> > - <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > + <div> > + <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> > <table class="selection">'; > > echo '<tr><td>' . _('From Inventory Part Code') . ':' . '</td> > @@ -128,8 +128,8 @@ > > echo '</table> > <br /><div class="centre"><input tabindex="3" type="submit" name="PrintPDF" > value="' . _('Print PDF') . '" /></div> > - </div> > - </form>'; > + </div> > + </form>'; > echo '<script > type="text/javascript">defaultControl(document.forms[0].FromCriteria);</script>'; > } > include('includes/footer.inc'); > > Modified: trunk/BOMs.php > =================================================================== > --- trunk/BOMs.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BOMs.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -20,7 +20,7 @@ > FROM bom WHERE parent='" . $Parent. "'" > ,$db); > if (DB_num_rows($c_result) > 0) { > - > + > while ($row = DB_fetch_array($c_result)) { > //echo '<br />Parent: ' . $Parent . ' Level: ' . $Level . ' row[component]: > ' . $row['component'] .'<br />'; > if ($Parent != $row['component']) { > @@ -85,13 +85,13 @@ > locstock.quantity AS qoh, > stockmaster.decimalplaces > FROM bom INNER JOIN stockmaster > -ON bom.component=stockmaster.stockid > -INNER JOIN locations ON > -bom.loccode = locations.loccode > -INNER JOIN workcentres > +ON bom.component=stockmaster.stockid > +INNER JOIN locations ON > +bom.loccode = locations.loccode > +INNER JOIN workcentres > ON bom.workcentreadded=workcentres.code > -INNER JOIN locstock > -ON bom.loccode=locstock.loccode > +INNER JOIN locstock > +ON bom.loccode=locstock.loccode > AND bom.component = locstock.stockid > WHERE bom.component='".$Component."' > AND bom.parent = '".$Parent."'"; > @@ -106,10 +106,10 @@ > while ($myrow=DB_fetch_array($result)) { > > $Level1 = str_repeat('- ',$Level-1).$Level; > -if( $myrow['mbflag']=='B' > -OR $myrow['mbflag']=='K' > +if( $myrow['mbflag']=='B' > +OR $myrow['mbflag']=='K' > OR $myrow['mbflag']=='D') { > - > + > $DrillText = '%s%s'; > $DrillLink = '<div class="centre">'._('No lower levels').'</div>'; > $DrillID=''; > @@ -132,12 +132,12 @@ > OR $myrow['mbflag']=='K' //kit-set > OR $myrow['mbflag']=='A' // assembly > OR $myrow['mbflag']=='G') /* ghost */ { > - > + > $QuantityOnHand = _('N/A'); > } else { > $QuantityOnHand = > locale_number_format($myrow['qoh'],$myrow['decimalplaces']); > -} > - > +} > + > printf('<td>%s</td> > <td>%s</td> > <td>%s</td> > @@ -372,8 +372,8 @@ > > //the link to delete a selected record was clicked instead of the Submit > button > > -$sql="DELETE FROM bom > -WHERE parent='".$SelectedParent."' > +$sql="DELETE FROM bom > +WHERE parent='".$SelectedParent."' > AND component='".$SelectedComponent."' > AND loccode='".$Location."' > AND workcentreadded='".$WorkCentre."'"; > @@ -382,8 +382,8 @@ > $DbgMsg = _('The SQL used to delete the BOM was'); > $result = DB_query($sql,$db,$ErrMsg,$DbgMsg); > > -$ComponentSQL = "SELECT component > -FROM bom > +$ComponentSQL = "SELECT component > +FROM bom > WHERE parent='" . $SelectedParent ."'"; > $ComponentResult = DB_query($ComponentSQL,$db); > $ComponentArray = DB_fetch_row($ComponentResult); > @@ -453,7 +453,7 @@ > $result=DB_query($sql,$db,$ErrMsg,$DbgMsg); > $ix = 0; > if( DB_num_rows($result) > 0 ) { > - echo '<table class="selection">'; > + echo '<table class="selection">'; > echo '<tr><td><div class="centre">'._('Manufactured parent items').' : '; > while ($myrow = DB_fetch_array($result)){ > echo (($ix)?', ':'').'<a > href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . > '?Select='.$myrow['parent'].'">'. > @@ -461,14 +461,14 @@ > $ix++; > } //end while loop > echo '</div></td></tr>'; > - echo '</table>'; > + echo '</table>'; > } > // Display Assembly Parent Items > -$sql = "SELECT bom.parent, > -stockmaster.description, > +$sql = "SELECT bom.parent, > +stockmaster.description, > stockmaster.mbflag > FROM bom INNER JOIN stockmaster > -ON bom.parent=stockmaster.stockid > +ON bom.parent=stockmaster.stockid > WHERE bom.component='".$SelectedParent."' > AND stockmaster.mbflag='A'"; > > @@ -476,7 +476,7 @@ > $DbgMsg = _('The SQL used to retrieve description of the parent part was'); > $result=DB_query($sql,$db,$ErrMsg,$DbgMsg); > if( DB_num_rows($result) > 0 ) { > - echo '<table class="selection">'; > +echo '<table class="selection">'; > echo '<tr><td><div class="centre">'._('Assembly parent items').' : '; > $ix = 0; > while ($myrow = DB_fetch_array($result)){ > @@ -485,14 +485,14 @@ > $ix++; > } //end while loop > echo '</div></td></tr>'; > - echo '</table>'; > +echo '</table>'; > } > // Display Kit Sets > -$sql = "SELECT bom.parent, > -stockmaster.description, > +$sql = "SELECT bom.parent, > +stockmaster.description, > stockmaster.mbflag > FROM bom INNER JOIN stockmaster > -ON bom.parent=stockmaster.stockid > +ON bom.parent=stockmaster.stockid > WHERE bom.component='".$SelectedParent."' > AND stockmaster.mbflag='K'"; > > @@ -500,7 +500,7 @@ > $DbgMsg = _('The SQL used to retrieve description of the parent part was'); > $result=DB_query($sql,$db,$ErrMsg,$DbgMsg); > if( DB_num_rows($result) > 0 ) { > - echo '<table class="selection">'; > +echo '<table class="selection">'; > echo '<tr><td><div class="centre">'._('Kit sets').' : '; > $ix = 0; > while ($myrow = DB_fetch_array($result)){ > @@ -509,14 +509,14 @@ > $ix++; > } //end while loop > echo '</div></td></tr>'; > - echo '</table>'; > +echo '</table>'; > } > // Display Phantom/Ghosts > -$sql = "SELECT bom.parent, > -stockmaster.description, > +$sql = "SELECT bom.parent, > +stockmaster.description, > stockmaster.mbflag > FROM bom INNER JOIN stockmaster > -ON bom.parent=stockmaster.stockid > +ON bom.parent=stockmaster.stockid > WHERE bom.component='".$SelectedParent."' > AND stockmaster.mbflag='G'"; > > @@ -525,7 +525,7 @@ > $result=DB_query($sql,$db,$ErrMsg,$DbgMsg); > if( DB_num_rows($result) > 0 ) { > echo '<table class="selection">'; > - echo '<tr><td><div class="centre">'._('Phantom').' : '; > +echo '<tr><td><div class="centre">'._('Phantom').' : '; > $ix = 0; > while ($myrow = DB_fetch_array($result)){ > echo (($ix)?', ':'').'<a > href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . > '?Select='.$myrow['parent'].'">'. > @@ -533,7 +533,7 @@ > $ix++; > } //end while loop > echo '</div></td></tr>'; > - echo '</table>'; > +echo '</table>'; > } > echo '<br /> > <table class="selection">'; > @@ -589,7 +589,7 @@ > if (! isset($_GET['delete'])) { > > echo '<form method="post" action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select=' . > $SelectedParent .'">'; > - echo '<div>'; > +echo '<div>'; > echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" > />'; > > if (isset($_GET['SelectedComponent']) and $InputError !=1) { > @@ -601,7 +601,7 @@ > workcentreadded, > quantity, > autoissue > -FROM bom > +FROM bom > WHERE parent='".$SelectedParent."' > AND component='".$SelectedComponent."'"; > > @@ -784,7 +784,7 @@ > echo '</table> > <br /><div class="centre"><input tabindex="8" type="submit" name="Submit" > value="' . _('Enter Information') . '" /> > </div> > - </div> > +</div> > </form>'; > > } //end if record deleted no point displaying form to add record > @@ -858,9 +858,9 @@ > echo '<p class="page_title_text"><img > src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . > _('Search') . '" alt="" />' . ' ' . $title . '</p>'; > echo '<form action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" > 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 />' . _('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>'. ' > - <div> > - <br /> > - <table class="selection" cellpadding="3"> > +<div> > + <br /> > + <table class="selection" cellpadding="3"> > <tr><td>' . _('Enter text extracts in the') . ' <b>' . _('description') . > '</b>:</td> > <td><input tabindex="1" type="text" name="Keywords" size="20" maxlength="25" > /></td> > <td><b>' . _('OR') . '</b></td> > @@ -871,10 +871,10 @@ > <br /><div class="centre"><input tabindex="3" type="submit" name="Search" > value="' . _('Search Now') . '" /></div>'; > echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" > />'; > > -if (isset($_POST['Search']) > -AND isset($result) > +if (isset($_POST['Search']) > +AND isset($result) > AND !isset($SelectedParent)) { > - > + > echo '<br /> > <table cellpadding="2" class="selection">'; > $TableHeader = '<tr> > @@ -883,9 +883,9 @@ > <th>' . _('On Hand') . '</th> > <th>' . _('Units') . '</th> > </tr>'; > - > + > echo $TableHeader; > - > + > $j = 1; > $k=0; //row colour counter > while ($myrow=DB_fetch_array($result)) { > @@ -911,17 +911,17 @@ > $myrow['description'], > $StockOnHand, > $myrow['units']); > - > + > $j++; > //end of page full new headings if > } > //end of while loop > - > + > echo '</table>'; > - > + > } > //end if results to show > - > + > if (!isset($SelectedParent) or $SelectedParent=='') { > echo '<script > type="text/javascript">defaultControl(document.forms[0].StockCode);</script>'; > } else { > @@ -941,7 +941,7 @@ > foreach($array as $key => $item) { > // Serialize the current element and create a md5 hash > $hash = md5(serialize($item)); > -// If the md5 didn't come up yet, add the element to > +// If the md5 didn't come up yet, add the element to > // arrayRewrite, otherwise drop it > if (!isset($arrayHashes[$hash])) { > // Save the current element hash > @@ -958,4 +958,4 @@ > } > > include('includes/footer.inc'); > -?> > +?> > \ No newline at end of file > > Modified: trunk/BackupDatabase.php > =================================================================== > --- trunk/BackupDatabase.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BackupDatabase.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -11,11 +11,11 @@ > $BackupFiles = scandir('companies/' . $_SESSION['DatabaseName'], 0); > $DeletedFiles = false; > foreach ($BackupFiles as $BackupFile){ > - > + > if (mb_substr($BackupFile,0,6)=='Backup'){ > - > + > $DeleteResult = unlink('companies/' . $_SESSION['DatabaseName'] . '/' . > $BackupFile); > - > + > if ($DeleteResult==true){ > prnMsg(_('Deleted') . ' companies/' . $_SESSION['DatabaseName'] . '/' . > $BackupFile,'info'); > $DeletedFiles = true; > @@ -30,15 +30,15 @@ > prnMsg(_('No backup files on the server were deleted'),'info'); > } > } else { > - > + > $BackupFile = $rootpath . '/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 > ' . > +$Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . > $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . > $_SERVER['DOCUMENT_ROOT'] . $BackupFile; > - > - > + > + > $CommandOutput = array(); > exec($Command,$CommandOutput, $ReturnValue); > - > + > if ($ReturnValue ==0) { > prnMsg(_('The backup file has now been created. You must now download this > to your computer because in case the web-server has a disk failure the > backup would then not on the same machine. Use the link below') . '<br /><br > /><a href="' . $BackupFile . '">' . _('Download the backup file to your > locale machine') . '</a>','success'); > prnMsg(_('Once you have downloaded the database backup file to your local > machine you should use the link below to delete it - backup files can > consume a lot of space on your hosting account and will accumulate if not > deleted - they also contain sensitive information which would otherwise be > available for others to download!'),'info'); > @@ -50,7 +50,7 @@ > } > } > /* > -//this could be a weighty file attachment!! > +//this could be a weighty file attachment!! > include('includes/htmlMimeMail.php'); > $mail = new htmlMimeMail(); > $attachment = $mail->getFile( $BackupFile); > > Modified: trunk/BankAccounts.php > =================================================================== > --- trunk/BankAccounts.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BankAccounts.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -318,7 +318,7 @@ > $_POST['BankAccountNumber']=''; > } > if (!isset($_POST['BankAccountCode'])) { > - $_POST['BankAccountCode']=''; > +$_POST['BankAccountCode']=''; > } > if (!isset($_POST['BankAddress'])) { > $_POST['BankAddress']=''; > > Modified: trunk/BankMatching.php > =================================================================== > --- trunk/BankMatching.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BankMatching.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -125,7 +125,7 @@ > </tr>'; > > echo '<tr> > - <td>' . _('to') . ':</td> > +<td>' . _('to') . ':</td> > <td><input tabindex="2" type="text" name="BeforeDate" class="date" > alt="'.$_SESSION['DefaultDateFormat'].'" size="12" maxlength="10" > DEFANGED_Onchange="isDate(this, this.value, > '."'".$_SESSION['DefaultDateFormat']."'".')" value="' . $_POST['BeforeDate'] > . '" /></td> > </tr>'; > echo '<tr> > @@ -343,4 +343,4 @@ > echo '</div>'; > echo '</form>'; > include('includes/footer.inc'); > -?> > +?> > \ No newline at end of file > > Modified: trunk/BankReconciliation.php > =================================================================== > --- trunk/BankReconciliation.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/BankReconciliation.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -254,8 +254,8 @@ > //end of while loop > > echo '<tr> > - <td><br /></td> > - </tr> > + <td><br /></td> > + </tr> > <tr class="EvenTableRows"> > <td colspan="6">' . _('Total of all unpresented cheques') . '</td> > <td class="number">' . > locale_number_format($TotalUnpresentedCheques,$CurrencyRow['currdecimalplaces']) > . '</td> > @@ -330,7 +330,7 @@ > } > //end of while loop > echo '<tr> > - <td><br /></td> > +<td><br /></td> > </tr> > <tr class="EvenTableRows"> > <td colspan="6">' . _('Total of all uncleared deposits') . '</td> > @@ -338,7 +338,7 @@ > </tr>'; > $FXStatementBalance = ($Balance*$CurrencyRow['rate'] - > $TotalUnpresentedCheques -$TotalUnclearedDeposits); > echo '<tr> > - <td><br /></td> > +<td><br /></td> > </tr> > <tr class="EvenTableRows"> > <td colspan="6"><b>' . _('Bank statement balance should be') . ' (' . > $CurrencyRow['currcode'] . ')</b></td> > > Modified: trunk/COGSGLPostings.php > =================================================================== > --- trunk/COGSGLPostings.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/COGSGLPostings.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -138,12 +138,12 @@ > $sql = "INSERT INTO accountgroups (groupname, > sectioninaccounts, > pandl, > -sequenceintb ) > +sequenceintb ) > VALUES ('Sales', > '1', > '1', > '10')"; > - > + > $result = DB_query($sql,$db); > } > $sql = "SELECT accountcode FROM chartmaster WHERE accountcode ='1'"; > @@ -215,7 +215,7 @@ > $myrow['id'], > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', > $myrow['id']); > - > + > }//END WHILE LIST LOOP > echo '</table>'; > } > @@ -355,8 +355,8 @@ > <div class="centre"> > <input tabindex="5" type="submit" name="submit" value="' . _('Enter > Information') . '" /> > </div> > - </div> > +</div> > </form>'; > > include('includes/footer.inc'); > -?> > +?> > \ No newline at end of file > > Modified: trunk/CompanyPreferences.php > =================================================================== > --- trunk/CompanyPreferences.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/CompanyPreferences.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -524,4 +524,4 @@ > echo '</div></form>'; > > include('includes/footer.inc'); > -?> > +?> > \ No newline at end of file > > Modified: trunk/ConfirmDispatchControlled_Invoice.php > =================================================================== > --- trunk/ConfirmDispatchControlled_Invoice.php2012-12-18 08:41:23 UTC (rev > 5764) > +++ trunk/ConfirmDispatchControlled_Invoice.php2012-12-18 23:00:00 UTC (rev > 5765) > @@ -19,9 +19,9 @@ > } > > if (isset($_GET['LineNo'])){ > - $LineNo = (int)$_GET['LineNo']; > +$LineNo = (int)$_GET['LineNo']; > } elseif (isset($_POST['LineNo'])){ > - $LineNo = (int)$_POST['LineNo']; > +$LineNo = (int)$_POST['LineNo']; > } else { > echo '<div class="centre"> > <a href="' . $rootpath . '/ConfirmDispatch_Invoice.php">'. _('Select a line > item to invoice').'</a> > > Modified: trunk/ConfirmDispatch_Invoice.php > =================================================================== > --- trunk/ConfirmDispatch_Invoice.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/ConfirmDispatch_Invoice.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -116,7 +116,7 @@ > $_SESSION['Items'.$identifier]->PhoneNo = $myrow['contactphone']; > $_SESSION['Items'.$identifier]->Email = $myrow['contactemail']; > $_SESSION['Items'.$identifier]->SalesPerson = $myrow['salesperson']; > - > + > $_SESSION['Items'.$identifier]->Location = $myrow['fromstkloc']; > $_SESSION['Items'.$identifier]->FreightCost = $myrow['freightcost']; > $_SESSION['Old_FreightCost'] = $myrow['freightcost']; > @@ -322,7 +322,7 @@ > $_SESSION['Items'.$identifier]->totalVolume += ($LnItm->QtyDispatched * > $LnItm->Volume); > $_SESSION['Items'.$identifier]->totalWeight += ($LnItm->QtyDispatched * > $LnItm->Weight); > > - echo $RowStarter; > +echo $RowStarter; > echo '<td>'.$LnItm->StockID.'</td> > <td title="'. $LnItm->LongDescription . '">' .$LnItm->ItemDescription.'</td> > <td class="number">' . > locale_number_format($LnItm->Quantity,$LnItm->DecimalPlaces) . '</td> > @@ -635,9 +635,9 @@ > } //end of loop around items on the order for negative check > > if ($NegativesFound){ > - echo '</div>'; > - echo '</form>'; > - echo '<div class="centre"> > +echo '</div>'; > +echo '</form>'; > +echo '<div class="centre"> > <input type="submit" name="Update" value="' . _('Update'). '" /></div>'; > include('includes/footer.inc'); > exit; > @@ -941,7 +941,7 @@ > > /* Need to get the current location quantity > will need it later for the stock movement */ > - $SQL="SELECT locstock.quantity > + $SQL="SELECT locstock.quantity > FROM locstock > WHERE locstock.stockid='" . $OrderLine->StockID . "' > AND loccode= '" . $_SESSION['Items'.$identifier]->Location . "'"; > @@ -949,8 +949,8 @@ > $Result = DB_query($SQL, $db, $ErrMsg); > > if (DB_num_rows($Result)==1){ > - $LocQtyRow = DB_fetch_row($Result); > - $QtyOnHandPrior = $LocQtyRow[0]; > + $LocQtyRow = DB_fetch_row($Result); > + $QtyOnHandPrior = $LocQtyRow[0]; > } else { > /* There must be some error this should never happen */ > $QtyOnHandPrior = 0; > @@ -988,7 +988,7 @@ > $StandardCost += ($AssParts['standard'] * $AssParts['quantity']) ; > /* Need to get the current location quantity > will need it later for the stock movement */ > - $SQL="SELECT locstock.quantity > + $SQL="SELECT locstock.quantity > FROM locstock > WHERE locstock.stockid='" . $AssParts['component'] . "' > AND loccode= '" . $_SESSION['Items'.$identifier]->Location . "'"; > @@ -996,9 +996,9 @@ > $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK > ASSISTANCE') . ': ' . _('Can not retrieve assembly components location stock > quantities because '); > $DbgMsg = _('The SQL that failed was'); > $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true); > - if (DB_num_rows($Result)==1){ > - $LocQtyRow = DB_fetch_row($Result); > - $QtyOnHandPrior = $LocQtyRow[0]; > + if (DB_num_rows($Result)==1){ > + $LocQtyRow = DB_fetch_row($Result); > + $QtyOnHandPrior = $LocQtyRow[0]; > } else { > /*There must be some error this should never happen */ > $QtyOnHandPrior = 0; > @@ -1060,7 +1060,7 @@ > $OrderLine->StandardCost=0; > } > if ($MBFlag=='B' OR $MBFlag=='M'){ > - $SQL = "INSERT INTO stockmoves (stockid, > +$SQL = "INSERT INTO stockmoves (stockid, > type, > transno, > loccode, > @@ -1091,7 +1091,7 @@ > '" . ($QtyOnHandPrior - $OrderLine->QtyDispatched) . "', > '" . $OrderLine->Narrative . "' )"; > } else { > - // its an assembly or dummy and assemblies/dummies always have nil stock > (by definition they are made up at the time of dispatch so new qty on hand > will be nil > +// its an assembly or dummy and assemblies/dummies always have nil stock > (by definition they are made up at the time of dispatch so new qty on hand > will be nil > if (empty($OrderLine->StandardCost)) { > $OrderLine->StandardCost=0; > } > @@ -1157,7 +1157,7 @@ > > if ($OrderLine->Controlled ==1){ > foreach($OrderLine->SerialItems as $Item){ > - /*We need to add the StockSerialItem record and the StockSerialMoves as > well */ > + /*We need to add the StockSerialItem record and the StockSerialMoves as > well */ > > $SQL = "UPDATE stockserialitemsSET quantity= quantity - " . $Item->BundleQty > . " > WHERE stockid='" . $OrderLine->StockID . "' > @@ -1678,4 +1678,4 @@ > echo '</form>'; > > include('includes/footer.inc'); > -?> > +?> > \ No newline at end of file > > Modified: trunk/ContractBOM.php > =================================================================== > --- trunk/ContractBOM.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/ContractBOM.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -399,7 +399,7 @@ > }#end if SearchResults to show > > echo '<hr /> > - </div> > +</div> > </form>'; > include('includes/footer.inc'); > ?> > \ No newline at end of file > > Modified: trunk/ContractCosting.php > =================================================================== > --- trunk/ContractCosting.php2012-12-18 08:41:23 UTC (rev 5764) > +++ trunk/ContractCosting.php2012-12-18 23:00:00 UTC (rev 5765) > @@ -51,7 +51,7 @@ > $InventoryIssues[$InventoryIssuesRow['stockid']]->Units = > $InventoryIssuesRow['units']; > $InventoryIssues[$InventoryIssuesRow['stockid']]->DecimalPlaces = > $InventoryIssuesRow['decimalplaces']; > $InventoryIssues[$InventoryIssuesRow['stockid']]->Matched = 0; > - > + > } > > echo '<p class="page_title_text"> > @@ -89,7 +89,7 @@ > <th>' . _('Unit Cost') . '</th> > <th>' . _('Total Cost') . '</th> > </tr>'; > - > + > $ContractBOMBudget = 0; > $ContractBOMActual = 0; > foreach ($_SESSION['Contract'.$identifier]->ContractBOM as $Component) { > @@ -100,9 +100,9 @@ > <td>' . $Component->UOM . '</td> > <td class="number">' . > locale_number_format($Component->ItemCost,$_SESSION['CompanyRecord']['decimalplaces']) > . '</td> > <td class="number">' . locale_number_format(($Component->ItemCost * > $Component->Quantity),$_SESSION['CompanyRecord']['decimalplaces']) . > '</td>'; > - > + > $ContractBOMBudget += ($Component->ItemCost * $Component->Quantity); > - > + > if (isset($InventoryIssues[$Component->StockID])){ > $InventoryIssues[$Component->StockID]->Matched=1; > echo '<td colspan="2" align="center">' . _('Actual usage') . '</td> > @@ -153,7 +153,7 @@ > <th>' . _('Unit C... [truncated message content] |
From: Rafael C. <raf...@gm...> - 2014-09-13 23:11:49
|
en-GB native speakers: Please review text in ManualTax.html (Tax Category Maintenance). Thanks. Rafael ---------- Forwarded message ---------- From: <rc...@us...> Date: 2014-09-13 17:06 GMT-06:00 Subject: [Web-erp-svn] SF.net SVN: web-erp:[6884] trunk To: web...@li... Revision: 6884 http://sourceforge.net/p/web-erp/reponame/6884 Author: rchacon Date: 2014-09-13 23:06:42 +0000 (Sat, 13 Sep 2014) Log Message: ----------- Add info to help manual. Modified Paths: -------------- trunk/doc/Manual/ManualTax.html trunk/includes/DatabaseTranslations.php Modified: trunk/doc/Manual/ManualTax.html =================================================================== --- trunk/doc/Manual/ManualTax.html 2014-09-13 04:12:51 UTC (rev 6883) +++ trunk/doc/Manual/ManualTax.html 2014-09-13 23:06:42 UTC (rev 6884) @@ -55,3 +55,30 @@ <p>The TaxAuthority of the warehouse the goods are delivered from, the TaxLevel of the item and the Tax Authority of the branch of the customer being delivered to are determined. Using all three of these factors the rate is returned from the TaxAuthLevels table.</p> <p>General ledger posting relating to the taxes calculated are made in accordance with the codes set up in the Tax Authority table. <!-- Help End: TaxAuthorities --></p> + +<!-- Begin: Tax Categories --> +<div class="floatright"> + <a class="minitext" href="#top">⬆ Top</a> +</div> + +<h2><a id="TaxCategories">Tax Category Maintenance</a></h2> + +<p>In this script, you can enter, edit or delete a tax category name.</p> + +<p>You can enter any tax category name. But there are three special tax category names:</p> + +<ul> + +<li><b>Exempt</b>. "<i>Exempt</i>" written in British English (en-GB). This tax category name is translated to other languages, if translated term is available. You can edit and you can delete this category.</li> + +<li><b>Freight</b>. "<i>Freight</i>" written in British English (en-GB). This tax category name is translated to other languages, if translated term is available. You can NOT edit nor you can NOT delete this category, because it is used in several scripts.</li> + +<li><b>Handling</b>. "<i>Handling</i>" written in British English (en-GB). This tax category name is translated to other languages, if translated term is available. You can edit and you can delete this category.</li> + +</ul> + + + +<!-- End: Tax Categories --> + + Modified: trunk/includes/DatabaseTranslations.php =================================================================== --- trunk/includes/DatabaseTranslations.php 2014-09-13 04:12:51 UTC (rev 6883) +++ trunk/includes/DatabaseTranslations.php 2014-09-13 23:06:42 UTC (rev 6884) @@ -4,9 +4,9 @@ The script includes/DatabaseTranslations.php is a locale language file for the contents of the fields in the database. The purpose of this file is to translate the database fields that appears in screens and reports. This script is only -used at the time that the system default language file is language file is -rebuilt. Can be extended for scripts and other tables where the data from the -table is static and used to display. +used at the time that the system default language file is rebuilt. Can be +extended for scripts and other tables where the data from the table is static +and used to display. *******************************************************************************/ // scripts.description: ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ Web-erp-svn mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-svn |
From: Vitaly S. <vsh...@so...> - 2015-03-09 19:38:49
|
Rafael, The only purpose for that div inside the form is to hold HTML tags that are not allowed in the form directly. It does not need any specific styling. It is only needed to pass XHTML validation. Vitaly On 3/8/2015 11:54 PM, Rafael Chacón wrote: > Hi, > > I created a division id. selector to tag the report block ('<div > id="Report">'). This could be used as a division id. selector for > reports to style them as What-You-See (on screen) is What-You-Get (on > printer) --e.g. look like the printed sheet of paper--. > > Also, I found a division without id. selector nor class selector (only > "<div>"). It is nested inside the form tag. The style is inherited > from other <div> before it. See "// div class=?" in GLBalanceSheet.php > and GLProfit_Loss.php code. > > Any of you use a style "form div {...}" or have a purpose for this <div> ? > > Best regards, Rafael. > > > > > ---------- Forwarded message ---------- > From: <rc...@us... <mailto:rc...@us...>> > Date: 2015-03-07 11:44 GMT-06:00 > Subject: [Web-erp-svn] SF.net SVN: web-erp:[7206] trunk > To: web...@li... > <mailto:web...@li...> > > > Revision: 7206 > http://sourceforge.net/p/web-erp/reponame/7206 > Author: rchacon > Date: 2015-03-07 17:44:35 +0000 (Sat, 07 Mar 2015) > Log Message: > ----------- > Deletes class="invoice" (it does not exist in css). Creates division > id="Report" to identify the report block. Moves full width style to > print.css (thanks Tim Schofield). > > Modified Paths: > -------------- > trunk/GLBalanceSheet.php > trunk/GLProfit_Loss.php > trunk/css/aguapop/default.css > trunk/css/default/default.css > trunk/css/fluid/default.css > trunk/css/fresh/default.css > trunk/css/gel/default.css > trunk/css/print.css > trunk/css/professional/default.css > trunk/css/professional-rtl/default.css > trunk/css/silverwolf/default.css > trunk/css/wood/default.css > trunk/css/xenos/default.css > trunk/doc/Change.log > > Modified: trunk/GLBalanceSheet.php > =================================================================== > --- trunk/GLBalanceSheet.php 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/GLBalanceSheet.php 2015-03-07 17:44:35 UTC (rev 7206) > @@ -29,7 +29,7 @@ > . _('webERP is an "accrual" based system (not a "cash based" > system). Accrual systems include items when they are invoiced to the > customer, and when expenses are owed based on the supplier invoice > date.') . '</div>'; > > echo '<form method="post" action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; > - echo '<div>'; > + echo '<div>';// div class=? > echo '<input type="hidden" name="FormID" value="' . > $_SESSION['FormID'] . '" />'; > echo '<table class="selection"> > <tr> > @@ -76,7 +76,8 @@ > <div class="centre"> > <input type="submit" name="PrintPDF" > value="'._('Produce PDF Report').'" /> > </div>'; > - echo '</div></form>'; > + echo '</div>';// div class=? > + echo '</form>'; > > /*Now do the posting while the user is thinking about the > period to select */ > include ('includes/GLPostings.inc'); > @@ -340,7 +341,7 @@ > } else { > include('includes/header.inc'); > echo '<form method="post" action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; > - echo '<div>'; > + echo '<div>';// div class=? > echo '<input type="hidden" name="FormID" value="' . > $_SESSION['FormID'] . '" />'; > echo '<input type="hidden" name="BalancePeriodEnd" value="' . > $_POST['BalancePeriodEnd'] . '" />'; > > @@ -390,6 +391,7 @@ > > // Page title as IAS1 numerals 10 and 51: > include_once('includes/CurrenciesArray.php');// Array to retrieve > currency name. > + echo '<div id="Report">';// Division to identify the report block. > echo '<p class="page_title_text"><img alt="" class="noprint" > src="'.$RootPath.'/css/'.$Theme. > '/images/gl.png" title="' .// Icon image. > _('Statement of Financial Position') . '" /> ' .// > Icon title. > @@ -399,8 +401,7 @@ > _('as at') . ' ' . $BalanceDate . '<br />' .// Page > title, reporting period. > _('All amounts stated in').': '. > _($CurrencyName[$_SESSION['CompanyRecord']['currencydefault']]).'</p>';// > Page title, reporting presentation currency and level of rounding used. > > - echo '<div class="invoice"> > - <table class="selection" width="100%">'; > + echo '<table class="selection">'; > > if ($_POST['Detail']=='Detailed'){ > $TableHeader = '<tr> > @@ -706,18 +707,19 @@ > </tr>'; > /* echo '</tbody>';// See comment at the begin of the table.*/ > echo '</table>'; > - echo '</div>'; > + echo '</div>';// div id="Report". > echo '<br /> > <div class="centre noprint">'. > '<button onclick="javascript:window.print()" > type="button"><img alt="" src="'.$RootPath.'/css/'.$Theme. > '/images/printer.png" /> ' . _('Print > This') . '</button>'.// "Print This" button. > '<button name="SelectADifferentPeriod" > type="submit" value="'. _('Select A Different Period') .'"><img alt="" > src="'.$RootPath.'/css/'.$Theme. > '/images/gl.png" /> ' . _('Select A > Different Balance Date') . '</button>'.// "Select A Different Period" > button. > - '<button formaction="index.php" > type="submit"><img alt="" src="'.$RootPath.'/css/'.$Theme. > + '<button formaction="index.php?Application=GL" > type="submit"><img alt="" src="'.$RootPath.'/css/'.$Theme. > '/images/previous.png" /> ' . > _('Return') . '</button>'.// "Return" button. > '</div>'; > > - echo '</div></form>'; > + echo '</div>';// div class=? > + echo '</form>'; > } > > include('includes/footer.inc'); > > Modified: trunk/GLProfit_Loss.php > =================================================================== > --- trunk/GLProfit_Loss.php 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/GLProfit_Loss.php 2015-03-07 17:44:35 UTC (rev 7206) > @@ -33,7 +33,7 @@ > . _('webERP is an "accrual" based system (not a "cash based" > system). Accrual systems include items when they are invoiced to the > customer, and when expenses are owed based on the supplier invoice > date.') . '</div>'; > > echo '<form method="post" action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; > - echo '<div>'; > + echo '<div>';// div class=? > echo '<input type="hidden" name="FormID" value="' . > $_SESSION['FormID'] . '" />'; > > if (Date('m') > $_SESSION['YearEnd']){ > @@ -564,7 +564,7 @@ > > include('includes/header.inc'); > echo '<form method="post" action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; > - echo '<div>'; > + echo '<div>';// div class=? > echo '<input type="hidden" name="FormID" value="' . > $_SESSION['FormID'] . '" /> > <input type="hidden" name="FromPeriod" > value="' . $_POST['FromPeriod'] . '" /> > <input type="hidden" name="ToPeriod" value="' > . $_POST['ToPeriod'] . '" />'; > @@ -612,6 +612,7 @@ > > // Page title as IAS1 numerals 10 and 51: > include_once('includes/CurrenciesArray.php');// Array to retrieve > currency name. > + echo '<div id="Report">';// Division to identify the report block. > echo '<p class="page_title_text"><img alt="" class="noprint" > src="'.$RootPath.'/css/'.$Theme. > '/images/gl.png" title="' .// Icon image. > _('Statement of Comprehensive Income') . '" /> ' .// > Icon title. > @@ -619,13 +620,13 @@ > // _('Statement of Comprehensive Income') . '<br />' .// > Page title, reporting statement. > stripslashes($_SESSION['CompanyRecord']['coyname']) . '<br />' .// > Page title, reporting entity. > _('For') . ' ' . $NumberOfMonths . ' ' . _('months > to') . ' ' . $PeriodToDate . '<br />' .// Page title, reporting period. > -// _('From') . ' ' . $PeriodFromDate? . ' ' . _('to') . ' > ' . $PeriodToDate . '<br />' .// Page title, reporting period. ?????????? > +// _('From') . ' ' . $PeriodFromDate? . ' ' . _('to') . ' > ' . $PeriodToDate . '<br />' .// Page title, reporting period. ??? > _('All amounts stated in').': '. > _($CurrencyName[$_SESSION['CompanyRecord']['currencydefault']]).'</p>';// > Page title, reporting presentation currency and level of rounding used. > > /*show a table of the accounts info returned by the SQL > Account Code , Account Name , Month Actual, Month Budget, > Period Actual, Period Budget */ > > - echo '<table class="selection" width="100%">'; > + echo '<table class="selection">'; > > if ($_POST['Detail']=='Detailed'){ > $TableHeader = '<tr> > @@ -1303,17 +1304,18 @@ > </tr>'; > /* echo '</tbody>';// See comment at the begin of the table.*/ > echo '</table>'; > + echo '</div>';// div id="Report". > echo '<br /> > <div class="centre noprint">'. > '<button onclick="javascript:window.print()" > type="button"><img alt="" src="'.$RootPath.'/css/'.$Theme. > '/images/printer.png" /> ' . _('Print > This') . '</button>'.// "Print This" button. > '<button name="SelectADifferentPeriod" > type="submit" value="'. _('Select A Different Period') .'"><img alt="" > src="'.$RootPath.'/css/'.$Theme. > '/images/gl.png" /> ' . _('Select A > Different Period') . '</button>'.// "Select A Different Period" button. > - '<button formaction="index.php" > type="submit"><img alt="" src="'.$RootPath.'/css/'.$Theme. > + '<button formaction="index.php?Application=GL" > type="submit"><img alt="" src="'.$RootPath.'/css/'.$Theme. > '/images/previous.png" /> ' . > _('Return') . '</button>'.// "Return" button. > '</div>'; > } > -echo '</div>'; > +echo '</div>';// div class=? > echo '</form>'; > include('includes/footer.inc'); > > > Modified: trunk/css/aguapop/default.css > =================================================================== > --- trunk/css/aguapop/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/aguapop/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -481,7 +481,12 @@ > #FooterTimeDiv{ > float:right; > margin-top:15px; > -} > +} > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/default/default.css > =================================================================== > --- trunk/css/default/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/default/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -275,7 +275,7 @@ > /*** CANVAS ***/ > > #CanvasDiv{ > - background:#588BB6; > + background:#588BB6; > } > > /*** HEADER ***/ > @@ -344,11 +344,11 @@ > white-space:nowrap; > } > #MainMenuDiv ul{ > - margin:0; > + margin:0; > padding:0; > } > #MainMenuDiv li{ > - list-style:none; > + list-style:none; > } > > #MainMenuDiv li a{ > @@ -449,7 +449,12 @@ > float:right; > margin-top:15px; > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > -} > +} > \ No newline at end of file > > Modified: trunk/css/fluid/default.css > =================================================================== > --- trunk/css/fluid/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/fluid/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id: default.css 7166 2015-02-21 21:18:59Z Joshua $*/ > -/* > +/* > "Fluid Tabs" theme for webERP > > by Hindra Joshua > @@ -390,6 +390,11 @@ > } > #FooterVersionDiv{} > #FooterTimeDiv{} > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/fresh/default.css > =================================================================== > --- trunk/css/fresh/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/fresh/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "Fresh" Theme for WebERP > > @@ -10,10 +10,10 @@ > Based from the previous theme "SilverWolf" > Credits to the original authors. > > -NOTE: > +NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would > be for > +To optimized the rest we should examined the whole codes! That would > be for > the next project. :) > > ***/ > @@ -330,14 +330,14 @@ > display:inline; /* items are inline */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > background:#B4BB86; > border:thin outset #5A5F00; > color:#5A5F00; > - padding:8px; > + padding:8px; > } > #QuickMenuDiv li a:hover{ > background:#B4BB86; > @@ -377,7 +377,7 @@ > #MainMenuDiv{ > float:left; /* REQUIRED: to the left side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:11%; > background:#617C4F; > } > @@ -400,12 +400,12 @@ > text-decoration:none; > padding:3px; > border:thin inset #617C4F; > - background:#5A5F00; > + background:#5A5F00; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > - border:thin inset #5A5F00; > + border:thin inset #5A5F00; > background:#5A5F00; > - color:white; > + color:white; > } > > /*** BODY - SUB MENU ***/ > @@ -435,7 +435,7 @@ > #SubMenuDiv li{ > /*list-style:none;*/ /* REQUIRED: hide the bullets */ > padding:2px; > - background:#E0F3B1; > + background:#E0F3B1; > } > #SubMenuDiv li img{ > vertical-align:middle; /* verticall align icon with the text */ > @@ -468,7 +468,7 @@ > /* float:left;*/ > /* width:32.5%; > border:thin solid black;*/ > - > + > } > .menu_group_item p { > color: #00f; /* This is the color for bullets, I like it to be > the same as the anchor color, but it's up to you */ > @@ -480,14 +480,14 @@ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > background:#C9D392; > } > #FooterWrapDiv{ > overflow:hidden; > padding:3px; > } > -#FooterLogoDiv{ > +#FooterLogoDiv{ > float:right; /* right side */ > background:white; > border-radius:8px; > @@ -503,6 +503,11 @@ > #FooterTimeDiv{ > clear:left; /* below */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/gel/default.css > =================================================================== > --- trunk/css/gel/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/gel/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "Gel" Theme for WebERP > > @@ -8,10 +8,10 @@ > Based from the previous theme "Gel" > Credits to the original authors. > > -NOTE: > +NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would > be for > +To optimized the rest we should examined the whole codes! That would > be for > the next project. :) > > ***/ > @@ -168,11 +168,11 @@ > div.error { /*** is this used??? ***/ > background-color:red; > color: white; > - font-style: italic; > + font-style: italic; > font-weight:bold; > border: 3px solid red; > } > -div.warn { > +div.warn { > background-color:#fa0; > color: black; > border: 1px solid black; > @@ -358,9 +358,9 @@ > display:inline; /* items are inline */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > padding:5px; /* links as button */ > border:2px outset transparent; /* un-pressed state */ > @@ -373,7 +373,7 @@ > border:2px inset steelblue; /* pressed state */ > text-decoration:none; /* no underline */ > color:whie; > - border-radius:15px; > + border-radius:15px; > } > > /*** BODY ***/ > @@ -400,7 +400,7 @@ > #MainMenuDiv{ > float:left; /* REQUIRED: to the left side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:11%; > background:url(images/gelbluev.png) repeat-y blue; > background-size:contain; > @@ -408,7 +408,7 @@ > border-radius:20px; > margin-top:5px; > padding:3px; > - > + > } > #MainMenuDiv ul{ > list-style:none; /* REQUIRED: hide bullets */ > @@ -431,14 +431,14 @@ > text-decoration:none; > padding:3px; > border:2px inset steelblue; > - background:none; > + background:none; > border-radius:15px; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > text-decoration:none; > padding:3px; > border:2px inset steelblue; > - background:none; > + background:none; > border-radius:15px; > } > > @@ -455,7 +455,7 @@ > #SubMenuDiv ul{ > list-style-type:none; /* REQUIRED: hide bullets */ > padding:0; /* REQUIRED: remove extra gaps (ex-bullets) */ > - margin:0; > + margin:0; > border:thin solid black; > margin-left:3px; > } > @@ -495,10 +495,10 @@ > background:#bfd8ff; > } > #TransactionsDiv{ > - display:table-cell; > + display:table-cell; > } > #InquiriesDiv{ > - display:table-cell; > + display:table-cell; > } > #InquiriesDiv div{ /* default div, used for custom report header */ > background:#dddddd; > @@ -507,14 +507,14 @@ > /* border:thin outset silver;*/ > } > #MaintenanceDiv{ > - display:table-cell; > + display:table-cell; > } > > /*** FOOTER ***/ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > color:gray; > background:url(images/bar.png) repeat-x lightgray; > border:thin solid lightgray; > @@ -540,6 +540,11 @@ > line-height:2.8em; /* Center the text vertically. > [vertical-align has no effect on text alone] */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/print.css > =================================================================== > --- trunk/css/print.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/print.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -100,4 +100,11 @@ > padding:0; > } > > +#Report { > + /* Division id for reports. */} > +#Report table { > + width:100%; > + /* Expands the body of the report to use the full width of the > page. */ > } > + > +} > > Modified: trunk/css/professional/default.css > =================================================================== > --- trunk/css/professional/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/professional/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "Professional" Theme for WebERP > > @@ -10,10 +10,10 @@ > Based from the previous theme "SilverWolf" > Credits to the original authors. > > -NOTE: > +NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would > be for > +To optimized the rest we should examined the whole codes! That would > be for > the next project. :) > > ***/ > @@ -150,7 +150,7 @@ > > /* input as button or text */ > /* NOTE: input for button should have different class, one for > 'normal' and one for 'input button inside a table, > -which should have the same width as the column where it is located > +which should have the same width as the column where it is located > e.g.: class input_button, input_column_button, input_text */ > input { > } > @@ -374,9 +374,9 @@ > display:inline; /* items are inline */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > padding:3px; /* links as button */ > border:thin outset #ddd; /* un-pressed state */ > @@ -418,7 +418,7 @@ > #MainMenuDiv{ > float:left; /* REQUIRED: to the left side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:11%; > background:#ddd; > } > @@ -441,12 +441,12 @@ > text-decoration:none; > padding:3px; > border:thin inset #ddd; > - background:#ddd; > + background:#ddd; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > - border:thin inset #ccc; > + border:thin inset #ccc; > background:#ccc; > - color:blue; > + color:blue; > text-decoration:none; > } > > @@ -460,7 +460,7 @@ > #SubMenuDiv ul{ > list-style-type:none; /* REQUIRED: hide bullets */ > padding:0; /* REQUIRED: remove extra gaps (ex-bullets) */ > - margin-top:0px; > + margin-top:0px; > margin-left:3px; > border:thin outset #ddd; > } > @@ -500,7 +500,7 @@ > /* float:left;*/ > /* width:32.5%; > border:thin solid black;*/ > - > + > } > .menu_group_item p { > color: #00f; /* This is the color for bullets, I like it to be > the same as the anchor color, but it's up to you */ > @@ -512,14 +512,14 @@ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > color:gray; > } > #FooterWrapDiv{ > overflow:hidden; > padding:3px; > } > -#FooterLogoDiv{ > +#FooterLogoDiv{ > float:right; /* right side */ > } > #FooterVersionDiv{ > @@ -528,6 +528,11 @@ > #FooterTimeDiv{ > clear:left; /* below */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/professional-rtl/default.css > =================================================================== > --- trunk/css/professional-rtl/default.css 2015-03-07 16:13:57 UTC > (rev 7205) > +++ trunk/css/professional-rtl/default.css 2015-03-07 17:44:35 UTC > (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "Professional RTL" Theme for WebERP > For Right-To-Left Languages > @@ -11,10 +11,10 @@ > Based from the previous theme "SilverWolf" > Credits to the original authors. > > -NOTE: > +NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would > be for > +To optimized the rest we should examined the whole codes! That would > be for > the next project. :) > > ***/ > @@ -155,7 +155,7 @@ > > /* input as button or text */ > /* NOTE: input for button should have different class, one for > 'normal' and one for 'input button inside a table, > -which should have the same width as the column where it is located > +which should have the same width as the column where it is located > e.g.: class input_button, input_column_button, input_text */ > input { > font-family: Arial, Verdana, Helvetica; > @@ -394,9 +394,9 @@ > float:right; /* right to left */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > padding:3px; /* links as button */ > border:thin outset #ddd; /* un-pressed state */ > @@ -438,7 +438,7 @@ > #MainMenuDiv{ > float:right; /* REQUIRED: to the RIGHT side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:11%; > background:#ddd; > } > @@ -461,12 +461,12 @@ > text-decoration:none; > padding:3px; > border:thin inset #ddd; > - background:#ddd; > + background:#ddd; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > - border:thin inset #ccc; > + border:thin inset #ccc; > background:#ccc; > - color:blue; > + color:blue; > text-decoration:none; > } > > @@ -480,7 +480,7 @@ > #SubMenuDiv ul{ > list-style-type:none; /* REQUIRED: hide bullets */ > padding:0; /* REQUIRED: remove extra gaps (ex-bullets) */ > - margin-top:0px; > + margin-top:0px; > margin-left:3px; > border:thin outset #ddd; > } > @@ -520,7 +520,7 @@ > /* float:left;*/ > /* width:32.5%; > border:thin solid black;*/ > - > + > } > .menu_group_item p { > color: #00f; /* This is the color for bullets, I like it to be > the same as the anchor color, but it's up to you */ > @@ -532,14 +532,14 @@ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > color:gray; > } > #FooterWrapDiv{ > overflow:hidden; > padding:3px; > } > -#FooterLogoDiv{ > +#FooterLogoDiv{ > float:left; /* right side */ > } > #FooterVersionDiv{ > @@ -548,6 +548,11 @@ > #FooterTimeDiv{ > clear:right; /* below */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/silverwolf/default.css > =================================================================== > --- trunk/css/silverwolf/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/silverwolf/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "SilverWolf" Theme for WebERP > > @@ -11,7 +11,7 @@ > NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would > be for > +To optimized the rest we should examined the whole codes! That would > be for > the next project. :) > > ***/ > @@ -363,9 +363,9 @@ > display:inline; /* items are inline */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > padding:9px; /* links as button */ > border:thin outset lightgray; /* un-pressed state */ > @@ -394,7 +394,7 @@ > #MainMenuDiv{ > float:left; /* REQUIRED:to the left side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:12%; > margin-top:3px; > } > @@ -501,6 +501,11 @@ > line-height:2.8em; /* Center the text vertically. > [vertical-align has no effect on text alone] */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/wood/default.css > =================================================================== > --- trunk/css/wood/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/wood/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -571,10 +571,15 @@ > #FooterTimeDiv{ > float:right; > margin-top:17px; > +} > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > +.centre { > + text-align:center; > + /* centre class (general). */ > } > -.centre { > - text-align:center; > - /* centre class (general). */ > -} > > /* END */ > > Modified: trunk/css/xenos/default.css > =================================================================== > --- trunk/css/xenos/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/xenos/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,12 +1,12 @@ > /* $Id: default.css 7166 2015-02-21 21:18:59Z Khwunchai $*/ > -/*** > +/*** > > Xenos Theme > by Khwunchai J. > > Xenos is a very clean and classy looking theme design for WebERP. > > -NOTE: > +NOTE: > This CSS is not yet fully optimized. Some styles maybe redundant and > not supported by some browser. > > ***/ > @@ -56,7 +56,7 @@ > width:100%; > /*border-collapse: collapse;*/ > border:thin outset #B3B3B3; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -173,7 +173,7 @@ > input[type='text'], input[type='tel'], input[type='password'], > input[type='email'] { > border:thin solid #C3C3C3; > padding:4px 8px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -184,7 +184,7 @@ > input[type='text']:focus, input[type='tel']:focus, > input[type='password']:focus, input[type='email']:focus, > input[type='submit'], textarea:focus, select:focus, button:focus { > outline:none; > border-color:#2380CD; > - > + > -moz-box-shadow: 0px 0px 5px #55B1EA; > -webkit-box-shadow: 0px 0px 5px #55B1EA; > box-shadow: 0px 0px 5px #55B1EA; > @@ -197,7 +197,7 @@ > font-weight:bold; > color:#FFFFFF; > cursor: pointer; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -211,7 +211,7 @@ > textarea{ > border:thin solid #C3C3C3; > padding:4px 8px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -411,9 +411,9 @@ > height:38px; > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > color:white; > font-weight:bold; > @@ -455,7 +455,7 @@ > width:auto; /* automatic width */ > margin:0 auto; > margin-bottom:10px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -469,7 +469,7 @@ > background-color:white; > border:thin outset #D2D2D2; > padding:5px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -491,7 +491,7 @@ > width:14%; > border:thin inset #5D5D5D; > background:#686868; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -528,7 +528,7 @@ > border-bottom:thin solid #444444; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > - /*border:thin inset #191919;*/ > + /*border:thin inset #191919;*/ > background:#2A2A2A; > border-bottom:thin solid #191919; > } > @@ -545,7 +545,7 @@ > border:thin outset #D2D2D2; > background-color:white; /* for custom reports */ > min-height:400px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -609,7 +609,7 @@ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > color:#999999; > width: 98.6%; > margin: auto; > @@ -622,7 +622,7 @@ > overflow:hidden; > padding:3px; > } > -#FooterLogoDiv{ > +#FooterLogoDiv{ > float:right; /* right side */ > padding:2px; > } > @@ -636,6 +636,11 @@ > #FooterTimeDiv{ > clear:left; /* below */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/doc/Change.log > =================================================================== > --- trunk/doc/Change.log 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/doc/Change.log 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,4 +1,6 @@ > webERP Change Log > + > +07/03/15 RChacon: Deletes class="invoice" (it does not exist in css). > Creates division id="Report" to identify the report block. Moves full > width style to print.css (thanks Tim Schofield). > 07/03/15 Exson: Fixed undefined index noise in ShipmentCosting.php. > 07/03/15 Exson: Fixed property ShiptCounter non defined bug in > DefineSuppTransClass.php. > 07/03/15 Exson: Fixed the undefine index OpenOrClose noise in > Shipt_Select.php. > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub > for all > things parallel software development, from weekly thought leadership > blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-svn mailing list > Web...@li... > <mailto:Web...@li...> > https://lists.sourceforge.net/lists/listinfo/web-erp-svn > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > > > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > No virus found in this message. > Checked by AVG - www.avg.com <http://www.avg.com> > Version: 2015.0.5751 / Virus Database: 4299/9261 - Release Date: 03/09/15 > |
From: Rafael C. <raf...@gm...> - 2015-03-10 15:20:03
|
Hi Vitaly, Thank you, very much, for your quickly response. Best regards, Rafael. 2015-03-09 13:38 GMT-06:00 Vitaly Shevkunov <vsh...@so...>: > Rafael, > > The only purpose for that div inside the form is to hold HTML tags that > are not allowed in the form directly. It does not need any specific > styling. It is only needed to pass XHTML validation. > > Vitaly > > > On 3/8/2015 11:54 PM, Rafael Chacón wrote: > > Hi, > > I created a division id. selector to tag the report block ('<div > id="Report">'). This could be used as a division id. selector for reports > to style them as What-You-See (on screen) is What-You-Get (on printer) > --e.g. look like the printed sheet of paper--. > > Also, I found a division without id. selector nor class selector (only > "<div>"). It is nested inside the form tag. The style is inherited from > other <div> before it. See "// div class=?" in GLBalanceSheet.php and > GLProfit_Loss.php code. > > Any of you use a style "form div {...}" or have a purpose for this <div> ? > > Best regards, Rafael. > > > > > ---------- Forwarded message ---------- > From: <rc...@us...> > Date: 2015-03-07 11:44 GMT-06:00 > Subject: [Web-erp-svn] SF.net SVN: web-erp:[7206] trunk > To: web...@li... > > > Revision: 7206 > http://sourceforge.net/p/web-erp/reponame/7206 > Author: rchacon > Date: 2015-03-07 17:44:35 +0000 (Sat, 07 Mar 2015) > Log Message: > ----------- > Deletes class="invoice" (it does not exist in css). Creates division > id="Report" to identify the report block. Moves full width style to > print.css (thanks Tim Schofield). > > Modified Paths: > -------------- > trunk/GLBalanceSheet.php > trunk/GLProfit_Loss.php > trunk/css/aguapop/default.css > trunk/css/default/default.css > trunk/css/fluid/default.css > trunk/css/fresh/default.css > trunk/css/gel/default.css > trunk/css/print.css > trunk/css/professional/default.css > trunk/css/professional-rtl/default.css > trunk/css/silverwolf/default.css > trunk/css/wood/default.css > trunk/css/xenos/default.css > trunk/doc/Change.log > > Modified: trunk/GLBalanceSheet.php > =================================================================== > --- trunk/GLBalanceSheet.php 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/GLBalanceSheet.php 2015-03-07 17:44:35 UTC (rev 7206) > @@ -29,7 +29,7 @@ > . _('webERP is an "accrual" based system (not a "cash based" > system). Accrual systems include items when they are invoiced to the > customer, and when expenses are owed based on the supplier invoice date.') > . '</div>'; > > echo '<form method="post" action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; > - echo '<div>'; > + echo '<div>';// div class=? > echo '<input type="hidden" name="FormID" value="' . > $_SESSION['FormID'] . '" />'; > echo '<table class="selection"> > <tr> > @@ -76,7 +76,8 @@ > <div class="centre"> > <input type="submit" name="PrintPDF" > value="'._('Produce PDF Report').'" /> > </div>'; > - echo '</div></form>'; > + echo '</div>';// div class=? > + echo '</form>'; > > /*Now do the posting while the user is thinking about the period > to select */ > include ('includes/GLPostings.inc'); > @@ -340,7 +341,7 @@ > } else { > include('includes/header.inc'); > echo '<form method="post" action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; > - echo '<div>'; > + echo '<div>';// div class=? > echo '<input type="hidden" name="FormID" value="' . > $_SESSION['FormID'] . '" />'; > echo '<input type="hidden" name="BalancePeriodEnd" value="' . > $_POST['BalancePeriodEnd'] . '" />'; > > @@ -390,6 +391,7 @@ > > // Page title as IAS1 numerals 10 and 51: > include_once('includes/CurrenciesArray.php');// Array to retrieve > currency name. > + echo '<div id="Report">';// Division to identify the report block. > echo '<p class="page_title_text"><img alt="" class="noprint" > src="'.$RootPath.'/css/'.$Theme. > '/images/gl.png" title="' .// Icon image. > _('Statement of Financial Position') . '" /> ' .// Icon > title. > @@ -399,8 +401,7 @@ > _('as at') . ' ' . $BalanceDate . '<br />' .// Page title, > reporting period. > _('All amounts stated in').': '. > _($CurrencyName[$_SESSION['CompanyRecord']['currencydefault']]).'</p>';// > Page title, reporting presentation currency and level of rounding used. > > - echo '<div class="invoice"> > - <table class="selection" width="100%">'; > + echo '<table class="selection">'; > > if ($_POST['Detail']=='Detailed'){ > $TableHeader = '<tr> > @@ -706,18 +707,19 @@ > </tr>'; > /* echo '</tbody>';// See comment at the begin of the table.*/ > echo '</table>'; > - echo '</div>'; > + echo '</div>';// div id="Report". > echo '<br /> > <div class="centre noprint">'. > '<button onclick="javascript:window.print()" > type="button"><img alt="" src="'.$RootPath.'/css/'.$Theme. > '/images/printer.png" /> ' . _('Print > This') . '</button>'.// "Print This" button. > '<button name="SelectADifferentPeriod" > type="submit" value="'. _('Select A Different Period') .'"><img alt="" > src="'.$RootPath.'/css/'.$Theme. > '/images/gl.png" /> ' . _('Select A > Different Balance Date') . '</button>'.// "Select A Different Period" > button. > - '<button formaction="index.php" type="submit"><img > alt="" src="'.$RootPath.'/css/'.$Theme. > + '<button formaction="index.php?Application=GL" > type="submit"><img alt="" src="'.$RootPath.'/css/'.$Theme. > '/images/previous.png" /> ' . _('Return') > . '</button>'.// "Return" button. > '</div>'; > > - echo '</div></form>'; > + echo '</div>';// div class=? > + echo '</form>'; > } > > include('includes/footer.inc'); > > Modified: trunk/GLProfit_Loss.php > =================================================================== > --- trunk/GLProfit_Loss.php 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/GLProfit_Loss.php 2015-03-07 17:44:35 UTC (rev 7206) > @@ -33,7 +33,7 @@ > . _('webERP is an "accrual" based system (not a "cash based" > system). Accrual systems include items when they are invoiced to the > customer, and when expenses are owed based on the supplier invoice date.') > . '</div>'; > > echo '<form method="post" action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; > - echo '<div>'; > + echo '<div>';// div class=? > echo '<input type="hidden" name="FormID" value="' . > $_SESSION['FormID'] . '" />'; > > if (Date('m') > $_SESSION['YearEnd']){ > @@ -564,7 +564,7 @@ > > include('includes/header.inc'); > echo '<form method="post" action="' . > htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; > - echo '<div>'; > + echo '<div>';// div class=? > echo '<input type="hidden" name="FormID" value="' . > $_SESSION['FormID'] . '" /> > <input type="hidden" name="FromPeriod" value="' . > $_POST['FromPeriod'] . '" /> > <input type="hidden" name="ToPeriod" value="' . > $_POST['ToPeriod'] . '" />'; > @@ -612,6 +612,7 @@ > > // Page title as IAS1 numerals 10 and 51: > include_once('includes/CurrenciesArray.php');// Array to retrieve > currency name. > + echo '<div id="Report">';// Division to identify the report block. > echo '<p class="page_title_text"><img alt="" class="noprint" > src="'.$RootPath.'/css/'.$Theme. > '/images/gl.png" title="' .// Icon image. > _('Statement of Comprehensive Income') . '" /> ' .// Icon > title. > @@ -619,13 +620,13 @@ > // _('Statement of Comprehensive Income') . '<br />' .// Page > title, reporting statement. > stripslashes($_SESSION['CompanyRecord']['coyname']) . '<br > />' .// Page title, reporting entity. > _('For') . ' ' . $NumberOfMonths . ' ' . _('months to') . > ' ' . $PeriodToDate . '<br />' .// Page title, reporting period. > -// _('From') . ' ' . $PeriodFromDate? . ' ' . _('to') . ' ' . > $PeriodToDate . '<br />' .// Page title, reporting period. ?????????? > +// _('From') . ' ' . $PeriodFromDate? . ' ' . _('to') . ' ' . > $PeriodToDate . '<br />' .// Page title, reporting period. ??? > _('All amounts stated in').': '. > _($CurrencyName[$_SESSION['CompanyRecord']['currencydefault']]).'</p>';// > Page title, reporting presentation currency and level of rounding used. > > /*show a table of the accounts info returned by the SQL > Account Code , Account Name , Month Actual, Month Budget, Period > Actual, Period Budget */ > > - echo '<table class="selection" width="100%">'; > + echo '<table class="selection">'; > > if ($_POST['Detail']=='Detailed'){ > $TableHeader = '<tr> > @@ -1303,17 +1304,18 @@ > </tr>'; > /* echo '</tbody>';// See comment at the begin of the table.*/ > echo '</table>'; > + echo '</div>';// div id="Report". > echo '<br /> > <div class="centre noprint">'. > '<button onclick="javascript:window.print()" > type="button"><img alt="" src="'.$RootPath.'/css/'.$Theme. > '/images/printer.png" /> ' . _('Print > This') . '</button>'.// "Print This" button. > '<button name="SelectADifferentPeriod" > type="submit" value="'. _('Select A Different Period') .'"><img alt="" > src="'.$RootPath.'/css/'.$Theme. > '/images/gl.png" /> ' . _('Select A > Different Period') . '</button>'.// "Select A Different Period" button. > - '<button formaction="index.php" type="submit"><img > alt="" src="'.$RootPath.'/css/'.$Theme. > + '<button formaction="index.php?Application=GL" > type="submit"><img alt="" src="'.$RootPath.'/css/'.$Theme. > '/images/previous.png" /> ' . _('Return') > . '</button>'.// "Return" button. > '</div>'; > } > -echo '</div>'; > +echo '</div>';// div class=? > echo '</form>'; > include('includes/footer.inc'); > > > Modified: trunk/css/aguapop/default.css > =================================================================== > --- trunk/css/aguapop/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/aguapop/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -481,7 +481,12 @@ > #FooterTimeDiv{ > float:right; > margin-top:15px; > -} > +} > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/default/default.css > =================================================================== > --- trunk/css/default/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/default/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -275,7 +275,7 @@ > /*** CANVAS ***/ > > #CanvasDiv{ > - background:#588BB6; > + background:#588BB6; > } > > /*** HEADER ***/ > @@ -344,11 +344,11 @@ > white-space:nowrap; > } > #MainMenuDiv ul{ > - margin:0; > + margin:0; > padding:0; > } > #MainMenuDiv li{ > - list-style:none; > + list-style:none; > } > > #MainMenuDiv li a{ > @@ -449,7 +449,12 @@ > float:right; > margin-top:15px; > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > -} > +} > \ No newline at end of file > > Modified: trunk/css/fluid/default.css > =================================================================== > --- trunk/css/fluid/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/fluid/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id: default.css 7166 2015-02-21 21:18:59Z Joshua $*/ > -/* > +/* > "Fluid Tabs" theme for webERP > > by Hindra Joshua > @@ -390,6 +390,11 @@ > } > #FooterVersionDiv{} > #FooterTimeDiv{} > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/fresh/default.css > =================================================================== > --- trunk/css/fresh/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/fresh/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "Fresh" Theme for WebERP > > @@ -10,10 +10,10 @@ > Based from the previous theme "SilverWolf" > Credits to the original authors. > > -NOTE: > +NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would be > for > +To optimized the rest we should examined the whole codes! That would be > for > the next project. :) > > ***/ > @@ -330,14 +330,14 @@ > display:inline; /* items are inline */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > background:#B4BB86; > border:thin outset #5A5F00; > color:#5A5F00; > - padding:8px; > + padding:8px; > } > #QuickMenuDiv li a:hover{ > background:#B4BB86; > @@ -377,7 +377,7 @@ > #MainMenuDiv{ > float:left; /* REQUIRED: to the left side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:11%; > background:#617C4F; > } > @@ -400,12 +400,12 @@ > text-decoration:none; > padding:3px; > border:thin inset #617C4F; > - background:#5A5F00; > + background:#5A5F00; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > - border:thin inset #5A5F00; > + border:thin inset #5A5F00; > background:#5A5F00; > - color:white; > + color:white; > } > > /*** BODY - SUB MENU ***/ > @@ -435,7 +435,7 @@ > #SubMenuDiv li{ > /*list-style:none;*/ /* REQUIRED: hide the bullets */ > padding:2px; > - background:#E0F3B1; > + background:#E0F3B1; > } > #SubMenuDiv li img{ > vertical-align:middle; /* verticall align icon with the text */ > @@ -468,7 +468,7 @@ > /* float:left;*/ > /* width:32.5%; > border:thin solid black;*/ > - > + > } > .menu_group_item p { > color: #00f; /* This is the color for bullets, I like it to be the > same as the anchor color, but it's up to you */ > @@ -480,14 +480,14 @@ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > background:#C9D392; > } > #FooterWrapDiv{ > overflow:hidden; > padding:3px; > } > -#FooterLogoDiv{ > +#FooterLogoDiv{ > float:right; /* right side */ > background:white; > border-radius:8px; > @@ -503,6 +503,11 @@ > #FooterTimeDiv{ > clear:left; /* below */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/gel/default.css > =================================================================== > --- trunk/css/gel/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/gel/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "Gel" Theme for WebERP > > @@ -8,10 +8,10 @@ > Based from the previous theme "Gel" > Credits to the original authors. > > -NOTE: > +NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would be > for > +To optimized the rest we should examined the whole codes! That would be > for > the next project. :) > > ***/ > @@ -168,11 +168,11 @@ > div.error { /*** is this used??? ***/ > background-color:red; > color: white; > - font-style: italic; > + font-style: italic; > font-weight:bold; > border: 3px solid red; > } > -div.warn { > +div.warn { > background-color:#fa0; > color: black; > border: 1px solid black; > @@ -358,9 +358,9 @@ > display:inline; /* items are inline */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > padding:5px; /* links as button */ > border:2px outset transparent; /* un-pressed state */ > @@ -373,7 +373,7 @@ > border:2px inset steelblue; /* pressed state */ > text-decoration:none; /* no underline */ > color:whie; > - border-radius:15px; > + border-radius:15px; > } > > /*** BODY ***/ > @@ -400,7 +400,7 @@ > #MainMenuDiv{ > float:left; /* REQUIRED: to the left side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:11%; > background:url(images/gelbluev.png) repeat-y blue; > background-size:contain; > @@ -408,7 +408,7 @@ > border-radius:20px; > margin-top:5px; > padding:3px; > - > + > } > #MainMenuDiv ul{ > list-style:none; /* REQUIRED: hide bullets */ > @@ -431,14 +431,14 @@ > text-decoration:none; > padding:3px; > border:2px inset steelblue; > - background:none; > + background:none; > border-radius:15px; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > text-decoration:none; > padding:3px; > border:2px inset steelblue; > - background:none; > + background:none; > border-radius:15px; > } > > @@ -455,7 +455,7 @@ > #SubMenuDiv ul{ > list-style-type:none; /* REQUIRED: hide bullets */ > padding:0; /* REQUIRED: remove extra gaps (ex-bullets) */ > - margin:0; > + margin:0; > border:thin solid black; > margin-left:3px; > } > @@ -495,10 +495,10 @@ > background:#bfd8ff; > } > #TransactionsDiv{ > - display:table-cell; > + display:table-cell; > } > #InquiriesDiv{ > - display:table-cell; > + display:table-cell; > } > #InquiriesDiv div{ /* default div, used for custom report header */ > background:#dddddd; > @@ -507,14 +507,14 @@ > /* border:thin outset silver;*/ > } > #MaintenanceDiv{ > - display:table-cell; > + display:table-cell; > } > > /*** FOOTER ***/ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > color:gray; > background:url(images/bar.png) repeat-x lightgray; > border:thin solid lightgray; > @@ -540,6 +540,11 @@ > line-height:2.8em; /* Center the text vertically. > [vertical-align has no > effect on text alone] */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/print.css > =================================================================== > --- trunk/css/print.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/print.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -100,4 +100,11 @@ > padding:0; > } > > +#Report { > + /* Division id for reports. */} > +#Report table { > + width:100%; > + /* Expands the body of the report to use the full width of the > page. */ > } > + > +} > > Modified: trunk/css/professional/default.css > =================================================================== > --- trunk/css/professional/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/professional/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "Professional" Theme for WebERP > > @@ -10,10 +10,10 @@ > Based from the previous theme "SilverWolf" > Credits to the original authors. > > -NOTE: > +NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would be > for > +To optimized the rest we should examined the whole codes! That would be > for > the next project. :) > > ***/ > @@ -150,7 +150,7 @@ > > /* input as button or text */ > /* NOTE: input for button should have different class, one for 'normal' > and one for 'input button inside a table, > -which should have the same width as the column where it is located > +which should have the same width as the column where it is located > e.g.: class input_button, input_column_button, input_text */ > input { > } > @@ -374,9 +374,9 @@ > display:inline; /* items are inline */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > padding:3px; /* links as button */ > border:thin outset #ddd; /* un-pressed state */ > @@ -418,7 +418,7 @@ > #MainMenuDiv{ > float:left; /* REQUIRED: to the left side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:11%; > background:#ddd; > } > @@ -441,12 +441,12 @@ > text-decoration:none; > padding:3px; > border:thin inset #ddd; > - background:#ddd; > + background:#ddd; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > - border:thin inset #ccc; > + border:thin inset #ccc; > background:#ccc; > - color:blue; > + color:blue; > text-decoration:none; > } > > @@ -460,7 +460,7 @@ > #SubMenuDiv ul{ > list-style-type:none; /* REQUIRED: hide bullets */ > padding:0; /* REQUIRED: remove extra gaps (ex-bullets) */ > - margin-top:0px; > + margin-top:0px; > margin-left:3px; > border:thin outset #ddd; > } > @@ -500,7 +500,7 @@ > /* float:left;*/ > /* width:32.5%; > border:thin solid black;*/ > - > + > } > .menu_group_item p { > color: #00f; /* This is the color for bullets, I like it to be the > same as the anchor color, but it's up to you */ > @@ -512,14 +512,14 @@ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > color:gray; > } > #FooterWrapDiv{ > overflow:hidden; > padding:3px; > } > -#FooterLogoDiv{ > +#FooterLogoDiv{ > float:right; /* right side */ > } > #FooterVersionDiv{ > @@ -528,6 +528,11 @@ > #FooterTimeDiv{ > clear:left; /* below */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/professional-rtl/default.css > =================================================================== > --- trunk/css/professional-rtl/default.css 2015-03-07 16:13:57 UTC > (rev 7205) > +++ trunk/css/professional-rtl/default.css 2015-03-07 17:44:35 UTC > (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "Professional RTL" Theme for WebERP > For Right-To-Left Languages > @@ -11,10 +11,10 @@ > Based from the previous theme "SilverWolf" > Credits to the original authors. > > -NOTE: > +NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would be > for > +To optimized the rest we should examined the whole codes! That would be > for > the next project. :) > > ***/ > @@ -155,7 +155,7 @@ > > /* input as button or text */ > /* NOTE: input for button should have different class, one for 'normal' > and one for 'input button inside a table, > -which should have the same width as the column where it is located > +which should have the same width as the column where it is located > e.g.: class input_button, input_column_button, input_text */ > input { > font-family: Arial, Verdana, Helvetica; > @@ -394,9 +394,9 @@ > float:right; /* right to left */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > padding:3px; /* links as button */ > border:thin outset #ddd; /* un-pressed state */ > @@ -438,7 +438,7 @@ > #MainMenuDiv{ > float:right; /* REQUIRED: to the RIGHT side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:11%; > background:#ddd; > } > @@ -461,12 +461,12 @@ > text-decoration:none; > padding:3px; > border:thin inset #ddd; > - background:#ddd; > + background:#ddd; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > - border:thin inset #ccc; > + border:thin inset #ccc; > background:#ccc; > - color:blue; > + color:blue; > text-decoration:none; > } > > @@ -480,7 +480,7 @@ > #SubMenuDiv ul{ > list-style-type:none; /* REQUIRED: hide bullets */ > padding:0; /* REQUIRED: remove extra gaps (ex-bullets) */ > - margin-top:0px; > + margin-top:0px; > margin-left:3px; > border:thin outset #ddd; > } > @@ -520,7 +520,7 @@ > /* float:left;*/ > /* width:32.5%; > border:thin solid black;*/ > - > + > } > .menu_group_item p { > color: #00f; /* This is the color for bullets, I like it to be the > same as the anchor color, but it's up to you */ > @@ -532,14 +532,14 @@ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > color:gray; > } > #FooterWrapDiv{ > overflow:hidden; > padding:3px; > } > -#FooterLogoDiv{ > +#FooterLogoDiv{ > float:left; /* right side */ > } > #FooterVersionDiv{ > @@ -548,6 +548,11 @@ > #FooterTimeDiv{ > clear:right; /* below */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/silverwolf/default.css > =================================================================== > --- trunk/css/silverwolf/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/silverwolf/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,5 +1,5 @@ > /* $Id$*/ > -/*** > +/*** > > New "SilverWolf" Theme for WebERP > > @@ -11,7 +11,7 @@ > NOTE: > This CSS is not yet optimized. Some styles maybe 'redundant' or 'unused', > but for the obvious one it will be cleaned up. > -To optimized the rest we should examined the whole codes! That would be > for > +To optimized the rest we should examined the whole codes! That would be > for > the next project. :) > > ***/ > @@ -363,9 +363,9 @@ > display:inline; /* items are inline */ > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > padding:9px; /* links as button */ > border:thin outset lightgray; /* un-pressed state */ > @@ -394,7 +394,7 @@ > #MainMenuDiv{ > float:left; /* REQUIRED:to the left side */ > white-space:nowrap; /* don't break text */ > - text-align:center; > + text-align:center; > width:12%; > margin-top:3px; > } > @@ -501,6 +501,11 @@ > line-height:2.8em; /* Center the text vertically. > [vertical-align has no > effect on text alone] */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/css/wood/default.css > =================================================================== > --- trunk/css/wood/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/wood/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -571,10 +571,15 @@ > #FooterTimeDiv{ > float:right; > margin-top:17px; > +} > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > +.centre { > + text-align:center; > + /* centre class (general). */ > } > -.centre { > - text-align:center; > - /* centre class (general). */ > -} > > /* END */ > > Modified: trunk/css/xenos/default.css > =================================================================== > --- trunk/css/xenos/default.css 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/css/xenos/default.css 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,12 +1,12 @@ > /* $Id: default.css 7166 2015-02-21 21:18:59Z Khwunchai $*/ > -/*** > +/*** > > Xenos Theme > by Khwunchai J. > > Xenos is a very clean and classy looking theme design for WebERP. > > -NOTE: > +NOTE: > This CSS is not yet fully optimized. Some styles maybe redundant and not > supported by some browser. > > ***/ > @@ -56,7 +56,7 @@ > width:100%; > /*border-collapse: collapse;*/ > border:thin outset #B3B3B3; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -173,7 +173,7 @@ > input[type='text'], input[type='tel'], input[type='password'], > input[type='email'] { > border:thin solid #C3C3C3; > padding:4px 8px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -184,7 +184,7 @@ > input[type='text']:focus, input[type='tel']:focus, > input[type='password']:focus, input[type='email']:focus, > input[type='submit'], textarea:focus, select:focus, button:focus { > outline:none; > border-color:#2380CD; > - > + > -moz-box-shadow: 0px 0px 5px #55B1EA; > -webkit-box-shadow: 0px 0px 5px #55B1EA; > box-shadow: 0px 0px 5px #55B1EA; > @@ -197,7 +197,7 @@ > font-weight:bold; > color:#FFFFFF; > cursor: pointer; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -211,7 +211,7 @@ > textarea{ > border:thin solid #C3C3C3; > padding:4px 8px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -411,9 +411,9 @@ > height:38px; > } > > -/*** links as buttons!!! clicking anywhere in the button will activate > +/*** links as buttons!!! clicking anywhere in the button will activate > the link!!! ***HJ***/ > - > + > #QuickMenuDiv li a{ > color:white; > font-weight:bold; > @@ -455,7 +455,7 @@ > width:auto; /* automatic width */ > margin:0 auto; > margin-bottom:10px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -469,7 +469,7 @@ > background-color:white; > border:thin outset #D2D2D2; > padding:5px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -491,7 +491,7 @@ > width:14%; > border:thin inset #5D5D5D; > background:#686868; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -528,7 +528,7 @@ > border-bottom:thin solid #444444; > } > #MainMenuDiv .main_menu_selected a{ /* the selected button */ > - /*border:thin inset #191919;*/ > + /*border:thin inset #191919;*/ > background:#2A2A2A; > border-bottom:thin solid #191919; > } > @@ -545,7 +545,7 @@ > border:thin outset #D2D2D2; > background-color:white; /* for custom reports */ > min-height:400px; > - > + > -webkit-border-radius: 4px; > -moz-border-radius: 4px; > border-radius: 4px; > @@ -609,7 +609,7 @@ > > #FooterDiv{ > clear:both; /* REQUIRED */ > - overflow:hidden; > + overflow:hidden; > color:#999999; > width: 98.6%; > margin: auto; > @@ -622,7 +622,7 @@ > overflow:hidden; > padding:3px; > } > -#FooterLogoDiv{ > +#FooterLogoDiv{ > float:right; /* right side */ > padding:2px; > } > @@ -636,6 +636,11 @@ > #FooterTimeDiv{ > clear:left; /* below */ > } > +#Report { > + /* Division id for reports. */} > +#Report table { > + /* Body of a report formatted with table tag. */ > +} > .centre { > text-align:center; > /* centre class (general). */ > > Modified: trunk/doc/Change.log > =================================================================== > --- trunk/doc/Change.log 2015-03-07 16:13:57 UTC (rev 7205) > +++ trunk/doc/Change.log 2015-03-07 17:44:35 UTC (rev 7206) > @@ -1,4 +1,6 @@ > webERP Change Log > + > +07/03/15 RChacon: Deletes class="invoice" (it does not exist in css). > Creates division id="Report" to identify the report block. Moves full width > style to print.css (thanks Tim Schofield). > 07/03/15 Exson: Fixed undefined index noise in ShipmentCosting.php. > 07/03/15 Exson: Fixed property ShiptCounter non defined bug in > DefineSuppTransClass.php. > 07/03/15 Exson: Fixed the undefine index OpenOrClose noise in > Shipt_Select.php. > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-svn mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-svn > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > Web-erp-developers mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2015.0.5751 / Virus Database: 4299/9261 - Release Date: 03/09/15 > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > |
From: Rafael C. <raf...@gm...> - 2015-08-04 03:56:46
|
Hi, I added a script to generate an horizontal analysis of the statement of financial position. I inserted the corresponding record to the scripts table, but I did not create a link in the menu. This is because the class="scrollable" is in testing. Specifically, the JavaScript to adjust the width of thead cells. I would like to know if that class will affect the work in process of the CSS for small devices (Exson Qu, et alter). CSS: /* BEGIN: Create a scrollable tbody while thead stays fixed. */ table.scrollable tbody, table.scrollable thead { display: block; } table.scrollable tbody { height: 300px;/* Just for the demo. */ overflow-x: hidden;/* Hide the horizontal scroll. */ overflow-y: auto;/* Trigger vertical scroll. */ } /* END: Create a scrollable tbody while thead stays fixed. */ JavaScript: // Change the selector if needed var $table = $('table.scroll'), $bodyCells = $table.find('tbody tr:first').children(), colWidth; // Adjust the width of thead cells when window resizes $(window).resize(function() { // Get the tbody columns width array colWidth = $bodyCells.map(function() { return $(this).width(); }).get(); // Set the width of thead columns $table.find('thead tr').children().each(function(i, v) { $(v).width(colWidth[i]); }); }).resize(); // Trigger resize handler Reference: "HTML table 100% width, with vertical scroll inside tbody - JSFiddle". In process: "Horizontal analysis of the statement of comprehensive income". Best regards, Rafael. ---------- Forwarded message ---------- From: <rc...@us...> Date: 2015-08-03 21:27 GMT-06:00 Subject: [Web-erp-svn] SF.net SVN: web-erp:[7332] trunk To: web...@li... Revision: 7332 http://sourceforge.net/p/web-erp/reponame/7332 Author: rchacon Date: 2015-08-04 03:27:51 +0000 (Tue, 04 Aug 2015) Log Message: ----------- Add new script AnalysisHorizontalPosition.php to generate an horizontal analysis of the statement of financial position. Modified Paths: -------------- trunk/doc/Change.log trunk/sql/mysql/upgrade4.12.3-4.13.sql Added Paths: ----------- trunk/AnalysisHorizontalPosition.php Added: trunk/AnalysisHorizontalPosition.php =================================================================== --- trunk/AnalysisHorizontalPosition.php (rev 0) +++ trunk/AnalysisHorizontalPosition.php 2015-08-04 03:27:51 UTC (rev 7332) @@ -0,0 +1,422 @@ +<?php +/* $Id: AnalysisHorizontalPosition.php 7268 2015-04-19 14:57:47Z rchacon $*/ +/* Horizontal analysis of statement of financial position. */ + +function RelativeVariation($CurrentPeriod, $PreviousPeriod) { + // Calculates the relative variation between current and previous periods. Uses percent in locale number format. + if($PreviousPeriod<>0) { + return locale_number_format(($CurrentPeriod-$PreviousPeriod)*100/$PreviousPeriod,$_SESSION['CompanyRecord']['decimalplaces']) . '%'; + } else { + return _('N/A'); + } +} + +include ('includes/session.inc'); +$Title = _('Horizontal Analysis of Statement of Financial Position');// Screen identification. +$ViewTopic = 'GeneralLedger';// Filename's id in ManualContents.php's TOC. +$BookMark = 'AnalysisHorizontalPosition';// Anchor's id in the manual's html document. +include('includes/SQL_CommonFunctions.inc'); +include('includes/AccountSectionsDef.inc'); // This loads the $Sections variable + +if(! isset($_POST['BalancePeriodEnd']) or isset($_POST['SelectADifferentPeriod'])) { + + /*Show a form to allow input of criteria for TB to show */ + include('includes/header.inc'); + echo '<p class="page_title_text"><img alt="" src="', $RootPath, '/css/', $Theme, + '/images/printer.png" title="', // Icon image. + _('Print Horizontal analysis of statement of financial position'), '" /> ', // Icon title. + _('Horizontal Analysis of Statement of Financial Position'), '</p>';// Page title. + + echo '<div class="page_help_text">', + _('Horizontal analysis (also known as trend analysis) is a financial statement analysis technique that shows changes in the amounts of corresponding financial statement items over a period of time. It is a useful tool to evaluate trend situations.'), '<br />', + _('The statements for two periods are used in horizontal analysis. The earliest period is used as the base period. The items on the later statement are compared with items on the statement of the base period. The changes are shown both in currency (absolute variation) and percentage (relative variation).'), '<br />', + _('webERP is an "accrual" based system (not a "cash based" system). Accrual systems include items when they are invoiced to the customer, and when expenses are owed based on the supplier invoice date.'), '</div>', + '<form method="post" action="', htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), '">', + '<input type="hidden" name="FormID" value="', $_SESSION['FormID'], '" />', + '<table class="selection"> + <tr> + <td>', _('Select the balance date'), ':</td> + <td><select required="required" name="BalancePeriodEnd">'; + + $periodno=GetPeriod(Date($_SESSION['DefaultDateFormat']), $db); + $sql = "SELECT lastdate_in_period FROM periods WHERE periodno='".$periodno . "'"; + $result = DB_query($sql); + $myrow=DB_fetch_array($result, $db); + $lastdate_in_period=$myrow[0]; + + $sql = "SELECT periodno, lastdate_in_period FROM periods ORDER BY periodno DESC"; + $Periods = DB_query($sql); + + while($myrow=DB_fetch_array($Periods,$db)) { + if( $myrow['periodno']== $periodno) { + echo '<option selected="selected" value="', $myrow['periodno'], '">', ConvertSQLDate($lastdate_in_period), '</option>'; + } else { + echo '<option value="', $myrow['periodno'], '">', ConvertSQLDate($myrow['lastdate_in_period']), '</option>'; + } + } + echo '</select></td> + </tr> + <tr> + <td>', _('Detail or summary'), ':</td> + <td><select name="Detail" required="required" title="', _('Selecting Summary will show on the totals at the account group level'), '" > + <option value="Summary">', _('Summary'), '</option> + <option selected="selected" value="Detailed">', _('All Accounts'), '</option> + </select></td> + </tr> + <tr> + <td>', _('Show all accounts including zero balances'), '</td> + <td><input name="ShowZeroBalances" title="', _('Check this box to display all accounts including those accounts with no balance'), '" type="checkbox" /></td> + </tr> + </table> + <br />', // Form buttons: + '<div class="centre noprint">', + '<button name="ShowBalanceSheet" type="submit" value="', _('Show on Screen (HTML)'), '"><img alt="" src="', $RootPath, '/css/', $Theme, + '/images/gl.png" /> ', _('Show on Screen (HTML)'), '</button> ', // "Show on Screen (HTML)" button. + '<button formaction="index.php?Application=GL" type="submit"><img alt="" src="', $RootPath, '/css/', $Theme, + '/images/previous.png" /> ', _('Return'), '</button>', // "Return" button. + '</div>', + '</form>'; + + /*Now do the posting while the user is thinking about the period to select */ + include ('includes/GLPostings.inc'); + +} else { + include('includes/header.inc'); + + $RetainedEarningsAct = $_SESSION['CompanyRecord']['retainedearnings']; + + $sql = "SELECT lastdate_in_period FROM periods WHERE periodno='" . $_POST['BalancePeriodEnd'] . "'"; + $PrdResult = DB_query($sql); + $myrow = DB_fetch_row($PrdResult); + $BalanceDate = ConvertSQLDate($myrow[0]); + + // Calculate B/Fwd retained earnings: + $SQL = "SELECT Sum(CASE WHEN chartdetails.period='" . $_POST['BalancePeriodEnd'] . "' THEN chartdetails.bfwd + chartdetails.actual ELSE 0 END) AS accumprofitbfwd, + Sum(CASE WHEN chartdetails.period='" . ($_POST['BalancePeriodEnd'] - 12) . "' THEN chartdetails.bfwd + chartdetails.actual ELSE 0 END) AS lyaccumprofitbfwd + FROM chartmaster INNER JOIN accountgroups + ON chartmaster.group_ = accountgroups.groupname INNER JOIN chartdetails + ON chartmaster.accountcode= chartdetails.accountcode + WHERE accountgroups.pandl=1"; + + $AccumProfitResult = DB_query($SQL,_('The accumulated profits brought forward could not be calculated by the SQL because')); + + $AccumProfitRow = DB_fetch_array($AccumProfitResult); /*should only be one row returned */ + + $SQL = "SELECT accountgroups.sectioninaccounts, + accountgroups.groupname, + accountgroups.parentgroupname, + chartdetails.accountcode, + chartmaster.accountname, + Sum(CASE WHEN chartdetails.period='" . $_POST['BalancePeriodEnd'] . "' THEN chartdetails.bfwd + chartdetails.actual ELSE 0 END) AS balancecfwd, + Sum(CASE WHEN chartdetails.period='" . ($_POST['BalancePeriodEnd'] - 12) . "' THEN chartdetails.bfwd + chartdetails.actual ELSE 0 END) AS lybalancecfwd + FROM chartmaster INNER JOIN accountgroups + ON chartmaster.group_ = accountgroups.groupname INNER JOIN chartdetails + ON chartmaster.accountcode= chartdetails.accountcode + WHERE accountgroups.pandl=0 + GROUP BY accountgroups.groupname, + chartdetails.accountcode, + chartmaster.accountname, + accountgroups.parentgroupname, + accountgroups.sequenceintb, + accountgroups.sectioninaccounts + ORDER BY accountgroups.sectioninaccounts, + accountgroups.sequenceintb, + accountgroups.groupname, + chartdetails.accountcode"; + + $AccountsResult = DB_query($SQL,_('No general ledger accounts were returned by the SQL because')); + + // Page title as IAS 1, numerals 10 and 51: + include_once('includes/CurrenciesArray.php');// Array to retrieve currency name. + echo '<div id="Report">', // Division to identify the report block. + '<p class="page_title_text"><img alt="" src="', $RootPath, '/css/', $Theme, + '/images/gl.png" title="', // Icon image. + _('Horizontal Analysis of Statement of Financial Position'), '" /> ', // Icon title. + _('Horizontal Analysis of Statement of Financial Position'), '<br />', // Page title, reporting statement. + stripslashes($_SESSION['CompanyRecord']['coyname']), '<br />', // Page title, reporting entity. + _('as at'), ' ', $BalanceDate, '<br />', // Page title, reporting period. + _('All amounts stated in'), ': ', _($CurrencyName[$_SESSION['CompanyRecord']['currencydefault']]), '</p>';// Page title, reporting presentation currency and level of rounding used. + + echo '<table class="scrollable"> + <thead> + <tr>'; + if($_POST['Detail']=='Detailed') {// Detailed report: + echo '<th class="text">', _('Account'), '</th> + <th class="text">', _('Account Name'), '</th>'; + } else {// Summary report: + echo '<th class="text" colspan="2">', _('Summary'), '</th>'; + } + echo '<th class="number">', $BalanceDate, '</th> + <th class="number">', _('Last Year'), '</th> + <th class="number">', _('Absolute variation'), '</th> + <th class="number">', _('Relative variation'), '</th> + </tr> + </thead> + <tbody>';// thead used in conjunction with tbody enable scrolling of the table body independently of the header and footer. Also, when printing a large table that spans multiple pages, these elements can enable the table header to be printed at the top of each page. + + $k=0; //row colour counter + $Section=''; + $SectionBalance = 0; + $SectionBalanceLY = 0; + + $LYCheckTotal = 0; + $CheckTotal = 0; + + $ActGrp =''; + $Level=0; + $ParentGroups=array(); + $ParentGroups[$Level]=''; + $GroupTotal = array(0); + $LYGroupTotal = array(0); + + $j=0; //row counter + + while($myrow=DB_fetch_array($AccountsResult)) { + $AccountBalance = $myrow['balancecfwd']; + $LYAccountBalance = $myrow['lybalancecfwd']; + + if($myrow['accountcode'] == $RetainedEarningsAct) { + $AccountBalance += $AccumProfitRow['accumprofitbfwd']; + $LYAccountBalance += $AccumProfitRow['lyaccumprofitbfwd']; + } + + if($myrow['groupname']!= $ActGrp AND $ActGrp != '') { + if($myrow['parentgroupname']!=$ActGrp) { + while($myrow['groupname']!=$ParentGroups[$Level] AND $Level>0) { + if($_POST['Detail']=='Detailed') { + echo '<tr> + <td colspan="2"> </td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + </tr>'; + } + echo '<tr> + <td colspan="2"><i>', $ParentGroups[$Level], '</i></td> + <td class="number">', locale_number_format($GroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($LYGroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($GroupTotal[$Level]-$LYGroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', RelativeVariation($GroupTotal[$Level],$LYGroupTotal[$Level]), '</td> + </tr>'; + $GroupTotal[$Level] = 0; + $LYGroupTotal[$Level] = 0; + $ParentGroups[$Level] = ''; + $Level--; + $j++; + } + if($_POST['Detail']=='Detailed') { + echo '<tr> + <td colspan="2"> </td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + </tr>'; + } + echo '<tr> + <td colspan="2">', $ParentGroups[$Level], '</td> + <td class="number">', locale_number_format($GroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($LYGroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($GroupTotal[$Level]-$LYGroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', RelativeVariation($GroupTotal[$Level],$LYGroupTotal[$Level]), '</td> + </tr>'; + $GroupTotal[$Level] = 0; + $LYGroupTotal[$Level] = 0; + $ParentGroups[$Level] = ''; + $j++; + } + } + if($myrow['sectioninaccounts'] != $Section ) { + + if($Section!='') { + if($_POST['Detail']=='Detailed') { + echo '<tr> + <td colspan="2"> </td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + </tr>'; + } else { + echo '<tr> + <td colspan="2"> </td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + </tr>'; + } + echo '<tr> + <td colspan="2"><h2>', $Sections[$Section], '</h2></td> + <td class="number"><h2>', locale_number_format($SectionBalance,$_SESSION['CompanyRecord']['decimalplaces']), '</h2></td> + <td class="number"><h2>', locale_number_format($SectionBalanceLY,$_SESSION['CompanyRecord']['decimalplaces']), '</h2></td> + <td class="number"><h2>', locale_number_format($SectionBalance-$SectionBalanceLY,$_SESSION['CompanyRecord']['decimalplaces']), '</h2></td> + <td class="number"><h2>', RelativeVariation($SectionBalance,$SectionBalanceLY), '</h2></td> + </tr>'; + $j++; + } + $SectionBalanceLY = 0; + $SectionBalance = 0; + $Section = $myrow['sectioninaccounts']; + if($_POST['Detail']=='Detailed') { + echo '<tr> + <td colspan="6"><h2>', $Sections[$myrow['sectioninaccounts']], '</h2></td> + </tr>'; + } + } + + if($myrow['groupname'] != $ActGrp) { + + if($ActGrp!='' AND $myrow['parentgroupname']==$ActGrp) { + $Level++; + } + + if($_POST['Detail']=='Detailed') { + $ActGrp = $myrow['groupname']; + echo '<tr> + <td colspan="6"><h3>', $myrow['groupname'], '</h3></td> + </tr>'; + } + $GroupTotal[$Level] = 0; + $LYGroupTotal[$Level] = 0; + $ActGrp = $myrow['groupname']; + $ParentGroups[$Level] = $myrow['groupname']; + $j++; + } + + $SectionBalanceLY += $LYAccountBalance; + $SectionBalance += $AccountBalance; + for ($i=0;$i<=$Level;$i++) { + $LYGroupTotal[$i] += $LYAccountBalance; + $GroupTotal[$i] += $AccountBalance; + } + $LYCheckTotal += $LYAccountBalance; + $CheckTotal += $AccountBalance; + + if($_POST['Detail']=='Detailed') { + if(isset($_POST['ShowZeroBalances']) OR (!isset($_POST['ShowZeroBalances']) AND (round($AccountBalance,$_SESSION['CompanyRecord']['decimalplaces']) <> 0 OR round($LYAccountBalance,$_SESSION['CompanyRecord']['decimalplaces']) <> 0))) { + if($k==1) { + echo '<tr class="OddTableRows">'; + $k=0; + } else { + echo '<tr class="EvenTableRows">'; + $k++; + } + echo '<td><a href="', $RootPath, '/GLAccountInquiry.php?Period=', $_POST['BalancePeriodEnd'], '&Account=', $myrow['accountcode'], '">', $myrow['accountcode'], '</a></td> + <td>', htmlspecialchars($myrow['accountname'],ENT_QUOTES,'UTF-8',false), '</td> + <td class="number">', locale_number_format($AccountBalance,$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($LYAccountBalance,$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($AccountBalance-$LYAccountBalance,$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', RelativeVariation($AccountBalance,$LYAccountBalance), '</td> + </tr>'; + $j++; + } + } + } + //end of loop + + while($myrow['groupname']!=$ParentGroups[$Level] AND $Level>0) { + if($_POST['Detail']=='Detailed') { + echo '<tr> + <td colspan="2"> </td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + </tr>'; + } + echo '<tr> + <td colspan="2"><i>', $ParentGroups[$Level], '</i></td> + <td class="number">', locale_number_format($GroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($LYGroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($GroupTotal[$Level]-$LYGroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', RelativeVariation($GroupTotal[$Level],$LYGroupTotal[$Level]), '</td> + </tr>'; + $Level--; + } + if($_POST['Detail']=='Detailed') { + echo '<tr> + <td colspan="2"> </td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + </tr>'; + } + echo '<tr> + <td colspan="2">', $ParentGroups[$Level], '</td> + <td class="number">', locale_number_format($GroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($LYGroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', locale_number_format($GroupTotal[$Level]-$LYGroupTotal[$Level],$_SESSION['CompanyRecord']['decimalplaces']), '</td> + <td class="number">', RelativeVariation($GroupTotal[$Level],$LYGroupTotal[$Level]), '</td> + </tr>'; + + echo '<tr> + <td colspan="2"> </td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + </tr>'; + + echo '<tr> + <td colspan="2"><h2>', $Sections[$Section], '</h2></td> + <td class="number"><h2>', locale_number_format($SectionBalance,$_SESSION['CompanyRecord']['decimalplaces']), '</h2></td> + <td class="number"><h2>', locale_number_format($SectionBalanceLY,$_SESSION['CompanyRecord']['decimalplaces']), '</h2></td> + <td class="number"><h2>', locale_number_format($SectionBalance-$SectionBalanceLY,$_SESSION['CompanyRecord']['decimalplaces']), '</h2></td> + <td class="number"><h2>', RelativeVariation($SectionBalance,$SectionBalanceLY), '</h2></td> + </tr>'; + + $Section = $myrow['sectioninaccounts']; + + if(isset($myrow['sectioninaccounts']) and $_POST['Detail']=='Detailed') { + echo '<tr> + <td colspan="6"><h2>', $Sections[$myrow['sectioninaccounts']], '</h2></td> + </tr>'; + } + echo '<tr> + <td colspan="2"> </td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + </tr>'; + + echo'<tr> + <td colspan="2"><h2>', _('Check Total'), '</h2></td> + <td class="number"><h2>', locale_number_format($CheckTotal,$_SESSION['CompanyRecord']['decimalplaces']), '</h2></td> + <td class="number"><h2>', locale_number_format($LYCheckTotal,$_SESSION['CompanyRecord']['decimalplaces']), '</h2></td> + <td class="number"><h2>', locale_number_format($CheckTotal-$LYCheckTotal,$_SESSION['CompanyRecord']['decimalplaces']), '</h2></td> + <td class="number"><h2>', RelativeVariation($CheckTotal,$LYCheckTotal), '</h2></td> + </tr>'; + + echo '<tr> + <td colspan="2"> </td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + <td><hr /></td> + </tr>'; + + echo '</tbody>', // See comment at the begin of the table. + '</table> + </div>', // Close div id="Report". + '<br />'; + + echo '<form method="post" action="', htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), '">', + '<input type="hidden" name="FormID" value="', $_SESSION['FormID'], '" />', + '<input type="hidden" name="BalancePeriodEnd" value="', $_POST['BalancePeriodEnd'], '" />', // Form buttons: + '<div class="centre noprint">', + '<button onclick="javascript:window.print()" type="button"><img alt="" src="', $RootPath, '/css/', $Theme, + '/images/printer.png" /> ', _('Print This'), '</button> ', // "Print This" button. + '<button name="SelectADifferentPeriod" type="submit" value="', _('Select A Different Period'), '"><img alt="" src="', $RootPath, '/css/', $Theme, + '/images/gl.png" /> ', _('Select A Different Period'), '</button> ', // "Select A Different Period" button. + '<button formaction="index.php?Application=GL" type="submit"><img alt="" src="', $RootPath, '/css/', $Theme, + '/images/previous.png" /> ', _('Return'), '</button>', // "Return" button. + '</div>', + '</form>'; +} + +include('includes/footer.inc'); +?> \ No newline at end of file Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2015-08-02 16:54:25 UTC (rev 7331) +++ trunk/doc/Change.log 2015-08-04 03:27:51 UTC (rev 7332) @@ -1,5 +1,6 @@ webERP Change Log +04/08/15 RChacon: Add new script AnalysisHorizontalPosition.php to generate an horizontal analysis of the statement of financial position. 02/08/15 RChacon: In CustomerReceipt.php, move currency tags near currency ratesand other minor changes. 27/07/15 RChacon: In Payments.php, move currency tags near currency rates. 20/06/15 RChacon: In header.inc, add meta tag to keep relationship between CSS pixels and device pixels. Modified: trunk/sql/mysql/upgrade4.12.3-4.13.sql =================================================================== --- trunk/sql/mysql/upgrade4.12.3-4.13.sql 2015-08-02 16:54:25 UTC (rev 7331) +++ trunk/sql/mysql/upgrade4.12.3-4.13.sql 2015-08-04 03:27:51 UTC (rev 7332) @@ -7,5 +7,10 @@ ALTER TABLE `loctransfercancellations` ADD INDEX `Index1` (`reference`, `stockid`) COMMENT ''; ALTER TABLE `loctransfercancellations` ADD INDEX `Index2` (`canceldate`, `reference`, `stockid`) COMMENT ''; +-- Add new script: +INSERT INTO `scripts` (`script`, `pagesecurity`, `description`) VALUES + ('AnalysisHorizontalPosition.php', '8', 'Horizontal analysis of statement of financial position'); + + -- Update version number: UPDATE config SET confvalue='4.13' WHERE confname='VersionNumber'; ------------------------------------------------------------------------------ _______________________________________________ Web-erp-svn mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-svn |
From: Rafael C. <raf...@gm...> - 2016-04-10 17:49:38
|
Hello, I have a question: In SupplierInvoice.php, it is automatically inserted 'inv' into gltrans.narrative for sys_type 20 (Purchase Invoice). I have purchase receipts as valid as purchase Invoices. The problem is that when the document is recorded, the system saves "...Invoice Receipt 99999999..."; An "Invoice Receipt" has no sense, so it must be cleaned inside the database. In your experience, it is this so common as to do a modification to the script? Best regards, Rafael. ---------- Forwarded message ---------- From: <rc...@us...> Date: 2016-04-10 11:12 GMT-06:00 Subject: [Web-erp-svn] SF.net SVN: web-erp:[7489] trunk To: web...@li... Revision: 7489 http://sourceforge.net/p/web-erp/reponame/7489 Author: rchacon Date: 2016-04-10 17:12:51 +0000 (Sun, 10 Apr 2016) Log Message: ----------- On SupplierInvoice.php, add ' - ' to standardise gltran.narrative to "SupplierID - ". On SuppTransGLAnalysis.php, add ViewTopic and Bookmark, completes html tables, add text class, and add currency_code to input table. On css/*/default.css, regroup horizontal align classes for readability. On doc/Manual/ManualAccountsPayable.html, add anchor id="SuppTransGLAnalysis". |
From: Rafael C. <raf...@gm...> - 2017-06-19 16:32:36
|
Hi All, To standardise, I renamed "/css/custom" to "/css/WEBootstrap" (the internal name in /css/WEBootstrap/default.css). I can do in the other way: standardise to "custom". Best regards, Rafael. ---------- Forwarded message ---------- From: rchacon--- via Web-erp-svn <web...@li...> Date: 2017-06-18 14:24 GMT-06:00 Subject: [Web-erp-svn] SF.net SVN: web-erp:[7781] trunk To: web...@li... Revision: 7781 http://sourceforge.net/p/web-erp/reponame/7781 Author: rchacon Date: 2017-06-18 20:24:23 +0000 (Sun, 18 Jun 2017) Log Message: ----------- Rename from css/custom/ to from css/WEBootstrap/ Modified Paths: -------------- trunk/doc/Change.log Added Paths: ----------- trunk/css/WEBootstrap/ Removed Paths: ------------- trunk/css/custom/ Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2017-06-18 18:56:51 UTC (rev 7780) +++ trunk/doc/Change.log 2017-06-18 20:24:23 UTC (rev 7781) @@ -1,5 +1,6 @@ webERP Change Log +18/06/17 RChacon: Rename from css/custom/ to from css/WEBootstrap/. 18/06/17 RChacon: Standardise icon size to 36x36 px in css/custom/ (WEBootstrap). 18/06/17 RChacon: Delete unused images in css/xenos/. 18/06/17 Tim (committed by RChacon): Improve jump to enter a GL receipt if 'Type'=='GL' in CustomerReceipt.php. ------------------------------------------------------------ ------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Web-erp-svn mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-svn |