This list is closed, nobody may subscribe to it.
2011 |
Jan
(14) |
Feb
(42) |
Mar
(56) |
Apr
(60) |
May
(54) |
Jun
(48) |
Jul
(74) |
Aug
(52) |
Sep
(68) |
Oct
(64) |
Nov
(42) |
Dec
(62) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2012 |
Jan
(142) |
Feb
(270) |
Mar
(374) |
Apr
(230) |
May
(214) |
Jun
(116) |
Jul
(234) |
Aug
(66) |
Sep
(120) |
Oct
(16) |
Nov
(17) |
Dec
(41) |
2013 |
Jan
(19) |
Feb
(18) |
Mar
(8) |
Apr
(40) |
May
(121) |
Jun
(42) |
Jul
(127) |
Aug
(145) |
Sep
(27) |
Oct
(38) |
Nov
(83) |
Dec
(61) |
2014 |
Jan
(33) |
Feb
(35) |
Mar
(59) |
Apr
(41) |
May
(38) |
Jun
(45) |
Jul
(17) |
Aug
(58) |
Sep
(46) |
Oct
(51) |
Nov
(55) |
Dec
(36) |
2015 |
Jan
(57) |
Feb
(67) |
Mar
(70) |
Apr
(34) |
May
(32) |
Jun
(11) |
Jul
(3) |
Aug
(17) |
Sep
(16) |
Oct
(13) |
Nov
(30) |
Dec
(30) |
2016 |
Jan
(17) |
Feb
(12) |
Mar
(17) |
Apr
(20) |
May
(47) |
Jun
(15) |
Jul
(13) |
Aug
(30) |
Sep
(32) |
Oct
(20) |
Nov
(32) |
Dec
(24) |
2017 |
Jan
(16) |
Feb
|
Mar
(11) |
Apr
(11) |
May
(5) |
Jun
(42) |
Jul
(9) |
Aug
(10) |
Sep
(14) |
Oct
(15) |
Nov
(2) |
Dec
(29) |
2018 |
Jan
(28) |
Feb
(49) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <dai...@us...> - 2012-02-22 09:05:39
|
Revision: 4951 http://web-erp.svn.sourceforge.net/web-erp/?rev=4951&view=rev Author: daintree Date: 2012-02-22 09:05:28 +0000 (Wed, 22 Feb 2012) Log Message: ----------- cost of negative stock changes Modified Paths: -------------- trunk/DailySalesInquiry.php trunk/SupplierInvoice.php trunk/doc/Change.log Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2012-02-22 06:26:38 UTC (rev 4950) +++ trunk/DailySalesInquiry.php 2012-02-22 09:05:28 UTC (rev 4951) @@ -81,12 +81,14 @@ $sql = "SELECT trandate, SUM(price*(1-discountpercent)* (-qty)) as salesvalue, - SUM((standardcost * -qty)) as cost + SUM(CASE WHEN mbflag='A' THEN 0 ELSE (standardcost * -qty) END) as cost FROM stockmoves - INNER JOIN custbranch ON stockmoves.debtorno=custbranch.debtorno - AND stockmoves.branchcode=custbranch.branchcode + INNER JOIN stockmaster + ON stockmoves.stockid=stockmaster.stockid + INNER JOIN custbranch + ON stockmoves.debtorno=custbranch.debtorno + AND stockmoves.branchcode=custbranch.branchcode WHERE (stockmoves.type=10 or stockmoves.type=11) - AND show_on_inv_crds =1 AND trandate>='" . $StartDateSQL . "' AND trandate<='" . $EndDateSQL . "'"; Modified: trunk/SupplierInvoice.php =================================================================== --- trunk/SupplierInvoice.php 2012-02-22 06:26:38 UTC (rev 4950) +++ trunk/SupplierInvoice.php 2012-02-22 09:05:28 UTC (rev 4951) @@ -1325,7 +1325,17 @@ WHERE stkmoveno = '" . $StkMoveRow['stkmoveno'] . "'", $db,$ErrMsg,$DbgMsg,True); } - } //end if the invoice qty is more than is left to allocate + } else { //Only $QuantityVarianceAllocated left to allocate so need need to apportion cost using weighted average + if ($StkMoveRow['type']==10) { //its a sales invoice + + $WACost = (((-$StkMoveRow['qty']- $QuantityVarianceAllocated)*$StkMoveRow['standardcost'])+($QuantityVarianceAllocated*$ActualCost))/-$StkMoveRow['qty']; + + $UpdStkMovesResult = DB_query("UPDATE stockmoves + SET standardcost = '" . $WACost . "' + WHERE stkmoveno = '" . $StkMoveRow['stkmoveno'] . "'", + $db,$ErrMsg,$DbgMsg,True); + } + } $QuantityVarianceAllocated+=$StkMoveRow['qty']; } } // end if the quantity being invoiced here is greater than the current stock on hand @@ -1353,7 +1363,7 @@ /* if stock is negative then update the cost to this cost */ $sql = "UPDATE stockmaster SET lastcost=materialcost+overheadcost+labourcost, - materialcost='" . ($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate) . "' + materialcost='" . $ActualCost . "' WHERE stockid='" . $EnteredGRN->ItemCode . "'"; $Result = DB_query($sql, $db, $ErrMsg, $DbgMsg, True); } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2012-02-22 06:26:38 UTC (rev 4950) +++ trunk/doc/Change.log 2012-02-22 09:05:28 UTC (rev 4951) @@ -1,5 +1,6 @@ webERP Change Log +22/2/12 Phil: Make daily sales inquiry work correctly with assembly items where costs are recalculated in the case of negatives stock when supplier invoices entered 22/2/12 James Dupin: Update to French translation 22/2/12 Phil: Add ENT_QUOTES, 'UTF-8' to all htmlspecialchars calls 17/2/12 Phil: SuppCreditGRNs.php SuppInvGRNs.php DefineSuppTransClass.php SupplierInvoice.php stock movement was not being updated correctly with cost on purchase invoice entry as was using GRNNo not GRNBatchNo - which is used as the GRN transaction number in stock movements. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-02-22 09:05:35
|
Revision: 4951 http://web-erp.svn.sourceforge.net/web-erp/?rev=4951&view=rev Author: daintree Date: 2012-02-22 09:05:28 +0000 (Wed, 22 Feb 2012) Log Message: ----------- cost of negative stock changes Modified Paths: -------------- trunk/DailySalesInquiry.php trunk/SupplierInvoice.php trunk/doc/Change.log Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2012-02-22 06:26:38 UTC (rev 4950) +++ trunk/DailySalesInquiry.php 2012-02-22 09:05:28 UTC (rev 4951) @@ -81,12 +81,14 @@ $sql = "SELECT trandate, SUM(price*(1-discountpercent)* (-qty)) as salesvalue, - SUM((standardcost * -qty)) as cost + SUM(CASE WHEN mbflag='A' THEN 0 ELSE (standardcost * -qty) END) as cost FROM stockmoves - INNER JOIN custbranch ON stockmoves.debtorno=custbranch.debtorno - AND stockmoves.branchcode=custbranch.branchcode + INNER JOIN stockmaster + ON stockmoves.stockid=stockmaster.stockid + INNER JOIN custbranch + ON stockmoves.debtorno=custbranch.debtorno + AND stockmoves.branchcode=custbranch.branchcode WHERE (stockmoves.type=10 or stockmoves.type=11) - AND show_on_inv_crds =1 AND trandate>='" . $StartDateSQL . "' AND trandate<='" . $EndDateSQL . "'"; Modified: trunk/SupplierInvoice.php =================================================================== --- trunk/SupplierInvoice.php 2012-02-22 06:26:38 UTC (rev 4950) +++ trunk/SupplierInvoice.php 2012-02-22 09:05:28 UTC (rev 4951) @@ -1325,7 +1325,17 @@ WHERE stkmoveno = '" . $StkMoveRow['stkmoveno'] . "'", $db,$ErrMsg,$DbgMsg,True); } - } //end if the invoice qty is more than is left to allocate + } else { //Only $QuantityVarianceAllocated left to allocate so need need to apportion cost using weighted average + if ($StkMoveRow['type']==10) { //its a sales invoice + + $WACost = (((-$StkMoveRow['qty']- $QuantityVarianceAllocated)*$StkMoveRow['standardcost'])+($QuantityVarianceAllocated*$ActualCost))/-$StkMoveRow['qty']; + + $UpdStkMovesResult = DB_query("UPDATE stockmoves + SET standardcost = '" . $WACost . "' + WHERE stkmoveno = '" . $StkMoveRow['stkmoveno'] . "'", + $db,$ErrMsg,$DbgMsg,True); + } + } $QuantityVarianceAllocated+=$StkMoveRow['qty']; } } // end if the quantity being invoiced here is greater than the current stock on hand @@ -1353,7 +1363,7 @@ /* if stock is negative then update the cost to this cost */ $sql = "UPDATE stockmaster SET lastcost=materialcost+overheadcost+labourcost, - materialcost='" . ($EnteredGRN->ChgPrice / $_SESSION['SuppTrans']->ExRate) . "' + materialcost='" . $ActualCost . "' WHERE stockid='" . $EnteredGRN->ItemCode . "'"; $Result = DB_query($sql, $db, $ErrMsg, $DbgMsg, True); } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2012-02-22 06:26:38 UTC (rev 4950) +++ trunk/doc/Change.log 2012-02-22 09:05:28 UTC (rev 4951) @@ -1,5 +1,6 @@ webERP Change Log +22/2/12 Phil: Make daily sales inquiry work correctly with assembly items where costs are recalculated in the case of negatives stock when supplier invoices entered 22/2/12 James Dupin: Update to French translation 22/2/12 Phil: Add ENT_QUOTES, 'UTF-8' to all htmlspecialchars calls 17/2/12 Phil: SuppCreditGRNs.php SuppInvGRNs.php DefineSuppTransClass.php SupplierInvoice.php stock movement was not being updated correctly with cost on purchase invoice entry as was using GRNNo not GRNBatchNo - which is used as the GRN transaction number in stock movements. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-02-22 06:26:56
|
Revision: 4950 http://web-erp.svn.sourceforge.net/web-erp/?rev=4950&view=rev Author: daintree Date: 2012-02-22 06:26:38 +0000 (Wed, 22 Feb 2012) Log Message: ----------- fully qualify htmlspecialchars() function Modified Paths: -------------- trunk/AddCustomerTypeNotes.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/BankReconciliation.php trunk/COGSGLPostings.php trunk/CompanyPreferences.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/ContractCosting.php trunk/ContractOtherReqts.php trunk/Contracts.php trunk/CounterSales.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustWhereAlloc.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/DebtorsAtPeriodEnd.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/EDIMessageFormat.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/FTP_RadioBeacon.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/GLJournal.php trunk/GLProfit_Loss.php trunk/GLTagProfit_Loss.php trunk/GLTags.php trunk/GLTrialBalance.php trunk/GLTrialBalance_csv.php trunk/GeocodeSetup.php trunk/GoodsReceived.php trunk/InventoryPlanning.php trunk/InventoryPlanningPrefSupplier.php trunk/InventoryQuantities.php trunk/InventoryValuation.php trunk/Labels.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/OffersReceived.php trunk/OutstandingGRNs.php trunk/PDFBankingSummary.php trunk/PDFChequeListing.php trunk/PDFCustTransListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFLowGP.php trunk/PDFOrderStatus.php trunk/PDFOrdersInvoiced.php trunk/PDFPeriodStockTransListing.php trunk/PDFPickingList.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFRemittanceAdvice.php trunk/PDFStockCheckComparison.php trunk/PDFStockLocTransfer.php trunk/PDFStockTransfer.php trunk/PDFSuppTransListing.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_AuthoriseMyOrders.php trunk/PO_Header.php trunk/PO_Items.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/Prices.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.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/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/SpecialOrder.php trunk/StockAdjustments.php trunk/StockCategories.php trunk/StockCheck.php trunk/StockCostUpdate.php trunk/StockCounts.php trunk/StockDispatch.php trunk/StockLocMovements.php trunk/StockLocStatus.php trunk/StockLocTransfer.php trunk/StockLocTransferReceive.php trunk/StockMovements.php trunk/StockQuantityByDate.php trunk/StockReorderLevel.php trunk/StockSerialItemResearch.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/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_ChangeCustomerCode.php trunk/Z_ChangeStockCategory.php trunk/Z_ChangeStockCode.php trunk/Z_CheckDebtorsControl.php trunk/Z_CreateCompanyTemplateFile.php trunk/Z_DataExport.php trunk/Z_DeleteSalesTransActions.php trunk/Z_ImportChartOfAccounts.php trunk/Z_ImportGLAccountGroups.php trunk/Z_ImportGLAccountSections.php trunk/Z_ImportPartCodes.php trunk/Z_MakeNewCompany.php trunk/Z_ReApplyCostToSA.php trunk/Z_RePostGLFromPeriod.php trunk/Z_ReverseSuppPaymentRun.php trunk/Z_UpdateChartDetailsBFwd.php trunk/Z_Upgrade3.10.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_poAddLanguage.php trunk/Z_poEditLangHeader.php trunk/Z_poEditLangModule.php trunk/Z_poEditLangRemaining.php trunk/Z_poRebuildDefault.php trunk/config.distrib.php trunk/doc/Change.log trunk/doc/Manual/ManualContents.php trunk/doc/Manual/ManualGettingStarted.html trunk/includes/InputSerialItems.php trunk/includes/InputSerialItemsExisting.php trunk/includes/InputSerialItemsKeyed.php trunk/includes/InputSerialItemsSequential.php trunk/includes/OutputSerialItems.php trunk/includes/session.inc trunk/includes/tcpdf/config/tcpdf_config.php trunk/includes/tcpdf/config/tcpdf_config_alt.php trunk/locale/zh_CN.utf8/Manual/ManualContents.php trunk/locale/zh_CN.utf8/Manual/ManualGettingStarted.html trunk/locale/zh_HK.utf8/Manual/ManualContents.php trunk/locale/zh_HK.utf8/Manual/ManualGettingStarted.html Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/AddCustomerTypeNotes.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -147,7 +147,7 @@ } if (isset($Id)) { echo '<div class="centre"> - <a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?DebtorType=' . $DebtorType . '">' . _('Review all notes for this Customer Type') .'</a> + <a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?DebtorType=' . $DebtorType . '">' . _('Review all notes for this Customer Type') .'</a> </div>'; } Modified: trunk/AuditTrail.php =================================================================== --- trunk/AuditTrail.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/AuditTrail.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -34,7 +34,7 @@ // Get list of users $UserResult = DB_query("SELECT userid FROM www_users",$db); -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; Modified: trunk/BOMExtendedQty.php =================================================================== --- trunk/BOMExtendedQty.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMExtendedQty.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -262,7 +262,7 @@ echo '<br /> <br /> - <form action=' . htmlspecialchars($_SERVER['PHP_SELF']) . ' method="post"> + <form action=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . ' method="post"> <table class="selection"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> <tr> Modified: trunk/BOMIndented.php =================================================================== --- trunk/BOMIndented.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMIndented.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -247,7 +247,7 @@ echo '<br /> <br /> - <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + <form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<tr> Modified: trunk/BOMIndentedReverse.php =================================================================== --- trunk/BOMIndentedReverse.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMIndentedReverse.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -235,7 +235,7 @@ _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; echo '<br /> <br /> - <form action=' . htmlspecialchars($_SERVER['PHP_SELF']) . ' method="post"> + <form action=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . ' method="post"> <table class="selection"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> <tr> Modified: trunk/BOMInquiry.php =================================================================== --- trunk/BOMInquiry.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMInquiry.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -13,7 +13,7 @@ } if (!isset($_POST['StockID'])) { - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <b> <br /> </b> Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMListing.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -112,7 +112,7 @@ /*if $FromCriteria is not set then show a form to allow input */ - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="POST"> + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="POST"> <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMs.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -113,7 +113,7 @@ $DrillID=''; } else { $DrillText = '<a href="%s&Select=%s">' . _('Drill Down'); - $DrillLink = htmlspecialchars($_SERVER['PHP_SELF']) . '?'; + $DrillLink = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?'; $DrillID=$myrow['component']; } if ($ParentMBflag!='M' AND $ParentMBflag!='G'){ @@ -160,12 +160,12 @@ ConvertSQLDate($myrow['effectiveto']), $AutoIssue, $QuantityOnHand, - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $Parent, $myrow['component'], $DrillLink, $DrillID, - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $Parent, $myrow['component'], $UltimateParent); @@ -418,7 +418,7 @@ break; } - echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Select a Different BOM') . '</a></div><br />'; + echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Select a Different BOM') . '</a></div><br />'; echo '<table class="selection">'; // Display Manufatured Parent Items $sql = "SELECT bom.parent, @@ -437,7 +437,7 @@ if( DB_num_rows($result) > 0 ) { echo '<tr><td><div class="centre">'._('Manufactured parent items').' : '; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF']) . '?Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -460,7 +460,7 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Assembly parent items').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF']) . '?Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -482,7 +482,7 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Kit sets').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF']) . '?Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -504,7 +504,7 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Phantom').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF']) . '?Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -564,7 +564,7 @@ if (! isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Select=' . $SelectedParent .'">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select=' . $SelectedParent .'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($_GET['SelectedComponent']) and $InputError !=1) { @@ -830,7 +830,7 @@ if (!isset($SelectedParent)) { 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']) . '" method="post">' . + 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 /><font size="1">' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. '</font> <br /> <table class="selection" cellpadding="3" colspan="4"> Modified: trunk/BackupDatabase.php =================================================================== --- trunk/BackupDatabase.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BackupDatabase.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -44,7 +44,7 @@ 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'); echo '<br /> <br /> - <a href="'. htmlspecialchars($_SERVER['PHP_SELF']) . '?BackupFile=' .$BackupFile .'">' . _('Delete the backup file off the server') . '</a>'; + <a href="'. htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?BackupFile=' .$BackupFile .'">' . _('Delete the backup file off the server') . '</a>'; } else { prnMsg(_('There was some problem producing a backup using mysqldump. Normally this relates to a permissions issue - the web-server user must have permission to write to the companies directory'),'error'); } Modified: trunk/BankReconciliation.php =================================================================== --- trunk/BankReconciliation.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BankReconciliation.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -8,7 +8,7 @@ include('includes/header.inc'); -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/COGSGLPostings.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -111,9 +111,9 @@ $myrow['stkcat'], $myrow['salestype'], $myrow['accountname'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['id'], - htmlspecialchars($_SERVER['PHP_SELF']). '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'). '?', $myrow['id']); }//end while echo '</table>'; @@ -210,9 +210,9 @@ $myrow['stkcat'], $myrow['salestype'], $myrow['accountname'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['id'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['id']); }//END WHILE LIST LOOP @@ -222,12 +222,12 @@ //end of ifs and buts! if (isset($SelectedCOGSPostingID)) { - echo '<div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) .'">' . _('Show all cost of sales posting records') . '</a></div>'; + echo '<div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') .'">' . _('Show all cost of sales posting records') . '</a></div>'; } echo '<br />'; -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedCOGSPostingID)) { Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CompanyPreferences.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -153,7 +153,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ConfirmDispatch_Invoice.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -266,7 +266,7 @@ </table> <br />'; -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; /*************************************************************** Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ContractBOM.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -215,7 +215,7 @@ /* This is where the order as selected should be displayed reflecting any deletions or insertions*/ -echo '<form name="ContractBOMForm" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier. '" method="post">'; +echo '<form name="ContractBOMForm" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier. '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (count($_SESSION['Contract'.$identifier]->ContractBOM)>0){ @@ -263,7 +263,7 @@ <td>' . $ContractComponent->UOM . '</td> <td class="number">' . locale_number_format($ContractComponent->ItemCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> <td class="number">' . $DisplayLineTotal . '</td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier. '&Delete=' . $ContractComponent->ComponentID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the contract BOM?') . '\');">' . _('Delete') . '</a></td></tr>'; + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier. '&Delete=' . $ContractComponent->ComponentID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the contract BOM?') . '\');">' . _('Delete') . '</a></td></tr>'; $TotalCost += $LineTotal; } Modified: trunk/ContractCosting.php =================================================================== --- trunk/ContractCosting.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ContractCosting.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -432,7 +432,7 @@ if ($_SESSION['Contract'.$identifier]->Status ==2){//the contract is an order being processed now - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?SelectedContract=' . $_SESSION['Contract'.$identifier]->ContractRef . '&identifier=' . $identifier . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?SelectedContract=' . $_SESSION['Contract'.$identifier]->ContractRef . '&identifier=' . $identifier . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<br /> <div class="centre"> Modified: trunk/ContractOtherReqts.php =================================================================== --- trunk/ContractOtherReqts.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ContractOtherReqts.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -75,7 +75,7 @@ /* This is where the other requirement as entered/modified should be displayed reflecting any deletions or insertions*/ -echo '<form name="ContractReqtsForm" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier. '" method="post">'; +echo '<form name="ContractReqtsForm" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier. '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/contract.png" title="' . _('Contract Other Requirements') . '" alt="" /> ' . _('Contract Other Requirements') . ' - ' . $_SESSION['Contract'.$identifier]->CustomerName.'</p>'; @@ -116,7 +116,7 @@ <td><input type="text" class="number" name="Qty' . $ContractReqtID . '" size="11" value="' . locale_number_format($ContractComponent->Quantity,'Variable') . '" /></td> <td><input type="text" class="number" name="CostPerUnit' . $ContractReqtID . '" size="11" value="' . locale_number_format($ContractComponent->CostPerUnit,$_SESSION['CompanyRecord']['decimalplaces']) . '" /></td> <td class="number">' . $DisplayLineTotal . '</td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier. '&Delete=' . $ContractReqtID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this contract requirement?') . '\');">' . _('Delete') . '</a></td> + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier. '&Delete=' . $ContractReqtID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this contract requirement?') . '\');">' . _('Delete') . '</a></td> </tr>'; $TotalCost += $LineTotal; } Modified: trunk/Contracts.php =================================================================== --- trunk/Contracts.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Contracts.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -746,7 +746,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/contract.png" title="' . _('Contract') . '" alt="" />' . ' ' . _('Contract: Select Customer') . '</p>'; - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier=' . $identifier .'" name="CustomerSelection" method="post">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier=' . $identifier .'" name="CustomerSelection" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table cellpadding="3" colspan="4" class="selection"> @@ -814,7 +814,7 @@ //end if RequireCustomerSelection } else { /*A customer is already selected so get into the contract setup proper */ - echo '<form name="ContractEntry" enctype="multipart/form-data" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier=' . $identifier . '" method="post">'; + echo '<form name="ContractEntry" enctype="multipart/form-data" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier=' . $identifier . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"> Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CounterSales.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -212,7 +212,7 @@ echo '<br /><br />'; prnMsg(_('This sale has been cancelled as requested'),'success'); - echo '<br /><br /><a href="' .htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Start a new Counter Sale') . '</a>'; + echo '<br /><br /><a href="' .htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Start a new Counter Sale') . '</a>'; include('includes/footer.inc'); exit; @@ -361,7 +361,7 @@ /* Always do the stuff below */ -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier . '" name="SelectParts" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier . '" name="SelectParts" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; //Get The exchange rate used for GPPercent calculations on adding or amending items @@ -819,7 +819,7 @@ $_SESSION['Items'.$identifier]->TaxGLCodes=$TaxGLCodes; echo '<td class="number">' . locale_number_format($TaxLineTotal ,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td>'; echo '<td class="number">' . locale_number_format($SubTotal + $TaxLineTotal ,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td>'; - echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier . '&Delete=' . $OrderLine->LineNumber . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">' . _('Delete') . '</a></td></tr>'; + echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier . '&Delete=' . $OrderLine->LineNumber . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">' . _('Delete') . '</a></td></tr>'; if ($_SESSION['AllowOrderLineItemNarrative'] == 1){ echo $RowStarter; @@ -1980,7 +1980,7 @@ } else { echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTransPortrait.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Portrait') . ')</a><br /><br />'; } - echo '<br /><br /><a href="' .htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Start a new Counter Sale') . '</a></div>'; + echo '<br /><br /><a href="' .htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Start a new Counter Sale') . '</a></div>'; } // There were input errors so don't process nuffin @@ -2197,7 +2197,7 @@ if (isset($SearchResult)) { $j = 1; - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID .'identifier='.$identifier . '" method="post" name="orderform">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?' . SID .'identifier='.$identifier . '" method="post" name="orderform">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="table1">'; echo '<tr> Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CreditStatus.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -177,9 +177,9 @@ $myrow['reasoncode'], $myrow['reasondescription'], $DissallowText, - htmlspecialchars($_SERVER['PHP_SELF']), + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), $myrow['reasoncode'], - htmlspecialchars($_SERVER['PHP_SELF']), + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), $myrow['reasoncode']); } //END WHILE LIST LOOP @@ -189,13 +189,13 @@ if (isset($SelectedReason)) { echo '<div class="centre"> - <a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Show Defined Credit Status Codes') . '</a> + <a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Show Defined Credit Status Codes') . '</a> </div>'; } if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedReason) and ($InputError!=1)) { Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Credit_Invoice.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -256,7 +256,7 @@ if (!isset($_POST['ProcessCredit'])) { - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) .'" method="post">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') .'" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -378,7 +378,7 @@ echo '<td class="number">' . $DisplayTaxAmount . '</td> <td class="number">' . $DisplayGrossLineTotal . '</td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex="' . $j .'" name="Narrative_' . $LnItm->LineNumber . '" cols="100%" rows="1">' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; $j++; Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Currencies.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -267,10 +267,10 @@ locale_number_format($myrow['decimalplaces'],0), locale_number_format($myrow['rate'],6), locale_number_format(GetCurrencyRate($myrow['currabrev'],$CurrencyRatesArray),6), - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['currabrev'], _('Edit'), - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['currabrev'], _('Delete'), $rootpath, @@ -301,14 +301,14 @@ if (isset($SelectedCurrency)) { - echo '<div class="centre"><a href="' .htmlspecialchars($_SERVER['PHP_SELF']) . '">'._('Show all currency definitions').'</a></div>'; + echo '<div class="centre"><a href="' .htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'._('Show all currency definitions').'</a></div>'; } echo '<br />'; if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedCurrency) AND $SelectedCurrency!='') { Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustEDISetup.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -69,7 +69,7 @@ } } -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<br /><table class="selection">'; Modified: trunk/CustLoginSetup.php =================================================================== --- trunk/CustLoginSetup.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustLoginSetup.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -123,7 +123,7 @@ } -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection"> Modified: trunk/CustWhereAlloc.php =================================================================== --- trunk/CustWhereAlloc.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustWhereAlloc.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -6,7 +6,7 @@ $title = _('Customer How Paid Inquiry'); include('includes/header.inc'); -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"> Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerAllocations.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -336,7 +336,7 @@ if (isset($_POST['AllocTrans'])) { // Page called with trans number - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="AllocTrans" value="' . $_POST['AllocTrans'] . '" />'; @@ -488,7 +488,7 @@ <td class="number">' . locale_number_format($myrow['total'],$myrow['currdecimalplaces']) . '</td> <td class="number">' . locale_number_format($myrow['total']-$myrow['alloc'],$myrow['currdecimalplaces']) . '</td> <td>' . $myrow['currcode'] . '</td>'; - echo '<td><a href=' . htmlspecialchars($_SERVER['PHP_SELF']). '?AllocTrans=' . $myrow['id'] . '>' . _('Allocate') . '</a></td></tr>'; + echo '<td><a href=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'). '?AllocTrans=' . $myrow['id'] . '>' . _('Allocate') . '</a></td></tr>'; } echo '</table><p>'; } else { @@ -529,7 +529,7 @@ $k=0; while ($myrow = DB_fetch_array($result)) { - $AllocateLink = '<a href=' . htmlspecialchars($_SERVER['PHP_SELF']). '?AllocTrans=' . $myrow['id'] . '>' . _('Allocate') . '</a>'; + $AllocateLink = '<a href=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'). '?AllocTrans=' . $myrow['id'] . '>' . _('Allocate') . '</a>'; if ( $CurrentDebtor != $myrow['debtorno'] ) { if ( $CurrentTransaction > 1 ) { Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerBranches.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -409,11 +409,11 @@ $myrow[8], $myrow[9], ($myrow[11]?_('No'):_('Yes')), - htmlspecialchars($_SERVER['PHP_SELF']), + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), $DebtorNo, urlencode($myrow[1]), _('Edit'), - htmlspecialchars($_SERVER['PHP_SELF']), + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), $DebtorNo, urlencode($myrow[1]), _('Delete Branch')); @@ -463,7 +463,7 @@ } if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) .'">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') .'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedBranch)) { @@ -539,7 +539,7 @@ echo '<p Class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="" /> ' . ' ' . _('Change Details for Branch'). ' '. $SelectedBranch . '</p>'; if (isset($SelectedBranch)) { - echo '<div class="centre"><a href=' . htmlspecialchars($_SERVER['PHP_SELF']) . '?DebtorNo=' . $DebtorNo. '>' . _('Show all branches defined for'). ' '. $DebtorNo . '</a></div>'; + echo '<div class="centre"><a href=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?DebtorNo=' . $DebtorNo. '>' . _('Show all branches defined for'). ' '. $DebtorNo . '</a></div>'; } echo '<br /> <table class="selection"> Modified: trunk/CustomerInquiry.php =================================================================== --- trunk/CustomerInquiry.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerInquiry.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -152,7 +152,7 @@ echo '<br /> <div class="centre"> - <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + <form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />' . _('Show all transactions after') . ': <input tabindex="1" type="text" class="date" alt="' .$_SESSION['DefaultDateFormat']. '" id="datepicker" name="TransAfterDate" value="' . $_POST['TransAfterDate'] . '" maxlength="10" size="12" /> <input tabindex="2" type="submit" name="Refresh Inquiry" value="' . _('Refresh Inquiry') . '" /> Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerReceipt.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -729,7 +729,7 @@ /*set up the form whatever */ -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Type='.$_GET['Type'] . '" method="post" name="form1">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Type='.$_GET['Type'] . '" method="post" name="form1">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; /*show the batch header details and the entries in the batch so far */ @@ -918,7 +918,7 @@ <td>' . stripslashes($ReceiptItem->CustomerName) . '</td> <td>'.$ReceiptItem->GLCode.' - '.$myrow['accountname'].'</td> <td>'.$ReceiptItem->Narrative . '</td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=' . $ReceiptItem->ID . '&Type=' . $_GET['Type']. '">' . _('Delete') . '</a></td> + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=' . $ReceiptItem->ID . '&Type=' . $_GET['Type']. '">' . _('Delete') . '</a></td> </tr>'; $BatchTotal= $BatchTotal + $ReceiptItem->Amount; } Modified: trunk/CustomerTransInquiry.php =================================================================== --- trunk/CustomerTransInquiry.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerTransInquiry.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -12,7 +12,7 @@ echo '<div class="page_help_text">' . _('Choose which type of transaction to report on.') . '</div> <br />'; -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection"> Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerTypes.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -204,9 +204,9 @@ </tr>', $myrow[0], $myrow[1], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow[0], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow[0]); } //END WHILE LIST LOOP @@ -216,11 +216,11 @@ //end of ifs and buts! if (isset($SelectedType)) { - echo '<div class="centre"><p><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Show All Types Defined') . '</a></div><p>'; + echo '<div class="centre"><p><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Show All Types Defined') . '</a></div><p>'; } if (! isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p><table class="selection">'; //Main table Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Customers.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -420,11 +420,11 @@ } if ($SetupErrors>0) { - echo '<br /><div class="centre"><a href="'.htmlspecialchars($_SERVER['PHP_SELF']) .'" >'._('Click here to continue').'</a></div>'; + echo '<br /><div class="centre"><a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') .'" >'._('Click here to continue').'</a></div>'; include('includes/footer.inc'); exit; } - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="New" value="Yes" />'; @@ -618,7 +618,7 @@ //DebtorNo exists - either passed when calling the form or from the form itself - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection"> <tr><td valign="top"><table class="selection">'; @@ -1069,7 +1069,7 @@ $myrow['notes'], $myrow['contid'], $myrow['debtorno'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['contid'], $myrow['debtorno']); } Modified: trunk/DailyBankTransactions.php =================================================================== --- trunk/DailyBankTransactions.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/DailyBankTransactions.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -12,7 +12,7 @@ </p>'; if (!isset($_POST['Show'])) { - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; @@ -139,7 +139,7 @@ echo '</table>'; } //end if no bank trans in the range to show - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<br /><div class="centre"><input type="submit" name="Return" value="' . _('Select Another Date'). '" /></div>'; echo '</form>'; Modified: trunk/DebtorsAtPeriodEnd.php =================================================================== --- trunk/DebtorsAtPeriodEnd.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/DebtorsAtPeriodEnd.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -129,7 +129,7 @@ /*if $FromCriteria is not set then show a form to allow input */ - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/DiscountCategories.php =================================================================== --- trunk/DiscountCategories.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/DiscountCategories.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -65,7 +65,7 @@ } if (isset($_POST['selectchoice'])) { - echo '<form name="update" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form name="update" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; $sql = "SELECT DISTINCT discountcategory FROM stockmaster WHERE discountcategory <>''"; @@ -91,7 +91,7 @@ <br />'; } - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="ChooseOption" value="'.$_POST['ChooseOption'].'" />'; echo '<input type="hidden" name="selectchoice" value="'.$_POST['selectchoice'].'" />'; @@ -212,7 +212,7 @@ echo '<tr class="OddTableRows">'; $k=1; } - $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=yes&StockID=' . $myrow['stockid'] . '&DiscountCategory=' . $myrow['discountcategory']; + $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=yes&StockID=' . $myrow['stockid'] . '&DiscountCategory=' . $myrow['discountcategory']; printf('<td>%s</td> <td>%s - %s</td> @@ -235,7 +235,7 @@ } if (!isset($_POST['selectchoice'])) { - echo '<form method="post" name="choose" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" name="choose" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; echo '<tr><td>'._('Update discount category for').'</td>'; Modified: trunk/DiscountMatrix.php =================================================================== --- trunk/DiscountMatrix.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/DiscountMatrix.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -81,7 +81,7 @@ echo '<br />'; } -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -173,7 +173,7 @@ echo '<tr class="OddTableRows">'; $k=1; } - $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=yes&SalesType=' . $myrow['salestype'] . '&DiscountCategory=' . $myrow['discountcategory'] . '&QuantityBreak=' . $myrow['quantitybreak']; + $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=yes&SalesType=' . $myrow['salestype'] . '&DiscountCategory=' . $myrow['discountcategory'] . '&QuantityBreak=' . $myrow['quantitybreak']; printf('<td>%s</td> <td>%s</td> Modified: trunk/EDIMessageFormat.php =================================================================== --- trunk/EDIMessageFormat.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/EDIMessageFormat.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -97,7 +97,7 @@ prnMsg($msg,'success'); } -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p><table border="0" width="100%"> @@ -153,9 +153,9 @@ $myrow[1], $myrow[2], $myrow[3], - htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID, + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?' . SID, $myrow[0], - htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID, + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?' . SID, $myrow[0]); } //END WHILE LIST LOOP @@ -189,7 +189,7 @@ $_POST['SequenceNo'] = $myrow['sequenceno']; $_POST['LineText'] = $myrow['linetext']; - echo '<div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?MessageType=INVOIC&PartnerCode=' . $myrow['partnercode'] . '">' . _('Review Message Lines') . '</a></div>'; + echo '<div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?MessageType=INVOIC&PartnerCode=' . $myrow['partnercode'] . '">' . _('Review Message Lines') . '</a></div>'; echo '<input type="hidden" name="SelectedMessageLine" value="' . $SelectedMessageLine . '" />'; echo '<input type="hidden" name="MessageType" value="' . $myrow['messagetype'] . '" />'; Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/EmailCustTrans.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -35,7 +35,7 @@ include ('includes/header.inc'); -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '" />'; Modified: trunk/ExchangeRateTrend.php =================================================================== --- trunk/ExchangeRateTrend.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ExchangeRateTrend.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -21,7 +21,7 @@ // SHOW OUR MAIN INPUT FORM // ************************ - echo '<form method="post" name="update" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" name="update" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('View Currency Trend') . '" alt="" />' . ' ' . _('View Currency Trend') . '</p>'; Modified: trunk/FTP_RadioBeacon.php =================================================================== --- trunk/FTP_RadioBeacon.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FTP_RadioBeacon.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -71,7 +71,7 @@ $k=1; } - $FTPDispatchNote = htmlspecialchars($_SERVER['PHP_SELF']) . '?OrderNo=' . $myrow['orderno']; + $FTPDispatchNote = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?OrderNo=' . $myrow['orderno']; $FormatedDelDate = ConvertSQLDate($myrow['deliverydate']); $FormatedOrderDate = ConvertSQLDate($myrow['orddate']); $FormatedOrderValue = locale_number_format($myrow['ordervalue'],2); Modified: trunk/Factors.php =================================================================== --- trunk/Factors.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Factors.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -197,7 +197,7 @@ if (isset($_POST['Amend']) or isset($_POST['Create'])) { // its a new factor being added - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="FactorID" value="' . $FactorID .'" /> <table class="selection"> @@ -272,7 +272,7 @@ if (empty($FactorID) AND !isset($_POST['Create']) AND !isset($_POST['Amend'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="New" value="No" />'; Modified: trunk/FixedAssetCategories.php =================================================================== --- trunk/FixedAssetCategories.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FixedAssetCategories.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -192,9 +192,9 @@ $myrow['depnact'], $myrow['disposalact'], $myrow['accumdepnact'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['categoryid'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['categoryid']); } //END WHILE LIST LOOP @@ -204,10 +204,10 @@ //end of ifs and buts! if (isset($SelectedCategory)) { - echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' ._('Show All Fixed Asset Categories') . '</a></div>'; + echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' ._('Show All Fixed Asset Categories') . '</a></div>'; } -echo '<form name="CategoryForm" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form name="CategoryForm" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedCategory) and !isset($_POST['submit'])) { Modified: trunk/FixedAssetDepreciation.php =================================================================== --- trunk/FixedAssetDepreciation.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FixedAssetDepreciation.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -267,7 +267,7 @@ /*And post the journal too */ include ('includes/GLPostings.inc'); } else { - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post" name="form">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post" name="form">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p /> <table class="selection" width="30%"> Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FixedAssetItems.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -380,7 +380,7 @@ } /* end if delete asset */ $result = DB_Txn_Commit($db); -echo '<form name="AssetForm" enctype="multipart/form-data" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '"> +echo '<form name="AssetForm" enctype="multipart/form-data" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '"> <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/FixedAssetLocations.php =================================================================== --- trunk/FixedAssetLocations.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FixedAssetLocations.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -56,7 +56,7 @@ WH... [truncated message content] |
From: <dai...@us...> - 2012-02-22 06:26:55
|
Revision: 4950 http://web-erp.svn.sourceforge.net/web-erp/?rev=4950&view=rev Author: daintree Date: 2012-02-22 06:26:38 +0000 (Wed, 22 Feb 2012) Log Message: ----------- fully qualify htmlspecialchars() function Modified Paths: -------------- trunk/AddCustomerTypeNotes.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/BankReconciliation.php trunk/COGSGLPostings.php trunk/CompanyPreferences.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/ContractCosting.php trunk/ContractOtherReqts.php trunk/Contracts.php trunk/CounterSales.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustWhereAlloc.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/DebtorsAtPeriodEnd.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/EDIMessageFormat.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/FTP_RadioBeacon.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/GLJournal.php trunk/GLProfit_Loss.php trunk/GLTagProfit_Loss.php trunk/GLTags.php trunk/GLTrialBalance.php trunk/GLTrialBalance_csv.php trunk/GeocodeSetup.php trunk/GoodsReceived.php trunk/InventoryPlanning.php trunk/InventoryPlanningPrefSupplier.php trunk/InventoryQuantities.php trunk/InventoryValuation.php trunk/Labels.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/OffersReceived.php trunk/OutstandingGRNs.php trunk/PDFBankingSummary.php trunk/PDFChequeListing.php trunk/PDFCustTransListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFLowGP.php trunk/PDFOrderStatus.php trunk/PDFOrdersInvoiced.php trunk/PDFPeriodStockTransListing.php trunk/PDFPickingList.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFRemittanceAdvice.php trunk/PDFStockCheckComparison.php trunk/PDFStockLocTransfer.php trunk/PDFStockTransfer.php trunk/PDFSuppTransListing.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_AuthoriseMyOrders.php trunk/PO_Header.php trunk/PO_Items.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/Prices.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.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/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/SpecialOrder.php trunk/StockAdjustments.php trunk/StockCategories.php trunk/StockCheck.php trunk/StockCostUpdate.php trunk/StockCounts.php trunk/StockDispatch.php trunk/StockLocMovements.php trunk/StockLocStatus.php trunk/StockLocTransfer.php trunk/StockLocTransferReceive.php trunk/StockMovements.php trunk/StockQuantityByDate.php trunk/StockReorderLevel.php trunk/StockSerialItemResearch.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/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_ChangeCustomerCode.php trunk/Z_ChangeStockCategory.php trunk/Z_ChangeStockCode.php trunk/Z_CheckDebtorsControl.php trunk/Z_CreateCompanyTemplateFile.php trunk/Z_DataExport.php trunk/Z_DeleteSalesTransActions.php trunk/Z_ImportChartOfAccounts.php trunk/Z_ImportGLAccountGroups.php trunk/Z_ImportGLAccountSections.php trunk/Z_ImportPartCodes.php trunk/Z_MakeNewCompany.php trunk/Z_ReApplyCostToSA.php trunk/Z_RePostGLFromPeriod.php trunk/Z_ReverseSuppPaymentRun.php trunk/Z_UpdateChartDetailsBFwd.php trunk/Z_Upgrade3.10.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_poAddLanguage.php trunk/Z_poEditLangHeader.php trunk/Z_poEditLangModule.php trunk/Z_poEditLangRemaining.php trunk/Z_poRebuildDefault.php trunk/config.distrib.php trunk/doc/Change.log trunk/doc/Manual/ManualContents.php trunk/doc/Manual/ManualGettingStarted.html trunk/includes/InputSerialItems.php trunk/includes/InputSerialItemsExisting.php trunk/includes/InputSerialItemsKeyed.php trunk/includes/InputSerialItemsSequential.php trunk/includes/OutputSerialItems.php trunk/includes/session.inc trunk/includes/tcpdf/config/tcpdf_config.php trunk/includes/tcpdf/config/tcpdf_config_alt.php trunk/locale/zh_CN.utf8/Manual/ManualContents.php trunk/locale/zh_CN.utf8/Manual/ManualGettingStarted.html trunk/locale/zh_HK.utf8/Manual/ManualContents.php trunk/locale/zh_HK.utf8/Manual/ManualGettingStarted.html Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/AddCustomerTypeNotes.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -147,7 +147,7 @@ } if (isset($Id)) { echo '<div class="centre"> - <a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?DebtorType=' . $DebtorType . '">' . _('Review all notes for this Customer Type') .'</a> + <a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?DebtorType=' . $DebtorType . '">' . _('Review all notes for this Customer Type') .'</a> </div>'; } Modified: trunk/AuditTrail.php =================================================================== --- trunk/AuditTrail.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/AuditTrail.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -34,7 +34,7 @@ // Get list of users $UserResult = DB_query("SELECT userid FROM www_users",$db); -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; Modified: trunk/BOMExtendedQty.php =================================================================== --- trunk/BOMExtendedQty.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMExtendedQty.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -262,7 +262,7 @@ echo '<br /> <br /> - <form action=' . htmlspecialchars($_SERVER['PHP_SELF']) . ' method="post"> + <form action=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . ' method="post"> <table class="selection"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> <tr> Modified: trunk/BOMIndented.php =================================================================== --- trunk/BOMIndented.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMIndented.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -247,7 +247,7 @@ echo '<br /> <br /> - <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + <form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<tr> Modified: trunk/BOMIndentedReverse.php =================================================================== --- trunk/BOMIndentedReverse.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMIndentedReverse.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -235,7 +235,7 @@ _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; echo '<br /> <br /> - <form action=' . htmlspecialchars($_SERVER['PHP_SELF']) . ' method="post"> + <form action=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . ' method="post"> <table class="selection"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> <tr> Modified: trunk/BOMInquiry.php =================================================================== --- trunk/BOMInquiry.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMInquiry.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -13,7 +13,7 @@ } if (!isset($_POST['StockID'])) { - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <b> <br /> </b> Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMListing.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -112,7 +112,7 @@ /*if $FromCriteria is not set then show a form to allow input */ - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="POST"> + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="POST"> <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BOMs.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -113,7 +113,7 @@ $DrillID=''; } else { $DrillText = '<a href="%s&Select=%s">' . _('Drill Down'); - $DrillLink = htmlspecialchars($_SERVER['PHP_SELF']) . '?'; + $DrillLink = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?'; $DrillID=$myrow['component']; } if ($ParentMBflag!='M' AND $ParentMBflag!='G'){ @@ -160,12 +160,12 @@ ConvertSQLDate($myrow['effectiveto']), $AutoIssue, $QuantityOnHand, - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $Parent, $myrow['component'], $DrillLink, $DrillID, - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $Parent, $myrow['component'], $UltimateParent); @@ -418,7 +418,7 @@ break; } - echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Select a Different BOM') . '</a></div><br />'; + echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Select a Different BOM') . '</a></div><br />'; echo '<table class="selection">'; // Display Manufatured Parent Items $sql = "SELECT bom.parent, @@ -437,7 +437,7 @@ if( DB_num_rows($result) > 0 ) { echo '<tr><td><div class="centre">'._('Manufactured parent items').' : '; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF']) . '?Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -460,7 +460,7 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Assembly parent items').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF']) . '?Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -482,7 +482,7 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Kit sets').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF']) . '?Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -504,7 +504,7 @@ echo (($reqnl)?'<br />':'').'<tr><td><div class="centre">'._('Phantom').' : '; $ix = 0; while ($myrow = DB_fetch_array($result)){ - echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF']) . '?Select='.$myrow['parent'].'">'. + echo (($ix)?', ':'').'<a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select='.$myrow['parent'].'">'. $myrow['description'].' ('.$myrow['parent'].')</a>'; $ix++; } //end while loop @@ -564,7 +564,7 @@ if (! isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Select=' . $SelectedParent .'">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Select=' . $SelectedParent .'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($_GET['SelectedComponent']) and $InputError !=1) { @@ -830,7 +830,7 @@ if (!isset($SelectedParent)) { 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']) . '" method="post">' . + 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 /><font size="1">' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. '</font> <br /> <table class="selection" cellpadding="3" colspan="4"> Modified: trunk/BackupDatabase.php =================================================================== --- trunk/BackupDatabase.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BackupDatabase.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -44,7 +44,7 @@ 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'); echo '<br /> <br /> - <a href="'. htmlspecialchars($_SERVER['PHP_SELF']) . '?BackupFile=' .$BackupFile .'">' . _('Delete the backup file off the server') . '</a>'; + <a href="'. htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?BackupFile=' .$BackupFile .'">' . _('Delete the backup file off the server') . '</a>'; } else { prnMsg(_('There was some problem producing a backup using mysqldump. Normally this relates to a permissions issue - the web-server user must have permission to write to the companies directory'),'error'); } Modified: trunk/BankReconciliation.php =================================================================== --- trunk/BankReconciliation.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/BankReconciliation.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -8,7 +8,7 @@ include('includes/header.inc'); -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/COGSGLPostings.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -111,9 +111,9 @@ $myrow['stkcat'], $myrow['salestype'], $myrow['accountname'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['id'], - htmlspecialchars($_SERVER['PHP_SELF']). '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'). '?', $myrow['id']); }//end while echo '</table>'; @@ -210,9 +210,9 @@ $myrow['stkcat'], $myrow['salestype'], $myrow['accountname'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['id'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['id']); }//END WHILE LIST LOOP @@ -222,12 +222,12 @@ //end of ifs and buts! if (isset($SelectedCOGSPostingID)) { - echo '<div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) .'">' . _('Show all cost of sales posting records') . '</a></div>'; + echo '<div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') .'">' . _('Show all cost of sales posting records') . '</a></div>'; } echo '<br />'; -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedCOGSPostingID)) { Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CompanyPreferences.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -153,7 +153,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ConfirmDispatch_Invoice.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -266,7 +266,7 @@ </table> <br />'; -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; /*************************************************************** Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ContractBOM.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -215,7 +215,7 @@ /* This is where the order as selected should be displayed reflecting any deletions or insertions*/ -echo '<form name="ContractBOMForm" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier. '" method="post">'; +echo '<form name="ContractBOMForm" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier. '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (count($_SESSION['Contract'.$identifier]->ContractBOM)>0){ @@ -263,7 +263,7 @@ <td>' . $ContractComponent->UOM . '</td> <td class="number">' . locale_number_format($ContractComponent->ItemCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> <td class="number">' . $DisplayLineTotal . '</td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier. '&Delete=' . $ContractComponent->ComponentID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the contract BOM?') . '\');">' . _('Delete') . '</a></td></tr>'; + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier. '&Delete=' . $ContractComponent->ComponentID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the contract BOM?') . '\');">' . _('Delete') . '</a></td></tr>'; $TotalCost += $LineTotal; } Modified: trunk/ContractCosting.php =================================================================== --- trunk/ContractCosting.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ContractCosting.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -432,7 +432,7 @@ if ($_SESSION['Contract'.$identifier]->Status ==2){//the contract is an order being processed now - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?SelectedContract=' . $_SESSION['Contract'.$identifier]->ContractRef . '&identifier=' . $identifier . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?SelectedContract=' . $_SESSION['Contract'.$identifier]->ContractRef . '&identifier=' . $identifier . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<br /> <div class="centre"> Modified: trunk/ContractOtherReqts.php =================================================================== --- trunk/ContractOtherReqts.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ContractOtherReqts.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -75,7 +75,7 @@ /* This is where the other requirement as entered/modified should be displayed reflecting any deletions or insertions*/ -echo '<form name="ContractReqtsForm" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier. '" method="post">'; +echo '<form name="ContractReqtsForm" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier. '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/contract.png" title="' . _('Contract Other Requirements') . '" alt="" /> ' . _('Contract Other Requirements') . ' - ' . $_SESSION['Contract'.$identifier]->CustomerName.'</p>'; @@ -116,7 +116,7 @@ <td><input type="text" class="number" name="Qty' . $ContractReqtID . '" size="11" value="' . locale_number_format($ContractComponent->Quantity,'Variable') . '" /></td> <td><input type="text" class="number" name="CostPerUnit' . $ContractReqtID . '" size="11" value="' . locale_number_format($ContractComponent->CostPerUnit,$_SESSION['CompanyRecord']['decimalplaces']) . '" /></td> <td class="number">' . $DisplayLineTotal . '</td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier. '&Delete=' . $ContractReqtID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this contract requirement?') . '\');">' . _('Delete') . '</a></td> + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier. '&Delete=' . $ContractReqtID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this contract requirement?') . '\');">' . _('Delete') . '</a></td> </tr>'; $TotalCost += $LineTotal; } Modified: trunk/Contracts.php =================================================================== --- trunk/Contracts.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Contracts.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -746,7 +746,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/contract.png" title="' . _('Contract') . '" alt="" />' . ' ' . _('Contract: Select Customer') . '</p>'; - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier=' . $identifier .'" name="CustomerSelection" method="post">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier=' . $identifier .'" name="CustomerSelection" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table cellpadding="3" colspan="4" class="selection"> @@ -814,7 +814,7 @@ //end if RequireCustomerSelection } else { /*A customer is already selected so get into the contract setup proper */ - echo '<form name="ContractEntry" enctype="multipart/form-data" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier=' . $identifier . '" method="post">'; + echo '<form name="ContractEntry" enctype="multipart/form-data" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier=' . $identifier . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"> Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CounterSales.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -212,7 +212,7 @@ echo '<br /><br />'; prnMsg(_('This sale has been cancelled as requested'),'success'); - echo '<br /><br /><a href="' .htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Start a new Counter Sale') . '</a>'; + echo '<br /><br /><a href="' .htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Start a new Counter Sale') . '</a>'; include('includes/footer.inc'); exit; @@ -361,7 +361,7 @@ /* Always do the stuff below */ -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier . '" name="SelectParts" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier . '" name="SelectParts" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; //Get The exchange rate used for GPPercent calculations on adding or amending items @@ -819,7 +819,7 @@ $_SESSION['Items'.$identifier]->TaxGLCodes=$TaxGLCodes; echo '<td class="number">' . locale_number_format($TaxLineTotal ,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td>'; echo '<td class="number">' . locale_number_format($SubTotal + $TaxLineTotal ,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td>'; - echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier='.$identifier . '&Delete=' . $OrderLine->LineNumber . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">' . _('Delete') . '</a></td></tr>'; + echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?identifier='.$identifier . '&Delete=' . $OrderLine->LineNumber . '" onclick="return confirm(\'' . _('Are You Sure?') . '\');">' . _('Delete') . '</a></td></tr>'; if ($_SESSION['AllowOrderLineItemNarrative'] == 1){ echo $RowStarter; @@ -1980,7 +1980,7 @@ } else { echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTransPortrait.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Portrait') . ')</a><br /><br />'; } - echo '<br /><br /><a href="' .htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Start a new Counter Sale') . '</a></div>'; + echo '<br /><br /><a href="' .htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Start a new Counter Sale') . '</a></div>'; } // There were input errors so don't process nuffin @@ -2197,7 +2197,7 @@ if (isset($SearchResult)) { $j = 1; - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID .'identifier='.$identifier . '" method="post" name="orderform">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?' . SID .'identifier='.$identifier . '" method="post" name="orderform">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="table1">'; echo '<tr> Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CreditStatus.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -177,9 +177,9 @@ $myrow['reasoncode'], $myrow['reasondescription'], $DissallowText, - htmlspecialchars($_SERVER['PHP_SELF']), + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), $myrow['reasoncode'], - htmlspecialchars($_SERVER['PHP_SELF']), + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), $myrow['reasoncode']); } //END WHILE LIST LOOP @@ -189,13 +189,13 @@ if (isset($SelectedReason)) { echo '<div class="centre"> - <a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Show Defined Credit Status Codes') . '</a> + <a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Show Defined Credit Status Codes') . '</a> </div>'; } if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedReason) and ($InputError!=1)) { Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Credit_Invoice.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -256,7 +256,7 @@ if (!isset($_POST['ProcessCredit'])) { - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) .'" method="post">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') .'" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -378,7 +378,7 @@ echo '<td class="number">' . $DisplayTaxAmount . '</td> <td class="number">' . $DisplayGrossLineTotal . '</td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>'; echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex="' . $j .'" name="Narrative_' . $LnItm->LineNumber . '" cols="100%" rows="1">' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>'; $j++; Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Currencies.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -267,10 +267,10 @@ locale_number_format($myrow['decimalplaces'],0), locale_number_format($myrow['rate'],6), locale_number_format(GetCurrencyRate($myrow['currabrev'],$CurrencyRatesArray),6), - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['currabrev'], _('Edit'), - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['currabrev'], _('Delete'), $rootpath, @@ -301,14 +301,14 @@ if (isset($SelectedCurrency)) { - echo '<div class="centre"><a href="' .htmlspecialchars($_SERVER['PHP_SELF']) . '">'._('Show all currency definitions').'</a></div>'; + echo '<div class="centre"><a href="' .htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'._('Show all currency definitions').'</a></div>'; } echo '<br />'; if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedCurrency) AND $SelectedCurrency!='') { Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustEDISetup.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -69,7 +69,7 @@ } } -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<br /><table class="selection">'; Modified: trunk/CustLoginSetup.php =================================================================== --- trunk/CustLoginSetup.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustLoginSetup.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -123,7 +123,7 @@ } -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection"> Modified: trunk/CustWhereAlloc.php =================================================================== --- trunk/CustWhereAlloc.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustWhereAlloc.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -6,7 +6,7 @@ $title = _('Customer How Paid Inquiry'); include('includes/header.inc'); -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"> Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerAllocations.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -336,7 +336,7 @@ if (isset($_POST['AllocTrans'])) { // Page called with trans number - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="AllocTrans" value="' . $_POST['AllocTrans'] . '" />'; @@ -488,7 +488,7 @@ <td class="number">' . locale_number_format($myrow['total'],$myrow['currdecimalplaces']) . '</td> <td class="number">' . locale_number_format($myrow['total']-$myrow['alloc'],$myrow['currdecimalplaces']) . '</td> <td>' . $myrow['currcode'] . '</td>'; - echo '<td><a href=' . htmlspecialchars($_SERVER['PHP_SELF']). '?AllocTrans=' . $myrow['id'] . '>' . _('Allocate') . '</a></td></tr>'; + echo '<td><a href=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'). '?AllocTrans=' . $myrow['id'] . '>' . _('Allocate') . '</a></td></tr>'; } echo '</table><p>'; } else { @@ -529,7 +529,7 @@ $k=0; while ($myrow = DB_fetch_array($result)) { - $AllocateLink = '<a href=' . htmlspecialchars($_SERVER['PHP_SELF']). '?AllocTrans=' . $myrow['id'] . '>' . _('Allocate') . '</a>'; + $AllocateLink = '<a href=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'). '?AllocTrans=' . $myrow['id'] . '>' . _('Allocate') . '</a>'; if ( $CurrentDebtor != $myrow['debtorno'] ) { if ( $CurrentTransaction > 1 ) { Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerBranches.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -409,11 +409,11 @@ $myrow[8], $myrow[9], ($myrow[11]?_('No'):_('Yes')), - htmlspecialchars($_SERVER['PHP_SELF']), + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), $DebtorNo, urlencode($myrow[1]), _('Edit'), - htmlspecialchars($_SERVER['PHP_SELF']), + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'), $DebtorNo, urlencode($myrow[1]), _('Delete Branch')); @@ -463,7 +463,7 @@ } if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) .'">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') .'">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedBranch)) { @@ -539,7 +539,7 @@ echo '<p Class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="" /> ' . ' ' . _('Change Details for Branch'). ' '. $SelectedBranch . '</p>'; if (isset($SelectedBranch)) { - echo '<div class="centre"><a href=' . htmlspecialchars($_SERVER['PHP_SELF']) . '?DebtorNo=' . $DebtorNo. '>' . _('Show all branches defined for'). ' '. $DebtorNo . '</a></div>'; + echo '<div class="centre"><a href=' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?DebtorNo=' . $DebtorNo. '>' . _('Show all branches defined for'). ' '. $DebtorNo . '</a></div>'; } echo '<br /> <table class="selection"> Modified: trunk/CustomerInquiry.php =================================================================== --- trunk/CustomerInquiry.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerInquiry.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -152,7 +152,7 @@ echo '<br /> <div class="centre"> - <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + <form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />' . _('Show all transactions after') . ': <input tabindex="1" type="text" class="date" alt="' .$_SESSION['DefaultDateFormat']. '" id="datepicker" name="TransAfterDate" value="' . $_POST['TransAfterDate'] . '" maxlength="10" size="12" /> <input tabindex="2" type="submit" name="Refresh Inquiry" value="' . _('Refresh Inquiry') . '" /> Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerReceipt.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -729,7 +729,7 @@ /*set up the form whatever */ -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Type='.$_GET['Type'] . '" method="post" name="form1">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Type='.$_GET['Type'] . '" method="post" name="form1">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; /*show the batch header details and the entries in the batch so far */ @@ -918,7 +918,7 @@ <td>' . stripslashes($ReceiptItem->CustomerName) . '</td> <td>'.$ReceiptItem->GLCode.' - '.$myrow['accountname'].'</td> <td>'.$ReceiptItem->Narrative . '</td> - <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=' . $ReceiptItem->ID . '&Type=' . $_GET['Type']. '">' . _('Delete') . '</a></td> + <td><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=' . $ReceiptItem->ID . '&Type=' . $_GET['Type']. '">' . _('Delete') . '</a></td> </tr>'; $BatchTotal= $BatchTotal + $ReceiptItem->Amount; } Modified: trunk/CustomerTransInquiry.php =================================================================== --- trunk/CustomerTransInquiry.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerTransInquiry.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -12,7 +12,7 @@ echo '<div class="page_help_text">' . _('Choose which type of transaction to report on.') . '</div> <br />'; -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection"> Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/CustomerTypes.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -204,9 +204,9 @@ </tr>', $myrow[0], $myrow[1], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow[0], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow[0]); } //END WHILE LIST LOOP @@ -216,11 +216,11 @@ //end of ifs and buts! if (isset($SelectedType)) { - echo '<div class="centre"><p><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Show All Types Defined') . '</a></div><p>'; + echo '<div class="centre"><p><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' . _('Show All Types Defined') . '</a></div><p>'; } if (! isset($_GET['delete'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p><table class="selection">'; //Main table Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Customers.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -420,11 +420,11 @@ } if ($SetupErrors>0) { - echo '<br /><div class="centre"><a href="'.htmlspecialchars($_SERVER['PHP_SELF']) .'" >'._('Click here to continue').'</a></div>'; + echo '<br /><div class="centre"><a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') .'" >'._('Click here to continue').'</a></div>'; include('includes/footer.inc'); exit; } - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="New" value="Yes" />'; @@ -618,7 +618,7 @@ //DebtorNo exists - either passed when calling the form or from the form itself - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection"> <tr><td valign="top"><table class="selection">'; @@ -1069,7 +1069,7 @@ $myrow['notes'], $myrow['contid'], $myrow['debtorno'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['contid'], $myrow['debtorno']); } Modified: trunk/DailyBankTransactions.php =================================================================== --- trunk/DailyBankTransactions.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/DailyBankTransactions.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -12,7 +12,7 @@ </p>'; if (!isset($_POST['Show'])) { - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; @@ -139,7 +139,7 @@ echo '</table>'; } //end if no bank trans in the range to show - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<br /><div class="centre"><input type="submit" name="Return" value="' . _('Select Another Date'). '" /></div>'; echo '</form>'; Modified: trunk/DebtorsAtPeriodEnd.php =================================================================== --- trunk/DebtorsAtPeriodEnd.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/DebtorsAtPeriodEnd.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -129,7 +129,7 @@ /*if $FromCriteria is not set then show a form to allow input */ - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post"> + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/DiscountCategories.php =================================================================== --- trunk/DiscountCategories.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/DiscountCategories.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -65,7 +65,7 @@ } if (isset($_POST['selectchoice'])) { - echo '<form name="update" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form name="update" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; $sql = "SELECT DISTINCT discountcategory FROM stockmaster WHERE discountcategory <>''"; @@ -91,7 +91,7 @@ <br />'; } - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="ChooseOption" value="'.$_POST['ChooseOption'].'" />'; echo '<input type="hidden" name="selectchoice" value="'.$_POST['selectchoice'].'" />'; @@ -212,7 +212,7 @@ echo '<tr class="OddTableRows">'; $k=1; } - $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=yes&StockID=' . $myrow['stockid'] . '&DiscountCategory=' . $myrow['discountcategory']; + $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=yes&StockID=' . $myrow['stockid'] . '&DiscountCategory=' . $myrow['discountcategory']; printf('<td>%s</td> <td>%s - %s</td> @@ -235,7 +235,7 @@ } if (!isset($_POST['selectchoice'])) { - echo '<form method="post" name="choose" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" name="choose" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; echo '<tr><td>'._('Update discount category for').'</td>'; Modified: trunk/DiscountMatrix.php =================================================================== --- trunk/DiscountMatrix.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/DiscountMatrix.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -81,7 +81,7 @@ echo '<br />'; } -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -173,7 +173,7 @@ echo '<tr class="OddTableRows">'; $k=1; } - $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=yes&SalesType=' . $myrow['salestype'] . '&DiscountCategory=' . $myrow['discountcategory'] . '&QuantityBreak=' . $myrow['quantitybreak']; + $DeleteURL = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?Delete=yes&SalesType=' . $myrow['salestype'] . '&DiscountCategory=' . $myrow['discountcategory'] . '&QuantityBreak=' . $myrow['quantitybreak']; printf('<td>%s</td> <td>%s</td> Modified: trunk/EDIMessageFormat.php =================================================================== --- trunk/EDIMessageFormat.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/EDIMessageFormat.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -97,7 +97,7 @@ prnMsg($msg,'success'); } -echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p><table border="0" width="100%"> @@ -153,9 +153,9 @@ $myrow[1], $myrow[2], $myrow[3], - htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID, + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?' . SID, $myrow[0], - htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID, + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?' . SID, $myrow[0]); } //END WHILE LIST LOOP @@ -189,7 +189,7 @@ $_POST['SequenceNo'] = $myrow['sequenceno']; $_POST['LineText'] = $myrow['linetext']; - echo '<div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?MessageType=INVOIC&PartnerCode=' . $myrow['partnercode'] . '">' . _('Review Message Lines') . '</a></div>'; + echo '<div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?MessageType=INVOIC&PartnerCode=' . $myrow['partnercode'] . '">' . _('Review Message Lines') . '</a></div>'; echo '<input type="hidden" name="SelectedMessageLine" value="' . $SelectedMessageLine . '" />'; echo '<input type="hidden" name="MessageType" value="' . $myrow['messagetype'] . '" />'; Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/EmailCustTrans.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -35,7 +35,7 @@ include ('includes/header.inc'); -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '" />'; Modified: trunk/ExchangeRateTrend.php =================================================================== --- trunk/ExchangeRateTrend.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/ExchangeRateTrend.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -21,7 +21,7 @@ // SHOW OUR MAIN INPUT FORM // ************************ - echo '<form method="post" name="update" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" name="update" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('View Currency Trend') . '" alt="" />' . ' ' . _('View Currency Trend') . '</p>'; Modified: trunk/FTP_RadioBeacon.php =================================================================== --- trunk/FTP_RadioBeacon.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FTP_RadioBeacon.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -71,7 +71,7 @@ $k=1; } - $FTPDispatchNote = htmlspecialchars($_SERVER['PHP_SELF']) . '?OrderNo=' . $myrow['orderno']; + $FTPDispatchNote = htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?OrderNo=' . $myrow['orderno']; $FormatedDelDate = ConvertSQLDate($myrow['deliverydate']); $FormatedOrderDate = ConvertSQLDate($myrow['orddate']); $FormatedOrderValue = locale_number_format($myrow['ordervalue'],2); Modified: trunk/Factors.php =================================================================== --- trunk/Factors.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/Factors.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -197,7 +197,7 @@ if (isset($_POST['Amend']) or isset($_POST['Create'])) { // its a new factor being added - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="FactorID" value="' . $FactorID .'" /> <table class="selection"> @@ -272,7 +272,7 @@ if (empty($FactorID) AND !isset($_POST['Create']) AND !isset($_POST['Amend'])) { - echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<input type="hidden" name="New" value="No" />'; Modified: trunk/FixedAssetCategories.php =================================================================== --- trunk/FixedAssetCategories.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FixedAssetCategories.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -192,9 +192,9 @@ $myrow['depnact'], $myrow['disposalact'], $myrow['accumdepnact'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['categoryid'], - htmlspecialchars($_SERVER['PHP_SELF']) . '?', + htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '?', $myrow['categoryid']); } //END WHILE LIST LOOP @@ -204,10 +204,10 @@ //end of ifs and buts! if (isset($SelectedCategory)) { - echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' ._('Show All Fixed Asset Categories') . '</a></div>'; + echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">' ._('Show All Fixed Asset Categories') . '</a></div>'; } -echo '<form name="CategoryForm" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; +echo '<form name="CategoryForm" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedCategory) and !isset($_POST['submit'])) { Modified: trunk/FixedAssetDepreciation.php =================================================================== --- trunk/FixedAssetDepreciation.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FixedAssetDepreciation.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -267,7 +267,7 @@ /*And post the journal too */ include ('includes/GLPostings.inc'); } else { - echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post" name="form">'; + echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post" name="form">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p /> <table class="selection" width="30%"> Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FixedAssetItems.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -380,7 +380,7 @@ } /* end if delete asset */ $result = DB_Txn_Commit($db); -echo '<form name="AssetForm" enctype="multipart/form-data" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '"> +echo '<form name="AssetForm" enctype="multipart/form-data" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '"> <table class="selection">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/FixedAssetLocations.php =================================================================== --- trunk/FixedAssetLocations.php 2012-02-22 06:06:03 UTC (rev 4949) +++ trunk/FixedAssetLocations.php 2012-02-22 06:26:38 UTC (rev 4950) @@ -56,7 +56,7 @@ WH... [truncated message content] |
From: <dai...@us...> - 2012-02-22 06:06:20
|
Revision: 4949 http://web-erp.svn.sourceforge.net/web-erp/?rev=4949&view=rev Author: daintree Date: 2012-02-22 06:06:03 +0000 (Wed, 22 Feb 2012) Log Message: ----------- fully qualify htmlspecialchars() function Modified Paths: -------------- trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po Modified: trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po 2012-02-21 16:40:23 UTC (rev 4948) +++ trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po 2012-02-22 06:06:03 UTC (rev 4949) @@ -1,57 +1,51 @@ # French Translation of webERP # Copyright (C) 2005 Logic Works Ltd # This file is distributed under the same license as the webERP package. +# # FIRST AUTHOR <EMAIL@ADDRESS>, 2005. -# # James Dupin <jam...@gm...>, 2012. -# msgid "" msgstr "" "Project-Id-Version: weberp 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-02-11 17:15+1300\n" -"PO-Revision-Date: 2012-01-25 13:39+0100\n" +"PO-Revision-Date: 2012-02-21 21:15+0100\n" "Last-Translator: James Dupin <jam...@gm...>\n" -"Language-Team: french <none>\n" +"Language-Team: French <none>\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2011-03-31 06:25+0000\n" -"X-Generator: Launchpad (build 12696)\n" +"X-Generator: Lokalize 1.1\n" "Language: \n" "Plural-Forms: s\n" "X-Poedit-Language: French\n" "X-Poedit-Country: FRANCE\n" "X-Poedit-SourceCharset: utf-8\n" -#: AccountGroups.php:7 index.php:1308 +#: AccountGroups.php:7 +#: index.php:1308 msgid "Account Groups" msgstr "Groupes" #: AccountGroups.php:17 -msgid "" -"An error occurred in retrieving the account groups of the parent account " -"group during the check for recursion" -msgstr "" -"Une erreur s'est produite lors de la vérification des groupes dont fait " -"partie le groupe du compte parent" +msgid "An error occurred in retrieving the account groups of the parent account group during the check for recursion" +msgstr "Erreur lors de la vérification des groupes dont fait partie le groupe du compte parent" #: AccountGroups.php:18 -msgid "" -"The SQL that was used to retrieve the account groups of the parent account " -"group and that failed in the process was" -msgstr "" -"Commande SQL d'affichage des groupes dont fait partie le groupe du compte " -"parent" +msgid "The SQL that was used to retrieve the account groups of the parent account group and that failed in the process was" +msgstr "Échec de la commande SQL d'affichage des groupes dont fait partie le groupe du compte parent:" -#: AccountGroups.php:57 AccountGroups.php:102 AccountGroups.php:174 +#: AccountGroups.php:57 +#: AccountGroups.php:102 +#: AccountGroups.php:174 #: AccountGroups.php:184 msgid "The SQL that was used to retrieve the information was" -msgstr "Commande SQL d'affichage des informations" +msgstr "Commande SQL d'affichage des informations:" #: AccountGroups.php:58 msgid "Could not check whether the group exists because" -msgstr "Ne peut pas vérifier si le groupe existe car" +msgstr "Impossible de vérifier l'existance du groupe:" #: AccountGroups.php:65 msgid "The account group name already exists in the database" @@ -61,49 +55,30 @@ msgid "The account group name cannot contain the character" msgstr "Le nom du groupe ne doit pas contenir le caractère" -#: AccountGroups.php:71 TaxCategories.php:31 +#: AccountGroups.php:71 +#: TaxCategories.php:31 msgid "or the character" msgstr "ou le caractère" #: AccountGroups.php:77 -msgid "" -"The sequence that the account group is listed in the trial balance is " -"expected to be numeric" -msgstr "" -"La séquence dans laquelle le groupe est nommé dans les transferts doit être " -"numérique" +msgid "The sequence that the account group is listed in the trial balance is expected to be numeric" +msgstr "La séquence dans laquelle le groupe est nommé dans les transferts doit être numérique" #: AccountGroups.php:85 msgid "The account group name must be at least one character long" msgstr "Le nom du groupe compte doit contenir au moins un caractère" #: AccountGroups.php:92 -msgid "" -"The parent account group selected appears to result in a recursive account " -"structure - select an alternative parent account group or make this group a " -"top level account group" -msgstr "" -"Le choix de ce groupe mène à une impasse. Sélectionnez un autre groupe ou " -"modifier ce groupe de manière à ce qu'il se trouve au plus niveau (groupe " -"parent)" +msgid "The parent account group selected appears to result in a recursive account structure - select an alternative parent account group or make this group a top level account group" +msgstr "Le choix de ce groupe mène à une impasse. Sélectionner un autre groupe ou modifier ce groupe de manière à ce qu'il se trouve au plus niveau (groupe parent)" #: AccountGroups.php:103 msgid "Could not check whether the group is recursive because" -msgstr "Ne peut pas vérifier si le groupe est récursif car" +msgstr "Impossible de vérifier la récursivité pour ce groupe:" #: AccountGroups.php:111 -msgid "" -"Since this account group is a child group, the sequence in the trial " -"balance, the section in the accounts and whether or not the account group " -"appears in the balance sheet or profit and loss account are all properties " -"inherited from the parent account group. Any changes made to these fields " -"will have no effect." -msgstr "" -"Comme ce groupe est un groupe enfant, la séquence des transferts, la place " -"dans les rubriques des comptes, si le groupe est nommé ou non dans la " -"balance ou dans le compte 'pertes et profits' sont alors des propriétés " -"héritées du groupe parent. Tout changement dans ces champs NE sera PAS pris " -"en compte." +msgid "Since this account group is a child group, the sequence in the trial balance, the section in the accounts and whether or not the account group appears in the balance sheet or profit and loss account are all properties inherited from the parent account group. Any changes made to these fields will have no effect." +msgstr "Comme ce groupe est un groupe enfant, la séquence des transferts, la place dans les rubriques des comptes, si le groupe est nommé ou non dans la balance ou dans le compte 'pertes et profits' sont alors des propriétés héritées du groupe parent. Tout changement dans ces champs NE sera PAS pris en compte." #: AccountGroups.php:116 msgid "The section in accounts must be an integer" @@ -111,60 +86,106 @@ #: AccountGroups.php:133 msgid "An error occurred in updating the account group" -msgstr "Une erreur s'est produite dans la mise à jour du groupe" +msgstr "Erreur lors de la mise à jour du groupe" #: AccountGroups.php:134 msgid "The SQL that was used to update the account group was" -msgstr "Commande SQL de modification du groupe" +msgstr "Commande SQL de modification du groupe:" -#: AccountGroups.php:136 AccountSections.php:104 PaymentMethods.php:82 +#: AccountGroups.php:136 +#: AccountSections.php:104 +#: PaymentMethods.php:82 msgid "Record Updated" msgstr "Fiche mise à jour" #: AccountGroups.php:154 msgid "An error occurred in inserting the account group" -msgstr "Une erreur s'est produite dans l'insertion du groupe" +msgstr "Erreur lors de la création du groupe" #: AccountGroups.php:155 msgid "The SQL that was used to insert the account group was" -msgstr "Commande SQL d'insertion du groupe" +msgstr "Échec de la commande SQL d'ajoût du groupe:" -#: AccountGroups.php:156 AccountSections.php:116 PaymentMethods.php:103 +#: AccountGroups.php:156 +#: AccountSections.php:116 +#: PaymentMethods.php:103 msgid "Record inserted" msgstr "Fiche créée" #: AccountGroups.php:173 msgid "An error occurred in retrieving the group information from chartmaster" -msgstr "" -"Une erreur s'est produite lors de la récupération des informations de groupe " -"depuis chartmaster" +msgstr "Erreur lors de la recherche des informations de groupe depuis \"chartmaster\"" #: AccountGroups.php:178 -msgid "" -"Cannot delete this account group because general ledger accounts have been " -"created using this group" -msgstr "Ce groupe ne peut pas être supprimé car les comptes du GL l'utilisent." +msgid "Cannot delete this account group because general ledger accounts have been created using this group" +msgstr "Ce groupe ne peut pas être supprimé car des comptes du GL l'utilisent." -#: AccountGroups.php:179 AccountGroups.php:189 AccountSections.php:137 -#: Areas.php:116 Areas.php:125 BankAccounts.php:158 CreditStatus.php:125 -#: Currencies.php:166 Currencies.php:174 Currencies.php:182 -#: CustomerBranches.php:286 CustomerBranches.php:296 CustomerBranches.php:306 -#: CustomerBranches.php:316 Customers.php:289 Customers.php:298 -#: Customers.php:306 Customers.php:314 CustomerTypes.php:147 -#: CustomerTypes.php:157 Factors.php:134 FixedAssetCategories.php:133 -#: GLAccounts.php:80 GLAccounts.php:96 Locations.php:237 Locations.php:245 -#: Locations.php:256 Locations.php:265 Locations.php:274 Locations.php:283 -#: Locations.php:292 Locations.php:301 Locations.php:309 MRPDemandTypes.php:87 -#: PaymentMethods.php:138 PaymentTerms.php:146 PaymentTerms.php:153 -#: PcExpenses.php:158 SalesCategories.php:125 SalesCategories.php:132 -#: SalesPeople.php:150 SalesPeople.php:157 SalesPeople.php:163 -#: SalesTypes.php:140 SalesTypes.php:150 Shippers.php:81 Shippers.php:93 -#: StockCategories.php:180 Stocks.php:615 Stocks.php:624 Stocks.php:632 -#: Stocks.php:640 Stocks.php:648 Stocks.php:656 Suppliers.php:612 -#: Suppliers.php:621 Suppliers.php:629 SupplierTypes.php:145 -#: TaxCategories.php:131 TaxGroups.php:132 TaxGroups.php:140 -#: TaxProvinces.php:129 UnitsOfMeasure.php:135 WorkCentres.php:89 -#: WorkCentres.php:95 WWW_Access.php:83 +#: AccountGroups.php:179 +#: AccountGroups.php:189 +#: AccountSections.php:137 +#: Areas.php:116 +#: Areas.php:125 +#: BankAccounts.php:158 +#: CreditStatus.php:125 +#: Currencies.php:166 +#: Currencies.php:174 +#: Currencies.php:182 +#: CustomerBranches.php:286 +#: CustomerBranches.php:296 +#: CustomerBranches.php:306 +#: CustomerBranches.php:316 +#: Customers.php:289 +#: Customers.php:298 +#: Customers.php:306 +#: Customers.php:314 +#: CustomerTypes.php:147 +#: CustomerTypes.php:157 +#: Factors.php:134 +#: FixedAssetCategories.php:133 +#: GLAccounts.php:80 +#: GLAccounts.php:96 +#: Locations.php:237 +#: Locations.php:245 +#: Locations.php:256 +#: Locations.php:265 +#: Locations.php:274 +#: Locations.php:283 +#: Locations.php:292 +#: Locations.php:301 +#: Locations.php:309 +#: MRPDemandTypes.php:87 +#: PaymentMethods.php:138 +#: PaymentTerms.php:146 +#: PaymentTerms.php:153 +#: PcExpenses.php:158 +#: SalesCategories.php:125 +#: SalesCategories.php:132 +#: SalesPeople.php:150 +#: SalesPeople.php:157 +#: SalesPeople.php:163 +#: SalesTypes.php:140 +#: SalesTypes.php:150 +#: Shippers.php:81 +#: Shippers.php:93 +#: StockCategories.php:180 +#: Stocks.php:615 +#: Stocks.php:624 +#: Stocks.php:632 +#: Stocks.php:640 +#: Stocks.php:648 +#: Stocks.php:656 +#: Suppliers.php:612 +#: Suppliers.php:621 +#: Suppliers.php:629 +#: SupplierTypes.php:145 +#: TaxCategories.php:131 +#: TaxGroups.php:132 +#: TaxGroups.php:140 +#: TaxProvinces.php:129 +#: UnitsOfMeasure.php:135 +#: WorkCentres.php:89 +#: WorkCentres.php:95 +#: WWW_Access.php:83 msgid "There are" msgstr "Il y a" @@ -174,17 +195,11 @@ #: AccountGroups.php:183 msgid "An error occurred in retrieving the parent group information" -msgstr "" -"Une erreur s'est produite lors la récupération des informations du groupe " -"parent" +msgstr "Erreur lors de la recherche des informations du groupe parent" #: AccountGroups.php:188 -msgid "" -"Cannot delete this account group because it is a parent account group of " -"other account group(s)" -msgstr "" -"Impossible de supprimer ce groupe, car un/des sous-groupe(s) est/sont membre" -"(s) de ce groupe" +msgid "Cannot delete this account group because it is a parent account group of other account group(s)" +msgstr "Impossible de supprimer ce groupe car c'est un groupe parents contenant des membres" #: AccountGroups.php:189 msgid "account groups that have this group as its/there parent account group" @@ -192,11 +207,11 @@ #: AccountGroups.php:192 msgid "An error occurred in deleting the account group" -msgstr "Une erreur s'est produite lors de la suppression du groupe" +msgstr "Erreur lors de la suppression du groupe" #: AccountGroups.php:193 msgid "The SQL that was used to delete the account group was" -msgstr "Commande SQL de suppression du groupe" +msgstr "Commande SQL de suppression du groupe:" #: AccountGroups.php:195 msgid "group has been deleted" @@ -204,52 +219,128 @@ #: AccountGroups.php:220 msgid "The sql that was used to retrieve the account group information was " -msgstr "Commande SQL d'affichage les informations du groupe" +msgstr "Commande SQL d'affichage du groupe" #: AccountGroups.php:221 msgid "Could not get account groups because" -msgstr "Impossible d'accèder aux groupes car" +msgstr "Impossible d'accèder aux groupes:" -#: AccountGroups.php:223 AccountSections.php:175 AddCustomerContacts.php:25 -#: AddCustomerContacts.php:28 AddCustomerNotes.php:103 -#: AddCustomerTypeNotes.php:97 AgedDebtors.php:450 AgedSuppliers.php:278 -#: Areas.php:144 AuditTrail.php:11 BankReconciliation.php:13 -#: BOMExtendedQty.php:261 BOMIndented.php:246 BOMIndentedReverse.php:235 -#: BOMInquiry.php:187 BOMListing.php:109 BOMs.php:213 BOMs.php:832 -#: COGSGLPostings.php:18 CompanyPreferences.php:153 CounterSales.php:2020 -#: CounterSales.php:2146 Credit_Invoice.php:255 CreditStatus.php:21 -#: Currencies.php:28 CustEDISetup.php:17 DailyBankTransactions.php:11 -#: DebtorsAtPeriodEnd.php:125 DiscountCategories.php:10 -#: DiscountCategories.php:131 DiscountMatrix.php:16 EDIMessageFormat.php:104 -#: FixedAssetLocations.php:9 FixedAssetRegister.php:13 -#: FixedAssetRegister.php:243 FixedAssetTransfer.php:31 FormDesigner.php:129 -#: GLBalanceSheet.php:362 GLBudgets.php:29 GLJournal.php:246 -#: InventoryPlanning.php:374 InventoryPlanningPrefSupplier.php:467 -#: Labels.php:115 Labels.php:270 MRPReport.php:515 OutstandingGRNs.php:160 -#: PcAssignCashToTab.php:56 PcAssignCashToTab.php:130 -#: PcAssignCashToTab.php:146 PcAssignCashToTab.php:187 PDFPickingList.php:28 -#: PDFPrintLabel.php:140 PDFStockLocTransfer.php:16 -#: PO_AuthorisationLevels.php:10 POReport.php:60 POReport.php:64 -#: POReport.php:68 PO_SelectOSPurchOrder.php:139 PricesBasedOnMarkUp.php:8 -#: Prices_Customer.php:35 Prices.php:30 PurchData.php:137 PurchData.php:258 -#: PurchData.php:282 RecurringSalesOrders.php:309 SalesAnalReptCols.php:51 -#: SalesAnalRepts.php:11 SalesCategories.php:11 SalesGLPostings.php:17 -#: SalesGraph.php:34 SalesPeople.php:20 SalesTypes.php:20 SelectAsset.php:45 -#: SelectCompletedOrder.php:11 SelectContract.php:78 SelectCreditItems.php:215 -#: SelectCreditItems.php:286 SelectCustomer.php:262 SelectGLAccount.php:17 -#: SelectGLAccount.php:81 SelectOrderItems.php:577 SelectOrderItems.php:1480 -#: SelectOrderItems.php:1605 SelectProduct.php:500 SelectSalesOrder.php:533 -#: SelectSupplier.php:9 SelectSupplier.php:198 SelectWorkOrder.php:9 -#: SelectWorkOrder.php:151 ShipmentCosting.php:11 Shipments.php:17 -#: Shippers.php:123 Shippers.php:160 Shipt_Select.php:8 -#: StockLocMovements.php:13 StockLocStatus.php:27 Suppliers.php:302 -#: SupplierTenderCreate.php:486 SupplierTenderCreate.php:585 -#: SupplierTenders.php:322 SupplierTenders.php:388 SupplierTransInquiry.php:10 -#: TaxGroups.php:15 TaxProvinces.php:11 TopItems.php:77 -#: WhereUsedInquiry.php:18 WorkCentres.php:111 WorkCentres.php:162 -#: WorkOrderCosting.php:13 WorkOrderEntry.php:11 WorkOrderIssue.php:22 -#: WorkOrderReceive.php:15 WorkOrderStatus.php:42 WWW_Access.php:11 -#: WWW_Users.php:31 Z_BottomUpCosts.php:56 +#: AccountGroups.php:223 +#: AccountSections.php:175 +#: AddCustomerContacts.php:25 +#: AddCustomerContacts.php:28 +#: AddCustomerNotes.php:103 +#: AddCustomerTypeNotes.php:97 +#: AgedDebtors.php:450 +#: AgedSuppliers.php:278 +#: Areas.php:144 +#: AuditTrail.php:11 +#: BankReconciliation.php:13 +#: BOMExtendedQty.php:261 +#: BOMIndented.php:246 +#: BOMIndentedReverse.php:235 +#: BOMInquiry.php:187 +#: BOMListing.php:109 +#: BOMs.php:213 +#: BOMs.php:832 +#: COGSGLPostings.php:18 +#: CompanyPreferences.php:153 +#: CounterSales.php:2020 +#: CounterSales.php:2146 +#: Credit_Invoice.php:255 +#: CreditStatus.php:21 +#: Currencies.php:28 +#: CustEDISetup.php:17 +#: DailyBankTransactions.php:11 +#: DebtorsAtPeriodEnd.php:125 +#: DiscountCategories.php:10 +#: DiscountCategories.php:131 +#: DiscountMatrix.php:16 +#: EDIMessageFormat.php:104 +#: FixedAssetLocations.php:9 +#: FixedAssetRegister.php:13 +#: FixedAssetRegister.php:243 +#: FixedAssetTransfer.php:31 +#: FormDesigner.php:129 +#: GLBalanceSheet.php:362 +#: GLBudgets.php:29 +#: GLJournal.php:246 +#: InventoryPlanning.php:374 +#: InventoryPlanningPrefSupplier.php:467 +#: Labels.php:115 +#: Labels.php:270 +#: MRPReport.php:515 +#: OutstandingGRNs.php:160 +#: PcAssignCashToTab.php:56 +#: PcAssignCashToTab.php:130 +#: PcAssignCashToTab.php:146 +#: PcAssignCashToTab.php:187 +#: PDFPickingList.php:28 +#: PDFPrintLabel.php:140 +#: PDFStockLocTransfer.php:16 +#: PO_AuthorisationLevels.php:10 +#: POReport.php:60 +#: POReport.php:64 +#: POReport.php:68 +#: PO_SelectOSPurchOrder.php:139 +#: PricesBasedOnMarkUp.php:8 +#: Prices_Customer.php:35 +#: Prices.php:30 +#: PurchData.php:137 +#: PurchData.php:258 +#: PurchData.php:282 +#: RecurringSalesOrders.php:309 +#: SalesAnalReptCols.php:51 +#: SalesAnalRepts.php:11 +#: SalesCategories.php:11 +#: SalesGLPostings.php:17 +#: SalesGraph.php:34 +#: SalesPeople.php:20 +#: SalesTypes.php:20 +#: SelectAsset.php:45 +#: SelectCompletedOrder.php:11 +#: SelectContract.php:78 +#: SelectCreditItems.php:215 +#: SelectCreditItems.php:286 +#: SelectCustomer.php:262 +#: SelectGLAccount.php:17 +#: SelectGLAccount.php:81 +#: SelectOrderItems.php:577 +#: SelectOrderItems.php:1480 +#: SelectOrderItems.php:1605 +#: SelectProduct.php:500 +#: SelectSalesOrder.php:533 +#: SelectSupplier.php:9 +#: SelectSupplier.php:198 +#: SelectWorkOrder.php:9 +#: SelectWorkOrder.php:151 +#: ShipmentCosting.php:11 +#: Shipments.php:17 +#: Shippers.php:123 +#: Shippers.php:160 +#: Shipt_Select.php:8 +#: StockLocMovements.php:13 +#: StockLocStatus.php:27 +#: Suppliers.php:302 +#: SupplierTenderCreate.php:486 +#: SupplierTenderCreate.php:585 +#: SupplierTenders.php:322 +#: SupplierTenders.php:388 +#: SupplierTransInquiry.php:10 +#: TaxGroups.php:15 +#: TaxProvinces.php:11 +#: TopItems.php:77 +#: WhereUsedInquiry.php:18 +#: WorkCentres.php:111 +#: WorkCentres.php:162 +#: WorkOrderCosting.php:13 +#: WorkOrderEntry.php:11 +#: WorkOrderIssue.php:22 +#: WorkOrderReceive.php:15 +#: WorkOrderStatus.php:42 +#: WWW_Access.php:11 +#: WWW_Users.php:31 +#: Z_BottomUpCosts.php:56 msgid "Search" msgstr "Recherche" @@ -257,156 +348,394 @@ msgid "Group Name" msgstr "Nom du groupe" -#: AccountGroups.php:228 EDIMessageFormat.php:129 EDIMessageFormat.php:208 +#: AccountGroups.php:228 +#: EDIMessageFormat.php:129 +#: EDIMessageFormat.php:208 msgid "Section" msgstr "Rubrique" -#: AccountGroups.php:229 AccountGroups.php:390 +#: AccountGroups.php:229 +#: AccountGroups.php:390 msgid "Sequence In TB" msgstr "Indexe dans balance" -#: AccountGroups.php:230 AccountGroups.php:374 GLProfit_Loss.php:6 -#: GLProfit_Loss.php:125 GLProfit_Loss.php:126 GLProfit_Loss.php:177 -#: SelectGLAccount.php:47 SelectGLAccount.php:61 +#: AccountGroups.php:230 +#: AccountGroups.php:374 +#: GLProfit_Loss.php:6 +#: GLProfit_Loss.php:125 +#: GLProfit_Loss.php:126 +#: GLProfit_Loss.php:177 +#: SelectGLAccount.php:47 +#: SelectGLAccount.php:61 msgid "Profit and Loss" msgstr "Pertes et profits" -#: AccountGroups.php:231 AccountGroups.php:336 +#: AccountGroups.php:231 +#: AccountGroups.php:336 msgid "Parent Group" msgstr "Groupe parent" -#: AccountGroups.php:247 AccountGroups.php:250 AccountGroups.php:378 -#: AccountGroups.php:380 BOMs.php:122 BOMs.php:746 BOMs.php:748 -#: CompanyPreferences.php:476 CompanyPreferences.php:478 -#: CompanyPreferences.php:491 CompanyPreferences.php:493 -#: CompanyPreferences.php:506 CompanyPreferences.php:508 -#: ContractCosting.php:198 CustomerBranches.php:411 Customers.php:593 -#: Customers.php:941 Customers.php:950 Customers.php:953 -#: DeliveryDetails.php:1071 DeliveryDetails.php:1114 DeliveryDetails.php:1117 -#: GLTransInquiry.php:69 MRPCalendar.php:224 MRP.php:529 MRP.php:533 -#: MRP.php:537 MRP.php:541 PaymentMethods.php:197 PaymentMethods.php:198 -#: PaymentMethods.php:199 PaymentMethods.php:262 PaymentMethods.php:268 -#: PaymentMethods.php:275 PcAuthorizeExpenses.php:244 PDFChequeListing.php:63 -#: PDFDeliveryDifferences.php:75 PDFDIFOT.php:75 -#: PO_AuthorisationLevels.php:134 PO_AuthorisationLevels.php:139 -#: PO_Header.php:782 PO_PDFPurchOrder.php:384 PO_PDFPurchOrder.php:387 -#: PurchData.php:189 PurchData.php:514 PurchData.php:517 -#: RecurringSalesOrders.php:482 RecurringSalesOrders.php:485 -#: SalesAnalReptCols.php:284 SalesAnalReptCols.php:419 -#: SalesAnalReptCols.php:422 SalesAnalRepts.php:415 SalesAnalRepts.php:418 -#: SalesAnalRepts.php:443 SalesAnalRepts.php:446 SalesAnalRepts.php:471 -#: SalesAnalRepts.php:474 SalesPeople.php:219 SalesPeople.php:355 -#: SalesPeople.php:357 SelectProduct.php:385 ShipmentCosting.php:667 -#: Stocks.php:1015 Stocks.php:1017 Stocks.php:1040 Stocks.php:1042 -#: SuppContractChgs.php:90 SystemParameters.php:396 SystemParameters.php:419 -#: SystemParameters.php:435 SystemParameters.php:498 SystemParameters.php:506 -#: SystemParameters.php:546 SystemParameters.php:626 SystemParameters.php:635 -#: SystemParameters.php:643 SystemParameters.php:661 SystemParameters.php:668 -#: SystemParameters.php:795 SystemParameters.php:930 SystemParameters.php:932 -#: SystemParameters.php:942 SystemParameters.php:944 SystemParameters.php:998 -#: SystemParameters.php:1010 SystemParameters.php:1012 TaxGroups.php:307 -#: TaxGroups.php:310 TaxGroups.php:366 WWW_Users.php:481 WWW_Users.php:483 -#: WWW_Users.php:654 WWW_Users.php:656 +#: AccountGroups.php:247 +#: AccountGroups.php:250 +#: AccountGroups.php:378 +#: AccountGroups.php:380 +#: BOMs.php:122 +#: BOMs.php:746 +#: BOMs.php:748 +#: CompanyPreferences.php:476 +#: CompanyPreferences.php:478 +#: CompanyPreferences.php:491 +#: CompanyPreferences.php:493 +#: CompanyPreferences.php:506 +#: CompanyPreferences.php:508 +#: ContractCosting.php:198 +#: CustomerBranches.php:411 +#: Customers.php:593 +#: Customers.php:941 +#: Customers.php:950 +#: Customers.php:953 +#: DeliveryDetails.php:1071 +#: DeliveryDetails.php:1114 +#: DeliveryDetails.php:1117 +#: GLTransInquiry.php:69 +#: MRPCalendar.php:224 +#: MRP.php:529 +#: MRP.php:533 +#: MRP.php:537 +#: MRP.php:541 +#: PaymentMethods.php:197 +#: PaymentMethods.php:198 +#: PaymentMethods.php:199 +#: PaymentMethods.php:262 +#: PaymentMethods.php:268 +#: PaymentMethods.php:275 +#: PcAuthorizeExpenses.php:244 +#: PDFChequeListing.php:63 +#: PDFDeliveryDifferences.php:75 +#: PDFDIFOT.php:75 +#: PO_AuthorisationLevels.php:134 +#: PO_AuthorisationLevels.php:139 +#: PO_Header.php:782 +#: PO_PDFPurchOrder.php:384 +#: PO_PDFPurchOrder.php:387 +#: PurchData.php:189 +#: PurchData.php:514 +#: PurchData.php:517 +#: RecurringSalesOrders.php:482 +#: RecurringSalesOrders.php:485 +#: SalesAnalReptCols.php:284 +#: SalesAnalReptCols.php:419 +#: SalesAnalReptCols.php:422 +#: SalesAnalRepts.php:415 +#: SalesAnalRepts.php:418 +#: SalesAnalRepts.php:443 +#: SalesAnalRepts.php:446 +#: SalesAnalRepts.php:471 +#: SalesAnalRepts.php:474 +#: SalesPeople.php:219 +#: SalesPeople.php:355 +#: SalesPeople.php:357 +#: SelectProduct.php:385 +#: ShipmentCosting.php:667 +#: Stocks.php:1015 +#: Stocks.php:1017 +#: Stocks.php:1040 +#: Stocks.php:1042 +#: SuppContractChgs.php:90 +#: SystemParameters.php:396 +#: SystemParameters.php:419 +#: SystemParameters.php:435 +#: SystemParameters.php:498 +#: SystemParameters.php:506 +#: SystemParameters.php:546 +#: SystemParameters.php:626 +#: SystemParameters.php:635 +#: SystemParameters.php:643 +#: SystemParameters.php:661 +#: SystemParameters.php:668 +#: SystemParameters.php:795 +#: SystemParameters.php:930 +#: SystemParameters.php:932 +#: SystemParameters.php:942 +#: SystemParameters.php:944 +#: SystemParameters.php:998 +#: SystemParameters.php:1010 +#: SystemParameters.php:1012 +#: TaxGroups.php:307 +#: TaxGroups.php:310 +#: TaxGroups.php:366 +#: WWW_Users.php:481 +#: WWW_Users.php:483 +#: WWW_Users.php:654 +#: WWW_Users.php:656 msgid "Yes" msgstr "Oui" -#: AccountGroups.php:253 AccountGroups.php:383 AccountGroups.php:385 -#: BankAccounts.php:210 BankAccounts.php:371 BankAccounts.php:373 -#: BankAccounts.php:377 BankAccounts.php:385 BOMs.php:124 BOMs.php:745 -#: BOMs.php:749 CompanyPreferences.php:475 CompanyPreferences.php:479 -#: CompanyPreferences.php:490 CompanyPreferences.php:494 -#: CompanyPreferences.php:505 CompanyPreferences.php:509 -#: ContractCosting.php:196 CustomerBranches.php:411 Customers.php:592 -#: Customers.php:936 Customers.php:949 Customers.php:952 -#: DeliveryDetails.php:1072 DeliveryDetails.php:1115 DeliveryDetails.php:1118 -#: GLTransInquiry.php:86 MRPCalendar.php:226 MRP.php:527 MRP.php:531 -#: MRP.php:535 MRP.php:539 PaymentMethods.php:197 PaymentMethods.php:198 -#: PaymentMethods.php:199 PaymentMethods.php:263 PaymentMethods.php:269 -#: PaymentMethods.php:276 PcAuthorizeExpenses.php:242 PDFChequeListing.php:62 -#: PDFDeliveryDifferences.php:74 PDFDIFOT.php:74 -#: PO_AuthorisationLevels.php:136 PO_AuthorisationLevels.php:141 -#: PO_Header.php:781 PO_PDFPurchOrder.php:385 PO_PDFPurchOrder.php:388 -#: PurchData.php:192 PurchData.php:515 PurchData.php:518 -#: RecurringSalesOrders.php:481 RecurringSalesOrders.php:484 -#: SalesAnalReptCols.php:282 SalesAnalReptCols.php:420 -#: SalesAnalReptCols.php:423 SalesAnalRepts.php:414 SalesAnalRepts.php:417 -#: SalesAnalRepts.php:442 SalesAnalRepts.php:445 SalesAnalRepts.php:470 -#: SalesAnalRepts.php:473 SalesPeople.php:221 SalesPeople.php:360 -#: SalesPeople.php:362 SelectProduct.php:387 ShipmentCosting.php:668 -#: Stocks.php:1010 Stocks.php:1012 Stocks.php:1035 Stocks.php:1037 -#: SuppContractChgs.php:92 SystemParameters.php:397 SystemParameters.php:420 -#: SystemParameters.php:436 SystemParameters.php:499 SystemParameters.php:507 -#: SystemParameters.php:547 SystemParameters.php:627 SystemParameters.php:636 -#: SystemParameters.php:644 SystemParameters.php:662 SystemParameters.php:669 -#: SystemParameters.php:796 SystemParameters.php:929 SystemParameters.php:933 -#: SystemParameters.php:941 SystemParameters.php:945 SystemParameters.php:999 -#: SystemParameters.php:1009 SystemParameters.php:1013 TaxGroups.php:308 -#: TaxGroups.php:311 TaxGroups.php:368 WWW_Users.php:480 WWW_Users.php:484 -#: WWW_Users.php:653 WWW_Users.php:657 includes/PDFLowGPPageHeader.inc:44 +#: AccountGroups.php:253 +#: AccountGroups.php:383 +#: AccountGroups.php:385 +#: BankAccounts.php:210 +#: BankAccounts.php:371 +#: BankAccounts.php:373 +#: BankAccounts.php:377 +#: BankAccounts.php:385 +#: BOMs.php:124 +#: BOMs.php:745 +#: BOMs.php:749 +#: CompanyPreferences.php:475 +#: CompanyPreferences.php:479 +#: CompanyPreferences.php:490 +#: CompanyPreferences.php:494 +#: CompanyPreferences.php:505 +#: CompanyPreferences.php:509 +#: ContractCosting.php:196 +#: CustomerBranches.php:411 +#: Customers.php:592 +#: Customers.php:936 +#: Customers.php:949 +#: Customers.php:952 +#: DeliveryDetails.php:1072 +#: DeliveryDetails.php:1115 +#: DeliveryDetails.php:1118 +#: GLTransInquiry.php:86 +#: MRPCalendar.php:226 +#: MRP.php:527 +#: MRP.php:531 +#: MRP.php:535 +#: MRP.php:539 +#: PaymentMethods.php:197 +#: PaymentMethods.php:198 +#: PaymentMethods.php:199 +#: PaymentMethods.php:263 +#: PaymentMethods.php:269 +#: PaymentMethods.php:276 +#: PcAuthorizeExpenses.php:242 +#: PDFChequeListing.php:62 +#: PDFDeliveryDifferences.php:74 +#: PDFDIFOT.php:74 +#: PO_AuthorisationLevels.php:136 +#: PO_AuthorisationLevels.php:141 +#: PO_Header.php:781 +#: PO_PDFPurchOrder.php:385 +#: PO_PDFPurchOrder.php:388 +#: PurchData.php:192 +#: PurchData.php:515 +#: PurchData.php:518 +#: RecurringSalesOrders.php:481 +#: RecurringSalesOrders.php:484 +#: SalesAnalReptCols.php:282 +#: SalesAnalReptCols.php:420 +#: SalesAnalReptCols.php:423 +#: SalesAnalRepts.php:414 +#: SalesAnalRepts.php:417 +#: SalesAnalRepts.php:442 +#: SalesAnalRepts.php:445 +#: SalesAnalRepts.php:470 +#: SalesAnalRepts.php:473 +#: SalesPeople.php:221 +#: SalesPeople.php:360 +#: SalesPeople.php:362 +#: SelectProduct.php:387 +#: ShipmentCosting.php:668 +#: Stocks.php:1010 +#: Stocks.php:1012 +#: Stocks.php:1035 +#: Stocks.php:1037 +#: SuppContractChgs.php:92 +#: SystemParameters.php:397 +#: SystemParameters.php:420 +#: SystemParameters.php:436 +#: SystemParameters.php:499 +#: SystemParameters.php:507 +#: SystemParameters.php:547 +#: SystemParameters.php:627 +#: SystemParameters.php:636 +#: SystemParameters.php:644 +#: SystemParameters.php:662 +#: SystemParameters.php:669 +#: SystemParameters.php:796 +#: SystemParameters.php:929 +#: SystemParameters.php:933 +#: SystemParameters.php:941 +#: SystemParameters.php:945 +#: SystemParameters.php:999 +#: SystemParameters.php:1009 +#: SystemParameters.php:1013 +#: TaxGroups.php:308 +#: TaxGroups.php:311 +#: TaxGroups.php:368 +#: WWW_Users.php:480 +#: WWW_Users.php:484 +#: WWW_Users.php:653 +#: WWW_Users.php:657 +#: includes/PDFLowGPPageHeader.inc:44 #: includes/PDFTaxPageHeader.inc:35 msgid "No" msgstr "Non" -#: AccountGroups.php:262 AccountSections.php:196 AddCustomerContacts.php:149 -#: AddCustomerNotes.php:141 AddCustomerTypeNotes.php:128 Areas.php:164 -#: BankAccounts.php:223 BOMs.php:149 COGSGLPostings.php:108 -#: COGSGLPostings.php:206 CreditStatus.php:174 Currencies.php:272 -#: CustomerBranches.php:415 Customers.php:1027 Customers.php:1061 -#: CustomerTypes.php:202 EDIMessageFormat.php:150 Factors.php:329 -#: FixedAssetCategories.php:186 FixedAssetLocations.php:107 -#: FreightCosts.php:240 GeocodeSetup.php:173 GLAccounts.php:312 GLTags.php:91 -#: Labels.php:408 Locations.php:391 MRPDemands.php:306 MRPDemandTypes.php:120 -#: PaymentMethods.php:200 PaymentTerms.php:205 PcAssignCashToTab.php:259 -#: PcClaimExpensesFromTab.php:252 PcExpenses.php:223 PcTabs.php:233 -#: PcTypeTabs.php:172 PO_AuthorisationLevels.php:151 Prices_Customer.php:278 -#: Prices.php:250 PurchData.php:204 SalesCategories.php:256 -#: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:232 -#: SalesTypes.php:206 SecurityTokens.php:128 SelectCustomer.php:617 -#: SelectCustomer.php:635 SelectCustomer.php:659 SelectCustomer.php:676 -#: SelectCustomer.php:700 SelectCustomer.php:717 Shippers.php:144 -#: StockCategories.php:241 SupplierContacts.php:163 -#: SupplierTenderCreate.php:146 SupplierTypes.php:189 -#: SuppTransGLAnalysis.php:120 TaxAuthorities.php:174 TaxCategories.php:182 -#: TaxGroups.php:188 TaxProvinces.php:180 UnitsOfMeasure.php:185 -#: WorkCentres.php:141 WWW_Access.php:123 WWW_Users.php:323 -#: includes/InputSerialItems.php:88 includes/OutputSerialItems.php:20 +#: AccountGroups.php:262 +#: AccountSections.php:196 +#: AddCustomerContacts.php:149 +#: AddCustomerNotes.php:141 +#: AddCustomerTypeNotes.php:128 +#: Areas.php:164 +#: BankAccounts.php:223 +#: BOMs.php:149 +#: COGSGLPostings.php:108 +#: COGSGLPostings.php:206 +#: CreditStatus.php:174 +#: Currencies.php:272 +#: CustomerBranches.php:415 +#: Customers.php:1027 +#: Customers.php:1061 +#: CustomerTypes.php:202 +#: EDIMessageFormat.php:150 +#: Factors.php:329 +#: FixedAssetCategories.php:186 +#: FixedAssetLocations.php:107 +#: FreightCosts.php:240 +#: GeocodeSetup.php:173 +#: GLAccounts.php:312 +#: GLTags.php:91 +#: Labels.php:408 +#: Locations.php:391 +#: MRPDemands.php:306 +#: MRPDemandTypes.php:120 +#: PaymentMethods.php:200 +#: PaymentTerms.php:205 +#: PcAssignCashToTab.php:259 +#: PcClaimExpensesFromTab.php:252 +#: PcExpenses.php:223 +#: PcTabs.php:233 +#: PcTypeTabs.php:172 +#: PO_AuthorisationLevels.php:151 +#: Prices_Customer.php:278 +#: Prices.php:250 +#: PurchData.php:204 +#: SalesCategories.php:256 +#: SalesGLPostings.php:132 +#: SalesGLPostings.php:245 +#: SalesPeople.php:232 +#: SalesTypes.php:206 +#: SecurityTokens.php:128 +#: SelectCustomer.php:617 +#: SelectCustomer.php:635 +#: SelectCustomer.php:659 +#: SelectCustomer.php:676 +#: SelectCustomer.php:700 +#: SelectCustomer.php:717 +#: Shippers.php:144 +#: StockCategories.php:241 +#: SupplierContacts.php:163 +#: SupplierTenderCreate.php:146 +#: SupplierTypes.php:189 +#: SuppTransGLAnalysis.php:120 +#: TaxAuthorities.php:174 +#: TaxCategories.php:182 +#: TaxGroups.php:188 +#: TaxProvinces.php:180 +#: UnitsOfMeasure.php:185 +#: WorkCentres.php:141 +#: WWW_Access.php:123 +#: WWW_Users.php:323 +#: includes/InputSerialItems.php:88 +#: includes/OutputSerialItems.php:20 #, php-format msgid "Edit" msgstr "Modifier" #: AccountGroups.php:263 msgid "Are you sure you wish to delete this account group?" -msgstr "Êtes-vous sûr de vouloir supprimer ce groupe?" +msgstr "Voulez-vous supprimer ce groupe?" -#: AccountGroups.php:263 AccountSections.php:200 AddCustomerContacts.php:150 -#: AddCustomerNotes.php:142 AddCustomerTypeNotes.php:129 Areas.php:165 -#: BankAccounts.php:224 BOMs.php:151 COGSGLPostings.php:109 -#: COGSGLPostings.php:207 ContractBOM.php:266 ContractOtherReqts.php:119 -#: CounterSales.php:822 Credit_Invoice.php:381 CreditStatus.php:175 -#: Currencies.php:275 CustomerReceipt.php:921 Customers.php:1062 -#: CustomerTypes.php:203 DiscountCategories.php:219 DiscountMatrix.php:182 -#: EDIMessageFormat.php:151 FixedAssetCategories.php:187 FreightCosts.php:241 -#: GeocodeSetup.php:174 GLAccounts.php:313 GLJournal.php:425 GLTags.php:92 -#: Labels.php:408 Locations.php:392 MRPDemands.php:307 MRPDemandTypes.php:121 -#: PaymentMethods.php:201 Payments.php:1073 PaymentTerms.php:206 -#: PcAssignCashToTab.php:263 PcClaimExpensesFromTab.php:253 PcExpenses.php:224 -#: PcExpensesTypeTab.php:185 PcTabs.php:234 PcTypeTabs.php:173 -#: PO_AuthorisationLevels.php:153 PO_Items.php:707 Prices_Customer.php:279 -#: Prices.php:251 PurchData.php:205 SalesAnalReptCols.php:299 -#: SalesAnalRepts.php:303 SalesCategories.php:257 SalesGLPostings.php:133 -#: SalesGLPostings.php:246 SalesPeople.php:233 SalesTypes.php:207 -#: SecurityTokens.php:129 SelectCreditItems.php:765 SelectCustomer.php:618 -#: SelectCustomer.php:636 SelectCustomer.php:660 SelectCustomer.php:677 -#: SelectCustomer.php:701 SelectCustomer.php:718 SelectOrderItems.php:1399 -#: Shipments.php:439 Shippers.php:145 SpecialOrder.php:665 -#: StockCategories.php:242 StockCategories.php:555 StockLocTransfer.php:302 -#: SuppContractChgs.php:99 SuppCreditGRNs.php:102 SuppFixedAssetChgs.php:87 -#: SuppInvGRNs.php:147 SupplierContacts.php:164 SupplierTenderCreate.php:377 -#: SupplierTenderCreate.php:404 SupplierTypes.php:191 SuppShiptChgs.php:90 -#: SuppTransGLAnalysis.php:121 TaxAuthorities.php:175 TaxCategories.php:183 -#: TaxGroups.php:189 TaxProvinces.php:181 UnitsOfMeasure.php:186 -#: WorkCentres.php:142 WOSerialNos.php:320 WWW_Access.php:124 -#: WWW_Users.php:324 includes/InputSerialItemsKeyed.php:58 +#: AccountGroups.php:263 +#: AccountSections.php:200 +#: AddCustomerContacts.php:150 +#: AddCustomerNotes.php:142 +#: AddCustomerTypeNotes.php:129 +#: Areas.php:165 +#: BankAccounts.php:224 +#: BOMs.php:151 +#: COGSGLPostings.php:109 +#: COGSGLPostings.php:207 +#: ContractBOM.php:266 +#: ContractOtherReqts.php:119 +#: CounterSales.php:822 +#: Credit_Invoice.php:381 +#: CreditStatus.php:175 +#: Currencies.php:275 +#: CustomerReceipt.php:921 +#: Customers.php:1062 +#: CustomerTypes.php:203 +#: DiscountCategories.php:219 +#: DiscountMatrix.php:182 +#: EDIMessageFormat.php:151 +#: FixedAssetCategories.php:187 +#: FreightCosts.php:241 +#: GeocodeSetup.php:174 +#: GLAccounts.php:313 +#: GLJournal.php:425 +#: GLTags.php:92 +#: Labels.php:408 +#: Locations.php:392 +#: MRPDemands.php:307 +#: MRPDemandTypes.php:121 +#: PaymentMethods.php:201 +#: Payments.php:1073 +#: PaymentTerms.php:206 +#: PcAssignCashToTab.php:263 +#: PcClaimExpensesFromTab.php:253 +#: PcExpenses.php:224 +#: PcExpensesTypeTab.php:185 +#: PcTabs.php:234 +#: PcTypeTabs.php:173 +#: PO_AuthorisationLevels.php:153 +#: PO_Items.php:707 +#: Prices_Customer.php:279 +#: Prices.php:251 +#: PurchData.php:205 +#: SalesAnalReptCols.php:299 +#: SalesAnalRepts.php:303 +#: SalesCategories.php:257 +#: SalesGLPostings.php:133 +#: SalesGLPostings.php:246 +#: SalesPeople.php:233 +#: SalesTypes.php:207 +#: SecurityTokens.php:129 +#: SelectCreditItems.php:765 +#: SelectCustomer.php:618 +#: SelectCustomer.php:636 +#: SelectCustomer.php:660 +#: SelectCustomer.php:677 +#: SelectCustomer.php:701 +#: SelectCustomer.php:718 +#: SelectOrderItems.php:1399 +#: Shipments.php:439 +#: Shippers.php:145 +#: SpecialOrder.php:665 +#: StockCategories.php:242 +#: StockCategories.php:555 +#: StockLocTransfer.php:302 +#: SuppContractChgs.php:99 +#: SuppCreditGRNs.php:102 +#: SuppFixedAssetChgs.php:87 +#: SuppInvGRNs.php:147 +#: SupplierContacts.php:164 +#: SupplierTenderCreate.php:377 +#: SupplierTenderCreate.php:404 +#: SupplierTypes.php:191 +#: SuppShiptChgs.php:90 +#: SuppTransGLAnalysis.php:121 +#: TaxAuthorities.php:175 +#: TaxCategories.php:183 +#: TaxGroups.php:189 +#: TaxProvinces.php:181 +#: UnitsOfMeasure.php:186 +#: WorkCentres.php:142 +#: WOSerialNos.php:320 +#: WWW_Access.php:124 +#: WWW_Users.php:324 +#: includes/InputSerialItemsKeyed.php:58 #: includes/OutputSerialItems.php:99 #, php-format msgid "Delete" @@ -418,20 +747,19 @@ #: AccountGroups.php:291 msgid "An error occurred in retrieving the account group information" -msgstr "" -"Une erreur s'est produite lors la récupération des informations du groupe" +msgstr "Erreur lors de la recherche des informations du groupe" #: AccountGroups.php:292 -msgid "" -"The SQL that was used to retrieve the account group and that failed in the " -"process was" -msgstr "Commande SQL d'affichage du groupe" +msgid "The SQL that was used to retrieve the account group and that failed in the process was" +msgstr "Échec de la commande SQL d'affichage du groupe:" #: AccountGroups.php:295 msgid "The account group name does not exist in the database" -msgstr "Le nom du groupe n'existe pas dans la base de données" +msgstr "Le nom du groupe n'existe pas" -#: AccountGroups.php:310 GLAccounts.php:243 GLAccounts.php:292 +#: AccountGroups.php:310 +#: GLAccounts.php:243 +#: GLAccounts.php:292 #: Z_ImportGLAccountGroups.php:26 msgid "Account Group" msgstr "Groupe" @@ -440,7 +768,8 @@ msgid "Account Group Name" msgstr "Nom du groupe" -#: AccountGroups.php:342 AccountGroups.php:344 +#: AccountGroups.php:342 +#: AccountGroups.php:344 msgid "Top Level Group" msgstr "Groupe parent" @@ -448,27 +777,55 @@ msgid "Section In Accounts" msgstr "Rubrique des comptes" -#: AccountGroups.php:395 AccountSections.php:264 AddCustomerContacts.php:258 -#: AddCustomerNotes.php:245 AddCustomerTypeNotes.php:210 Areas.php:227 -#: BankAccounts.php:391 BOMs.php:759 COGSGLPostings.php:354 -#: CreditStatus.php:257 Currencies.php:401 CustLoginSetup.php:272 -#: DiscountMatrix.php:141 EDIMessageFormat.php:248 -#: FixedAssetCategories.php:344 FixedAssetLocations.php:156 -#: FreightCosts.php:339 GeocodeSetup.php:270 GLAccounts.php:262 -#: Locations.php:606 MRPDemands.php:419 MRPDemandTypes.php:187 -#: OffersReceived.php:56 OffersReceived.php:143 PaymentMethods.php:282 -#: PaymentTerms.php:309 PO_AuthorisationLevels.php:262 Prices_Customer.php:360 -#: SalesAnalReptCols.php:552 SalesAnalRepts.php:514 SalesGLPostings.php:416 -#: SalesPeople.php:369 Shippers.php:202 StockCategories.php:582 -#: SupplierContacts.php:281 SuppLoginSetup.php:293 TaxAuthorities.php:327 -#: TaxCategories.php:237 TaxProvinces.php:235 UnitsOfMeasure.php:240 -#: WorkCentres.php:279 WWW_Users.php:696 +#: AccountGroups.php:395 +#: AccountSections.php:264 +#: AddCustomerContacts.php:258 +#: AddCustomerNotes.php:245 +#: AddCustomerTypeNotes.php:210 +#: Areas.php:227 +#: BankAccounts.php:391 +#: BOMs.php:759 +#: COGSGLPostings.php:354 +#: CreditStatus.php:257 +#: Currencies.php:401 +#: CustLoginSetup.php:272 +#: DiscountMatrix.php:141 +#: EDIMessageFormat.php:248 +#: FixedAssetCategories.php:344 +#: FixedAssetLocations.php:156 +#: FreightCosts.php:339 +#: GeocodeSetup.php:270 +#: GLAccounts.php:262 +#: Locations.php:606 +#: MRPDemands.php:419 +#: MRPDemandTypes.php:187 +#: OffersReceived.php:56 +#: OffersReceived.php:143 +#: PaymentMethods.php:282 +#: PaymentTerms.php:309 +#: PO_AuthorisationLevels.php:262 +#: Prices_Customer.php:360 +#: SalesAnalReptCols.php:552 +#: SalesAnalRepts.php:514 +#: SalesGLPostings.php:416 +#: SalesPeople.php:369 +#: Shippers.php:202 +#: StockCategories.php:582 +#: SupplierContacts.php:281 +#: SuppLoginSetup.php:293 +#: TaxAuthorities.php:327 +#: TaxCategories.php:237 +#: TaxProvinces.php:235 +#: UnitsOfMeasure.php:240 +#: WorkCentres.php:279 +#: WWW_Users.php:696 msgid "Enter Information" msgstr "Valider" -#: AccountSections.php:7 index.php:1313 +#: AccountSections.php:7 +#: index.php:1313 msgid "Account Sections" -msgstr "Rubrique de compte" +msgstr "Rubriques de compte" #: AccountSections.php:66 msgid "The account section already exists in the database" @@ -476,24 +833,20 @@ #: AccountSections.php:73 msgid "The account section name cannot contain any of the illegal characters" -msgstr "" -"Le nom de la rubrique compte ne peut contenir aucun des caractères suivants" +msgstr "Le nom de la rubrique ne doit pas contenir de caractères réservés" #: AccountSections.php:79 msgid "The account section name must contain at least one character" -msgstr "Le nom de la rubrique de compte doit contenir au moins un caractère" +msgstr "Le nom de la rubrique doit contenir au moins un caractère" -#: AccountSections.php:85 AccountSections.php:91 +#: AccountSections.php:85 +#: AccountSections.php:91 msgid "The section number must be an integer" msgstr "Le numéro de la rubrique doit être un entier" #: AccountSections.php:136 -msgid "" -"Cannot delete this account section because general ledger accounts groups " -"have been created using this section" -msgstr "" -"Impossible de supprimer cette rubrique de compte car des comptes du GL " -"l'utilisent" +msgid "Cannot delete this account section because general ledger accounts groups have been created using this section" +msgstr "Impossible de supprimer cette rubrique car des comptes du GL l'utilisent" #: AccountSections.php:137 msgid "general ledger accounts groups that refer to this account section" @@ -505,15 +858,18 @@ #: AccountSections.php:173 msgid "Could not get account group sections because" -msgstr "Impossible d'obtenir sections groupe compte car" +msgstr "Impossible dafficher les rubriques du groupe:" -#: AccountSections.php:180 AccountSections.php:238 AccountSections.php:256 +#: AccountSections.php:180 +#: AccountSections.php:238 +#: AccountSections.php:256 msgid "Section Number" -msgstr "Numéro de la section" +msgstr "N° de la rubrique" -#: AccountSections.php:181 AccountSections.php:260 +#: AccountSections.php:181 +#: AccountSections.php:260 msgid "Section Description" -msgstr "Description Section" +msgstr "Description de la rubrique" #: AccountSections.php:198 msgid "Restricted" @@ -521,20 +877,22 @@ #: AccountSections.php:209 msgid "Review Account Sections" -msgstr "Les articles de revue de comptes" +msgstr "Voir les rubriques" #: AccountSections.php:227 msgid "Could not retrieve the requested section please try again." -msgstr "" -"Impossible de récupérer la section demandée s'il vous plaît essayer à " -"nouveau." +msgstr "Impossible de récupérer la rubrique demandée." -#: AddCustomerContacts.php:6 AddCustomerContacts.php:61 SelectCustomer.php:610 +#: AddCustomerContacts.php:6 +#: AddCustomerContacts.php:61 +#: SelectCustomer.php:610 #: SelectCustomer.php:642 msgid "Customer Contacts" msgstr "Contacts client" -#: AddCustomerContacts.php:20 CustEDISetup.php:9 CustLoginSetup.php:21 +#: AddCustomerContacts.php:20 +#: CustEDISetup.php:9 +#: CustLoginSetup.php:21 #: Z_CheckDebtorsControl.php:20 msgid "Back to Customers" msgstr "Retour aux clients" @@ -561,37 +919,63 @@ #: AddCustomerContacts.php:50 msgid "The contact email address is not a valid email address" -msgstr "L'adresse courriel n'est pas correcte" +msgstr "L'adresse courriel est incorrecte" -#: AddCustomerContacts.php:61 AddCustomerNotes.php:52 -#: AddCustomerTypeNotes.php:49 Areas.php:73 CustomerTypes.php:69 -#: DeliveryDetails.php:776 Factors.php:105 FixedAssetItems.php:246 -#: MRPCalendar.php:176 PcAssignCashToTab.php:88 PcClaimExpensesFromTab.php:79 -#: PcExpenses.php:95 PcTabs.php:101 PcTypeTabs.php:60 PO_Items.php:369 -#: SalesAnalReptCols.php:129 SalesPeople.php:97 SalesTypes.php:66 -#: Stocks.php:497 Suppliers.php:513 SupplierTypes.php:67 +#: AddCustomerContacts.php:61 +#: AddCustomerNotes.php:52 +#: AddCustomerTypeNotes.php:49 +#: Areas.php:73 +#: CustomerTypes.php:69 +#: DeliveryDetails.php:776 +#: Factors.php:105 +#: FixedAssetItems.php:246 +#: MRPCalendar.php:176 +#: PcAssignCashToTab.php:88 +#: PcClaimExpensesFromTab.php:79 +#: PcExpenses.php:95 +#: PcTabs.php:101 +#: PcTypeTabs.php:60 +#: PO_Items.php:369 +#: SalesAnalReptCols.php:129 +#: SalesPeople.php:97 +#: SalesTypes.php:66 +#: Stocks.php:497 +#: Suppliers.php:513 +#: SupplierTypes.php:67 msgid "has been updated" msgstr "a été mis à jour" #: AddCustomerContacts.php:76 msgid "The contact record has been added" -msgstr "L'enregistrement de contact a été ajouté" +msgstr "Le contact a été ajouté" #: AddCustomerContacts.php:105 msgid "The contact record has been deleted" -msgstr "L'enregistrement de contact a été supprimé" +msgstr "Le contact a été supprimé" -#: AddCustomerContacts.php:128 CompanyPreferences.php:223 -#: CustomerBranches.php:368 Customers.php:1014 Customers.php:1022 -#: SalesPeople.php:200 SelectCustomer.php:612 StockDispatch.php:187 -#: StockDispatch.php:199 SupplierContacts.php:150 SuppTransGLAnalysis.php:105 -#: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 +#: AddCustomerContacts.php:128 +#: CompanyPreferences.php:223 +#: CustomerBranches.php:368 +#: Customers.php:1014 +#: Customers.php:1022 +#: SalesPeople.php:200 +#: SelectCustomer.php:612 +#: StockDispatch.php:187 +#: StockDispatch.php:199 +#: SupplierContacts.php:150 +#: SuppTransGLAnalysis.php:105 +#: includes/InputSerialItemsFile.php:84 +#: includes/InputSerialItemsFile.php:124 #: includes/PDFTaxPageHeader.inc:37 msgid "Name" msgstr "Nom" -#: AddCustomerContacts.php:129 AddCustomerContacts.php:223 Customers.php:1015 -#: Customers.php:1023 SelectCustomer.php:613 WWW_Access.php:107 +#: AddCustomerContacts.php:129 +#: AddCustomerContacts.php:223 +#: Customers.php:1015 +#: Customers.php:1023 +#: SelectCustomer.php:613 +#: WWW_Access.php:107 #: WWW_Access.php:169 msgid "Role" msgstr "Rôle" @@ -600,35 +984,64 @@ msgid "Phone no" msgstr "Tél:" -#: AddCustomerContacts.php:131 AddCustomerContacts.php:240 -#: CustomerBranches.php:374 CustomerBranches.php:781 CustomerInquiry.php:255 -#: Customers.php:1017 Customers.php:1025 EmailCustTrans.php:15 -#: EmailCustTrans.php:63 Factors.php:245 Factors.php:292 Locations.php:572 -#: OrderDetails.php:109 PDFRemittanceAdvice.php:243 PO_PDFPurchOrder.php:371 -#: PO_PDFPurchOrder.php:374 PrintCustTrans.php:714 PrintCustTrans.php:945 -#: PrintCustTrans.php:994 PrintCustTransPortrait.php:753 -#: PrintCustTransPortrait.php:999 PrintCustTransPortrait.php:1056 -#: SelectCustomer.php:421 SelectCustomer.php:615 SupplierContacts.php:154 -#: SupplierContacts.php:274 UserSettings.php:184 WWW_Users.php:279 -#: includes/PDFPickingListHeader.inc:25 includes/PDFStatementPageHeader.inc:67 +#: AddCustomerContacts.php:131 +#: AddCustomerContacts.php:240 +#: CustomerBranches.php:374 +#: CustomerBranches.php:781 +#: CustomerInquiry.php:255 +#: Customers.php:1017 +#: Customers.php:1025 +#: EmailCustTrans.php:15 +#: EmailCustTrans.php:63 +#: Factors.php:245 +#: Factors.php:292 +#: Locations.php:572 +#: OrderDetails.php:109 +#: PDFRemittanceAdvice.php:243 +#: PO_PDFPurchOrder.php:371 +#: PO_PDFPurchOrder.php:374 +#: PrintCustTrans.php:714 +#: PrintCustTrans.php:945 +#: PrintCustTrans.php:994 +#: PrintCustTransPortrait.php:753 +#: PrintCustTransPortrait.php:999 +#: PrintCustTransPortrait.php:1056 +#: SelectCustomer.php:421 +#: SelectCustomer.php:615 +#: SupplierContacts.php:154 +#: SupplierContacts.php:274 +#: UserSettings.php:184 +#: WWW_Users.php:279 +#: includes/PDFPickingListHeader.inc:25 +#: includes/PDFStatementPageHeader.inc:67 #: includes/PDFTransPageHeader.inc:82 #: includes/PDFTransPageHeaderPortrait.inc:109 #: includes/PO_PDFOrderPageHeader.inc:29 msgid "Email" msgstr "Courriel" -#: AddCustomerContacts.php:132 AddCustomerContacts.php:249 Customers.php:1018 -#: Customers.php:1026 PcAssignCashToTab.php:224 PcAssignCashToTab.php:353 -#: PcAuthorizeExpenses.php:92 PcClaimExpensesFromTab.php:214 -#: PcClaimExpensesFromTab.php:372 PcReportTab.php:327 SelectCustomer.php:616 -#: SystemParameters.php:335 WOSerialNos.php:291 WOSerialNos.php:297 +#: AddCustomerContacts.php:132 +#: AddCustomerContacts.php:249 +#: Customers.php:1018 +#: Customers.php:1026 +#: PcAssignCashToTab.php:224 +#: PcAssignCashToTab.php:353 +#: PcAuthorizeExpenses.php:92 +#: PcClaimExpensesFromTab.php:214 +#: PcClaimExpensesFromTab.php:372 +#: PcReportTab.php:327 +#: SelectCustomer.php:616 +#: SystemParameters.php:335 +#: WOSerialNos.php:291 +#: WOSerialNos.php:297 msgid "Notes" msgstr "Notes" -#: AddCustomerContacts.php:150 SupplierContacts.php:164 +#: AddCustomerContacts.php:150 +#: SupplierContacts.php:164 #, php-format msgid "Are you sure you wish to delete this contact?" -msgstr "Etes-vous sûr de vouloir supprimer ce contact?" +msgstr "Voulez-vous supprimer ce contact?" #: AddCustomerContacts.php:169 msgid "Review all contacts for this Customer" @@ -638,115 +1051,168 @@ msgid "Contact Code" msgstr "Code de contact" -#: AddCustomerContacts.php:214 Factors.php:233 SupplierContacts.php:236 +#: AddCustomerContacts.php:214 +#: Factors.php:233 +#: SupplierContacts.php:236 msgid "Contact Name" msgstr "Nom du contact" -#: AddCustomerContacts.php:231 Contracts.php:775 PDFRemittanceAdvice.php:239 -#: PO_Header.php:991 PO_Header.php:1072 SelectCreditItems.php:241 -#: SelectCustomer.php:419 SelectOrderItems.php:606 -#: SupplierTenderCreate.php:359 includes/PDFStatementPageHeader.inc:63 +#: AddCustomerContacts.php:231 +#: Contracts.php:775 +#: PDFRemittanceAdvice.php:239 +#: PO_Header.php:991 +#: PO_Header.php:1072 +#: SelectCreditItems.php:241 +#: SelectCustomer.php:419 +#: SelectOrderItems.php:606 +#: SupplierTenderCreate.php:359 +#: includes/PDFStatementPageHeader.inc:63 #: includes/PDFTransPageHeader.inc:81 #: includes/PDFTransPageHeaderPortrait.inc:105 msgid "Phone" msgstr "Téléphone" -#: AddCustomerNotes.php:6 AddCustomerNotes.php:52 SelectCustomer.php:652 +#: AddCustomerNotes.php:6 +#: AddCustomerNotes.php:52 +#: SelectCustomer.php:652 #: SelectCustomer.php:683 msgid "Customer Notes" msgstr "Notes client" -#: AddCustomerNotes.php:21 AddCustomerTypeNotes.php:19 +#: AddCustomerNotes.php:21 +#: AddCustomerTypeNotes.php:19 msgid "Back to Select Customer" -msgstr "Retour choix des clients" +msgstr "Retour à l'écran de sélection des clients" #: AddCustomerNotes.php:34 msgid "The contact priority must be an integer." msgstr "La priorité du contact doit être un nombre entier." -#: AddCustomerNotes.php:37 AddCustomerTypeNotes.php:34 +#: AddCustomerNotes.php:37 +#: AddCustomerTypeNotes.php:34 msgid "The contact's notes must be two hundred characters or less long" -msgstr "note Le contact doit être deux cents caractères ou moins long" +msgstr "La note du contact ne diot pas dépasser 200 caractères" -#: AddCustomerNotes.php:40 AddCustomerTypeNotes.php:37 +#: AddCustomerNotes.php:40 +#: AddCustomerTypeNotes.php:37 msgid "The contact's notes may not be empty" -msgstr "Les notes de contact ne peut pas être vide" +msgstr "La note de contact doit être remplie" #: AddCustomerNotes.php:65 msgid "The contact notes record has been added" -msgstr "L'enregistrement de contact note a été ajoutée" +msgstr "La note du contact note a été ajoutée" #: AddCustomerNotes.php:93 msgid "The contact note record has been deleted" -msgstr "La fiche de note pour le contact a été supprimée" +msgstr "La note du contact a été supprimée" #: AddCustomerNotes.php:104 msgid "Notes for Customer" msgstr "Notes pour le client" -#: AddCustomerNotes.php:121 AddCustomerNotes.php:225 -#: AddCustomerTypeNotes.php:108 AddCustomerTypeNotes.php:200 -#: BankMatching.php:263 BankReconciliation.php:209 BankReconciliation.php:284 -#: ContractCosting.php:173 CustomerAllocations.php:330 -#: CustomerAllocations.php:363 CustomerInquiry.php:198 -#: CustomerTransInquiry.php:100 GLAccountInquiry.php:152 -#: GLAccountReport.php:340 GLTransInquiry.php:42 MRPCalendar.php:219 -#: PaymentAllocations.php:66 PcAssignCashToTab.php:220 -#: PcAuthorizeExpenses.php:88 PDFRemittanceAdvice.php:300 -#: PrintCustTrans.php:822 PrintCustTransPortrait.php:867 ReverseGRN.php:386 -#: ShipmentCosting.php:538 ShipmentCosting.php:615 Shipments.php:490 -#: StockDispatch.php:189 StockDispatch.php:201 StockLocMovements.php:90 -#: StockMovements.php:94 StockSerialItemResearch.php:80 -#: SupplierAllocations.php:455 SupplierAllocations.php:568 -#: SupplierAllocations.php:643 SupplierInquiry.php:209 -#: SupplierTransInquiry.php:103 includes/PDFQuotationPageHeader.inc:92 +#: AddCustomerNotes.php:121 +#: AddCustomerNotes.php:225 +#: AddCustomerTypeNotes.php:108 +#: AddCustomerTypeNotes.php:200 +#: BankMatching.php:263 +#: BankReconciliation.php:209 +#: BankReconciliation.php:284 +#: ContractCosting.php:173 +#: CustomerAllocations.php:330 +#: CustomerAllocations.php:363 +#: CustomerInquiry.php:198 +#: CustomerTransInquiry.php:100 +#: GLAccountInquiry.php:152 +#: GLAccountReport.php:340 +#: GLTransInquiry.php:42 +#: MRPCalendar.php:219 +#: PaymentAllocations.php:66 +#: PcAssignCashToTab.php:220 +#: PcAuthorizeExpenses.php:88 +#: PDFRemittanceAdvice.php:300 +#: PrintCustTrans.php:822 +#: PrintCustTransPortrait.php:867 +#: ReverseGRN.php:386 +#: ShipmentCosting.php:538 +#: ShipmentCosting.php:615 +#: Shipments.php:490 +#: StockDispatch.php:189 +#: StockDispatch.php:201 +#: StockLocMovements.php:90 +#: StockMovements.php:94 +#: StockSerialItemResearch.php:80 +#: SupplierAllocations.php:455 +#: SupplierAllocations.php:568 +#: SupplierAllocations.php:643 +#: SupplierInquiry.php:209 +#: SupplierTransInquiry.php:103 +#: includes/PDFQuotationPageHeader.inc:92 #: includes/PDFQuotationPortraitPageHeader.inc:90 -#: includes/PDFStatementPageHeader.inc:169 includes/PDFTaxPageHeader.inc:36 +#: includes/PDFStatementPageHeader.inc:169 +#: includes/PDFTaxPageHeader.inc:36 #: includes/PDFTransPageHeader.inc:48 #: includes/PDFTransPageHeaderPortrait.inc:58 msgid "Date" msgstr "Date" -#: AddCustomerNotes.php:122 AddCustomerTypeNotes.php:109 PcReportTab.php:173 -#: Stocks.php:1019 UpgradeDatabase.php:186 UpgradeDatabase.php:189 -#: UpgradeDatabase.php:192 UpgradeDatabase.php:195 UpgradeDatabase.php:198 -#: UpgradeDatabase.php:201 UpgradeDatabase.php:204 UpgradeDatabase.php:207 -#: UpgradeDatabase.php:210 Z_Upgrade_3.10-3.11.php:62 -#: Z_Upgrade_3.10-3.11.php:66 Z_Upgrade_3.10-3.11.php:70 -#: Z_Upgrade_3.10-3.11.php:74 Z_Upgrade_3.10-3.11.php:78 -#: Z_Upgrade_3.11-4.00.php:62 Z_Upgrade_3.11-4.00.php:66 -#: Z_Upgrade_3.11-4.00.php:70 Z_Upgrade_3.11-4.00.php:74 +#: AddCustomerNotes.php:122 +#: AddCustomerTypeNotes.php:109 +#: PcReportTab.php:173 +#: Stocks.php:1019 +#: UpgradeDatabase.php:186 +#: UpgradeDatabase.php:189 +#: UpgradeDatabase.php:192 +#: UpgradeDatabase.php:195 +#: UpgradeDatabase.php:198 +#: UpgradeDatabase.php:201 +#: UpgradeDatabase.php:204 +#: UpgradeDatabase.php:207 +#: UpgradeDatabase.php:210 +#: Z_Upgrade_3.10-3.11.php:62 +#: Z_Upgrade_3.10-3.11.php:66 +#: Z_Upgrade_3.10-3.11.php:70 +#: Z_Upgrade_3.10-3.11.php:74 +#: Z_Upgrade_3.10-3.11.php:78 +#: Z_Upgrade_3.11-4.00.php:62 +#: Z_Upgrade_3.11-4.00.php:66 +#: Z_Upgrade_3.11-4.00.php:70 +#: Z_Upgrade_3.11-4.00.php:74 #: Z_Upgrade_3.11-4.00.php:78 msgid "Note" msgstr "Note" -#: AddCustomerNotes.php:123 AddCustomerNotes.php:216 +#: AddCustomerNotes.php:123 +#: AddCustomerNotes.php:216 msgid "WWW" msgstr "WWW" -#: AddCustomerNotes.php:124 AddCustomerNotes.php:234 -#: AddCustomerTypeNotes.php:111 AddCustomerTypeNotes.php:204 +#: AddCustomerNotes.php:124 +#: AddCustomerNotes.php:234 +#: AddCustomerTypeNotes.php:111 +#: AddCustomerTypeNotes.php:204 msgid "Priority" msgstr "Priorité" #: AddCustomerNotes.php:142 #, php-format msgid "Are you sure you wish to delete this customer note?" -msgstr "Etes-vous sûr de vouloir supprimer ce type de client?" +msgstr "Voulez-vous supprimer ce type de client?" #: AddCustomerNotes.php:161 msgid "Review all notes for this Customer" msgstr "Passer en revue toutes les notes pour ce client" -#: AddCustomerNotes.php:199 AddCustomerTypeNotes.php:178 +#: AddCustomerNotes.php:199 +#: AddCustomerTypeNotes.php:178 msgid "Note ID" -msgstr "Note ID" +msgstr "ID note" #: AddCustomerNotes.php:207 msgid "Contact Note" -msgstr "Contact Note" +msgstr "Note pour le contact" -#: AddCustomerTypeNotes.php:5 SelectCustomer.php:693 +#: AddCustomerTypeNotes.php:5 +#: SelectCustomer.php:693 msgid "Customer Type (Group) Notes" msgstr "Type de client (en groupe) Notes" @@ -754,21 +1220,22 @@ msgid "The Contact priority must be an integer." msgstr "La priorité de contact doit être un nombre entier." -#: AddCustomerTypeNotes.php:49 SelectCustomer.php:724 +#: AddCustomerTypeNotes.php:49 +#: SelectCustomer.php:724 msgid "Customer Group Notes" msgstr "Notes groupe de clients" #: AddCustomerTypeNotes.php:62 msgid "The contact group notes record has been added" -msgstr "Le groupe de contact notes enregistrement a été ajouté" +msgstr "La note du groupe de contact a été ajoutée" #: AddCustomerTypeNotes.php:86 msgid "The contact group note record has been deleted" -msgstr "Le record note du groupe de contact a été supprimé" +msgstr "La note du groupe de contact a été supprimée" #: AddCustomerTypeNotes.php:98 msgid "Notes for Customer Type" -msgstr "Notes pour le type de clientèle" +msgstr "Notes pour le type de client" #: AddCustomerTypeNotes.php:110 msgid "href" @@ -777,7 +1244,7 @@ #: AddCustomerTypeNotes.php:129 #, php-format msgid "Are you sure you wish to delete this customer type note?" -msgstr "Etes-vous sûr de vouloir supprimer ce type de client?" +msgstr "Voulez-vous supprimer ce type de note client?" #: AddCustomerTypeNotes.php:148 msgid "Review all notes for this Customer Type" @@ -789,91 +1256,192 @@ #: AddCustomerTypeNotes.php:196 msgid "Web site" -msgstr "site Web" +msgstr "Site web" #: AgedDebtors.php:14 msgid "Aged Customer Balance Listing" -msgstr "Liste des comptes clients en écheance" +msgstr "Liste des comptes clients à écheance" #: AgedDebtors.php:15 msgid "Aged Customer Balances" -msgstr "Bilan de comptes clients en écheance" +msgstr "Solde des clients à écheance" -#: AgedDebtors.php:269 AgedDebtors.php:368 AgedDebtors.php:433 +#: AgedDebtors.php:269 +#: AgedDebtors.php:368 +#: AgedDebtors.php:433 msgid "Aged Customer Account Analysis" -msgstr "Analyse de compte clients en écheance" +msgstr "Analyse des comptes clients à écheance" -#: AgedDebtors.php:269 AgedDebtors.php:368 AgedDebtors.php:433 -#: AgedSuppliers.php:111 BOMExtendedQty.php:149 BOMIndented.php:150 -#: BOMIndentedReverse.php:140 BOMListing.php:41 BOMListing.php:52 -#: DebtorsAtPeriodEnd.php:57 DebtorsAtPeriodEnd.php:69 GLBalanceSheet.php:100 -#: GLBalanceSheet.php:139 GLProfit_Loss.php:177 GLTagProfit_Loss.php:191 -#: GLTrialBalance.php:159 InventoryPlanning.php:98 InventoryPlanning.php:173 -#: InventoryPlanning.php:208 InventoryPlanning.php:256 -#: InventoryPlanning.php:294 InventoryPlanningPrefSupplier.php:201 -#: InventoryPlanningPrefSupplier.php:269 InventoryPlanningPrefSupplier.php:303 -#: InventoryPlanningPrefSupplier.php:348 InventoryPlanningPrefSupplier.php:394 -#: InventoryQuantities.php:84 InventoryValuation.php:78 -#: MailInventoryValuation.php:114 MRPPlannedPurchaseOrders.php:114 -#: MRPPlannedWorkOrders.php:106 MRPReport.php:147 MRPReport.php:508 -#: MRPReschedule... [truncated message content] |
From: <dai...@us...> - 2012-02-22 06:06:14
|
Revision: 4949 http://web-erp.svn.sourceforge.net/web-erp/?rev=4949&view=rev Author: daintree Date: 2012-02-22 06:06:03 +0000 (Wed, 22 Feb 2012) Log Message: ----------- fully qualify htmlspecialchars() function Modified Paths: -------------- trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po Modified: trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po 2012-02-21 16:40:23 UTC (rev 4948) +++ trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po 2012-02-22 06:06:03 UTC (rev 4949) @@ -1,57 +1,51 @@ # French Translation of webERP # Copyright (C) 2005 Logic Works Ltd # This file is distributed under the same license as the webERP package. +# # FIRST AUTHOR <EMAIL@ADDRESS>, 2005. -# # James Dupin <jam...@gm...>, 2012. -# msgid "" msgstr "" "Project-Id-Version: weberp 3.12\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2012-02-11 17:15+1300\n" -"PO-Revision-Date: 2012-01-25 13:39+0100\n" +"PO-Revision-Date: 2012-02-21 21:15+0100\n" "Last-Translator: James Dupin <jam...@gm...>\n" -"Language-Team: french <none>\n" +"Language-Team: French <none>\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2011-03-31 06:25+0000\n" -"X-Generator: Launchpad (build 12696)\n" +"X-Generator: Lokalize 1.1\n" "Language: \n" "Plural-Forms: s\n" "X-Poedit-Language: French\n" "X-Poedit-Country: FRANCE\n" "X-Poedit-SourceCharset: utf-8\n" -#: AccountGroups.php:7 index.php:1308 +#: AccountGroups.php:7 +#: index.php:1308 msgid "Account Groups" msgstr "Groupes" #: AccountGroups.php:17 -msgid "" -"An error occurred in retrieving the account groups of the parent account " -"group during the check for recursion" -msgstr "" -"Une erreur s'est produite lors de la vérification des groupes dont fait " -"partie le groupe du compte parent" +msgid "An error occurred in retrieving the account groups of the parent account group during the check for recursion" +msgstr "Erreur lors de la vérification des groupes dont fait partie le groupe du compte parent" #: AccountGroups.php:18 -msgid "" -"The SQL that was used to retrieve the account groups of the parent account " -"group and that failed in the process was" -msgstr "" -"Commande SQL d'affichage des groupes dont fait partie le groupe du compte " -"parent" +msgid "The SQL that was used to retrieve the account groups of the parent account group and that failed in the process was" +msgstr "Échec de la commande SQL d'affichage des groupes dont fait partie le groupe du compte parent:" -#: AccountGroups.php:57 AccountGroups.php:102 AccountGroups.php:174 +#: AccountGroups.php:57 +#: AccountGroups.php:102 +#: AccountGroups.php:174 #: AccountGroups.php:184 msgid "The SQL that was used to retrieve the information was" -msgstr "Commande SQL d'affichage des informations" +msgstr "Commande SQL d'affichage des informations:" #: AccountGroups.php:58 msgid "Could not check whether the group exists because" -msgstr "Ne peut pas vérifier si le groupe existe car" +msgstr "Impossible de vérifier l'existance du groupe:" #: AccountGroups.php:65 msgid "The account group name already exists in the database" @@ -61,49 +55,30 @@ msgid "The account group name cannot contain the character" msgstr "Le nom du groupe ne doit pas contenir le caractère" -#: AccountGroups.php:71 TaxCategories.php:31 +#: AccountGroups.php:71 +#: TaxCategories.php:31 msgid "or the character" msgstr "ou le caractère" #: AccountGroups.php:77 -msgid "" -"The sequence that the account group is listed in the trial balance is " -"expected to be numeric" -msgstr "" -"La séquence dans laquelle le groupe est nommé dans les transferts doit être " -"numérique" +msgid "The sequence that the account group is listed in the trial balance is expected to be numeric" +msgstr "La séquence dans laquelle le groupe est nommé dans les transferts doit être numérique" #: AccountGroups.php:85 msgid "The account group name must be at least one character long" msgstr "Le nom du groupe compte doit contenir au moins un caractère" #: AccountGroups.php:92 -msgid "" -"The parent account group selected appears to result in a recursive account " -"structure - select an alternative parent account group or make this group a " -"top level account group" -msgstr "" -"Le choix de ce groupe mène à une impasse. Sélectionnez un autre groupe ou " -"modifier ce groupe de manière à ce qu'il se trouve au plus niveau (groupe " -"parent)" +msgid "The parent account group selected appears to result in a recursive account structure - select an alternative parent account group or make this group a top level account group" +msgstr "Le choix de ce groupe mène à une impasse. Sélectionner un autre groupe ou modifier ce groupe de manière à ce qu'il se trouve au plus niveau (groupe parent)" #: AccountGroups.php:103 msgid "Could not check whether the group is recursive because" -msgstr "Ne peut pas vérifier si le groupe est récursif car" +msgstr "Impossible de vérifier la récursivité pour ce groupe:" #: AccountGroups.php:111 -msgid "" -"Since this account group is a child group, the sequence in the trial " -"balance, the section in the accounts and whether or not the account group " -"appears in the balance sheet or profit and loss account are all properties " -"inherited from the parent account group. Any changes made to these fields " -"will have no effect." -msgstr "" -"Comme ce groupe est un groupe enfant, la séquence des transferts, la place " -"dans les rubriques des comptes, si le groupe est nommé ou non dans la " -"balance ou dans le compte 'pertes et profits' sont alors des propriétés " -"héritées du groupe parent. Tout changement dans ces champs NE sera PAS pris " -"en compte." +msgid "Since this account group is a child group, the sequence in the trial balance, the section in the accounts and whether or not the account group appears in the balance sheet or profit and loss account are all properties inherited from the parent account group. Any changes made to these fields will have no effect." +msgstr "Comme ce groupe est un groupe enfant, la séquence des transferts, la place dans les rubriques des comptes, si le groupe est nommé ou non dans la balance ou dans le compte 'pertes et profits' sont alors des propriétés héritées du groupe parent. Tout changement dans ces champs NE sera PAS pris en compte." #: AccountGroups.php:116 msgid "The section in accounts must be an integer" @@ -111,60 +86,106 @@ #: AccountGroups.php:133 msgid "An error occurred in updating the account group" -msgstr "Une erreur s'est produite dans la mise à jour du groupe" +msgstr "Erreur lors de la mise à jour du groupe" #: AccountGroups.php:134 msgid "The SQL that was used to update the account group was" -msgstr "Commande SQL de modification du groupe" +msgstr "Commande SQL de modification du groupe:" -#: AccountGroups.php:136 AccountSections.php:104 PaymentMethods.php:82 +#: AccountGroups.php:136 +#: AccountSections.php:104 +#: PaymentMethods.php:82 msgid "Record Updated" msgstr "Fiche mise à jour" #: AccountGroups.php:154 msgid "An error occurred in inserting the account group" -msgstr "Une erreur s'est produite dans l'insertion du groupe" +msgstr "Erreur lors de la création du groupe" #: AccountGroups.php:155 msgid "The SQL that was used to insert the account group was" -msgstr "Commande SQL d'insertion du groupe" +msgstr "Échec de la commande SQL d'ajoût du groupe:" -#: AccountGroups.php:156 AccountSections.php:116 PaymentMethods.php:103 +#: AccountGroups.php:156 +#: AccountSections.php:116 +#: PaymentMethods.php:103 msgid "Record inserted" msgstr "Fiche créée" #: AccountGroups.php:173 msgid "An error occurred in retrieving the group information from chartmaster" -msgstr "" -"Une erreur s'est produite lors de la récupération des informations de groupe " -"depuis chartmaster" +msgstr "Erreur lors de la recherche des informations de groupe depuis \"chartmaster\"" #: AccountGroups.php:178 -msgid "" -"Cannot delete this account group because general ledger accounts have been " -"created using this group" -msgstr "Ce groupe ne peut pas être supprimé car les comptes du GL l'utilisent." +msgid "Cannot delete this account group because general ledger accounts have been created using this group" +msgstr "Ce groupe ne peut pas être supprimé car des comptes du GL l'utilisent." -#: AccountGroups.php:179 AccountGroups.php:189 AccountSections.php:137 -#: Areas.php:116 Areas.php:125 BankAccounts.php:158 CreditStatus.php:125 -#: Currencies.php:166 Currencies.php:174 Currencies.php:182 -#: CustomerBranches.php:286 CustomerBranches.php:296 CustomerBranches.php:306 -#: CustomerBranches.php:316 Customers.php:289 Customers.php:298 -#: Customers.php:306 Customers.php:314 CustomerTypes.php:147 -#: CustomerTypes.php:157 Factors.php:134 FixedAssetCategories.php:133 -#: GLAccounts.php:80 GLAccounts.php:96 Locations.php:237 Locations.php:245 -#: Locations.php:256 Locations.php:265 Locations.php:274 Locations.php:283 -#: Locations.php:292 Locations.php:301 Locations.php:309 MRPDemandTypes.php:87 -#: PaymentMethods.php:138 PaymentTerms.php:146 PaymentTerms.php:153 -#: PcExpenses.php:158 SalesCategories.php:125 SalesCategories.php:132 -#: SalesPeople.php:150 SalesPeople.php:157 SalesPeople.php:163 -#: SalesTypes.php:140 SalesTypes.php:150 Shippers.php:81 Shippers.php:93 -#: StockCategories.php:180 Stocks.php:615 Stocks.php:624 Stocks.php:632 -#: Stocks.php:640 Stocks.php:648 Stocks.php:656 Suppliers.php:612 -#: Suppliers.php:621 Suppliers.php:629 SupplierTypes.php:145 -#: TaxCategories.php:131 TaxGroups.php:132 TaxGroups.php:140 -#: TaxProvinces.php:129 UnitsOfMeasure.php:135 WorkCentres.php:89 -#: WorkCentres.php:95 WWW_Access.php:83 +#: AccountGroups.php:179 +#: AccountGroups.php:189 +#: AccountSections.php:137 +#: Areas.php:116 +#: Areas.php:125 +#: BankAccounts.php:158 +#: CreditStatus.php:125 +#: Currencies.php:166 +#: Currencies.php:174 +#: Currencies.php:182 +#: CustomerBranches.php:286 +#: CustomerBranches.php:296 +#: CustomerBranches.php:306 +#: CustomerBranches.php:316 +#: Customers.php:289 +#: Customers.php:298 +#: Customers.php:306 +#: Customers.php:314 +#: CustomerTypes.php:147 +#: CustomerTypes.php:157 +#: Factors.php:134 +#: FixedAssetCategories.php:133 +#: GLAccounts.php:80 +#: GLAccounts.php:96 +#: Locations.php:237 +#: Locations.php:245 +#: Locations.php:256 +#: Locations.php:265 +#: Locations.php:274 +#: Locations.php:283 +#: Locations.php:292 +#: Locations.php:301 +#: Locations.php:309 +#: MRPDemandTypes.php:87 +#: PaymentMethods.php:138 +#: PaymentTerms.php:146 +#: PaymentTerms.php:153 +#: PcExpenses.php:158 +#: SalesCategories.php:125 +#: SalesCategories.php:132 +#: SalesPeople.php:150 +#: SalesPeople.php:157 +#: SalesPeople.php:163 +#: SalesTypes.php:140 +#: SalesTypes.php:150 +#: Shippers.php:81 +#: Shippers.php:93 +#: StockCategories.php:180 +#: Stocks.php:615 +#: Stocks.php:624 +#: Stocks.php:632 +#: Stocks.php:640 +#: Stocks.php:648 +#: Stocks.php:656 +#: Suppliers.php:612 +#: Suppliers.php:621 +#: Suppliers.php:629 +#: SupplierTypes.php:145 +#: TaxCategories.php:131 +#: TaxGroups.php:132 +#: TaxGroups.php:140 +#: TaxProvinces.php:129 +#: UnitsOfMeasure.php:135 +#: WorkCentres.php:89 +#: WorkCentres.php:95 +#: WWW_Access.php:83 msgid "There are" msgstr "Il y a" @@ -174,17 +195,11 @@ #: AccountGroups.php:183 msgid "An error occurred in retrieving the parent group information" -msgstr "" -"Une erreur s'est produite lors la récupération des informations du groupe " -"parent" +msgstr "Erreur lors de la recherche des informations du groupe parent" #: AccountGroups.php:188 -msgid "" -"Cannot delete this account group because it is a parent account group of " -"other account group(s)" -msgstr "" -"Impossible de supprimer ce groupe, car un/des sous-groupe(s) est/sont membre" -"(s) de ce groupe" +msgid "Cannot delete this account group because it is a parent account group of other account group(s)" +msgstr "Impossible de supprimer ce groupe car c'est un groupe parents contenant des membres" #: AccountGroups.php:189 msgid "account groups that have this group as its/there parent account group" @@ -192,11 +207,11 @@ #: AccountGroups.php:192 msgid "An error occurred in deleting the account group" -msgstr "Une erreur s'est produite lors de la suppression du groupe" +msgstr "Erreur lors de la suppression du groupe" #: AccountGroups.php:193 msgid "The SQL that was used to delete the account group was" -msgstr "Commande SQL de suppression du groupe" +msgstr "Commande SQL de suppression du groupe:" #: AccountGroups.php:195 msgid "group has been deleted" @@ -204,52 +219,128 @@ #: AccountGroups.php:220 msgid "The sql that was used to retrieve the account group information was " -msgstr "Commande SQL d'affichage les informations du groupe" +msgstr "Commande SQL d'affichage du groupe" #: AccountGroups.php:221 msgid "Could not get account groups because" -msgstr "Impossible d'accèder aux groupes car" +msgstr "Impossible d'accèder aux groupes:" -#: AccountGroups.php:223 AccountSections.php:175 AddCustomerContacts.php:25 -#: AddCustomerContacts.php:28 AddCustomerNotes.php:103 -#: AddCustomerTypeNotes.php:97 AgedDebtors.php:450 AgedSuppliers.php:278 -#: Areas.php:144 AuditTrail.php:11 BankReconciliation.php:13 -#: BOMExtendedQty.php:261 BOMIndented.php:246 BOMIndentedReverse.php:235 -#: BOMInquiry.php:187 BOMListing.php:109 BOMs.php:213 BOMs.php:832 -#: COGSGLPostings.php:18 CompanyPreferences.php:153 CounterSales.php:2020 -#: CounterSales.php:2146 Credit_Invoice.php:255 CreditStatus.php:21 -#: Currencies.php:28 CustEDISetup.php:17 DailyBankTransactions.php:11 -#: DebtorsAtPeriodEnd.php:125 DiscountCategories.php:10 -#: DiscountCategories.php:131 DiscountMatrix.php:16 EDIMessageFormat.php:104 -#: FixedAssetLocations.php:9 FixedAssetRegister.php:13 -#: FixedAssetRegister.php:243 FixedAssetTransfer.php:31 FormDesigner.php:129 -#: GLBalanceSheet.php:362 GLBudgets.php:29 GLJournal.php:246 -#: InventoryPlanning.php:374 InventoryPlanningPrefSupplier.php:467 -#: Labels.php:115 Labels.php:270 MRPReport.php:515 OutstandingGRNs.php:160 -#: PcAssignCashToTab.php:56 PcAssignCashToTab.php:130 -#: PcAssignCashToTab.php:146 PcAssignCashToTab.php:187 PDFPickingList.php:28 -#: PDFPrintLabel.php:140 PDFStockLocTransfer.php:16 -#: PO_AuthorisationLevels.php:10 POReport.php:60 POReport.php:64 -#: POReport.php:68 PO_SelectOSPurchOrder.php:139 PricesBasedOnMarkUp.php:8 -#: Prices_Customer.php:35 Prices.php:30 PurchData.php:137 PurchData.php:258 -#: PurchData.php:282 RecurringSalesOrders.php:309 SalesAnalReptCols.php:51 -#: SalesAnalRepts.php:11 SalesCategories.php:11 SalesGLPostings.php:17 -#: SalesGraph.php:34 SalesPeople.php:20 SalesTypes.php:20 SelectAsset.php:45 -#: SelectCompletedOrder.php:11 SelectContract.php:78 SelectCreditItems.php:215 -#: SelectCreditItems.php:286 SelectCustomer.php:262 SelectGLAccount.php:17 -#: SelectGLAccount.php:81 SelectOrderItems.php:577 SelectOrderItems.php:1480 -#: SelectOrderItems.php:1605 SelectProduct.php:500 SelectSalesOrder.php:533 -#: SelectSupplier.php:9 SelectSupplier.php:198 SelectWorkOrder.php:9 -#: SelectWorkOrder.php:151 ShipmentCosting.php:11 Shipments.php:17 -#: Shippers.php:123 Shippers.php:160 Shipt_Select.php:8 -#: StockLocMovements.php:13 StockLocStatus.php:27 Suppliers.php:302 -#: SupplierTenderCreate.php:486 SupplierTenderCreate.php:585 -#: SupplierTenders.php:322 SupplierTenders.php:388 SupplierTransInquiry.php:10 -#: TaxGroups.php:15 TaxProvinces.php:11 TopItems.php:77 -#: WhereUsedInquiry.php:18 WorkCentres.php:111 WorkCentres.php:162 -#: WorkOrderCosting.php:13 WorkOrderEntry.php:11 WorkOrderIssue.php:22 -#: WorkOrderReceive.php:15 WorkOrderStatus.php:42 WWW_Access.php:11 -#: WWW_Users.php:31 Z_BottomUpCosts.php:56 +#: AccountGroups.php:223 +#: AccountSections.php:175 +#: AddCustomerContacts.php:25 +#: AddCustomerContacts.php:28 +#: AddCustomerNotes.php:103 +#: AddCustomerTypeNotes.php:97 +#: AgedDebtors.php:450 +#: AgedSuppliers.php:278 +#: Areas.php:144 +#: AuditTrail.php:11 +#: BankReconciliation.php:13 +#: BOMExtendedQty.php:261 +#: BOMIndented.php:246 +#: BOMIndentedReverse.php:235 +#: BOMInquiry.php:187 +#: BOMListing.php:109 +#: BOMs.php:213 +#: BOMs.php:832 +#: COGSGLPostings.php:18 +#: CompanyPreferences.php:153 +#: CounterSales.php:2020 +#: CounterSales.php:2146 +#: Credit_Invoice.php:255 +#: CreditStatus.php:21 +#: Currencies.php:28 +#: CustEDISetup.php:17 +#: DailyBankTransactions.php:11 +#: DebtorsAtPeriodEnd.php:125 +#: DiscountCategories.php:10 +#: DiscountCategories.php:131 +#: DiscountMatrix.php:16 +#: EDIMessageFormat.php:104 +#: FixedAssetLocations.php:9 +#: FixedAssetRegister.php:13 +#: FixedAssetRegister.php:243 +#: FixedAssetTransfer.php:31 +#: FormDesigner.php:129 +#: GLBalanceSheet.php:362 +#: GLBudgets.php:29 +#: GLJournal.php:246 +#: InventoryPlanning.php:374 +#: InventoryPlanningPrefSupplier.php:467 +#: Labels.php:115 +#: Labels.php:270 +#: MRPReport.php:515 +#: OutstandingGRNs.php:160 +#: PcAssignCashToTab.php:56 +#: PcAssignCashToTab.php:130 +#: PcAssignCashToTab.php:146 +#: PcAssignCashToTab.php:187 +#: PDFPickingList.php:28 +#: PDFPrintLabel.php:140 +#: PDFStockLocTransfer.php:16 +#: PO_AuthorisationLevels.php:10 +#: POReport.php:60 +#: POReport.php:64 +#: POReport.php:68 +#: PO_SelectOSPurchOrder.php:139 +#: PricesBasedOnMarkUp.php:8 +#: Prices_Customer.php:35 +#: Prices.php:30 +#: PurchData.php:137 +#: PurchData.php:258 +#: PurchData.php:282 +#: RecurringSalesOrders.php:309 +#: SalesAnalReptCols.php:51 +#: SalesAnalRepts.php:11 +#: SalesCategories.php:11 +#: SalesGLPostings.php:17 +#: SalesGraph.php:34 +#: SalesPeople.php:20 +#: SalesTypes.php:20 +#: SelectAsset.php:45 +#: SelectCompletedOrder.php:11 +#: SelectContract.php:78 +#: SelectCreditItems.php:215 +#: SelectCreditItems.php:286 +#: SelectCustomer.php:262 +#: SelectGLAccount.php:17 +#: SelectGLAccount.php:81 +#: SelectOrderItems.php:577 +#: SelectOrderItems.php:1480 +#: SelectOrderItems.php:1605 +#: SelectProduct.php:500 +#: SelectSalesOrder.php:533 +#: SelectSupplier.php:9 +#: SelectSupplier.php:198 +#: SelectWorkOrder.php:9 +#: SelectWorkOrder.php:151 +#: ShipmentCosting.php:11 +#: Shipments.php:17 +#: Shippers.php:123 +#: Shippers.php:160 +#: Shipt_Select.php:8 +#: StockLocMovements.php:13 +#: StockLocStatus.php:27 +#: Suppliers.php:302 +#: SupplierTenderCreate.php:486 +#: SupplierTenderCreate.php:585 +#: SupplierTenders.php:322 +#: SupplierTenders.php:388 +#: SupplierTransInquiry.php:10 +#: TaxGroups.php:15 +#: TaxProvinces.php:11 +#: TopItems.php:77 +#: WhereUsedInquiry.php:18 +#: WorkCentres.php:111 +#: WorkCentres.php:162 +#: WorkOrderCosting.php:13 +#: WorkOrderEntry.php:11 +#: WorkOrderIssue.php:22 +#: WorkOrderReceive.php:15 +#: WorkOrderStatus.php:42 +#: WWW_Access.php:11 +#: WWW_Users.php:31 +#: Z_BottomUpCosts.php:56 msgid "Search" msgstr "Recherche" @@ -257,156 +348,394 @@ msgid "Group Name" msgstr "Nom du groupe" -#: AccountGroups.php:228 EDIMessageFormat.php:129 EDIMessageFormat.php:208 +#: AccountGroups.php:228 +#: EDIMessageFormat.php:129 +#: EDIMessageFormat.php:208 msgid "Section" msgstr "Rubrique" -#: AccountGroups.php:229 AccountGroups.php:390 +#: AccountGroups.php:229 +#: AccountGroups.php:390 msgid "Sequence In TB" msgstr "Indexe dans balance" -#: AccountGroups.php:230 AccountGroups.php:374 GLProfit_Loss.php:6 -#: GLProfit_Loss.php:125 GLProfit_Loss.php:126 GLProfit_Loss.php:177 -#: SelectGLAccount.php:47 SelectGLAccount.php:61 +#: AccountGroups.php:230 +#: AccountGroups.php:374 +#: GLProfit_Loss.php:6 +#: GLProfit_Loss.php:125 +#: GLProfit_Loss.php:126 +#: GLProfit_Loss.php:177 +#: SelectGLAccount.php:47 +#: SelectGLAccount.php:61 msgid "Profit and Loss" msgstr "Pertes et profits" -#: AccountGroups.php:231 AccountGroups.php:336 +#: AccountGroups.php:231 +#: AccountGroups.php:336 msgid "Parent Group" msgstr "Groupe parent" -#: AccountGroups.php:247 AccountGroups.php:250 AccountGroups.php:378 -#: AccountGroups.php:380 BOMs.php:122 BOMs.php:746 BOMs.php:748 -#: CompanyPreferences.php:476 CompanyPreferences.php:478 -#: CompanyPreferences.php:491 CompanyPreferences.php:493 -#: CompanyPreferences.php:506 CompanyPreferences.php:508 -#: ContractCosting.php:198 CustomerBranches.php:411 Customers.php:593 -#: Customers.php:941 Customers.php:950 Customers.php:953 -#: DeliveryDetails.php:1071 DeliveryDetails.php:1114 DeliveryDetails.php:1117 -#: GLTransInquiry.php:69 MRPCalendar.php:224 MRP.php:529 MRP.php:533 -#: MRP.php:537 MRP.php:541 PaymentMethods.php:197 PaymentMethods.php:198 -#: PaymentMethods.php:199 PaymentMethods.php:262 PaymentMethods.php:268 -#: PaymentMethods.php:275 PcAuthorizeExpenses.php:244 PDFChequeListing.php:63 -#: PDFDeliveryDifferences.php:75 PDFDIFOT.php:75 -#: PO_AuthorisationLevels.php:134 PO_AuthorisationLevels.php:139 -#: PO_Header.php:782 PO_PDFPurchOrder.php:384 PO_PDFPurchOrder.php:387 -#: PurchData.php:189 PurchData.php:514 PurchData.php:517 -#: RecurringSalesOrders.php:482 RecurringSalesOrders.php:485 -#: SalesAnalReptCols.php:284 SalesAnalReptCols.php:419 -#: SalesAnalReptCols.php:422 SalesAnalRepts.php:415 SalesAnalRepts.php:418 -#: SalesAnalRepts.php:443 SalesAnalRepts.php:446 SalesAnalRepts.php:471 -#: SalesAnalRepts.php:474 SalesPeople.php:219 SalesPeople.php:355 -#: SalesPeople.php:357 SelectProduct.php:385 ShipmentCosting.php:667 -#: Stocks.php:1015 Stocks.php:1017 Stocks.php:1040 Stocks.php:1042 -#: SuppContractChgs.php:90 SystemParameters.php:396 SystemParameters.php:419 -#: SystemParameters.php:435 SystemParameters.php:498 SystemParameters.php:506 -#: SystemParameters.php:546 SystemParameters.php:626 SystemParameters.php:635 -#: SystemParameters.php:643 SystemParameters.php:661 SystemParameters.php:668 -#: SystemParameters.php:795 SystemParameters.php:930 SystemParameters.php:932 -#: SystemParameters.php:942 SystemParameters.php:944 SystemParameters.php:998 -#: SystemParameters.php:1010 SystemParameters.php:1012 TaxGroups.php:307 -#: TaxGroups.php:310 TaxGroups.php:366 WWW_Users.php:481 WWW_Users.php:483 -#: WWW_Users.php:654 WWW_Users.php:656 +#: AccountGroups.php:247 +#: AccountGroups.php:250 +#: AccountGroups.php:378 +#: AccountGroups.php:380 +#: BOMs.php:122 +#: BOMs.php:746 +#: BOMs.php:748 +#: CompanyPreferences.php:476 +#: CompanyPreferences.php:478 +#: CompanyPreferences.php:491 +#: CompanyPreferences.php:493 +#: CompanyPreferences.php:506 +#: CompanyPreferences.php:508 +#: ContractCosting.php:198 +#: CustomerBranches.php:411 +#: Customers.php:593 +#: Customers.php:941 +#: Customers.php:950 +#: Customers.php:953 +#: DeliveryDetails.php:1071 +#: DeliveryDetails.php:1114 +#: DeliveryDetails.php:1117 +#: GLTransInquiry.php:69 +#: MRPCalendar.php:224 +#: MRP.php:529 +#: MRP.php:533 +#: MRP.php:537 +#: MRP.php:541 +#: PaymentMethods.php:197 +#: PaymentMethods.php:198 +#: PaymentMethods.php:199 +#: PaymentMethods.php:262 +#: PaymentMethods.php:268 +#: PaymentMethods.php:275 +#: PcAuthorizeExpenses.php:244 +#: PDFChequeListing.php:63 +#: PDFDeliveryDifferences.php:75 +#: PDFDIFOT.php:75 +#: PO_AuthorisationLevels.php:134 +#: PO_AuthorisationLevels.php:139 +#: PO_Header.php:782 +#: PO_PDFPurchOrder.php:384 +#: PO_PDFPurchOrder.php:387 +#: PurchData.php:189 +#: PurchData.php:514 +#: PurchData.php:517 +#: RecurringSalesOrders.php:482 +#: RecurringSalesOrders.php:485 +#: SalesAnalReptCols.php:284 +#: SalesAnalReptCols.php:419 +#: SalesAnalReptCols.php:422 +#: SalesAnalRepts.php:415 +#: SalesAnalRepts.php:418 +#: SalesAnalRepts.php:443 +#: SalesAnalRepts.php:446 +#: SalesAnalRepts.php:471 +#: SalesAnalRepts.php:474 +#: SalesPeople.php:219 +#: SalesPeople.php:355 +#: SalesPeople.php:357 +#: SelectProduct.php:385 +#: ShipmentCosting.php:667 +#: Stocks.php:1015 +#: Stocks.php:1017 +#: Stocks.php:1040 +#: Stocks.php:1042 +#: SuppContractChgs.php:90 +#: SystemParameters.php:396 +#: SystemParameters.php:419 +#: SystemParameters.php:435 +#: SystemParameters.php:498 +#: SystemParameters.php:506 +#: SystemParameters.php:546 +#: SystemParameters.php:626 +#: SystemParameters.php:635 +#: SystemParameters.php:643 +#: SystemParameters.php:661 +#: SystemParameters.php:668 +#: SystemParameters.php:795 +#: SystemParameters.php:930 +#: SystemParameters.php:932 +#: SystemParameters.php:942 +#: SystemParameters.php:944 +#: SystemParameters.php:998 +#: SystemParameters.php:1010 +#: SystemParameters.php:1012 +#: TaxGroups.php:307 +#: TaxGroups.php:310 +#: TaxGroups.php:366 +#: WWW_Users.php:481 +#: WWW_Users.php:483 +#: WWW_Users.php:654 +#: WWW_Users.php:656 msgid "Yes" msgstr "Oui" -#: AccountGroups.php:253 AccountGroups.php:383 AccountGroups.php:385 -#: BankAccounts.php:210 BankAccounts.php:371 BankAccounts.php:373 -#: BankAccounts.php:377 BankAccounts.php:385 BOMs.php:124 BOMs.php:745 -#: BOMs.php:749 CompanyPreferences.php:475 CompanyPreferences.php:479 -#: CompanyPreferences.php:490 CompanyPreferences.php:494 -#: CompanyPreferences.php:505 CompanyPreferences.php:509 -#: ContractCosting.php:196 CustomerBranches.php:411 Customers.php:592 -#: Customers.php:936 Customers.php:949 Customers.php:952 -#: DeliveryDetails.php:1072 DeliveryDetails.php:1115 DeliveryDetails.php:1118 -#: GLTransInquiry.php:86 MRPCalendar.php:226 MRP.php:527 MRP.php:531 -#: MRP.php:535 MRP.php:539 PaymentMethods.php:197 PaymentMethods.php:198 -#: PaymentMethods.php:199 PaymentMethods.php:263 PaymentMethods.php:269 -#: PaymentMethods.php:276 PcAuthorizeExpenses.php:242 PDFChequeListing.php:62 -#: PDFDeliveryDifferences.php:74 PDFDIFOT.php:74 -#: PO_AuthorisationLevels.php:136 PO_AuthorisationLevels.php:141 -#: PO_Header.php:781 PO_PDFPurchOrder.php:385 PO_PDFPurchOrder.php:388 -#: PurchData.php:192 PurchData.php:515 PurchData.php:518 -#: RecurringSalesOrders.php:481 RecurringSalesOrders.php:484 -#: SalesAnalReptCols.php:282 SalesAnalReptCols.php:420 -#: SalesAnalReptCols.php:423 SalesAnalRepts.php:414 SalesAnalRepts.php:417 -#: SalesAnalRepts.php:442 SalesAnalRepts.php:445 SalesAnalRepts.php:470 -#: SalesAnalRepts.php:473 SalesPeople.php:221 SalesPeople.php:360 -#: SalesPeople.php:362 SelectProduct.php:387 ShipmentCosting.php:668 -#: Stocks.php:1010 Stocks.php:1012 Stocks.php:1035 Stocks.php:1037 -#: SuppContractChgs.php:92 SystemParameters.php:397 SystemParameters.php:420 -#: SystemParameters.php:436 SystemParameters.php:499 SystemParameters.php:507 -#: SystemParameters.php:547 SystemParameters.php:627 SystemParameters.php:636 -#: SystemParameters.php:644 SystemParameters.php:662 SystemParameters.php:669 -#: SystemParameters.php:796 SystemParameters.php:929 SystemParameters.php:933 -#: SystemParameters.php:941 SystemParameters.php:945 SystemParameters.php:999 -#: SystemParameters.php:1009 SystemParameters.php:1013 TaxGroups.php:308 -#: TaxGroups.php:311 TaxGroups.php:368 WWW_Users.php:480 WWW_Users.php:484 -#: WWW_Users.php:653 WWW_Users.php:657 includes/PDFLowGPPageHeader.inc:44 +#: AccountGroups.php:253 +#: AccountGroups.php:383 +#: AccountGroups.php:385 +#: BankAccounts.php:210 +#: BankAccounts.php:371 +#: BankAccounts.php:373 +#: BankAccounts.php:377 +#: BankAccounts.php:385 +#: BOMs.php:124 +#: BOMs.php:745 +#: BOMs.php:749 +#: CompanyPreferences.php:475 +#: CompanyPreferences.php:479 +#: CompanyPreferences.php:490 +#: CompanyPreferences.php:494 +#: CompanyPreferences.php:505 +#: CompanyPreferences.php:509 +#: ContractCosting.php:196 +#: CustomerBranches.php:411 +#: Customers.php:592 +#: Customers.php:936 +#: Customers.php:949 +#: Customers.php:952 +#: DeliveryDetails.php:1072 +#: DeliveryDetails.php:1115 +#: DeliveryDetails.php:1118 +#: GLTransInquiry.php:86 +#: MRPCalendar.php:226 +#: MRP.php:527 +#: MRP.php:531 +#: MRP.php:535 +#: MRP.php:539 +#: PaymentMethods.php:197 +#: PaymentMethods.php:198 +#: PaymentMethods.php:199 +#: PaymentMethods.php:263 +#: PaymentMethods.php:269 +#: PaymentMethods.php:276 +#: PcAuthorizeExpenses.php:242 +#: PDFChequeListing.php:62 +#: PDFDeliveryDifferences.php:74 +#: PDFDIFOT.php:74 +#: PO_AuthorisationLevels.php:136 +#: PO_AuthorisationLevels.php:141 +#: PO_Header.php:781 +#: PO_PDFPurchOrder.php:385 +#: PO_PDFPurchOrder.php:388 +#: PurchData.php:192 +#: PurchData.php:515 +#: PurchData.php:518 +#: RecurringSalesOrders.php:481 +#: RecurringSalesOrders.php:484 +#: SalesAnalReptCols.php:282 +#: SalesAnalReptCols.php:420 +#: SalesAnalReptCols.php:423 +#: SalesAnalRepts.php:414 +#: SalesAnalRepts.php:417 +#: SalesAnalRepts.php:442 +#: SalesAnalRepts.php:445 +#: SalesAnalRepts.php:470 +#: SalesAnalRepts.php:473 +#: SalesPeople.php:221 +#: SalesPeople.php:360 +#: SalesPeople.php:362 +#: SelectProduct.php:387 +#: ShipmentCosting.php:668 +#: Stocks.php:1010 +#: Stocks.php:1012 +#: Stocks.php:1035 +#: Stocks.php:1037 +#: SuppContractChgs.php:92 +#: SystemParameters.php:397 +#: SystemParameters.php:420 +#: SystemParameters.php:436 +#: SystemParameters.php:499 +#: SystemParameters.php:507 +#: SystemParameters.php:547 +#: SystemParameters.php:627 +#: SystemParameters.php:636 +#: SystemParameters.php:644 +#: SystemParameters.php:662 +#: SystemParameters.php:669 +#: SystemParameters.php:796 +#: SystemParameters.php:929 +#: SystemParameters.php:933 +#: SystemParameters.php:941 +#: SystemParameters.php:945 +#: SystemParameters.php:999 +#: SystemParameters.php:1009 +#: SystemParameters.php:1013 +#: TaxGroups.php:308 +#: TaxGroups.php:311 +#: TaxGroups.php:368 +#: WWW_Users.php:480 +#: WWW_Users.php:484 +#: WWW_Users.php:653 +#: WWW_Users.php:657 +#: includes/PDFLowGPPageHeader.inc:44 #: includes/PDFTaxPageHeader.inc:35 msgid "No" msgstr "Non" -#: AccountGroups.php:262 AccountSections.php:196 AddCustomerContacts.php:149 -#: AddCustomerNotes.php:141 AddCustomerTypeNotes.php:128 Areas.php:164 -#: BankAccounts.php:223 BOMs.php:149 COGSGLPostings.php:108 -#: COGSGLPostings.php:206 CreditStatus.php:174 Currencies.php:272 -#: CustomerBranches.php:415 Customers.php:1027 Customers.php:1061 -#: CustomerTypes.php:202 EDIMessageFormat.php:150 Factors.php:329 -#: FixedAssetCategories.php:186 FixedAssetLocations.php:107 -#: FreightCosts.php:240 GeocodeSetup.php:173 GLAccounts.php:312 GLTags.php:91 -#: Labels.php:408 Locations.php:391 MRPDemands.php:306 MRPDemandTypes.php:120 -#: PaymentMethods.php:200 PaymentTerms.php:205 PcAssignCashToTab.php:259 -#: PcClaimExpensesFromTab.php:252 PcExpenses.php:223 PcTabs.php:233 -#: PcTypeTabs.php:172 PO_AuthorisationLevels.php:151 Prices_Customer.php:278 -#: Prices.php:250 PurchData.php:204 SalesCategories.php:256 -#: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:232 -#: SalesTypes.php:206 SecurityTokens.php:128 SelectCustomer.php:617 -#: SelectCustomer.php:635 SelectCustomer.php:659 SelectCustomer.php:676 -#: SelectCustomer.php:700 SelectCustomer.php:717 Shippers.php:144 -#: StockCategories.php:241 SupplierContacts.php:163 -#: SupplierTenderCreate.php:146 SupplierTypes.php:189 -#: SuppTransGLAnalysis.php:120 TaxAuthorities.php:174 TaxCategories.php:182 -#: TaxGroups.php:188 TaxProvinces.php:180 UnitsOfMeasure.php:185 -#: WorkCentres.php:141 WWW_Access.php:123 WWW_Users.php:323 -#: includes/InputSerialItems.php:88 includes/OutputSerialItems.php:20 +#: AccountGroups.php:262 +#: AccountSections.php:196 +#: AddCustomerContacts.php:149 +#: AddCustomerNotes.php:141 +#: AddCustomerTypeNotes.php:128 +#: Areas.php:164 +#: BankAccounts.php:223 +#: BOMs.php:149 +#: COGSGLPostings.php:108 +#: COGSGLPostings.php:206 +#: CreditStatus.php:174 +#: Currencies.php:272 +#: CustomerBranches.php:415 +#: Customers.php:1027 +#: Customers.php:1061 +#: CustomerTypes.php:202 +#: EDIMessageFormat.php:150 +#: Factors.php:329 +#: FixedAssetCategories.php:186 +#: FixedAssetLocations.php:107 +#: FreightCosts.php:240 +#: GeocodeSetup.php:173 +#: GLAccounts.php:312 +#: GLTags.php:91 +#: Labels.php:408 +#: Locations.php:391 +#: MRPDemands.php:306 +#: MRPDemandTypes.php:120 +#: PaymentMethods.php:200 +#: PaymentTerms.php:205 +#: PcAssignCashToTab.php:259 +#: PcClaimExpensesFromTab.php:252 +#: PcExpenses.php:223 +#: PcTabs.php:233 +#: PcTypeTabs.php:172 +#: PO_AuthorisationLevels.php:151 +#: Prices_Customer.php:278 +#: Prices.php:250 +#: PurchData.php:204 +#: SalesCategories.php:256 +#: SalesGLPostings.php:132 +#: SalesGLPostings.php:245 +#: SalesPeople.php:232 +#: SalesTypes.php:206 +#: SecurityTokens.php:128 +#: SelectCustomer.php:617 +#: SelectCustomer.php:635 +#: SelectCustomer.php:659 +#: SelectCustomer.php:676 +#: SelectCustomer.php:700 +#: SelectCustomer.php:717 +#: Shippers.php:144 +#: StockCategories.php:241 +#: SupplierContacts.php:163 +#: SupplierTenderCreate.php:146 +#: SupplierTypes.php:189 +#: SuppTransGLAnalysis.php:120 +#: TaxAuthorities.php:174 +#: TaxCategories.php:182 +#: TaxGroups.php:188 +#: TaxProvinces.php:180 +#: UnitsOfMeasure.php:185 +#: WorkCentres.php:141 +#: WWW_Access.php:123 +#: WWW_Users.php:323 +#: includes/InputSerialItems.php:88 +#: includes/OutputSerialItems.php:20 #, php-format msgid "Edit" msgstr "Modifier" #: AccountGroups.php:263 msgid "Are you sure you wish to delete this account group?" -msgstr "Êtes-vous sûr de vouloir supprimer ce groupe?" +msgstr "Voulez-vous supprimer ce groupe?" -#: AccountGroups.php:263 AccountSections.php:200 AddCustomerContacts.php:150 -#: AddCustomerNotes.php:142 AddCustomerTypeNotes.php:129 Areas.php:165 -#: BankAccounts.php:224 BOMs.php:151 COGSGLPostings.php:109 -#: COGSGLPostings.php:207 ContractBOM.php:266 ContractOtherReqts.php:119 -#: CounterSales.php:822 Credit_Invoice.php:381 CreditStatus.php:175 -#: Currencies.php:275 CustomerReceipt.php:921 Customers.php:1062 -#: CustomerTypes.php:203 DiscountCategories.php:219 DiscountMatrix.php:182 -#: EDIMessageFormat.php:151 FixedAssetCategories.php:187 FreightCosts.php:241 -#: GeocodeSetup.php:174 GLAccounts.php:313 GLJournal.php:425 GLTags.php:92 -#: Labels.php:408 Locations.php:392 MRPDemands.php:307 MRPDemandTypes.php:121 -#: PaymentMethods.php:201 Payments.php:1073 PaymentTerms.php:206 -#: PcAssignCashToTab.php:263 PcClaimExpensesFromTab.php:253 PcExpenses.php:224 -#: PcExpensesTypeTab.php:185 PcTabs.php:234 PcTypeTabs.php:173 -#: PO_AuthorisationLevels.php:153 PO_Items.php:707 Prices_Customer.php:279 -#: Prices.php:251 PurchData.php:205 SalesAnalReptCols.php:299 -#: SalesAnalRepts.php:303 SalesCategories.php:257 SalesGLPostings.php:133 -#: SalesGLPostings.php:246 SalesPeople.php:233 SalesTypes.php:207 -#: SecurityTokens.php:129 SelectCreditItems.php:765 SelectCustomer.php:618 -#: SelectCustomer.php:636 SelectCustomer.php:660 SelectCustomer.php:677 -#: SelectCustomer.php:701 SelectCustomer.php:718 SelectOrderItems.php:1399 -#: Shipments.php:439 Shippers.php:145 SpecialOrder.php:665 -#: StockCategories.php:242 StockCategories.php:555 StockLocTransfer.php:302 -#: SuppContractChgs.php:99 SuppCreditGRNs.php:102 SuppFixedAssetChgs.php:87 -#: SuppInvGRNs.php:147 SupplierContacts.php:164 SupplierTenderCreate.php:377 -#: SupplierTenderCreate.php:404 SupplierTypes.php:191 SuppShiptChgs.php:90 -#: SuppTransGLAnalysis.php:121 TaxAuthorities.php:175 TaxCategories.php:183 -#: TaxGroups.php:189 TaxProvinces.php:181 UnitsOfMeasure.php:186 -#: WorkCentres.php:142 WOSerialNos.php:320 WWW_Access.php:124 -#: WWW_Users.php:324 includes/InputSerialItemsKeyed.php:58 +#: AccountGroups.php:263 +#: AccountSections.php:200 +#: AddCustomerContacts.php:150 +#: AddCustomerNotes.php:142 +#: AddCustomerTypeNotes.php:129 +#: Areas.php:165 +#: BankAccounts.php:224 +#: BOMs.php:151 +#: COGSGLPostings.php:109 +#: COGSGLPostings.php:207 +#: ContractBOM.php:266 +#: ContractOtherReqts.php:119 +#: CounterSales.php:822 +#: Credit_Invoice.php:381 +#: CreditStatus.php:175 +#: Currencies.php:275 +#: CustomerReceipt.php:921 +#: Customers.php:1062 +#: CustomerTypes.php:203 +#: DiscountCategories.php:219 +#: DiscountMatrix.php:182 +#: EDIMessageFormat.php:151 +#: FixedAssetCategories.php:187 +#: FreightCosts.php:241 +#: GeocodeSetup.php:174 +#: GLAccounts.php:313 +#: GLJournal.php:425 +#: GLTags.php:92 +#: Labels.php:408 +#: Locations.php:392 +#: MRPDemands.php:307 +#: MRPDemandTypes.php:121 +#: PaymentMethods.php:201 +#: Payments.php:1073 +#: PaymentTerms.php:206 +#: PcAssignCashToTab.php:263 +#: PcClaimExpensesFromTab.php:253 +#: PcExpenses.php:224 +#: PcExpensesTypeTab.php:185 +#: PcTabs.php:234 +#: PcTypeTabs.php:173 +#: PO_AuthorisationLevels.php:153 +#: PO_Items.php:707 +#: Prices_Customer.php:279 +#: Prices.php:251 +#: PurchData.php:205 +#: SalesAnalReptCols.php:299 +#: SalesAnalRepts.php:303 +#: SalesCategories.php:257 +#: SalesGLPostings.php:133 +#: SalesGLPostings.php:246 +#: SalesPeople.php:233 +#: SalesTypes.php:207 +#: SecurityTokens.php:129 +#: SelectCreditItems.php:765 +#: SelectCustomer.php:618 +#: SelectCustomer.php:636 +#: SelectCustomer.php:660 +#: SelectCustomer.php:677 +#: SelectCustomer.php:701 +#: SelectCustomer.php:718 +#: SelectOrderItems.php:1399 +#: Shipments.php:439 +#: Shippers.php:145 +#: SpecialOrder.php:665 +#: StockCategories.php:242 +#: StockCategories.php:555 +#: StockLocTransfer.php:302 +#: SuppContractChgs.php:99 +#: SuppCreditGRNs.php:102 +#: SuppFixedAssetChgs.php:87 +#: SuppInvGRNs.php:147 +#: SupplierContacts.php:164 +#: SupplierTenderCreate.php:377 +#: SupplierTenderCreate.php:404 +#: SupplierTypes.php:191 +#: SuppShiptChgs.php:90 +#: SuppTransGLAnalysis.php:121 +#: TaxAuthorities.php:175 +#: TaxCategories.php:183 +#: TaxGroups.php:189 +#: TaxProvinces.php:181 +#: UnitsOfMeasure.php:186 +#: WorkCentres.php:142 +#: WOSerialNos.php:320 +#: WWW_Access.php:124 +#: WWW_Users.php:324 +#: includes/InputSerialItemsKeyed.php:58 #: includes/OutputSerialItems.php:99 #, php-format msgid "Delete" @@ -418,20 +747,19 @@ #: AccountGroups.php:291 msgid "An error occurred in retrieving the account group information" -msgstr "" -"Une erreur s'est produite lors la récupération des informations du groupe" +msgstr "Erreur lors de la recherche des informations du groupe" #: AccountGroups.php:292 -msgid "" -"The SQL that was used to retrieve the account group and that failed in the " -"process was" -msgstr "Commande SQL d'affichage du groupe" +msgid "The SQL that was used to retrieve the account group and that failed in the process was" +msgstr "Échec de la commande SQL d'affichage du groupe:" #: AccountGroups.php:295 msgid "The account group name does not exist in the database" -msgstr "Le nom du groupe n'existe pas dans la base de données" +msgstr "Le nom du groupe n'existe pas" -#: AccountGroups.php:310 GLAccounts.php:243 GLAccounts.php:292 +#: AccountGroups.php:310 +#: GLAccounts.php:243 +#: GLAccounts.php:292 #: Z_ImportGLAccountGroups.php:26 msgid "Account Group" msgstr "Groupe" @@ -440,7 +768,8 @@ msgid "Account Group Name" msgstr "Nom du groupe" -#: AccountGroups.php:342 AccountGroups.php:344 +#: AccountGroups.php:342 +#: AccountGroups.php:344 msgid "Top Level Group" msgstr "Groupe parent" @@ -448,27 +777,55 @@ msgid "Section In Accounts" msgstr "Rubrique des comptes" -#: AccountGroups.php:395 AccountSections.php:264 AddCustomerContacts.php:258 -#: AddCustomerNotes.php:245 AddCustomerTypeNotes.php:210 Areas.php:227 -#: BankAccounts.php:391 BOMs.php:759 COGSGLPostings.php:354 -#: CreditStatus.php:257 Currencies.php:401 CustLoginSetup.php:272 -#: DiscountMatrix.php:141 EDIMessageFormat.php:248 -#: FixedAssetCategories.php:344 FixedAssetLocations.php:156 -#: FreightCosts.php:339 GeocodeSetup.php:270 GLAccounts.php:262 -#: Locations.php:606 MRPDemands.php:419 MRPDemandTypes.php:187 -#: OffersReceived.php:56 OffersReceived.php:143 PaymentMethods.php:282 -#: PaymentTerms.php:309 PO_AuthorisationLevels.php:262 Prices_Customer.php:360 -#: SalesAnalReptCols.php:552 SalesAnalRepts.php:514 SalesGLPostings.php:416 -#: SalesPeople.php:369 Shippers.php:202 StockCategories.php:582 -#: SupplierContacts.php:281 SuppLoginSetup.php:293 TaxAuthorities.php:327 -#: TaxCategories.php:237 TaxProvinces.php:235 UnitsOfMeasure.php:240 -#: WorkCentres.php:279 WWW_Users.php:696 +#: AccountGroups.php:395 +#: AccountSections.php:264 +#: AddCustomerContacts.php:258 +#: AddCustomerNotes.php:245 +#: AddCustomerTypeNotes.php:210 +#: Areas.php:227 +#: BankAccounts.php:391 +#: BOMs.php:759 +#: COGSGLPostings.php:354 +#: CreditStatus.php:257 +#: Currencies.php:401 +#: CustLoginSetup.php:272 +#: DiscountMatrix.php:141 +#: EDIMessageFormat.php:248 +#: FixedAssetCategories.php:344 +#: FixedAssetLocations.php:156 +#: FreightCosts.php:339 +#: GeocodeSetup.php:270 +#: GLAccounts.php:262 +#: Locations.php:606 +#: MRPDemands.php:419 +#: MRPDemandTypes.php:187 +#: OffersReceived.php:56 +#: OffersReceived.php:143 +#: PaymentMethods.php:282 +#: PaymentTerms.php:309 +#: PO_AuthorisationLevels.php:262 +#: Prices_Customer.php:360 +#: SalesAnalReptCols.php:552 +#: SalesAnalRepts.php:514 +#: SalesGLPostings.php:416 +#: SalesPeople.php:369 +#: Shippers.php:202 +#: StockCategories.php:582 +#: SupplierContacts.php:281 +#: SuppLoginSetup.php:293 +#: TaxAuthorities.php:327 +#: TaxCategories.php:237 +#: TaxProvinces.php:235 +#: UnitsOfMeasure.php:240 +#: WorkCentres.php:279 +#: WWW_Users.php:696 msgid "Enter Information" msgstr "Valider" -#: AccountSections.php:7 index.php:1313 +#: AccountSections.php:7 +#: index.php:1313 msgid "Account Sections" -msgstr "Rubrique de compte" +msgstr "Rubriques de compte" #: AccountSections.php:66 msgid "The account section already exists in the database" @@ -476,24 +833,20 @@ #: AccountSections.php:73 msgid "The account section name cannot contain any of the illegal characters" -msgstr "" -"Le nom de la rubrique compte ne peut contenir aucun des caractères suivants" +msgstr "Le nom de la rubrique ne doit pas contenir de caractères réservés" #: AccountSections.php:79 msgid "The account section name must contain at least one character" -msgstr "Le nom de la rubrique de compte doit contenir au moins un caractère" +msgstr "Le nom de la rubrique doit contenir au moins un caractère" -#: AccountSections.php:85 AccountSections.php:91 +#: AccountSections.php:85 +#: AccountSections.php:91 msgid "The section number must be an integer" msgstr "Le numéro de la rubrique doit être un entier" #: AccountSections.php:136 -msgid "" -"Cannot delete this account section because general ledger accounts groups " -"have been created using this section" -msgstr "" -"Impossible de supprimer cette rubrique de compte car des comptes du GL " -"l'utilisent" +msgid "Cannot delete this account section because general ledger accounts groups have been created using this section" +msgstr "Impossible de supprimer cette rubrique car des comptes du GL l'utilisent" #: AccountSections.php:137 msgid "general ledger accounts groups that refer to this account section" @@ -505,15 +858,18 @@ #: AccountSections.php:173 msgid "Could not get account group sections because" -msgstr "Impossible d'obtenir sections groupe compte car" +msgstr "Impossible dafficher les rubriques du groupe:" -#: AccountSections.php:180 AccountSections.php:238 AccountSections.php:256 +#: AccountSections.php:180 +#: AccountSections.php:238 +#: AccountSections.php:256 msgid "Section Number" -msgstr "Numéro de la section" +msgstr "N° de la rubrique" -#: AccountSections.php:181 AccountSections.php:260 +#: AccountSections.php:181 +#: AccountSections.php:260 msgid "Section Description" -msgstr "Description Section" +msgstr "Description de la rubrique" #: AccountSections.php:198 msgid "Restricted" @@ -521,20 +877,22 @@ #: AccountSections.php:209 msgid "Review Account Sections" -msgstr "Les articles de revue de comptes" +msgstr "Voir les rubriques" #: AccountSections.php:227 msgid "Could not retrieve the requested section please try again." -msgstr "" -"Impossible de récupérer la section demandée s'il vous plaît essayer à " -"nouveau." +msgstr "Impossible de récupérer la rubrique demandée." -#: AddCustomerContacts.php:6 AddCustomerContacts.php:61 SelectCustomer.php:610 +#: AddCustomerContacts.php:6 +#: AddCustomerContacts.php:61 +#: SelectCustomer.php:610 #: SelectCustomer.php:642 msgid "Customer Contacts" msgstr "Contacts client" -#: AddCustomerContacts.php:20 CustEDISetup.php:9 CustLoginSetup.php:21 +#: AddCustomerContacts.php:20 +#: CustEDISetup.php:9 +#: CustLoginSetup.php:21 #: Z_CheckDebtorsControl.php:20 msgid "Back to Customers" msgstr "Retour aux clients" @@ -561,37 +919,63 @@ #: AddCustomerContacts.php:50 msgid "The contact email address is not a valid email address" -msgstr "L'adresse courriel n'est pas correcte" +msgstr "L'adresse courriel est incorrecte" -#: AddCustomerContacts.php:61 AddCustomerNotes.php:52 -#: AddCustomerTypeNotes.php:49 Areas.php:73 CustomerTypes.php:69 -#: DeliveryDetails.php:776 Factors.php:105 FixedAssetItems.php:246 -#: MRPCalendar.php:176 PcAssignCashToTab.php:88 PcClaimExpensesFromTab.php:79 -#: PcExpenses.php:95 PcTabs.php:101 PcTypeTabs.php:60 PO_Items.php:369 -#: SalesAnalReptCols.php:129 SalesPeople.php:97 SalesTypes.php:66 -#: Stocks.php:497 Suppliers.php:513 SupplierTypes.php:67 +#: AddCustomerContacts.php:61 +#: AddCustomerNotes.php:52 +#: AddCustomerTypeNotes.php:49 +#: Areas.php:73 +#: CustomerTypes.php:69 +#: DeliveryDetails.php:776 +#: Factors.php:105 +#: FixedAssetItems.php:246 +#: MRPCalendar.php:176 +#: PcAssignCashToTab.php:88 +#: PcClaimExpensesFromTab.php:79 +#: PcExpenses.php:95 +#: PcTabs.php:101 +#: PcTypeTabs.php:60 +#: PO_Items.php:369 +#: SalesAnalReptCols.php:129 +#: SalesPeople.php:97 +#: SalesTypes.php:66 +#: Stocks.php:497 +#: Suppliers.php:513 +#: SupplierTypes.php:67 msgid "has been updated" msgstr "a été mis à jour" #: AddCustomerContacts.php:76 msgid "The contact record has been added" -msgstr "L'enregistrement de contact a été ajouté" +msgstr "Le contact a été ajouté" #: AddCustomerContacts.php:105 msgid "The contact record has been deleted" -msgstr "L'enregistrement de contact a été supprimé" +msgstr "Le contact a été supprimé" -#: AddCustomerContacts.php:128 CompanyPreferences.php:223 -#: CustomerBranches.php:368 Customers.php:1014 Customers.php:1022 -#: SalesPeople.php:200 SelectCustomer.php:612 StockDispatch.php:187 -#: StockDispatch.php:199 SupplierContacts.php:150 SuppTransGLAnalysis.php:105 -#: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 +#: AddCustomerContacts.php:128 +#: CompanyPreferences.php:223 +#: CustomerBranches.php:368 +#: Customers.php:1014 +#: Customers.php:1022 +#: SalesPeople.php:200 +#: SelectCustomer.php:612 +#: StockDispatch.php:187 +#: StockDispatch.php:199 +#: SupplierContacts.php:150 +#: SuppTransGLAnalysis.php:105 +#: includes/InputSerialItemsFile.php:84 +#: includes/InputSerialItemsFile.php:124 #: includes/PDFTaxPageHeader.inc:37 msgid "Name" msgstr "Nom" -#: AddCustomerContacts.php:129 AddCustomerContacts.php:223 Customers.php:1015 -#: Customers.php:1023 SelectCustomer.php:613 WWW_Access.php:107 +#: AddCustomerContacts.php:129 +#: AddCustomerContacts.php:223 +#: Customers.php:1015 +#: Customers.php:1023 +#: SelectCustomer.php:613 +#: WWW_Access.php:107 #: WWW_Access.php:169 msgid "Role" msgstr "Rôle" @@ -600,35 +984,64 @@ msgid "Phone no" msgstr "Tél:" -#: AddCustomerContacts.php:131 AddCustomerContacts.php:240 -#: CustomerBranches.php:374 CustomerBranches.php:781 CustomerInquiry.php:255 -#: Customers.php:1017 Customers.php:1025 EmailCustTrans.php:15 -#: EmailCustTrans.php:63 Factors.php:245 Factors.php:292 Locations.php:572 -#: OrderDetails.php:109 PDFRemittanceAdvice.php:243 PO_PDFPurchOrder.php:371 -#: PO_PDFPurchOrder.php:374 PrintCustTrans.php:714 PrintCustTrans.php:945 -#: PrintCustTrans.php:994 PrintCustTransPortrait.php:753 -#: PrintCustTransPortrait.php:999 PrintCustTransPortrait.php:1056 -#: SelectCustomer.php:421 SelectCustomer.php:615 SupplierContacts.php:154 -#: SupplierContacts.php:274 UserSettings.php:184 WWW_Users.php:279 -#: includes/PDFPickingListHeader.inc:25 includes/PDFStatementPageHeader.inc:67 +#: AddCustomerContacts.php:131 +#: AddCustomerContacts.php:240 +#: CustomerBranches.php:374 +#: CustomerBranches.php:781 +#: CustomerInquiry.php:255 +#: Customers.php:1017 +#: Customers.php:1025 +#: EmailCustTrans.php:15 +#: EmailCustTrans.php:63 +#: Factors.php:245 +#: Factors.php:292 +#: Locations.php:572 +#: OrderDetails.php:109 +#: PDFRemittanceAdvice.php:243 +#: PO_PDFPurchOrder.php:371 +#: PO_PDFPurchOrder.php:374 +#: PrintCustTrans.php:714 +#: PrintCustTrans.php:945 +#: PrintCustTrans.php:994 +#: PrintCustTransPortrait.php:753 +#: PrintCustTransPortrait.php:999 +#: PrintCustTransPortrait.php:1056 +#: SelectCustomer.php:421 +#: SelectCustomer.php:615 +#: SupplierContacts.php:154 +#: SupplierContacts.php:274 +#: UserSettings.php:184 +#: WWW_Users.php:279 +#: includes/PDFPickingListHeader.inc:25 +#: includes/PDFStatementPageHeader.inc:67 #: includes/PDFTransPageHeader.inc:82 #: includes/PDFTransPageHeaderPortrait.inc:109 #: includes/PO_PDFOrderPageHeader.inc:29 msgid "Email" msgstr "Courriel" -#: AddCustomerContacts.php:132 AddCustomerContacts.php:249 Customers.php:1018 -#: Customers.php:1026 PcAssignCashToTab.php:224 PcAssignCashToTab.php:353 -#: PcAuthorizeExpenses.php:92 PcClaimExpensesFromTab.php:214 -#: PcClaimExpensesFromTab.php:372 PcReportTab.php:327 SelectCustomer.php:616 -#: SystemParameters.php:335 WOSerialNos.php:291 WOSerialNos.php:297 +#: AddCustomerContacts.php:132 +#: AddCustomerContacts.php:249 +#: Customers.php:1018 +#: Customers.php:1026 +#: PcAssignCashToTab.php:224 +#: PcAssignCashToTab.php:353 +#: PcAuthorizeExpenses.php:92 +#: PcClaimExpensesFromTab.php:214 +#: PcClaimExpensesFromTab.php:372 +#: PcReportTab.php:327 +#: SelectCustomer.php:616 +#: SystemParameters.php:335 +#: WOSerialNos.php:291 +#: WOSerialNos.php:297 msgid "Notes" msgstr "Notes" -#: AddCustomerContacts.php:150 SupplierContacts.php:164 +#: AddCustomerContacts.php:150 +#: SupplierContacts.php:164 #, php-format msgid "Are you sure you wish to delete this contact?" -msgstr "Etes-vous sûr de vouloir supprimer ce contact?" +msgstr "Voulez-vous supprimer ce contact?" #: AddCustomerContacts.php:169 msgid "Review all contacts for this Customer" @@ -638,115 +1051,168 @@ msgid "Contact Code" msgstr "Code de contact" -#: AddCustomerContacts.php:214 Factors.php:233 SupplierContacts.php:236 +#: AddCustomerContacts.php:214 +#: Factors.php:233 +#: SupplierContacts.php:236 msgid "Contact Name" msgstr "Nom du contact" -#: AddCustomerContacts.php:231 Contracts.php:775 PDFRemittanceAdvice.php:239 -#: PO_Header.php:991 PO_Header.php:1072 SelectCreditItems.php:241 -#: SelectCustomer.php:419 SelectOrderItems.php:606 -#: SupplierTenderCreate.php:359 includes/PDFStatementPageHeader.inc:63 +#: AddCustomerContacts.php:231 +#: Contracts.php:775 +#: PDFRemittanceAdvice.php:239 +#: PO_Header.php:991 +#: PO_Header.php:1072 +#: SelectCreditItems.php:241 +#: SelectCustomer.php:419 +#: SelectOrderItems.php:606 +#: SupplierTenderCreate.php:359 +#: includes/PDFStatementPageHeader.inc:63 #: includes/PDFTransPageHeader.inc:81 #: includes/PDFTransPageHeaderPortrait.inc:105 msgid "Phone" msgstr "Téléphone" -#: AddCustomerNotes.php:6 AddCustomerNotes.php:52 SelectCustomer.php:652 +#: AddCustomerNotes.php:6 +#: AddCustomerNotes.php:52 +#: SelectCustomer.php:652 #: SelectCustomer.php:683 msgid "Customer Notes" msgstr "Notes client" -#: AddCustomerNotes.php:21 AddCustomerTypeNotes.php:19 +#: AddCustomerNotes.php:21 +#: AddCustomerTypeNotes.php:19 msgid "Back to Select Customer" -msgstr "Retour choix des clients" +msgstr "Retour à l'écran de sélection des clients" #: AddCustomerNotes.php:34 msgid "The contact priority must be an integer." msgstr "La priorité du contact doit être un nombre entier." -#: AddCustomerNotes.php:37 AddCustomerTypeNotes.php:34 +#: AddCustomerNotes.php:37 +#: AddCustomerTypeNotes.php:34 msgid "The contact's notes must be two hundred characters or less long" -msgstr "note Le contact doit être deux cents caractères ou moins long" +msgstr "La note du contact ne diot pas dépasser 200 caractères" -#: AddCustomerNotes.php:40 AddCustomerTypeNotes.php:37 +#: AddCustomerNotes.php:40 +#: AddCustomerTypeNotes.php:37 msgid "The contact's notes may not be empty" -msgstr "Les notes de contact ne peut pas être vide" +msgstr "La note de contact doit être remplie" #: AddCustomerNotes.php:65 msgid "The contact notes record has been added" -msgstr "L'enregistrement de contact note a été ajoutée" +msgstr "La note du contact note a été ajoutée" #: AddCustomerNotes.php:93 msgid "The contact note record has been deleted" -msgstr "La fiche de note pour le contact a été supprimée" +msgstr "La note du contact a été supprimée" #: AddCustomerNotes.php:104 msgid "Notes for Customer" msgstr "Notes pour le client" -#: AddCustomerNotes.php:121 AddCustomerNotes.php:225 -#: AddCustomerTypeNotes.php:108 AddCustomerTypeNotes.php:200 -#: BankMatching.php:263 BankReconciliation.php:209 BankReconciliation.php:284 -#: ContractCosting.php:173 CustomerAllocations.php:330 -#: CustomerAllocations.php:363 CustomerInquiry.php:198 -#: CustomerTransInquiry.php:100 GLAccountInquiry.php:152 -#: GLAccountReport.php:340 GLTransInquiry.php:42 MRPCalendar.php:219 -#: PaymentAllocations.php:66 PcAssignCashToTab.php:220 -#: PcAuthorizeExpenses.php:88 PDFRemittanceAdvice.php:300 -#: PrintCustTrans.php:822 PrintCustTransPortrait.php:867 ReverseGRN.php:386 -#: ShipmentCosting.php:538 ShipmentCosting.php:615 Shipments.php:490 -#: StockDispatch.php:189 StockDispatch.php:201 StockLocMovements.php:90 -#: StockMovements.php:94 StockSerialItemResearch.php:80 -#: SupplierAllocations.php:455 SupplierAllocations.php:568 -#: SupplierAllocations.php:643 SupplierInquiry.php:209 -#: SupplierTransInquiry.php:103 includes/PDFQuotationPageHeader.inc:92 +#: AddCustomerNotes.php:121 +#: AddCustomerNotes.php:225 +#: AddCustomerTypeNotes.php:108 +#: AddCustomerTypeNotes.php:200 +#: BankMatching.php:263 +#: BankReconciliation.php:209 +#: BankReconciliation.php:284 +#: ContractCosting.php:173 +#: CustomerAllocations.php:330 +#: CustomerAllocations.php:363 +#: CustomerInquiry.php:198 +#: CustomerTransInquiry.php:100 +#: GLAccountInquiry.php:152 +#: GLAccountReport.php:340 +#: GLTransInquiry.php:42 +#: MRPCalendar.php:219 +#: PaymentAllocations.php:66 +#: PcAssignCashToTab.php:220 +#: PcAuthorizeExpenses.php:88 +#: PDFRemittanceAdvice.php:300 +#: PrintCustTrans.php:822 +#: PrintCustTransPortrait.php:867 +#: ReverseGRN.php:386 +#: ShipmentCosting.php:538 +#: ShipmentCosting.php:615 +#: Shipments.php:490 +#: StockDispatch.php:189 +#: StockDispatch.php:201 +#: StockLocMovements.php:90 +#: StockMovements.php:94 +#: StockSerialItemResearch.php:80 +#: SupplierAllocations.php:455 +#: SupplierAllocations.php:568 +#: SupplierAllocations.php:643 +#: SupplierInquiry.php:209 +#: SupplierTransInquiry.php:103 +#: includes/PDFQuotationPageHeader.inc:92 #: includes/PDFQuotationPortraitPageHeader.inc:90 -#: includes/PDFStatementPageHeader.inc:169 includes/PDFTaxPageHeader.inc:36 +#: includes/PDFStatementPageHeader.inc:169 +#: includes/PDFTaxPageHeader.inc:36 #: includes/PDFTransPageHeader.inc:48 #: includes/PDFTransPageHeaderPortrait.inc:58 msgid "Date" msgstr "Date" -#: AddCustomerNotes.php:122 AddCustomerTypeNotes.php:109 PcReportTab.php:173 -#: Stocks.php:1019 UpgradeDatabase.php:186 UpgradeDatabase.php:189 -#: UpgradeDatabase.php:192 UpgradeDatabase.php:195 UpgradeDatabase.php:198 -#: UpgradeDatabase.php:201 UpgradeDatabase.php:204 UpgradeDatabase.php:207 -#: UpgradeDatabase.php:210 Z_Upgrade_3.10-3.11.php:62 -#: Z_Upgrade_3.10-3.11.php:66 Z_Upgrade_3.10-3.11.php:70 -#: Z_Upgrade_3.10-3.11.php:74 Z_Upgrade_3.10-3.11.php:78 -#: Z_Upgrade_3.11-4.00.php:62 Z_Upgrade_3.11-4.00.php:66 -#: Z_Upgrade_3.11-4.00.php:70 Z_Upgrade_3.11-4.00.php:74 +#: AddCustomerNotes.php:122 +#: AddCustomerTypeNotes.php:109 +#: PcReportTab.php:173 +#: Stocks.php:1019 +#: UpgradeDatabase.php:186 +#: UpgradeDatabase.php:189 +#: UpgradeDatabase.php:192 +#: UpgradeDatabase.php:195 +#: UpgradeDatabase.php:198 +#: UpgradeDatabase.php:201 +#: UpgradeDatabase.php:204 +#: UpgradeDatabase.php:207 +#: UpgradeDatabase.php:210 +#: Z_Upgrade_3.10-3.11.php:62 +#: Z_Upgrade_3.10-3.11.php:66 +#: Z_Upgrade_3.10-3.11.php:70 +#: Z_Upgrade_3.10-3.11.php:74 +#: Z_Upgrade_3.10-3.11.php:78 +#: Z_Upgrade_3.11-4.00.php:62 +#: Z_Upgrade_3.11-4.00.php:66 +#: Z_Upgrade_3.11-4.00.php:70 +#: Z_Upgrade_3.11-4.00.php:74 #: Z_Upgrade_3.11-4.00.php:78 msgid "Note" msgstr "Note" -#: AddCustomerNotes.php:123 AddCustomerNotes.php:216 +#: AddCustomerNotes.php:123 +#: AddCustomerNotes.php:216 msgid "WWW" msgstr "WWW" -#: AddCustomerNotes.php:124 AddCustomerNotes.php:234 -#: AddCustomerTypeNotes.php:111 AddCustomerTypeNotes.php:204 +#: AddCustomerNotes.php:124 +#: AddCustomerNotes.php:234 +#: AddCustomerTypeNotes.php:111 +#: AddCustomerTypeNotes.php:204 msgid "Priority" msgstr "Priorité" #: AddCustomerNotes.php:142 #, php-format msgid "Are you sure you wish to delete this customer note?" -msgstr "Etes-vous sûr de vouloir supprimer ce type de client?" +msgstr "Voulez-vous supprimer ce type de client?" #: AddCustomerNotes.php:161 msgid "Review all notes for this Customer" msgstr "Passer en revue toutes les notes pour ce client" -#: AddCustomerNotes.php:199 AddCustomerTypeNotes.php:178 +#: AddCustomerNotes.php:199 +#: AddCustomerTypeNotes.php:178 msgid "Note ID" -msgstr "Note ID" +msgstr "ID note" #: AddCustomerNotes.php:207 msgid "Contact Note" -msgstr "Contact Note" +msgstr "Note pour le contact" -#: AddCustomerTypeNotes.php:5 SelectCustomer.php:693 +#: AddCustomerTypeNotes.php:5 +#: SelectCustomer.php:693 msgid "Customer Type (Group) Notes" msgstr "Type de client (en groupe) Notes" @@ -754,21 +1220,22 @@ msgid "The Contact priority must be an integer." msgstr "La priorité de contact doit être un nombre entier." -#: AddCustomerTypeNotes.php:49 SelectCustomer.php:724 +#: AddCustomerTypeNotes.php:49 +#: SelectCustomer.php:724 msgid "Customer Group Notes" msgstr "Notes groupe de clients" #: AddCustomerTypeNotes.php:62 msgid "The contact group notes record has been added" -msgstr "Le groupe de contact notes enregistrement a été ajouté" +msgstr "La note du groupe de contact a été ajoutée" #: AddCustomerTypeNotes.php:86 msgid "The contact group note record has been deleted" -msgstr "Le record note du groupe de contact a été supprimé" +msgstr "La note du groupe de contact a été supprimée" #: AddCustomerTypeNotes.php:98 msgid "Notes for Customer Type" -msgstr "Notes pour le type de clientèle" +msgstr "Notes pour le type de client" #: AddCustomerTypeNotes.php:110 msgid "href" @@ -777,7 +1244,7 @@ #: AddCustomerTypeNotes.php:129 #, php-format msgid "Are you sure you wish to delete this customer type note?" -msgstr "Etes-vous sûr de vouloir supprimer ce type de client?" +msgstr "Voulez-vous supprimer ce type de note client?" #: AddCustomerTypeNotes.php:148 msgid "Review all notes for this Customer Type" @@ -789,91 +1256,192 @@ #: AddCustomerTypeNotes.php:196 msgid "Web site" -msgstr "site Web" +msgstr "Site web" #: AgedDebtors.php:14 msgid "Aged Customer Balance Listing" -msgstr "Liste des comptes clients en écheance" +msgstr "Liste des comptes clients à écheance" #: AgedDebtors.php:15 msgid "Aged Customer Balances" -msgstr "Bilan de comptes clients en écheance" +msgstr "Solde des clients à écheance" -#: AgedDebtors.php:269 AgedDebtors.php:368 AgedDebtors.php:433 +#: AgedDebtors.php:269 +#: AgedDebtors.php:368 +#: AgedDebtors.php:433 msgid "Aged Customer Account Analysis" -msgstr "Analyse de compte clients en écheance" +msgstr "Analyse des comptes clients à écheance" -#: AgedDebtors.php:269 AgedDebtors.php:368 AgedDebtors.php:433 -#: AgedSuppliers.php:111 BOMExtendedQty.php:149 BOMIndented.php:150 -#: BOMIndentedReverse.php:140 BOMListing.php:41 BOMListing.php:52 -#: DebtorsAtPeriodEnd.php:57 DebtorsAtPeriodEnd.php:69 GLBalanceSheet.php:100 -#: GLBalanceSheet.php:139 GLProfit_Loss.php:177 GLTagProfit_Loss.php:191 -#: GLTrialBalance.php:159 InventoryPlanning.php:98 InventoryPlanning.php:173 -#: InventoryPlanning.php:208 InventoryPlanning.php:256 -#: InventoryPlanning.php:294 InventoryPlanningPrefSupplier.php:201 -#: InventoryPlanningPrefSupplier.php:269 InventoryPlanningPrefSupplier.php:303 -#: InventoryPlanningPrefSupplier.php:348 InventoryPlanningPrefSupplier.php:394 -#: InventoryQuantities.php:84 InventoryValuation.php:78 -#: MailInventoryValuation.php:114 MRPPlannedPurchaseOrders.php:114 -#: MRPPlannedWorkOrders.php:106 MRPReport.php:147 MRPReport.php:508 -#: MRPReschedule... [truncated message content] |
From: <tim...@us...> - 2012-02-21 16:40:34
|
Revision: 4948 http://web-erp.svn.sourceforge.net/web-erp/?rev=4948&view=rev Author: tim_schofield Date: 2012-02-21 16:40:23 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fix bug where object was being used without being created. Merge from Tims branch and bring Phils code in line with coding guidelines Modified Paths: -------------- trunk/DailySalesInquiry.php Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2012-02-21 15:56:08 UTC (rev 4947) +++ trunk/DailySalesInquiry.php 2012-02-21 16:40:23 UTC (rev 4948) @@ -6,13 +6,11 @@ $title = _('Daily Sales Inquiry'); include('includes/header.inc'); -echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Daily Sales') . '" alt="" />' . ' ' . _('Daily Sales') . ' - </p>'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Daily Sales') . '" alt="" />' . ' ' . _('Daily Sales') . '</p>'; echo '<div class="page_help_text">' . _('Select the month to show daily sales for') . '</div> <br />'; -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (!isset($_POST['MonthToShow'])){ @@ -53,7 +51,7 @@ if ($_POST['Salesperson']==$SalespersonRow['salesmancode']) { echo '<option selected="selected" value="' . $SalespersonRow['salesmancode'] . '">' . $SalespersonRow['salesmanname'] . '</option>'; } else { - echo '<option Value="' . $SalespersonRow['salesmancode'] . '">' . $SalespersonRow['salesmanname'] . '</option>'; + echo '<option value="' . $SalespersonRow['salesmancode'] . '">' . $SalespersonRow['salesmanname'] . '</option>'; } } echo '</select></td>'; @@ -102,13 +100,13 @@ echo '<table class="selection"> <tr> - <th>' . _('Sunday') . '</th> - <th>' . _('Monday') . '</th> - <th>' . _('Tuesday') . '</th> - <th>' . _('Wednesday') . '</th> - <th>' . _('Thursday') . '</th> - <th>' . _('Friday') . '</th> - <th>' . _('Saturday') . '</th> + <th style="width: 14%">' . _('Sunday') . '</th> + <th style="width: 14%">' . _('Monday') . '</th> + <th style="width: 14%">' . _('Tuesday') . '</th> + <th style="width: 14%">' . _('Wednesday') . '</th> + <th style="width: 14%">' . _('Thursday') . '</th> + <th style="width: 14%">' . _('Friday') . '</th> + <th style="width: 14%">' . _('Saturday') . '</th> </tr>'; $CumulativeTotalSales = 0; @@ -118,15 +116,15 @@ while ($DaySalesRow=DB_fetch_array($SalesResult)) { if ($DaySalesRow['salesvalue'] > 0) { - $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]->Sales = $DaySalesRow['salesvalue']; + $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]['Sales'] = $DaySalesRow['salesvalue']; } else { - $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]->Sales = 0; - } + $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]['Sales'] = 0; + } if ($DaySalesRow['salesvalue'] > 0 ) { - $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]->GPPercent = ($DaySalesRow['salesvalue']-$DaySalesRow['cost'])/$DaySalesRow['salesvalue']; - } else { - $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]->GPPercent = 0; - } + $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]['GPPercent'] = ($DaySalesRow['salesvalue']-$DaySalesRow['cost'])/$DaySalesRow['salesvalue']; + } else { + $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]['GPPercent'] = 0; + } $BilledDays++; $CumulativeTotalSales += $DaySalesRow['salesvalue']; $CumulativeTotalCost += $DaySalesRow['cost']; @@ -140,8 +138,8 @@ $DayNumber = 1; /*Set up day number headings*/ for ($i=$ColumnCounter;$i<=6;$i++){ - echo '<th>' . $DayNumber . '</th>'; - $DayNumber++; + echo '<th>' . $DayNumber . '</th>'; + $DayNumber++; } echo '</tr><tr>'; for ($i=0;$i<$ColumnCounter;$i++){ @@ -152,20 +150,20 @@ for ($i=1;$i<=$LastDayOfMonth;$i++){ $ColumnCounter++; if(isset($DaySalesArray[$i])) { - echo '<td class="number" style="outline: 1px solid gray;">' . locale_number_format($DaySalesArray[$i]->Sales,0) . '<br />' . locale_number_format($DaySalesArray[$i]->GPPercent*100,1) . '%</td>'; + echo '<td class="number" style="outline: 1px solid gray;">' . locale_number_format($DaySalesArray[$i]['Sales'],0) . '<br />' . locale_number_format($DaySalesArray[$i]['GPPercent']*100,1) . '%</td>'; } else { echo '<td class="number" style="outline: 1px solid gray;">' . locale_number_format(0,0) . '<br />' . locale_number_format(0,1) . '%</td>'; } if ($ColumnCounter==7){ echo '</tr><tr>'; - for ($j=1;$j<=7;$j++){ - echo '<th>' . $DayNumber. '</th>'; - $DayNumber++; - if($DayNumber>$LastDayOfMonth){ - break; - } - } - echo '</tr><tr>'; + for ($j=1;$j<=7;$j++){ + echo '<th>' . $DayNumber. '</th>'; + $DayNumber++; + if($DayNumber>$LastDayOfMonth){ + break; + } + } + echo '</tr><tr>'; $ColumnCounter=0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2012-02-21 16:40:30
|
Revision: 4948 http://web-erp.svn.sourceforge.net/web-erp/?rev=4948&view=rev Author: tim_schofield Date: 2012-02-21 16:40:23 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fix bug where object was being used without being created. Merge from Tims branch and bring Phils code in line with coding guidelines Modified Paths: -------------- trunk/DailySalesInquiry.php Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2012-02-21 15:56:08 UTC (rev 4947) +++ trunk/DailySalesInquiry.php 2012-02-21 16:40:23 UTC (rev 4948) @@ -6,13 +6,11 @@ $title = _('Daily Sales Inquiry'); include('includes/header.inc'); -echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Daily Sales') . '" alt="" />' . ' ' . _('Daily Sales') . ' - </p>'; +echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Daily Sales') . '" alt="" />' . ' ' . _('Daily Sales') . '</p>'; echo '<div class="page_help_text">' . _('Select the month to show daily sales for') . '</div> <br />'; -echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">'; +echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (!isset($_POST['MonthToShow'])){ @@ -53,7 +51,7 @@ if ($_POST['Salesperson']==$SalespersonRow['salesmancode']) { echo '<option selected="selected" value="' . $SalespersonRow['salesmancode'] . '">' . $SalespersonRow['salesmanname'] . '</option>'; } else { - echo '<option Value="' . $SalespersonRow['salesmancode'] . '">' . $SalespersonRow['salesmanname'] . '</option>'; + echo '<option value="' . $SalespersonRow['salesmancode'] . '">' . $SalespersonRow['salesmanname'] . '</option>'; } } echo '</select></td>'; @@ -102,13 +100,13 @@ echo '<table class="selection"> <tr> - <th>' . _('Sunday') . '</th> - <th>' . _('Monday') . '</th> - <th>' . _('Tuesday') . '</th> - <th>' . _('Wednesday') . '</th> - <th>' . _('Thursday') . '</th> - <th>' . _('Friday') . '</th> - <th>' . _('Saturday') . '</th> + <th style="width: 14%">' . _('Sunday') . '</th> + <th style="width: 14%">' . _('Monday') . '</th> + <th style="width: 14%">' . _('Tuesday') . '</th> + <th style="width: 14%">' . _('Wednesday') . '</th> + <th style="width: 14%">' . _('Thursday') . '</th> + <th style="width: 14%">' . _('Friday') . '</th> + <th style="width: 14%">' . _('Saturday') . '</th> </tr>'; $CumulativeTotalSales = 0; @@ -118,15 +116,15 @@ while ($DaySalesRow=DB_fetch_array($SalesResult)) { if ($DaySalesRow['salesvalue'] > 0) { - $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]->Sales = $DaySalesRow['salesvalue']; + $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]['Sales'] = $DaySalesRow['salesvalue']; } else { - $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]->Sales = 0; - } + $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]['Sales'] = 0; + } if ($DaySalesRow['salesvalue'] > 0 ) { - $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]->GPPercent = ($DaySalesRow['salesvalue']-$DaySalesRow['cost'])/$DaySalesRow['salesvalue']; - } else { - $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]->GPPercent = 0; - } + $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]['GPPercent'] = ($DaySalesRow['salesvalue']-$DaySalesRow['cost'])/$DaySalesRow['salesvalue']; + } else { + $DaySalesArray[DayOfMonthFromSQLDate($DaySalesRow['trandate'])]['GPPercent'] = 0; + } $BilledDays++; $CumulativeTotalSales += $DaySalesRow['salesvalue']; $CumulativeTotalCost += $DaySalesRow['cost']; @@ -140,8 +138,8 @@ $DayNumber = 1; /*Set up day number headings*/ for ($i=$ColumnCounter;$i<=6;$i++){ - echo '<th>' . $DayNumber . '</th>'; - $DayNumber++; + echo '<th>' . $DayNumber . '</th>'; + $DayNumber++; } echo '</tr><tr>'; for ($i=0;$i<$ColumnCounter;$i++){ @@ -152,20 +150,20 @@ for ($i=1;$i<=$LastDayOfMonth;$i++){ $ColumnCounter++; if(isset($DaySalesArray[$i])) { - echo '<td class="number" style="outline: 1px solid gray;">' . locale_number_format($DaySalesArray[$i]->Sales,0) . '<br />' . locale_number_format($DaySalesArray[$i]->GPPercent*100,1) . '%</td>'; + echo '<td class="number" style="outline: 1px solid gray;">' . locale_number_format($DaySalesArray[$i]['Sales'],0) . '<br />' . locale_number_format($DaySalesArray[$i]['GPPercent']*100,1) . '%</td>'; } else { echo '<td class="number" style="outline: 1px solid gray;">' . locale_number_format(0,0) . '<br />' . locale_number_format(0,1) . '%</td>'; } if ($ColumnCounter==7){ echo '</tr><tr>'; - for ($j=1;$j<=7;$j++){ - echo '<th>' . $DayNumber. '</th>'; - $DayNumber++; - if($DayNumber>$LastDayOfMonth){ - break; - } - } - echo '</tr><tr>'; + for ($j=1;$j<=7;$j++){ + echo '<th>' . $DayNumber. '</th>'; + $DayNumber++; + if($DayNumber>$LastDayOfMonth){ + break; + } + } + echo '</tr><tr>'; $ColumnCounter=0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2012-02-21 15:56:20
|
Revision: 4947 http://web-erp.svn.sourceforge.net/web-erp/?rev=4947&view=rev Author: tim_schofield Date: 2012-02-21 15:56:08 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Move CopyBOM.php from utilities to the main menu Modified Paths: -------------- trunk/UpgradeDatabase.php trunk/includes/ConnectDB.inc trunk/includes/IndexArray.php trunk/sql/mysql/upgrade4.07-4.08.sql Added Paths: ----------- trunk/CopyBOM.php Removed Paths: ------------- trunk/Z_CopyBOM.php Copied: trunk/CopyBOM.php (from rev 4937, trunk/Z_CopyBOM.php) =================================================================== --- trunk/CopyBOM.php (rev 0) +++ trunk/CopyBOM.php 2012-02-21 15:56:08 UTC (rev 4947) @@ -0,0 +1,168 @@ +<?php +/** + * Author: Ashish Shukla <gmail.com!wahjava> + * + * Script to duplicate BoMs. + */ +/* $Id$*/ + +$title = _('Copy a BOM to New Item Code'); + +include('includes/session.inc'); + +include('includes/header.inc'); + +include('includes/SQL_CommonFunctions.inc'); + +if(isset($_POST['Submit'])) { + $stkid = $_POST['stkid']; + $type = $_POST['type']; + $newstkid = ''; + + if($type == 'N') { + $newstkid = $_POST['tostkid']; + } else { + $newstkid = $_POST['exstkid']; + } + + $result = DB_query("begin", $db); + + if($type == 'N') { + /* duplicate rows into stockmaster */ + $sql = "INSERT INTO stockmaster + SELECT '".$newstkid."' AS stockid, + categoryid, + description, + longdescription, + units, + mbflag, + lastcurcostdate, + actualcost, + lastcost, + materialcost, + labourcost, + overheadcost, + lowestlevel, + discontinued, + controlled, + eoq, + volume, + kgs, + barcode, + discountcategory, + taxcatid, + serialised, + appendfile, + perishable, + decimalplaces, + nextserialno, + pansize, + shrinkfactor, + netweight + FROM stockmaster + WHERE stockid='".$stkid."';"; + $result = DB_query($sql, $db); + } else { + $sql = "SELECT lastcurcostdate, + actualcost, + lastcost, + materialcost, + labourcost, + overheadcost, + lowestlevel + FROM stockmaster + WHERE stockid='".$stkid."';"; + $result = DB_query($sql, $db); + + $row = DB_fetch_row($result); + + $sql = "UPDATE stockmaster set + lastcurcostdate = '".$row[0]."', + actualcost = ".$row[1].", + lastcost = ".$row[2].", + materialcost = ".$row[3].", + labourcost = ".$row[4].", + overheadcost = ".$row[5].", + lowestlevel = ".$row[6]." + WHERE stockid='".$newstkid."';"; + $result = DB_query($sql, $db); + } + + $sql = "INSERT INTO bom + SELECT '".$newstkid."' AS parent, + component, + workcentreadded, + loccode, + effectiveafter, + effectiveto, + quantity, + autoissue + FROM bom + WHERE parent='".$stkid."';"; + $result = DB_query($sql, $db); + + if($type == 'N') { + $sql = "INSERT INTO locstock + SELECT loccode, + '".$newstkid."' AS stockid, + 0 AS quantity, + reorderlevel + FROM locstock + WHERE stockid='".$stkid."';"; + $result = DB_query($sql, $db); + } + + $result = DB_query('commit', $db); + + UpdateCost($db, $newstkid); + + header('Location: BOMs.php?Select='.$newstkid); +} else { + + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Contract') . '" alt="" />' . ' ' . $title . '</p>'; + + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '">'; + echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + + $sql = "SELECT stockid, + description + FROM stockmaster + WHERE stockid IN (SELECT DISTINCT parent FROM bom) + AND mbflag IN ('M', 'A', 'K');"; + $result = DB_query($sql, $db); + + echo '<table class="selection"> + <tr> + <td>' . _('From Stock ID') . '</td>'; + echo '<td><select name="stkid">'; + while($row = DB_fetch_row($result)) { + echo '<option value="'.$row[0].'">'.$row[0].' -- '.$row[1].'</option>'; + } + echo '</select></td> + </tr>'; + echo '<tr> + <td><input type="radio" name="type" value="N" checked="" />' . _(' To New Stock ID') . '</td></td><td>'; + echo '<input type="text" maxlength="20" name="tostkid" /></td></tr>'; + + $sql = "SELECT stockid, + description + FROM stockmaster + WHERE stockid NOT IN (SELECT DISTINCT parent FROM bom) + AND mbflag IN ('M', 'A', 'K');"; + $result = DB_query($sql, $db); + + if (DB_num_rows($result) > 0) { + echo '<tr> + <td><input type="radio" name="type" value="E" />'._('To Existing Stock ID') . '</td><td>'; + echo '<select name="exstkid">'; + while($row = DB_fetch_row($result)) { + echo '<option value="'.$row[0].'">'.$row[0].' -- '.$row[1].'</option>'; + } + echo '</select>'; + } + echo '</table>'; + echo '<br /><div class="centre"><input type="submit" name="Submit" value="Submit" /></div></form>'; + + include('includes/footer.inc'); +} +?> \ No newline at end of file Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/UpgradeDatabase.php 2012-02-21 15:56:08 UTC (rev 4947) @@ -135,7 +135,8 @@ $SQLScripts[] = './sql/mysql/upgrade4.06-4.07.sql'; case '4.07.0': $SQLScripts[] = './sql/mysql/upgrade4.07-4.08.sql'; - case '4.08': + case '4.08.0': + $SQLScripts[] = './sql/mysql/upgrade4.07-4.08.sql'; break; } //end switch } Deleted: trunk/Z_CopyBOM.php =================================================================== --- trunk/Z_CopyBOM.php 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/Z_CopyBOM.php 2012-02-21 15:56:08 UTC (rev 4947) @@ -1,147 +0,0 @@ -<?php -/** - * Author: Ashish Shukla <gmail.com!wahjava> - * - * Script to duplicate BoMs. - */ -/* $Id$*/ - -include('includes/session.inc'); -include('includes/SQL_CommonFunctions.inc'); - -if(isset($_POST['Submit'])) { - $StkID = $_POST['StkID']; - $type = $_POST['type']; - $newStkID = ''; - - if($type == 'N') { - $newStkID = $_POST['toStkID']; - } else { - $newStkID = $_POST['exStkID']; - } - DB_Txn_Begin($db); - - if($type == 'N') { - /* duplicate rows into stockmaster */ - $sql = "INSERT INTO stockmaster - select '" . $newStkID . "' as stockid, - categoryid, - description, - longdescription, - units, - mbflag, - actualcost, - lastcost, - materialcost, - labourcost, - overheadcost, - lowestlevel, - discontinued, - controlled, - eoq, - volume, - kgs, - barcode, - discountcategory, - taxcatid, - serialised, - appendfile, - perishable, - decimalplaces - FROM stockmaster - WHERE stockid='".$StkID."';"; - $result = DB_query($sql, $db); - } - else - { - $sql = "SELECT actualcost, lastcost, materialcost, labourcost, overheadcost, lowestlevel - FROM stockmaster WHERE stockid='".$StkID."';"; - $result = DB_query($sql, $db); - - $row = DB_fetch_row($result); - - $sql = "UPDATE stockmaster SET - actualcost = ".$row[0].", - lastcost = ".$row[1].", - materialcost = ".$row[2].", - labourcost = ".$row[3].", - overheadcost = ".$row[4].", - lowestlevel = ".$row[5]." - WHERE stockid='".$newStkID."';"; - $result = DB_query($sql, $db); - } - - $sql = "INSERT INTO bom - SELECT '".$newStkID."' as parent, - component, - workcentreadded, - loccode, - effectiveafter, - effectiveto, - quantity, - autoissue - FROM bom - WHERE parent='".$StkID."';"; - $result = DB_query($sql, $db); - - if($type == 'N') - { - $sql = "INSERT INTO locstock - SELECT loccode, '".$newStkID."' as stockid,0 as quantity, - reorderlevel - FROM locstock - WHERE stockid='".$StkID."';"; - $result = DB_query($sql, $db); - } - - DB_Txn_Commit($db); - - UpdateCost($db, $newStkID); - - header('Location: BOMs.php?Select='.$newStkID); - } - - else - { - $title = _('UTILITY PAGE To Copy a BOM'); - include('includes/header.inc'); - - echo '<form method="post" action="Z_CopyBOM.php">'; - echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - - $sql = "SELECT stockid, description FROM stockmaster WHERE stockid IN (SELECT DISTINCT parent FROM bom) AND mbflag IN ('M', 'A', 'K');"; - $result = DB_query($sql, $db); - - echo '<br /> - <br />' . _('From Stock ID') . ': <select name="StkID">'; - while($row = DB_fetch_row($result)) { - echo '<option value="' . $row[0] . '">' . $row[0]. ' -- ' . $row[1] . '</option>'; - } - echo '</select> - <br/> - <input type="radio" name="type" value="N" checked="" />' ._('To New Stock ID') .': - <input type="text" maxlength="20" name="toStkID" />'; - - $sql = "SELECT stockid, - description - FROM stockmaster - WHERE stockid NOT IN (SELECT DISTINCT parent FROM bom) - AND mbflag IN ('M', 'A', 'K');"; - $result = DB_query($sql, $db); - - if(DB_num_rows($result) > 0) { - echo '<br/> - <input type="radio" name="type" value="E" />' . _('To Existing Stock ID') . ': - <select name="exStkID">'; - while($row = DB_fetch_row($result)){ - echo '<option value="' . $row[0] .'">' . $row[0] . ' -- ' . $row[1] . '</option>'; - } - echo '</select>'; - } - - echo '<br /> - <input type="submit" name="Submit" value="' . _('Submit') . '" />'; - - include('includes/footer.inc'); -} -?> Modified: trunk/includes/ConnectDB.inc =================================================================== --- trunk/includes/ConnectDB.inc 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/includes/ConnectDB.inc 2012-02-21 15:56:08 UTC (rev 4947) @@ -4,7 +4,7 @@ * this value is saved in the $_SESSION['Versionumber'] when includes/GetConfig.php is run * if VersionNumber is < $Version then the DB update script is run */ -$Version='4.07.1'; //must update manually every time there is a DB change +$Version='4.08.1'; //must update manually every time there is a DB change require_once ($PathPrefix .'includes/MiscFunctions.php'); Modified: trunk/includes/IndexArray.php =================================================================== --- trunk/includes/IndexArray.php 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/includes/IndexArray.php 2012-02-21 15:56:08 UTC (rev 4947) @@ -303,6 +303,7 @@ $MenuItems['manuf']['Maintenance']['Caption'] = array (_('Work Centre'), _('Bills Of Material'), + _('Copy a Bill Of Materials Between Items'), _('Master Schedule'), _('Auto Create Master Schedule'), _('MRP Calculation') @@ -310,6 +311,7 @@ $MenuItems['manuf']['Maintenance']['URL'] = array ('/WorkCentres.php', '/BOMs.php', + '/CopyBOM.php', '/MRPDemands.php', '/MRPCreateDemands.php', '/MRP.php' Modified: trunk/sql/mysql/upgrade4.07-4.08.sql =================================================================== --- trunk/sql/mysql/upgrade4.07-4.08.sql 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/sql/mysql/upgrade4.07-4.08.sql 2012-02-21 15:56:08 UTC (rev 4947) @@ -4,4 +4,6 @@ INSERT INTO `scripts` (`script` ,`pagesecurity` ,`description`) VALUES ('reportwriter/admin/ReportCreator.php', '15', 'Report Writer'); INSERT INTO `scripts` (`script` ,`pagesecurity` ,`description`) VALUES ('RecurringSalesOrdersProcess.php', '1', 'Process Recurring Sales Orders'); -UPDATE config SET confvalue='4.08.0' WHERE confname='VersionNumber'; \ No newline at end of file +UPDATE `scripts` SET `script`='CopyBOM.php' WHERE `script`='Z_CopyBOM.php'; + +UPDATE config SET confvalue='4.08.1' WHERE confname='VersionNumber'; \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <tim...@us...> - 2012-02-21 15:56:20
|
Revision: 4947 http://web-erp.svn.sourceforge.net/web-erp/?rev=4947&view=rev Author: tim_schofield Date: 2012-02-21 15:56:08 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Move CopyBOM.php from utilities to the main menu Modified Paths: -------------- trunk/UpgradeDatabase.php trunk/includes/ConnectDB.inc trunk/includes/IndexArray.php trunk/sql/mysql/upgrade4.07-4.08.sql Added Paths: ----------- trunk/CopyBOM.php Removed Paths: ------------- trunk/Z_CopyBOM.php Copied: trunk/CopyBOM.php (from rev 4937, trunk/Z_CopyBOM.php) =================================================================== --- trunk/CopyBOM.php (rev 0) +++ trunk/CopyBOM.php 2012-02-21 15:56:08 UTC (rev 4947) @@ -0,0 +1,168 @@ +<?php +/** + * Author: Ashish Shukla <gmail.com!wahjava> + * + * Script to duplicate BoMs. + */ +/* $Id$*/ + +$title = _('Copy a BOM to New Item Code'); + +include('includes/session.inc'); + +include('includes/header.inc'); + +include('includes/SQL_CommonFunctions.inc'); + +if(isset($_POST['Submit'])) { + $stkid = $_POST['stkid']; + $type = $_POST['type']; + $newstkid = ''; + + if($type == 'N') { + $newstkid = $_POST['tostkid']; + } else { + $newstkid = $_POST['exstkid']; + } + + $result = DB_query("begin", $db); + + if($type == 'N') { + /* duplicate rows into stockmaster */ + $sql = "INSERT INTO stockmaster + SELECT '".$newstkid."' AS stockid, + categoryid, + description, + longdescription, + units, + mbflag, + lastcurcostdate, + actualcost, + lastcost, + materialcost, + labourcost, + overheadcost, + lowestlevel, + discontinued, + controlled, + eoq, + volume, + kgs, + barcode, + discountcategory, + taxcatid, + serialised, + appendfile, + perishable, + decimalplaces, + nextserialno, + pansize, + shrinkfactor, + netweight + FROM stockmaster + WHERE stockid='".$stkid."';"; + $result = DB_query($sql, $db); + } else { + $sql = "SELECT lastcurcostdate, + actualcost, + lastcost, + materialcost, + labourcost, + overheadcost, + lowestlevel + FROM stockmaster + WHERE stockid='".$stkid."';"; + $result = DB_query($sql, $db); + + $row = DB_fetch_row($result); + + $sql = "UPDATE stockmaster set + lastcurcostdate = '".$row[0]."', + actualcost = ".$row[1].", + lastcost = ".$row[2].", + materialcost = ".$row[3].", + labourcost = ".$row[4].", + overheadcost = ".$row[5].", + lowestlevel = ".$row[6]." + WHERE stockid='".$newstkid."';"; + $result = DB_query($sql, $db); + } + + $sql = "INSERT INTO bom + SELECT '".$newstkid."' AS parent, + component, + workcentreadded, + loccode, + effectiveafter, + effectiveto, + quantity, + autoissue + FROM bom + WHERE parent='".$stkid."';"; + $result = DB_query($sql, $db); + + if($type == 'N') { + $sql = "INSERT INTO locstock + SELECT loccode, + '".$newstkid."' AS stockid, + 0 AS quantity, + reorderlevel + FROM locstock + WHERE stockid='".$stkid."';"; + $result = DB_query($sql, $db); + } + + $result = DB_query('commit', $db); + + UpdateCost($db, $newstkid); + + header('Location: BOMs.php?Select='.$newstkid); +} else { + + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Contract') . '" alt="" />' . ' ' . $title . '</p>'; + + echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '">'; + echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + + $sql = "SELECT stockid, + description + FROM stockmaster + WHERE stockid IN (SELECT DISTINCT parent FROM bom) + AND mbflag IN ('M', 'A', 'K');"; + $result = DB_query($sql, $db); + + echo '<table class="selection"> + <tr> + <td>' . _('From Stock ID') . '</td>'; + echo '<td><select name="stkid">'; + while($row = DB_fetch_row($result)) { + echo '<option value="'.$row[0].'">'.$row[0].' -- '.$row[1].'</option>'; + } + echo '</select></td> + </tr>'; + echo '<tr> + <td><input type="radio" name="type" value="N" checked="" />' . _(' To New Stock ID') . '</td></td><td>'; + echo '<input type="text" maxlength="20" name="tostkid" /></td></tr>'; + + $sql = "SELECT stockid, + description + FROM stockmaster + WHERE stockid NOT IN (SELECT DISTINCT parent FROM bom) + AND mbflag IN ('M', 'A', 'K');"; + $result = DB_query($sql, $db); + + if (DB_num_rows($result) > 0) { + echo '<tr> + <td><input type="radio" name="type" value="E" />'._('To Existing Stock ID') . '</td><td>'; + echo '<select name="exstkid">'; + while($row = DB_fetch_row($result)) { + echo '<option value="'.$row[0].'">'.$row[0].' -- '.$row[1].'</option>'; + } + echo '</select>'; + } + echo '</table>'; + echo '<br /><div class="centre"><input type="submit" name="Submit" value="Submit" /></div></form>'; + + include('includes/footer.inc'); +} +?> \ No newline at end of file Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/UpgradeDatabase.php 2012-02-21 15:56:08 UTC (rev 4947) @@ -135,7 +135,8 @@ $SQLScripts[] = './sql/mysql/upgrade4.06-4.07.sql'; case '4.07.0': $SQLScripts[] = './sql/mysql/upgrade4.07-4.08.sql'; - case '4.08': + case '4.08.0': + $SQLScripts[] = './sql/mysql/upgrade4.07-4.08.sql'; break; } //end switch } Deleted: trunk/Z_CopyBOM.php =================================================================== --- trunk/Z_CopyBOM.php 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/Z_CopyBOM.php 2012-02-21 15:56:08 UTC (rev 4947) @@ -1,147 +0,0 @@ -<?php -/** - * Author: Ashish Shukla <gmail.com!wahjava> - * - * Script to duplicate BoMs. - */ -/* $Id$*/ - -include('includes/session.inc'); -include('includes/SQL_CommonFunctions.inc'); - -if(isset($_POST['Submit'])) { - $StkID = $_POST['StkID']; - $type = $_POST['type']; - $newStkID = ''; - - if($type == 'N') { - $newStkID = $_POST['toStkID']; - } else { - $newStkID = $_POST['exStkID']; - } - DB_Txn_Begin($db); - - if($type == 'N') { - /* duplicate rows into stockmaster */ - $sql = "INSERT INTO stockmaster - select '" . $newStkID . "' as stockid, - categoryid, - description, - longdescription, - units, - mbflag, - actualcost, - lastcost, - materialcost, - labourcost, - overheadcost, - lowestlevel, - discontinued, - controlled, - eoq, - volume, - kgs, - barcode, - discountcategory, - taxcatid, - serialised, - appendfile, - perishable, - decimalplaces - FROM stockmaster - WHERE stockid='".$StkID."';"; - $result = DB_query($sql, $db); - } - else - { - $sql = "SELECT actualcost, lastcost, materialcost, labourcost, overheadcost, lowestlevel - FROM stockmaster WHERE stockid='".$StkID."';"; - $result = DB_query($sql, $db); - - $row = DB_fetch_row($result); - - $sql = "UPDATE stockmaster SET - actualcost = ".$row[0].", - lastcost = ".$row[1].", - materialcost = ".$row[2].", - labourcost = ".$row[3].", - overheadcost = ".$row[4].", - lowestlevel = ".$row[5]." - WHERE stockid='".$newStkID."';"; - $result = DB_query($sql, $db); - } - - $sql = "INSERT INTO bom - SELECT '".$newStkID."' as parent, - component, - workcentreadded, - loccode, - effectiveafter, - effectiveto, - quantity, - autoissue - FROM bom - WHERE parent='".$StkID."';"; - $result = DB_query($sql, $db); - - if($type == 'N') - { - $sql = "INSERT INTO locstock - SELECT loccode, '".$newStkID."' as stockid,0 as quantity, - reorderlevel - FROM locstock - WHERE stockid='".$StkID."';"; - $result = DB_query($sql, $db); - } - - DB_Txn_Commit($db); - - UpdateCost($db, $newStkID); - - header('Location: BOMs.php?Select='.$newStkID); - } - - else - { - $title = _('UTILITY PAGE To Copy a BOM'); - include('includes/header.inc'); - - echo '<form method="post" action="Z_CopyBOM.php">'; - echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - - $sql = "SELECT stockid, description FROM stockmaster WHERE stockid IN (SELECT DISTINCT parent FROM bom) AND mbflag IN ('M', 'A', 'K');"; - $result = DB_query($sql, $db); - - echo '<br /> - <br />' . _('From Stock ID') . ': <select name="StkID">'; - while($row = DB_fetch_row($result)) { - echo '<option value="' . $row[0] . '">' . $row[0]. ' -- ' . $row[1] . '</option>'; - } - echo '</select> - <br/> - <input type="radio" name="type" value="N" checked="" />' ._('To New Stock ID') .': - <input type="text" maxlength="20" name="toStkID" />'; - - $sql = "SELECT stockid, - description - FROM stockmaster - WHERE stockid NOT IN (SELECT DISTINCT parent FROM bom) - AND mbflag IN ('M', 'A', 'K');"; - $result = DB_query($sql, $db); - - if(DB_num_rows($result) > 0) { - echo '<br/> - <input type="radio" name="type" value="E" />' . _('To Existing Stock ID') . ': - <select name="exStkID">'; - while($row = DB_fetch_row($result)){ - echo '<option value="' . $row[0] .'">' . $row[0] . ' -- ' . $row[1] . '</option>'; - } - echo '</select>'; - } - - echo '<br /> - <input type="submit" name="Submit" value="' . _('Submit') . '" />'; - - include('includes/footer.inc'); -} -?> Modified: trunk/includes/ConnectDB.inc =================================================================== --- trunk/includes/ConnectDB.inc 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/includes/ConnectDB.inc 2012-02-21 15:56:08 UTC (rev 4947) @@ -4,7 +4,7 @@ * this value is saved in the $_SESSION['Versionumber'] when includes/GetConfig.php is run * if VersionNumber is < $Version then the DB update script is run */ -$Version='4.07.1'; //must update manually every time there is a DB change +$Version='4.08.1'; //must update manually every time there is a DB change require_once ($PathPrefix .'includes/MiscFunctions.php'); Modified: trunk/includes/IndexArray.php =================================================================== --- trunk/includes/IndexArray.php 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/includes/IndexArray.php 2012-02-21 15:56:08 UTC (rev 4947) @@ -303,6 +303,7 @@ $MenuItems['manuf']['Maintenance']['Caption'] = array (_('Work Centre'), _('Bills Of Material'), + _('Copy a Bill Of Materials Between Items'), _('Master Schedule'), _('Auto Create Master Schedule'), _('MRP Calculation') @@ -310,6 +311,7 @@ $MenuItems['manuf']['Maintenance']['URL'] = array ('/WorkCentres.php', '/BOMs.php', + '/CopyBOM.php', '/MRPDemands.php', '/MRPCreateDemands.php', '/MRP.php' Modified: trunk/sql/mysql/upgrade4.07-4.08.sql =================================================================== --- trunk/sql/mysql/upgrade4.07-4.08.sql 2012-02-21 11:13:54 UTC (rev 4946) +++ trunk/sql/mysql/upgrade4.07-4.08.sql 2012-02-21 15:56:08 UTC (rev 4947) @@ -4,4 +4,6 @@ INSERT INTO `scripts` (`script` ,`pagesecurity` ,`description`) VALUES ('reportwriter/admin/ReportCreator.php', '15', 'Report Writer'); INSERT INTO `scripts` (`script` ,`pagesecurity` ,`description`) VALUES ('RecurringSalesOrdersProcess.php', '1', 'Process Recurring Sales Orders'); -UPDATE config SET confvalue='4.08.0' WHERE confname='VersionNumber'; \ No newline at end of file +UPDATE `scripts` SET `script`='CopyBOM.php' WHERE `script`='Z_CopyBOM.php'; + +UPDATE config SET confvalue='4.08.1' WHERE confname='VersionNumber'; \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 11:14:03
|
Revision: 4946 http://web-erp.svn.sourceforge.net/web-erp/?rev=4946&view=rev Author: ExsonQu Date: 2012-02-21 11:13:54 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed debug message. Reported by PakRichard Fixed by Phil Modified Paths: -------------- branches/stable/DailySalesInquiry.php Modified: branches/stable/DailySalesInquiry.php =================================================================== --- branches/stable/DailySalesInquiry.php 2012-02-21 11:04:57 UTC (rev 4945) +++ branches/stable/DailySalesInquiry.php 2012-02-21 11:13:54 UTC (rev 4946) @@ -17,7 +17,6 @@ if (!isset($_POST['MonthToShow'])){ $_POST['MonthToShow'] = GetPeriod(Date($_SESSION['DefaultDateFormat']),$db); - echo 'Got Month to show of: ' .$_POST['MonthToShow']; $Result = DB_query("SELECT lastdate_in_period FROM periods WHERE periodno='" . $_POST['MonthToShow'] . "'",$db); $myrow = DB_fetch_array($Result); $EndDateSQL = $myrow['lastdate_in_period']; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 11:14:00
|
Revision: 4946 http://web-erp.svn.sourceforge.net/web-erp/?rev=4946&view=rev Author: ExsonQu Date: 2012-02-21 11:13:54 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed debug message. Reported by PakRichard Fixed by Phil Modified Paths: -------------- branches/stable/DailySalesInquiry.php Modified: branches/stable/DailySalesInquiry.php =================================================================== --- branches/stable/DailySalesInquiry.php 2012-02-21 11:04:57 UTC (rev 4945) +++ branches/stable/DailySalesInquiry.php 2012-02-21 11:13:54 UTC (rev 4946) @@ -17,7 +17,6 @@ if (!isset($_POST['MonthToShow'])){ $_POST['MonthToShow'] = GetPeriod(Date($_SESSION['DefaultDateFormat']),$db); - echo 'Got Month to show of: ' .$_POST['MonthToShow']; $Result = DB_query("SELECT lastdate_in_period FROM periods WHERE periodno='" . $_POST['MonthToShow'] . "'",$db); $myrow = DB_fetch_array($Result); $EndDateSQL = $myrow['lastdate_in_period']; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 11:05:08
|
Revision: 4945 http://web-erp.svn.sourceforge.net/web-erp/?rev=4945&view=rev Author: ExsonQu Date: 2012-02-21 11:04:57 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed bugs that when customer log in, the submit Sales orders will not be the price defined. Wrong data will be stored in salesorderdetails. Reported by CQZ from webERP Chinese QQ group Modified Paths: -------------- trunk/SelectOrderItems.php Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2012-02-21 10:49:24 UTC (rev 4944) +++ trunk/SelectOrderItems.php 2012-02-21 11:04:57 UTC (rev 4945) @@ -1391,6 +1391,7 @@ <td><input class="number" type="text" name="GPPercent_' . $OrderLine->LineNumber . '" size="4" maxlength="40" value="' . locale_number_format($OrderLine->GPPercent,2) . '" /></td>'; } else { echo '<td class="number">' . locale_number_format($OrderLine->Price,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td><td></td>'; + echo '<td><input class="number" type="hidden" name="GPPercent_' . $OrderLine->LineNumber . '" size="4" maxlength="40" value="' . locale_number_format($OrderLine->GPPercent,2) . '" /></td>'; echo '<input type="hidden" name="Price_' . $OrderLine->LineNumber . '" value="' . locale_number_format($OrderLine->Price,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '" />'; } if ($_SESSION['Items'.$identifier]->Some_Already_Delivered($OrderLine->LineNumber)){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 11:05:08
|
Revision: 4945 http://web-erp.svn.sourceforge.net/web-erp/?rev=4945&view=rev Author: ExsonQu Date: 2012-02-21 11:04:57 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed bugs that when customer log in, the submit Sales orders will not be the price defined. Wrong data will be stored in salesorderdetails. Reported by CQZ from webERP Chinese QQ group Modified Paths: -------------- trunk/SelectOrderItems.php Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2012-02-21 10:49:24 UTC (rev 4944) +++ trunk/SelectOrderItems.php 2012-02-21 11:04:57 UTC (rev 4945) @@ -1391,6 +1391,7 @@ <td><input class="number" type="text" name="GPPercent_' . $OrderLine->LineNumber . '" size="4" maxlength="40" value="' . locale_number_format($OrderLine->GPPercent,2) . '" /></td>'; } else { echo '<td class="number">' . locale_number_format($OrderLine->Price,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td><td></td>'; + echo '<td><input class="number" type="hidden" name="GPPercent_' . $OrderLine->LineNumber . '" size="4" maxlength="40" value="' . locale_number_format($OrderLine->GPPercent,2) . '" /></td>'; echo '<input type="hidden" name="Price_' . $OrderLine->LineNumber . '" value="' . locale_number_format($OrderLine->Price,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '" />'; } if ($_SESSION['Items'.$identifier]->Some_Already_Delivered($OrderLine->LineNumber)){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 10:49:35
|
Revision: 4944 http://web-erp.svn.sourceforge.net/web-erp/?rev=4944&view=rev Author: ExsonQu Date: 2012-02-21 10:49:24 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed $_SESSION overlap issue by Phil Modified Paths: -------------- branches/stable/StockAdjustmentsControlled.php Modified: branches/stable/StockAdjustmentsControlled.php =================================================================== --- branches/stable/StockAdjustmentsControlled.php 2012-02-21 10:48:18 UTC (rev 4943) +++ branches/stable/StockAdjustmentsControlled.php 2012-02-21 10:49:24 UTC (rev 4944) @@ -10,8 +10,14 @@ /* Session started in header.inc for password checking and authorisation level check */ include('includes/header.inc'); +if (empty($_GET['identifier'])) { + /*unique session identifier to ensure that there is no conflict with other stock adjustment sessions on the same machine */ + $identifier=date('U'); +} else { + $identifier=$_GET['identifier']; +} -if (!isset($_SESSION['Adjustment'])) { +if (!isset($_SESSION['Adjustment'.$identifier])) { /* This page can only be called when a stock adjustment is pending */ echo '<div class="centre"><a href="' . $rootpath . '/StockAdjustments.php?NewAdjustment=Yes">'. _('Enter A Stock Adjustment'). '</a><br />'; prnMsg( _('This page can only be opened if a stock adjustment for a controlled item has been entered').'<br />','error'); @@ -19,14 +25,14 @@ include('includes/footer.inc'); exit; } -if (isset($_SESSION['Adjustment'])){ +if (isset($_SESSION['Adjustment'.$identifier])){ if (isset($_GET['AdjType']) and $_GET['AdjType']!=''){ - $_SESSION['Adjustment']->AdjustmentType = $_GET['AdjType']; + $_SESSION['Adjustment'.$identifier]->AdjustmentType = $_GET['AdjType']; } } /*Save some typing by referring to the line item class object in short form */ -$LineItem = $_SESSION['Adjustment']; +$LineItem = $_SESSION['Adjustment'.$identifier]; //Make sure this item is really controlled if ( $LineItem->Controlled != 1 ){ @@ -44,7 +50,7 @@ echo '<br /><font size="2"><b>'. _('Adjustment of controlled item').' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription ; /** vars needed by InputSerialItem : **/ -$LocationOut = $_SESSION['Adjustment']->StockLocation; +$LocationOut = $_SESSION['Adjustment'.$identifier]->StockLocation; $StockID = $LineItem->StockID; if ($LineItem->AdjustmentType == 'ADD'){ echo '<br />'. _('Adding Items').'...'; @@ -66,7 +72,7 @@ /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for adjusting */ -$_SESSION['Adjustment']->Quantity = $TotalQuantity; +$_SESSION['Adjustment'.$identifier]->Quantity = $TotalQuantity; /*Also a multi select box for adding bundles to the adjustment without keying, showing only when keying */ include('includes/footer.inc'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 10:49:35
|
Revision: 4944 http://web-erp.svn.sourceforge.net/web-erp/?rev=4944&view=rev Author: ExsonQu Date: 2012-02-21 10:49:24 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed $_SESSION overlap issue by Phil Modified Paths: -------------- branches/stable/StockAdjustmentsControlled.php Modified: branches/stable/StockAdjustmentsControlled.php =================================================================== --- branches/stable/StockAdjustmentsControlled.php 2012-02-21 10:48:18 UTC (rev 4943) +++ branches/stable/StockAdjustmentsControlled.php 2012-02-21 10:49:24 UTC (rev 4944) @@ -10,8 +10,14 @@ /* Session started in header.inc for password checking and authorisation level check */ include('includes/header.inc'); +if (empty($_GET['identifier'])) { + /*unique session identifier to ensure that there is no conflict with other stock adjustment sessions on the same machine */ + $identifier=date('U'); +} else { + $identifier=$_GET['identifier']; +} -if (!isset($_SESSION['Adjustment'])) { +if (!isset($_SESSION['Adjustment'.$identifier])) { /* This page can only be called when a stock adjustment is pending */ echo '<div class="centre"><a href="' . $rootpath . '/StockAdjustments.php?NewAdjustment=Yes">'. _('Enter A Stock Adjustment'). '</a><br />'; prnMsg( _('This page can only be opened if a stock adjustment for a controlled item has been entered').'<br />','error'); @@ -19,14 +25,14 @@ include('includes/footer.inc'); exit; } -if (isset($_SESSION['Adjustment'])){ +if (isset($_SESSION['Adjustment'.$identifier])){ if (isset($_GET['AdjType']) and $_GET['AdjType']!=''){ - $_SESSION['Adjustment']->AdjustmentType = $_GET['AdjType']; + $_SESSION['Adjustment'.$identifier]->AdjustmentType = $_GET['AdjType']; } } /*Save some typing by referring to the line item class object in short form */ -$LineItem = $_SESSION['Adjustment']; +$LineItem = $_SESSION['Adjustment'.$identifier]; //Make sure this item is really controlled if ( $LineItem->Controlled != 1 ){ @@ -44,7 +50,7 @@ echo '<br /><font size="2"><b>'. _('Adjustment of controlled item').' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription ; /** vars needed by InputSerialItem : **/ -$LocationOut = $_SESSION['Adjustment']->StockLocation; +$LocationOut = $_SESSION['Adjustment'.$identifier]->StockLocation; $StockID = $LineItem->StockID; if ($LineItem->AdjustmentType == 'ADD'){ echo '<br />'. _('Adding Items').'...'; @@ -66,7 +72,7 @@ /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for adjusting */ -$_SESSION['Adjustment']->Quantity = $TotalQuantity; +$_SESSION['Adjustment'.$identifier]->Quantity = $TotalQuantity; /*Also a multi select box for adding bundles to the adjustment without keying, showing only when keying */ include('includes/footer.inc'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 10:48:29
|
Revision: 4943 http://web-erp.svn.sourceforge.net/web-erp/?rev=4943&view=rev Author: ExsonQu Date: 2012-02-21 10:48:18 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed $_SESSION overlap issues by Phil Modified Paths: -------------- branches/stable/StockAdjustments.php Modified: branches/stable/StockAdjustments.php =================================================================== --- branches/stable/StockAdjustments.php 2012-02-21 10:47:12 UTC (rev 4942) +++ branches/stable/StockAdjustments.php 2012-02-21 10:48:18 UTC (rev 4943) @@ -10,83 +10,79 @@ include('includes/header.inc'); include('includes/SQL_CommonFunctions.inc'); +if (empty($_GET['identifier'])) { + /*unique session identifier to ensure that there is no conflict with other adjustment sessions on the same machine */ + $identifier=date('U'); +} else { + $identifier=$_GET['identifier']; +} + if (isset($_GET['NewAdjustment'])){ - unset($_SESSION['Adjustment']); - $_SESSION['Adjustment'] = new StockAdjustment(); + unset($_SESSION['Adjustment' . $identifier]); + $_SESSION['Adjustment' . $identifier] = new StockAdjustment(); } -if (!isset($_SESSION['Adjustment'])){ - $_SESSION['Adjustment'] = new StockAdjustment(); +if (!isset($_SESSION['Adjustment' . $identifier])){ + $_SESSION['Adjustment' . $identifier] = new StockAdjustment(); } $NewAdjustment = false; if (isset($_GET['StockID'])){ + $NewAdjustment = true; $StockID = trim(mb_strtoupper($_GET['StockID'])); - $_SESSION['Adjustment']->StockID = trim(mb_strtoupper($StockID)); +} elseif (isset($_POST['StockID'])){ + if($_POST['StockID'] != $_SESSION['Adjustment' . $identifier]->StockID){ + $NewAdjustment = true; + $StockID = trim(mb_strtoupper($_POST['StockID'])); + } +} +if ($NewAdjustment==true){ + + $_SESSION['Adjustment' . $identifier]->StockID = trim(mb_strtoupper($StockID)); $result = DB_query("SELECT description, controlled, serialised, decimalplaces, - perishable + perishable, + materialcost+labourcost+overheadcost AS totalcost, + units FROM stockmaster - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db); + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "'",$db); $myrow = DB_fetch_array($result); - $_SESSION['Adjustment']->ItemDescription = $myrow['description']; - $_SESSION['Adjustment']->Controlled = $myrow['controlled']; - $_SESSION['Adjustment']->Serialised = $myrow['serialised']; - $_SESSION['Adjustment']->DecimalPlaces = $myrow['decimalplaces']; - $_SESSION['Adjustment']->SerialItems = array(); - if (!isset($_SESSION['Adjustment']->Quantity) OR !is_numeric($_SESSION['Adjustment']->Quantity)){ - $_SESSION['Adjustment']->Quantity=0; + $_SESSION['Adjustment' . $identifier]->ItemDescription = $myrow['description']; + $_SESSION['Adjustment' . $identifier]->Controlled = $myrow['controlled']; + $_SESSION['Adjustment' . $identifier]->Serialised = $myrow['serialised']; + $_SESSION['Adjustment' . $identifier]->DecimalPlaces = $myrow['decimalplaces']; + $_SESSION['Adjustment' . $identifier]->SerialItems = array(); + if (!isset($_SESSION['Adjustment' . $identifier]->Quantity) OR !is_numeric($_SESSION['Adjustment' . $identifier]->Quantity)){ + $_SESSION['Adjustment' . $identifier]->Quantity=0; } - $NewAdjustment = true; -} elseif (isset($_POST['StockID'])){ - if(isset($_POST['StockID']) - AND $_POST['StockID'] != $_SESSION['Adjustment']->StockID){ - - $NewAdjustment = true; - $_SESSION['Adjustment']->StockID = trim(mb_strtoupper($_POST['StockID'])); - $StockID = trim(mb_strtoupper($_POST['StockID'])); - } - //Get item data - $result = DB_query("SELECT description, - controlled, - serialised, - decimalplaces, - perishable - FROM stockmaster - WHERE stockid=' " . $_SESSION['Adjustment']->StockID . "'",$db); - $myrow = DB_fetch_array($result); - $_SESSION['Adjustment']->ItemDescription = $myrow['description']; - $_SESSION['Adjustment']->Controlled = $myrow['controlled']; - $_SESSION['Adjustment']->Serialised = $myrow['serialised']; - $_SESSION['Adjustment']->DecimalPlaces = $myrow['decimalplaces']; - DB_free_result($result); - $sql="SELECT materialcost, - labourcost, - overheadcost, - units, - decimalplaces - FROM stockmaster - WHERE stockid='".$_SESSION['Adjustment']->StockID . "'"; - - $result=DB_query($sql, $db); - $myrow=DB_fetch_array($result); - $_SESSION['Adjustment']->PartUnit=$myrow['units']; - $_SESSION['Adjustment']->StandardCost=$myrow['materialcost']+$myrow['labourcost']+$myrow['overheadcost']; + $_SESSION['Adjustment' . $identifier]->PartUnit=$myrow['units']; + $_SESSION['Adjustment' . $identifier]->StandardCost=$myrow['totalcost']; $DecimalPlaces = $myrow['decimalplaces']; DB_free_result($result); - $_SESSION['Adjustment']->tag = $_POST['tag']; - $_SESSION['Adjustment']->Narrative = $_POST['Narrative']; - $_SESSION['Adjustment']->StockLocation = $_POST['StockLocation']; + +} //end if it's a new adjustment +if (isset($_POST['tag'])){ + $_SESSION['Adjustment' . $identifier]->tag = $_POST['tag']; +} +if (isset($_POST['Narrative'])){ + $_SESSION['Adjustment' . $identifier]->Narrative = $_POST['Narrative']; +} +if (isset($_POST['StockLocation'])){ + $_SESSION['Adjustment' . $identifier]->StockLocation = $_POST['StockLocation']; +} +if (isset($_POST['Quantity'])){ if ($_POST['Quantity']=='' OR !is_numeric(filter_number_format($_POST['Quantity']))){ $_POST['Quantity']=0; } - $_SESSION['Adjustment']->Quantity = filter_number_format($_POST['Quantity']); +} else { + $_POST['Quantity']=0; } +$_SESSION['Adjustment' . $identifier]->Quantity = filter_number_format($_POST['Quantity']); echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Inventory Adjustment') . '" alt="" />' . ' ' . _('Inventory Adjustment') . '</p>'; @@ -128,29 +124,29 @@ if (isset($_POST['EnterAdjustment']) AND $_POST['EnterAdjustment']!= ''){ $InputError = false; /*Start by hoping for the best */ - $result = DB_query("SELECT * FROM stockmaster WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db); + $result = DB_query("SELECT * FROM stockmaster WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "'",$db); $myrow = DB_fetch_row($result); if (DB_num_rows($result)==0) { prnMsg( _('The entered item code does not exist'),'error'); $InputError = true; - } elseif (!is_numeric($_SESSION['Adjustment']->Quantity)){ + } elseif (!is_numeric($_SESSION['Adjustment' . $identifier]->Quantity)){ prnMsg( _('The quantity entered must be numeric'),'error'); $InputError = true; - } elseif ($_SESSION['Adjustment']->Quantity==0){ + } elseif ($_SESSION['Adjustment' . $identifier]->Quantity==0){ prnMsg( _('The quantity entered cannot be zero') . '. ' . _('There would be no adjustment to make'),'error'); $InputError = true; - } elseif ($_SESSION['Adjustment']->Controlled==1 AND count($_SESSION['Adjustment']->SerialItems)==0) { + } elseif ($_SESSION['Adjustment' . $identifier]->Controlled==1 AND count($_SESSION['Adjustment' . $identifier]->SerialItems)==0) { prnMsg( _('The item entered is a controlled item that requires the detail of the serial numbers or batch references to be adjusted to be entered'),'error'); $InputError = true; } if ($_SESSION['ProhibitNegativeStock']==1){ $SQL = "SELECT quantity FROM locstock - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode='" . $_SESSION['Adjustment']->StockLocation . "'"; + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode='" . $_SESSION['Adjustment' . $identifier]->StockLocation . "'"; $CheckNegResult=DB_query($SQL,$db); $CheckNegRow = DB_fetch_array($CheckNegResult); - if ($CheckNegRow['quantity']+$_SESSION['Adjustment']->Quantity <0){ + if ($CheckNegRow['quantity']+$_SESSION['Adjustment' . $identifier]->Quantity <0){ $InputError=true; prnMsg(_('The system parameters are set to prohibit negative stocks. Processing this stock adjustment would result in negative stock at this location. This adjustment will not be processed.'),'error'); } @@ -169,8 +165,8 @@ // Need to get the current location quantity will need it later for the stock movement $SQL="SELECT locstock.quantity FROM locstock - WHERE locstock.stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode= '" . $_SESSION['Adjustment']->StockLocation . "'"; + WHERE locstock.stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode= '" . $_SESSION['Adjustment' . $identifier]->StockLocation . "'"; $Result = DB_query($SQL, $db); if (DB_num_rows($Result)==1){ $LocQtyRow = DB_fetch_row($Result); @@ -190,15 +186,15 @@ qty, newqoh) VALUES ( - '" . $_SESSION['Adjustment']->StockID . "', + '" . $_SESSION['Adjustment' . $identifier]->StockID . "', 17, '" . $AdjustmentNumber . "', - '" . $_SESSION['Adjustment']->StockLocation . "', + '" . $_SESSION['Adjustment' . $identifier]->StockLocation . "', '" . $SQLAdjustmentDate . "', '" . $PeriodNo . "', - '" . $_SESSION['Adjustment']->Narrative ."', - '" . $_SESSION['Adjustment']->Quantity . "', - '" . ($QtyOnHandPrior + $_SESSION['Adjustment']->Quantity) . "' + '" . $_SESSION['Adjustment' . $identifier]->Narrative ."', + '" . $_SESSION['Adjustment' . $identifier]->Quantity . "', + '" . ($QtyOnHandPrior + $_SESSION['Adjustment' . $identifier]->Quantity) . "' )"; @@ -211,16 +207,16 @@ /*Insert the StockSerialMovements and update the StockSerialItems for controlled items*/ - if ($_SESSION['Adjustment']->Controlled ==1){ - foreach($_SESSION['Adjustment']->SerialItems as $Item){ + if ($_SESSION['Adjustment' . $identifier]->Controlled ==1){ + foreach($_SESSION['Adjustment' . $identifier]->SerialItems as $Item){ /*We need to add or update the StockSerialItem record and The StockSerialMoves as well */ /*First need to check if the serial items already exists or not */ $SQL = "SELECT COUNT(*) FROM stockserialitems - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode='" . $_SESSION['Adjustment']->StockLocation . "' + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode='" . $_SESSION['Adjustment' . $identifier]->StockLocation . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('Unable to determine if the serial item exists'); $Result = DB_query($SQL,$db,$ErrMsg); @@ -229,8 +225,8 @@ if ($SerialItemExistsRow[0]==1){ $SQL = "UPDATE stockserialitems SET quantity= quantity + " . $Item->BundleQty . " - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode='" . $_SESSION['Adjustment']->StockLocation . "' + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode='" . $_SESSION['Adjustment' . $identifier]->StockLocation . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The serial stock item record could not be updated because'); @@ -244,8 +240,8 @@ qualitytext, quantity, expirationdate) - VALUES ('" . $_SESSION['Adjustment']->StockID . "', - '" . $_SESSION['Adjustment']->StockLocation . "', + VALUES ('" . $_SESSION['Adjustment' . $identifier]->StockID . "', + '" . $_SESSION['Adjustment' . $identifier]->StockLocation . "', '" . $Item->BundleRef . "', '', '" . $Item->BundleQty . "', @@ -264,7 +260,7 @@ serialno, moveqty) VALUES ('" . $StkMoveNo . "', - '" . $_SESSION['Adjustment']->StockID . "', + '" . $_SESSION['Adjustment' . $identifier]->StockID . "', '" . $Item->BundleRef . "', '" . $Item->BundleQty . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The serial stock movement record could not be inserted because'); @@ -276,18 +272,18 @@ - $SQL = "UPDATE locstock SET quantity = quantity + '" . $_SESSION['Adjustment']->Quantity . "' - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode='" . $_SESSION['Adjustment']->StockLocation . "'"; + $SQL = "UPDATE locstock SET quantity = quantity + '" . $_SESSION['Adjustment' . $identifier]->Quantity . "' + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode='" . $_SESSION['Adjustment' . $identifier]->StockLocation . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' ._('The location stock record could not be updated because'); $DbgMsg = _('The following SQL to update the stock record was used'); $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true); - if ($_SESSION['CompanyRecord']['gllink_stock']==1 AND $_SESSION['Adjustment']->StandardCost > 0){ + if ($_SESSION['CompanyRecord']['gllink_stock']==1 AND $_SESSION['Adjustment' . $identifier]->StandardCost > 0){ - $StockGLCodes = GetStockGLCode($_SESSION['Adjustment']->StockID,$db); + $StockGLCodes = GetStockGLCode($_SESSION['Adjustment' . $identifier]->StockID,$db); $SQL = "INSERT INTO gltrans (type, typeno, @@ -302,10 +298,10 @@ '" . $SQLAdjustmentDate . "', '" . $PeriodNo . "', '" . $StockGLCodes['adjglact'] . "', - '" . round($_SESSION['Adjustment']->StandardCost * -($_SESSION['Adjustment']->Quantity), $_SESSION['CompanyRecord']['decimalplaces']) . "', - '" . $_SESSION['Adjustment']->StockID . " x " . $_SESSION['Adjustment']->Quantity . " @ " . - $_SESSION['Adjustment']->StandardCost . " " . $_SESSION['Adjustment']->Narrative . "', - '" . $_SESSION['Adjustment']->tag . "' + '" . round($_SESSION['Adjustment' . $identifier]->StandardCost * -($_SESSION['Adjustment' . $identifier]->Quantity), $_SESSION['CompanyRecord']['decimalplaces']) . "', + '" . $_SESSION['Adjustment' . $identifier]->StockID . " x " . $_SESSION['Adjustment' . $identifier]->Quantity . " @ " . + $_SESSION['Adjustment' . $identifier]->StandardCost . " " . $_SESSION['Adjustment' . $identifier]->Narrative . "', + '" . $_SESSION['Adjustment' . $identifier]->tag . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction entries could not be added because'); @@ -325,9 +321,9 @@ '" . $SQLAdjustmentDate . "', '" . $PeriodNo . "', '" . $StockGLCodes['stockact'] . "', - '" . round($_SESSION['Adjustment']->StandardCost * $_SESSION['Adjustment']->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . "', - '" . $_SESSION['Adjustment']->StockID . " x " . $_SESSION['Adjustment']->Quantity . " @ " . $_SESSION['Adjustment']->StandardCost . " " . $_SESSION['Adjustment']->Narrative . "', - '" . $_SESSION['Adjustment']->tag . "' + '" . round($_SESSION['Adjustment' . $identifier]->StandardCost * $_SESSION['Adjustment' . $identifier]->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . "', + '" . $_SESSION['Adjustment' . $identifier]->StockID . " x " . $_SESSION['Adjustment' . $identifier]->Quantity . " @ " . $_SESSION['Adjustment' . $identifier]->StandardCost . " " . $_SESSION['Adjustment' . $identifier]->Narrative . "', + '" . $_SESSION['Adjustment' . $identifier]->tag . "' )"; $Errmsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction entries could not be added because'); @@ -339,16 +335,16 @@ $Result = DB_Txn_Commit($db); - $ConfirmationText = _('A stock adjustment for'). ' ' . $_SESSION['Adjustment']->StockID . ' - ' . $_SESSION['Adjustment']->ItemDescription . ' '._('has been created from location').' ' . $_SESSION['Adjustment']->StockLocation .' '. _('for a quantity of') . ' ' . locale_number_format($_SESSION['Adjustment']->Quantity,$_SESSION['Adjustment']->DecimalPlaces) ; + $ConfirmationText = _('A stock adjustment for'). ' ' . $_SESSION['Adjustment' . $identifier]->StockID . ' - ' . $_SESSION['Adjustment' . $identifier]->ItemDescription . ' '._('has been created from location').' ' . $_SESSION['Adjustment' . $identifier]->StockLocation .' '. _('for a quantity of') . ' ' . locale_number_format($_SESSION['Adjustment' . $identifier]->Quantity,$_SESSION['Adjustment' . $identifier]->DecimalPlaces) ; prnMsg( $ConfirmationText,'success'); if ($_SESSION['InventoryManagerEmail']!=''){ $ConfirmationText = $ConfirmationText . ' ' . _('by user') . ' ' . $_SESSION['UserID'] . ' ' . _('at') . ' ' . Date('Y-m-d H:i:s'); - $EmailSubject = _('Stock adjustment for'). ' ' . $_SESSION['Adjustment']->StockID; + $EmailSubject = _('Stock adjustment for'). ' ' . $_SESSION['Adjustment' . $identifier]->StockID; mail($_SESSION['InventoryManagerEmail'],$EmailSubject,$ConfirmationText); } - unset ($_SESSION['Adjustment']); + unset ($_SESSION['Adjustment' . $identifier]); } /* end if there was no input error */ }/* end if the user hit enter the adjustment */ @@ -357,15 +353,15 @@ echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -if (!isset($_SESSION['Adjustment'])) { +if (!isset($_SESSION['Adjustment' . $identifier])) { $StockID=''; $Controlled= 0; $Quantity = 0; $DecimalPlaces =2; } else { - $StockID = $_SESSION['Adjustment']->StockID; - $Controlled = $_SESSION['Adjustment']->Controlled; - $Quantity = $_SESSION['Adjustment']->Quantity; + $StockID = $_SESSION['Adjustment' . $identifier]->StockID; + $Controlled = $_SESSION['Adjustment' . $identifier]->Controlled; + $Quantity = $_SESSION['Adjustment' . $identifier]->Quantity; $sql="SELECT materialcost, labourcost, overheadcost, @@ -376,8 +372,8 @@ $result=DB_query($sql, $db); $myrow=DB_fetch_array($result); - $_SESSION['Adjustment']->PartUnit=$myrow['units']; - $_SESSION['Adjustment']->StandardCost=$myrow['materialcost']+$myrow['labourcost']+$myrow['overheadcost']; + $_SESSION['Adjustment' . $identifier]->PartUnit=$myrow['units']; + $_SESSION['Adjustment' . $identifier]->StandardCost=$myrow['materialcost']+$myrow['labourcost']+$myrow['overheadcost']; $DecimalPlaces = $myrow['decimalplaces']; } echo '<br /> @@ -406,9 +402,9 @@ echo '</td> <td><input type="submit" name="CheckCode" value="'._('Check Part').'" /></td> </tr>'; -if (isset($_SESSION['Adjustment']) AND mb_strlen($_SESSION['Adjustment']->ItemDescription)>1){ +if (isset($_SESSION['Adjustment' . $identifier]) AND mb_strlen($_SESSION['Adjustment' . $identifier]->ItemDescription)>1){ echo '<tr> - <td colspan="3"><font color="blue" size="3">' . $_SESSION['Adjustment']->ItemDescription . ' ('._('In Units of').' ' . $_SESSION['Adjustment']->PartUnit . ' ) - ' . _('Unit Cost').' = ' . locale_number_format($_SESSION['Adjustment']->StandardCost,4) . '</font></td> + <td colspan="3"><font color="blue" size="3">' . $_SESSION['Adjustment' . $identifier]->ItemDescription . ' ('._('In Units of').' ' . $_SESSION['Adjustment' . $identifier]->PartUnit . ' ) - ' . _('Unit Cost').' = ' . locale_number_format($_SESSION['Adjustment' . $identifier]->StandardCost,4) . '</font></td> </tr>'; } @@ -418,8 +414,8 @@ $sql = "SELECT loccode, locationname FROM locations"; $resultStkLocs = DB_query($sql,$db); while ($myrow=DB_fetch_array($resultStkLocs)){ - if (isset($_SESSION['Adjustment']->StockLocation)){ - if ($myrow['loccode'] == $_SESSION['Adjustment']->StockLocation){ + if (isset($_SESSION['Adjustment' . $identifier]->StockLocation)){ + if ($myrow['loccode'] == $_SESSION['Adjustment' . $identifier]->StockLocation){ echo '<option selected="selected" value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; @@ -433,8 +429,8 @@ } echo '</select></td></tr>'; -if (isset($_SESSION['Adjustment']) AND !isset($_SESSION['Adjustment']->Narrative)) { - $_SESSION['Adjustment']->Narrative = ''; +if (isset($_SESSION['Adjustment' . $identifier]) AND !isset($_SESSION['Adjustment' . $identifier]->Narrative)) { + $_SESSION['Adjustment' . $identifier]->Narrative = ''; $Narrative =''; } else { $Narrative =''; @@ -449,11 +445,11 @@ echo '<td>'; if ($Controlled==1){ - if ($_SESSION['Adjustment']->StockLocation == ''){ - $_SESSION['Adjustment']->StockLocation = $_SESSION['UserStockLocation']; + if ($_SESSION['Adjustment' . $identifier]->StockLocation == ''){ + $_SESSION['Adjustment' . $identifier]->StockLocation = $_SESSION['UserStockLocation']; } - echo '<input type="hidden" name="Quantity" value="' . $_SESSION['Adjustment']->Quantity . '" /> - '.locale_number_format($_SESSION['Adjustment']->Quantity,$DecimalPlaces) .' + echo '<input type="hidden" name="Quantity" value="' . $_SESSION['Adjustment' . $identifier]->Quantity . '" /> + '.locale_number_format($_SESSION['Adjustment' . $identifier]->Quantity,$DecimalPlaces) .' [<a href="'.$rootpath.'/StockAdjustmentsControlled.php?AdjType=REMOVE">'._('Remove').'</a>] [<a href="'.$rootpath.'/StockAdjustmentsControlled.php?AdjType=ADD">'._('Add').'</a>]'; } else { @@ -473,7 +469,7 @@ $result=DB_query($SQL,$db); echo '<option value="0">0 - ' . _('None') . '</option>'; while ($myrow=DB_fetch_array($result)){ - if (isset($_SESSION['Adjustment']->tag) AND $_SESSION['Adjustment']->tag==$myrow['tagref']){ + if (isset($_SESSION['Adjustment' . $identifier]->tag) AND $_SESSION['Adjustment' . $identifier]->tag==$myrow['tagref']){ echo '<option selected="selected" value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } else { echo '<option value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription']. '</option>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 10:48:29
|
Revision: 4943 http://web-erp.svn.sourceforge.net/web-erp/?rev=4943&view=rev Author: ExsonQu Date: 2012-02-21 10:48:18 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed $_SESSION overlap issues by Phil Modified Paths: -------------- branches/stable/StockAdjustments.php Modified: branches/stable/StockAdjustments.php =================================================================== --- branches/stable/StockAdjustments.php 2012-02-21 10:47:12 UTC (rev 4942) +++ branches/stable/StockAdjustments.php 2012-02-21 10:48:18 UTC (rev 4943) @@ -10,83 +10,79 @@ include('includes/header.inc'); include('includes/SQL_CommonFunctions.inc'); +if (empty($_GET['identifier'])) { + /*unique session identifier to ensure that there is no conflict with other adjustment sessions on the same machine */ + $identifier=date('U'); +} else { + $identifier=$_GET['identifier']; +} + if (isset($_GET['NewAdjustment'])){ - unset($_SESSION['Adjustment']); - $_SESSION['Adjustment'] = new StockAdjustment(); + unset($_SESSION['Adjustment' . $identifier]); + $_SESSION['Adjustment' . $identifier] = new StockAdjustment(); } -if (!isset($_SESSION['Adjustment'])){ - $_SESSION['Adjustment'] = new StockAdjustment(); +if (!isset($_SESSION['Adjustment' . $identifier])){ + $_SESSION['Adjustment' . $identifier] = new StockAdjustment(); } $NewAdjustment = false; if (isset($_GET['StockID'])){ + $NewAdjustment = true; $StockID = trim(mb_strtoupper($_GET['StockID'])); - $_SESSION['Adjustment']->StockID = trim(mb_strtoupper($StockID)); +} elseif (isset($_POST['StockID'])){ + if($_POST['StockID'] != $_SESSION['Adjustment' . $identifier]->StockID){ + $NewAdjustment = true; + $StockID = trim(mb_strtoupper($_POST['StockID'])); + } +} +if ($NewAdjustment==true){ + + $_SESSION['Adjustment' . $identifier]->StockID = trim(mb_strtoupper($StockID)); $result = DB_query("SELECT description, controlled, serialised, decimalplaces, - perishable + perishable, + materialcost+labourcost+overheadcost AS totalcost, + units FROM stockmaster - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db); + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "'",$db); $myrow = DB_fetch_array($result); - $_SESSION['Adjustment']->ItemDescription = $myrow['description']; - $_SESSION['Adjustment']->Controlled = $myrow['controlled']; - $_SESSION['Adjustment']->Serialised = $myrow['serialised']; - $_SESSION['Adjustment']->DecimalPlaces = $myrow['decimalplaces']; - $_SESSION['Adjustment']->SerialItems = array(); - if (!isset($_SESSION['Adjustment']->Quantity) OR !is_numeric($_SESSION['Adjustment']->Quantity)){ - $_SESSION['Adjustment']->Quantity=0; + $_SESSION['Adjustment' . $identifier]->ItemDescription = $myrow['description']; + $_SESSION['Adjustment' . $identifier]->Controlled = $myrow['controlled']; + $_SESSION['Adjustment' . $identifier]->Serialised = $myrow['serialised']; + $_SESSION['Adjustment' . $identifier]->DecimalPlaces = $myrow['decimalplaces']; + $_SESSION['Adjustment' . $identifier]->SerialItems = array(); + if (!isset($_SESSION['Adjustment' . $identifier]->Quantity) OR !is_numeric($_SESSION['Adjustment' . $identifier]->Quantity)){ + $_SESSION['Adjustment' . $identifier]->Quantity=0; } - $NewAdjustment = true; -} elseif (isset($_POST['StockID'])){ - if(isset($_POST['StockID']) - AND $_POST['StockID'] != $_SESSION['Adjustment']->StockID){ - - $NewAdjustment = true; - $_SESSION['Adjustment']->StockID = trim(mb_strtoupper($_POST['StockID'])); - $StockID = trim(mb_strtoupper($_POST['StockID'])); - } - //Get item data - $result = DB_query("SELECT description, - controlled, - serialised, - decimalplaces, - perishable - FROM stockmaster - WHERE stockid=' " . $_SESSION['Adjustment']->StockID . "'",$db); - $myrow = DB_fetch_array($result); - $_SESSION['Adjustment']->ItemDescription = $myrow['description']; - $_SESSION['Adjustment']->Controlled = $myrow['controlled']; - $_SESSION['Adjustment']->Serialised = $myrow['serialised']; - $_SESSION['Adjustment']->DecimalPlaces = $myrow['decimalplaces']; - DB_free_result($result); - $sql="SELECT materialcost, - labourcost, - overheadcost, - units, - decimalplaces - FROM stockmaster - WHERE stockid='".$_SESSION['Adjustment']->StockID . "'"; - - $result=DB_query($sql, $db); - $myrow=DB_fetch_array($result); - $_SESSION['Adjustment']->PartUnit=$myrow['units']; - $_SESSION['Adjustment']->StandardCost=$myrow['materialcost']+$myrow['labourcost']+$myrow['overheadcost']; + $_SESSION['Adjustment' . $identifier]->PartUnit=$myrow['units']; + $_SESSION['Adjustment' . $identifier]->StandardCost=$myrow['totalcost']; $DecimalPlaces = $myrow['decimalplaces']; DB_free_result($result); - $_SESSION['Adjustment']->tag = $_POST['tag']; - $_SESSION['Adjustment']->Narrative = $_POST['Narrative']; - $_SESSION['Adjustment']->StockLocation = $_POST['StockLocation']; + +} //end if it's a new adjustment +if (isset($_POST['tag'])){ + $_SESSION['Adjustment' . $identifier]->tag = $_POST['tag']; +} +if (isset($_POST['Narrative'])){ + $_SESSION['Adjustment' . $identifier]->Narrative = $_POST['Narrative']; +} +if (isset($_POST['StockLocation'])){ + $_SESSION['Adjustment' . $identifier]->StockLocation = $_POST['StockLocation']; +} +if (isset($_POST['Quantity'])){ if ($_POST['Quantity']=='' OR !is_numeric(filter_number_format($_POST['Quantity']))){ $_POST['Quantity']=0; } - $_SESSION['Adjustment']->Quantity = filter_number_format($_POST['Quantity']); +} else { + $_POST['Quantity']=0; } +$_SESSION['Adjustment' . $identifier]->Quantity = filter_number_format($_POST['Quantity']); echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/supplier.png" title="' . _('Inventory Adjustment') . '" alt="" />' . ' ' . _('Inventory Adjustment') . '</p>'; @@ -128,29 +124,29 @@ if (isset($_POST['EnterAdjustment']) AND $_POST['EnterAdjustment']!= ''){ $InputError = false; /*Start by hoping for the best */ - $result = DB_query("SELECT * FROM stockmaster WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db); + $result = DB_query("SELECT * FROM stockmaster WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "'",$db); $myrow = DB_fetch_row($result); if (DB_num_rows($result)==0) { prnMsg( _('The entered item code does not exist'),'error'); $InputError = true; - } elseif (!is_numeric($_SESSION['Adjustment']->Quantity)){ + } elseif (!is_numeric($_SESSION['Adjustment' . $identifier]->Quantity)){ prnMsg( _('The quantity entered must be numeric'),'error'); $InputError = true; - } elseif ($_SESSION['Adjustment']->Quantity==0){ + } elseif ($_SESSION['Adjustment' . $identifier]->Quantity==0){ prnMsg( _('The quantity entered cannot be zero') . '. ' . _('There would be no adjustment to make'),'error'); $InputError = true; - } elseif ($_SESSION['Adjustment']->Controlled==1 AND count($_SESSION['Adjustment']->SerialItems)==0) { + } elseif ($_SESSION['Adjustment' . $identifier]->Controlled==1 AND count($_SESSION['Adjustment' . $identifier]->SerialItems)==0) { prnMsg( _('The item entered is a controlled item that requires the detail of the serial numbers or batch references to be adjusted to be entered'),'error'); $InputError = true; } if ($_SESSION['ProhibitNegativeStock']==1){ $SQL = "SELECT quantity FROM locstock - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode='" . $_SESSION['Adjustment']->StockLocation . "'"; + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode='" . $_SESSION['Adjustment' . $identifier]->StockLocation . "'"; $CheckNegResult=DB_query($SQL,$db); $CheckNegRow = DB_fetch_array($CheckNegResult); - if ($CheckNegRow['quantity']+$_SESSION['Adjustment']->Quantity <0){ + if ($CheckNegRow['quantity']+$_SESSION['Adjustment' . $identifier]->Quantity <0){ $InputError=true; prnMsg(_('The system parameters are set to prohibit negative stocks. Processing this stock adjustment would result in negative stock at this location. This adjustment will not be processed.'),'error'); } @@ -169,8 +165,8 @@ // Need to get the current location quantity will need it later for the stock movement $SQL="SELECT locstock.quantity FROM locstock - WHERE locstock.stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode= '" . $_SESSION['Adjustment']->StockLocation . "'"; + WHERE locstock.stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode= '" . $_SESSION['Adjustment' . $identifier]->StockLocation . "'"; $Result = DB_query($SQL, $db); if (DB_num_rows($Result)==1){ $LocQtyRow = DB_fetch_row($Result); @@ -190,15 +186,15 @@ qty, newqoh) VALUES ( - '" . $_SESSION['Adjustment']->StockID . "', + '" . $_SESSION['Adjustment' . $identifier]->StockID . "', 17, '" . $AdjustmentNumber . "', - '" . $_SESSION['Adjustment']->StockLocation . "', + '" . $_SESSION['Adjustment' . $identifier]->StockLocation . "', '" . $SQLAdjustmentDate . "', '" . $PeriodNo . "', - '" . $_SESSION['Adjustment']->Narrative ."', - '" . $_SESSION['Adjustment']->Quantity . "', - '" . ($QtyOnHandPrior + $_SESSION['Adjustment']->Quantity) . "' + '" . $_SESSION['Adjustment' . $identifier]->Narrative ."', + '" . $_SESSION['Adjustment' . $identifier]->Quantity . "', + '" . ($QtyOnHandPrior + $_SESSION['Adjustment' . $identifier]->Quantity) . "' )"; @@ -211,16 +207,16 @@ /*Insert the StockSerialMovements and update the StockSerialItems for controlled items*/ - if ($_SESSION['Adjustment']->Controlled ==1){ - foreach($_SESSION['Adjustment']->SerialItems as $Item){ + if ($_SESSION['Adjustment' . $identifier]->Controlled ==1){ + foreach($_SESSION['Adjustment' . $identifier]->SerialItems as $Item){ /*We need to add or update the StockSerialItem record and The StockSerialMoves as well */ /*First need to check if the serial items already exists or not */ $SQL = "SELECT COUNT(*) FROM stockserialitems - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode='" . $_SESSION['Adjustment']->StockLocation . "' + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode='" . $_SESSION['Adjustment' . $identifier]->StockLocation . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('Unable to determine if the serial item exists'); $Result = DB_query($SQL,$db,$ErrMsg); @@ -229,8 +225,8 @@ if ($SerialItemExistsRow[0]==1){ $SQL = "UPDATE stockserialitems SET quantity= quantity + " . $Item->BundleQty . " - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode='" . $_SESSION['Adjustment']->StockLocation . "' + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode='" . $_SESSION['Adjustment' . $identifier]->StockLocation . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The serial stock item record could not be updated because'); @@ -244,8 +240,8 @@ qualitytext, quantity, expirationdate) - VALUES ('" . $_SESSION['Adjustment']->StockID . "', - '" . $_SESSION['Adjustment']->StockLocation . "', + VALUES ('" . $_SESSION['Adjustment' . $identifier]->StockID . "', + '" . $_SESSION['Adjustment' . $identifier]->StockLocation . "', '" . $Item->BundleRef . "', '', '" . $Item->BundleQty . "', @@ -264,7 +260,7 @@ serialno, moveqty) VALUES ('" . $StkMoveNo . "', - '" . $_SESSION['Adjustment']->StockID . "', + '" . $_SESSION['Adjustment' . $identifier]->StockID . "', '" . $Item->BundleRef . "', '" . $Item->BundleQty . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The serial stock movement record could not be inserted because'); @@ -276,18 +272,18 @@ - $SQL = "UPDATE locstock SET quantity = quantity + '" . $_SESSION['Adjustment']->Quantity . "' - WHERE stockid='" . $_SESSION['Adjustment']->StockID . "' - AND loccode='" . $_SESSION['Adjustment']->StockLocation . "'"; + $SQL = "UPDATE locstock SET quantity = quantity + '" . $_SESSION['Adjustment' . $identifier]->Quantity . "' + WHERE stockid='" . $_SESSION['Adjustment' . $identifier]->StockID . "' + AND loccode='" . $_SESSION['Adjustment' . $identifier]->StockLocation . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' ._('The location stock record could not be updated because'); $DbgMsg = _('The following SQL to update the stock record was used'); $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true); - if ($_SESSION['CompanyRecord']['gllink_stock']==1 AND $_SESSION['Adjustment']->StandardCost > 0){ + if ($_SESSION['CompanyRecord']['gllink_stock']==1 AND $_SESSION['Adjustment' . $identifier]->StandardCost > 0){ - $StockGLCodes = GetStockGLCode($_SESSION['Adjustment']->StockID,$db); + $StockGLCodes = GetStockGLCode($_SESSION['Adjustment' . $identifier]->StockID,$db); $SQL = "INSERT INTO gltrans (type, typeno, @@ -302,10 +298,10 @@ '" . $SQLAdjustmentDate . "', '" . $PeriodNo . "', '" . $StockGLCodes['adjglact'] . "', - '" . round($_SESSION['Adjustment']->StandardCost * -($_SESSION['Adjustment']->Quantity), $_SESSION['CompanyRecord']['decimalplaces']) . "', - '" . $_SESSION['Adjustment']->StockID . " x " . $_SESSION['Adjustment']->Quantity . " @ " . - $_SESSION['Adjustment']->StandardCost . " " . $_SESSION['Adjustment']->Narrative . "', - '" . $_SESSION['Adjustment']->tag . "' + '" . round($_SESSION['Adjustment' . $identifier]->StandardCost * -($_SESSION['Adjustment' . $identifier]->Quantity), $_SESSION['CompanyRecord']['decimalplaces']) . "', + '" . $_SESSION['Adjustment' . $identifier]->StockID . " x " . $_SESSION['Adjustment' . $identifier]->Quantity . " @ " . + $_SESSION['Adjustment' . $identifier]->StandardCost . " " . $_SESSION['Adjustment' . $identifier]->Narrative . "', + '" . $_SESSION['Adjustment' . $identifier]->tag . "' )"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction entries could not be added because'); @@ -325,9 +321,9 @@ '" . $SQLAdjustmentDate . "', '" . $PeriodNo . "', '" . $StockGLCodes['stockact'] . "', - '" . round($_SESSION['Adjustment']->StandardCost * $_SESSION['Adjustment']->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . "', - '" . $_SESSION['Adjustment']->StockID . " x " . $_SESSION['Adjustment']->Quantity . " @ " . $_SESSION['Adjustment']->StandardCost . " " . $_SESSION['Adjustment']->Narrative . "', - '" . $_SESSION['Adjustment']->tag . "' + '" . round($_SESSION['Adjustment' . $identifier]->StandardCost * $_SESSION['Adjustment' . $identifier]->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . "', + '" . $_SESSION['Adjustment' . $identifier]->StockID . " x " . $_SESSION['Adjustment' . $identifier]->Quantity . " @ " . $_SESSION['Adjustment' . $identifier]->StandardCost . " " . $_SESSION['Adjustment' . $identifier]->Narrative . "', + '" . $_SESSION['Adjustment' . $identifier]->tag . "' )"; $Errmsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction entries could not be added because'); @@ -339,16 +335,16 @@ $Result = DB_Txn_Commit($db); - $ConfirmationText = _('A stock adjustment for'). ' ' . $_SESSION['Adjustment']->StockID . ' - ' . $_SESSION['Adjustment']->ItemDescription . ' '._('has been created from location').' ' . $_SESSION['Adjustment']->StockLocation .' '. _('for a quantity of') . ' ' . locale_number_format($_SESSION['Adjustment']->Quantity,$_SESSION['Adjustment']->DecimalPlaces) ; + $ConfirmationText = _('A stock adjustment for'). ' ' . $_SESSION['Adjustment' . $identifier]->StockID . ' - ' . $_SESSION['Adjustment' . $identifier]->ItemDescription . ' '._('has been created from location').' ' . $_SESSION['Adjustment' . $identifier]->StockLocation .' '. _('for a quantity of') . ' ' . locale_number_format($_SESSION['Adjustment' . $identifier]->Quantity,$_SESSION['Adjustment' . $identifier]->DecimalPlaces) ; prnMsg( $ConfirmationText,'success'); if ($_SESSION['InventoryManagerEmail']!=''){ $ConfirmationText = $ConfirmationText . ' ' . _('by user') . ' ' . $_SESSION['UserID'] . ' ' . _('at') . ' ' . Date('Y-m-d H:i:s'); - $EmailSubject = _('Stock adjustment for'). ' ' . $_SESSION['Adjustment']->StockID; + $EmailSubject = _('Stock adjustment for'). ' ' . $_SESSION['Adjustment' . $identifier]->StockID; mail($_SESSION['InventoryManagerEmail'],$EmailSubject,$ConfirmationText); } - unset ($_SESSION['Adjustment']); + unset ($_SESSION['Adjustment' . $identifier]); } /* end if there was no input error */ }/* end if the user hit enter the adjustment */ @@ -357,15 +353,15 @@ echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -if (!isset($_SESSION['Adjustment'])) { +if (!isset($_SESSION['Adjustment' . $identifier])) { $StockID=''; $Controlled= 0; $Quantity = 0; $DecimalPlaces =2; } else { - $StockID = $_SESSION['Adjustment']->StockID; - $Controlled = $_SESSION['Adjustment']->Controlled; - $Quantity = $_SESSION['Adjustment']->Quantity; + $StockID = $_SESSION['Adjustment' . $identifier]->StockID; + $Controlled = $_SESSION['Adjustment' . $identifier]->Controlled; + $Quantity = $_SESSION['Adjustment' . $identifier]->Quantity; $sql="SELECT materialcost, labourcost, overheadcost, @@ -376,8 +372,8 @@ $result=DB_query($sql, $db); $myrow=DB_fetch_array($result); - $_SESSION['Adjustment']->PartUnit=$myrow['units']; - $_SESSION['Adjustment']->StandardCost=$myrow['materialcost']+$myrow['labourcost']+$myrow['overheadcost']; + $_SESSION['Adjustment' . $identifier]->PartUnit=$myrow['units']; + $_SESSION['Adjustment' . $identifier]->StandardCost=$myrow['materialcost']+$myrow['labourcost']+$myrow['overheadcost']; $DecimalPlaces = $myrow['decimalplaces']; } echo '<br /> @@ -406,9 +402,9 @@ echo '</td> <td><input type="submit" name="CheckCode" value="'._('Check Part').'" /></td> </tr>'; -if (isset($_SESSION['Adjustment']) AND mb_strlen($_SESSION['Adjustment']->ItemDescription)>1){ +if (isset($_SESSION['Adjustment' . $identifier]) AND mb_strlen($_SESSION['Adjustment' . $identifier]->ItemDescription)>1){ echo '<tr> - <td colspan="3"><font color="blue" size="3">' . $_SESSION['Adjustment']->ItemDescription . ' ('._('In Units of').' ' . $_SESSION['Adjustment']->PartUnit . ' ) - ' . _('Unit Cost').' = ' . locale_number_format($_SESSION['Adjustment']->StandardCost,4) . '</font></td> + <td colspan="3"><font color="blue" size="3">' . $_SESSION['Adjustment' . $identifier]->ItemDescription . ' ('._('In Units of').' ' . $_SESSION['Adjustment' . $identifier]->PartUnit . ' ) - ' . _('Unit Cost').' = ' . locale_number_format($_SESSION['Adjustment' . $identifier]->StandardCost,4) . '</font></td> </tr>'; } @@ -418,8 +414,8 @@ $sql = "SELECT loccode, locationname FROM locations"; $resultStkLocs = DB_query($sql,$db); while ($myrow=DB_fetch_array($resultStkLocs)){ - if (isset($_SESSION['Adjustment']->StockLocation)){ - if ($myrow['loccode'] == $_SESSION['Adjustment']->StockLocation){ + if (isset($_SESSION['Adjustment' . $identifier]->StockLocation)){ + if ($myrow['loccode'] == $_SESSION['Adjustment' . $identifier]->StockLocation){ echo '<option selected="selected" value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; } else { echo '<option value="' . $myrow['loccode'] . '">' . $myrow['locationname'] . '</option>'; @@ -433,8 +429,8 @@ } echo '</select></td></tr>'; -if (isset($_SESSION['Adjustment']) AND !isset($_SESSION['Adjustment']->Narrative)) { - $_SESSION['Adjustment']->Narrative = ''; +if (isset($_SESSION['Adjustment' . $identifier]) AND !isset($_SESSION['Adjustment' . $identifier]->Narrative)) { + $_SESSION['Adjustment' . $identifier]->Narrative = ''; $Narrative =''; } else { $Narrative =''; @@ -449,11 +445,11 @@ echo '<td>'; if ($Controlled==1){ - if ($_SESSION['Adjustment']->StockLocation == ''){ - $_SESSION['Adjustment']->StockLocation = $_SESSION['UserStockLocation']; + if ($_SESSION['Adjustment' . $identifier]->StockLocation == ''){ + $_SESSION['Adjustment' . $identifier]->StockLocation = $_SESSION['UserStockLocation']; } - echo '<input type="hidden" name="Quantity" value="' . $_SESSION['Adjustment']->Quantity . '" /> - '.locale_number_format($_SESSION['Adjustment']->Quantity,$DecimalPlaces) .' + echo '<input type="hidden" name="Quantity" value="' . $_SESSION['Adjustment' . $identifier]->Quantity . '" /> + '.locale_number_format($_SESSION['Adjustment' . $identifier]->Quantity,$DecimalPlaces) .' [<a href="'.$rootpath.'/StockAdjustmentsControlled.php?AdjType=REMOVE">'._('Remove').'</a>] [<a href="'.$rootpath.'/StockAdjustmentsControlled.php?AdjType=ADD">'._('Add').'</a>]'; } else { @@ -473,7 +469,7 @@ $result=DB_query($SQL,$db); echo '<option value="0">0 - ' . _('None') . '</option>'; while ($myrow=DB_fetch_array($result)){ - if (isset($_SESSION['Adjustment']->tag) AND $_SESSION['Adjustment']->tag==$myrow['tagref']){ + if (isset($_SESSION['Adjustment' . $identifier]->tag) AND $_SESSION['Adjustment' . $identifier]->tag==$myrow['tagref']){ echo '<option selected="selected" value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription'] . '</option>'; } else { echo '<option value="' . $myrow['tagref'] . '">' . $myrow['tagref'].' - ' .$myrow['tagdescription']. '</option>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 10:47:22
|
Revision: 4942 http://web-erp.svn.sourceforge.net/web-erp/?rev=4942&view=rev Author: ExsonQu Date: 2012-02-21 10:47:12 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed bugs that when customer log in, the prices will changed to another value when submit to database. It will leads to wrong data in salesorderdetails. Modified Paths: -------------- branches/stable/SelectOrderItems.php Modified: branches/stable/SelectOrderItems.php =================================================================== --- branches/stable/SelectOrderItems.php 2012-02-21 10:44:28 UTC (rev 4941) +++ branches/stable/SelectOrderItems.php 2012-02-21 10:47:12 UTC (rev 4942) @@ -1391,6 +1391,7 @@ <td><input class="number" type="text" name="GPPercent_' . $OrderLine->LineNumber . '" size="4" maxlength="40" value="' . locale_number_format($OrderLine->GPPercent,2) . '" /></td>'; } else { echo '<td class="number">' . locale_number_format($OrderLine->Price,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td><td></td>'; + echo '<td><input class="number" type="hidden" name="GPPercent_' . $OrderLine->LineNumber . '" size="4" maxlength="40" value="' . locale_number_format($OrderLine->GPPercent,2) . '" /></td>'; echo '<input type="hidden" name="Price_' . $OrderLine->LineNumber . '" value="' . locale_number_format($OrderLine->Price,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '" />'; } if ($_SESSION['Items'.$identifier]->Some_Already_Delivered($OrderLine->LineNumber)){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 10:47:18
|
Revision: 4942 http://web-erp.svn.sourceforge.net/web-erp/?rev=4942&view=rev Author: ExsonQu Date: 2012-02-21 10:47:12 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Fixed bugs that when customer log in, the prices will changed to another value when submit to database. It will leads to wrong data in salesorderdetails. Modified Paths: -------------- branches/stable/SelectOrderItems.php Modified: branches/stable/SelectOrderItems.php =================================================================== --- branches/stable/SelectOrderItems.php 2012-02-21 10:44:28 UTC (rev 4941) +++ branches/stable/SelectOrderItems.php 2012-02-21 10:47:12 UTC (rev 4942) @@ -1391,6 +1391,7 @@ <td><input class="number" type="text" name="GPPercent_' . $OrderLine->LineNumber . '" size="4" maxlength="40" value="' . locale_number_format($OrderLine->GPPercent,2) . '" /></td>'; } else { echo '<td class="number">' . locale_number_format($OrderLine->Price,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '</td><td></td>'; + echo '<td><input class="number" type="hidden" name="GPPercent_' . $OrderLine->LineNumber . '" size="4" maxlength="40" value="' . locale_number_format($OrderLine->GPPercent,2) . '" /></td>'; echo '<input type="hidden" name="Price_' . $OrderLine->LineNumber . '" value="' . locale_number_format($OrderLine->Price,$_SESSION['Items'.$identifier]->CurrDecimalPlaces) . '" />'; } if ($_SESSION['Items'.$identifier]->Some_Already_Delivered($OrderLine->LineNumber)){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 10:44:39
|
Revision: 4941 http://web-erp.svn.sourceforge.net/web-erp/?rev=4941&view=rev Author: ExsonQu Date: 2012-02-21 10:44:28 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Typo if is typed f. reported by tezozomoc fixed by Tim Modified Paths: -------------- branches/stable/Prices_Customer.php Modified: branches/stable/Prices_Customer.php =================================================================== --- branches/stable/Prices_Customer.php 2012-02-21 06:05:41 UTC (rev 4940) +++ branches/stable/Prices_Customer.php 2012-02-21 10:44:28 UTC (rev 4941) @@ -231,7 +231,7 @@ custbranch.brname, prices.startdate, prices.enddate - FROM prices LEFT JOIN custbranch + FROM prices LEFT JOIN custbranch ON prices.branchcode= custbranch.branchcode WHERE prices.typeabbrev = '".$SalesType."' AND prices.stockid='".$Item."' @@ -278,7 +278,7 @@ '&StartDate='.$myrow['startdate'].'&EndDate='.$myrow['enddate'].'&Edit=1">' . _('Edit') . '</td> <td><a href="'.htmlspecialchars($_SERVER['PHP_SELF']).'?Item='.$Item.'&Branch='.$myrow['branchcode'].'&StartDate='.$myrow['startdate'] .'&EndDate='.$myrow['enddate'].'&delete=yes" onclick="return confirm(\'' . _('Are you sure you wish to delete this price?') . '\');">' . _('Delete') . '</td> </tr>'; - + } //END WHILE LIST LOOP } @@ -334,7 +334,7 @@ } while ($myrow=DB_fetch_array($result)) { - f ($myrow['branchcode']==$_GET['Branch']) { + if ($myrow['branchcode']==$_GET['Branch']) { echo '<option selected="selected" value="'.$myrow['branchcode'].'">'.$myrow['brname'].'</option>'; } else { echo '<option value="'.$myrow['branchcode'].'">'.$myrow['brname'].'</option>'; @@ -360,7 +360,7 @@ <input type="submit" name="submit" value="' . _('Enter Information') . '" /> </div> </form>'; - + include('includes/footer.inc'); exit; @@ -419,7 +419,7 @@ $StartDate = $myrow['startdate']; $EndDate = $myrow['enddate']; } - + //Now look for duplicate prices with no end $SQL = "SELECT price, startdate, @@ -434,7 +434,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 */ @@ -450,7 +450,7 @@ AND debtorno =''"; $UpdateResult = DB_query($SQL,$db); } - $OldStartDate = $myrow['startdate'] + $OldStartDate = $myrow['startdate']; } // end of loop around duplicate no end date prices } -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Ex...@us...> - 2012-02-21 10:44:39
|
Revision: 4941 http://web-erp.svn.sourceforge.net/web-erp/?rev=4941&view=rev Author: ExsonQu Date: 2012-02-21 10:44:28 +0000 (Tue, 21 Feb 2012) Log Message: ----------- Typo if is typed f. reported by tezozomoc fixed by Tim Modified Paths: -------------- branches/stable/Prices_Customer.php Modified: branches/stable/Prices_Customer.php =================================================================== --- branches/stable/Prices_Customer.php 2012-02-21 06:05:41 UTC (rev 4940) +++ branches/stable/Prices_Customer.php 2012-02-21 10:44:28 UTC (rev 4941) @@ -231,7 +231,7 @@ custbranch.brname, prices.startdate, prices.enddate - FROM prices LEFT JOIN custbranch + FROM prices LEFT JOIN custbranch ON prices.branchcode= custbranch.branchcode WHERE prices.typeabbrev = '".$SalesType."' AND prices.stockid='".$Item."' @@ -278,7 +278,7 @@ '&StartDate='.$myrow['startdate'].'&EndDate='.$myrow['enddate'].'&Edit=1">' . _('Edit') . '</td> <td><a href="'.htmlspecialchars($_SERVER['PHP_SELF']).'?Item='.$Item.'&Branch='.$myrow['branchcode'].'&StartDate='.$myrow['startdate'] .'&EndDate='.$myrow['enddate'].'&delete=yes" onclick="return confirm(\'' . _('Are you sure you wish to delete this price?') . '\');">' . _('Delete') . '</td> </tr>'; - + } //END WHILE LIST LOOP } @@ -334,7 +334,7 @@ } while ($myrow=DB_fetch_array($result)) { - f ($myrow['branchcode']==$_GET['Branch']) { + if ($myrow['branchcode']==$_GET['Branch']) { echo '<option selected="selected" value="'.$myrow['branchcode'].'">'.$myrow['brname'].'</option>'; } else { echo '<option value="'.$myrow['branchcode'].'">'.$myrow['brname'].'</option>'; @@ -360,7 +360,7 @@ <input type="submit" name="submit" value="' . _('Enter Information') . '" /> </div> </form>'; - + include('includes/footer.inc'); exit; @@ -419,7 +419,7 @@ $StartDate = $myrow['startdate']; $EndDate = $myrow['enddate']; } - + //Now look for duplicate prices with no end $SQL = "SELECT price, startdate, @@ -434,7 +434,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 */ @@ -450,7 +450,7 @@ AND debtorno =''"; $UpdateResult = DB_query($SQL,$db); } - $OldStartDate = $myrow['startdate'] + $OldStartDate = $myrow['startdate']; } // end of loop around duplicate no end date prices } -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-02-21 06:05:50
|
Revision: 4940 http://web-erp.svn.sourceforge.net/web-erp/?rev=4940&view=rev Author: daintree Date: 2012-02-21 06:05:41 +0000 (Tue, 21 Feb 2012) Log Message: ----------- fix ups Modified Paths: -------------- trunk/DailySalesInquiry.php Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2012-02-21 05:51:38 UTC (rev 4939) +++ trunk/DailySalesInquiry.php 2012-02-21 06:05:41 UTC (rev 4940) @@ -17,7 +17,6 @@ if (!isset($_POST['MonthToShow'])){ $_POST['MonthToShow'] = GetPeriod(Date($_SESSION['DefaultDateFormat']),$db); - echo 'Got Month to show of: ' .$_POST['MonthToShow']; $Result = DB_query("SELECT lastdate_in_period FROM periods WHERE periodno='" . $_POST['MonthToShow'] . "'",$db); $myrow = DB_fetch_array($Result); $EndDateSQL = $myrow['lastdate_in_period']; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-02-21 06:05:47
|
Revision: 4940 http://web-erp.svn.sourceforge.net/web-erp/?rev=4940&view=rev Author: daintree Date: 2012-02-21 06:05:41 +0000 (Tue, 21 Feb 2012) Log Message: ----------- fix ups Modified Paths: -------------- trunk/DailySalesInquiry.php Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2012-02-21 05:51:38 UTC (rev 4939) +++ trunk/DailySalesInquiry.php 2012-02-21 06:05:41 UTC (rev 4940) @@ -17,7 +17,6 @@ if (!isset($_POST['MonthToShow'])){ $_POST['MonthToShow'] = GetPeriod(Date($_SESSION['DefaultDateFormat']),$db); - echo 'Got Month to show of: ' .$_POST['MonthToShow']; $Result = DB_query("SELECT lastdate_in_period FROM periods WHERE periodno='" . $_POST['MonthToShow'] . "'",$db); $myrow = DB_fetch_array($Result); $EndDateSQL = $myrow['lastdate_in_period']; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2012-02-21 05:51:45
|
Revision: 4939 http://web-erp.svn.sourceforge.net/web-erp/?rev=4939&view=rev Author: daintree Date: 2012-02-21 05:51:38 +0000 (Tue, 21 Feb 2012) Log Message: ----------- fix ups Modified Paths: -------------- trunk/BankMatching.php Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2012-02-20 16:50:06 UTC (rev 4938) +++ trunk/BankMatching.php 2012-02-21 05:51:38 UTC (rev 4939) @@ -6,8 +6,8 @@ $title = _('Bank Account Matching'); include('includes/header.inc'); -if ((isset($_GET['Type']) and $_GET['Type']=='Receipts') or - (isset($_POST['Type']) and $_POST['Type']=='Receipts')){ +if ((isset($_GET['Type']) AND $_GET['Type']=='Receipts') + OR (isset($_POST['Type']) AND $_POST['Type']=='Receipts')){ $Type = 'Receipts'; $TypeName =_('Receipts'); @@ -15,8 +15,8 @@ <img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Bank Matching') . '" alt="" />' . ' ' . _('Bank Account Matching - Receipts') . ' </p>'; -} elseif ((isset($_GET['Type']) and $_GET['Type']=='Payments') or - (isset($_POST['Type']) and $_POST['Type']=='Payments')) { +} elseif ((isset($_GET['Type']) AND $_GET['Type']=='Payments') + OR (isset($_POST['Type']) AND $_POST['Type']=='Payments')) { $Type = 'Payments'; $TypeName =_('Payments'); @@ -38,9 +38,9 @@ $_POST['First20_or_All']='All'; } -if (isset($_POST['Update']) and $_POST['RowCounter']>1){ +if (isset($_POST['Update']) AND $_POST['RowCounter']>1){ for ($Counter=1;$Counter <= $_POST['RowCounter']; $Counter++){ - if (isset($_POST['Clear_' . $Counter]) and $_POST['Clear_' . $Counter]==True){ + if (isset($_POST['Clear_' . $Counter]) AND $_POST['Clear_' . $Counter]==True){ /*Get amount to be cleared */ $sql = "SELECT amount, exrate @@ -56,8 +56,12 @@ $ErrMsg = _('Could not match off this payment because'); $result = DB_query($sql,$db,$ErrMsg); - } elseif ((isset($_POST['AmtClear_' . $Counter]) and filter_number_format($_POST['AmtClear_' . $Counter])<0 and $Type=='Payments') - or ($Type=='Receipts' and isset($_POST['AmtClear_' . $Counter]) and filter_number_format($_POST['AmtClear_' . $Counter])>0)) { + } elseif ((isset($_POST['AmtClear_' . $Counter]) + AND filter_number_format($_POST['AmtClear_' . $Counter])<0 + AND $Type=='Payments') + OR ($Type=='Receipts' AND isset($_POST['AmtClear_' . $Counter]) + AND filter_number_format($_POST['AmtClear_' . $Counter])>0)) { + /*if the amount entered was numeric and negative for a payment or positive for a receipt */ $sql = "UPDATE banktrans SET amountcleared=" . filter_number_format($_POST['AmtClear_' . $Counter]) . " @@ -66,7 +70,9 @@ $ErrMsg = _('Could not update the amount matched off this bank transaction because'); $result = DB_query($sql,$db,$ErrMsg); - } elseif (isset($_POST['Unclear_' . $Counter]) and $_POST['Unclear_' . $Counter]==True){ + } elseif (isset($_POST['Unclear_' . $Counter]) + AND $_POST['Unclear_' . $Counter]==True){ + $sql = "UPDATE banktrans SET amountcleared = 0 WHERE banktransid='" . $_POST['BankTrans_' . $Counter]."'"; $ErrMsg = _('Could not unclear this bank transaction because'); @@ -92,7 +98,9 @@ $sql = "SELECT accountcode, bankaccountname FROM bankaccounts"; $resultBankActs = DB_query($sql,$db); while ($myrow=DB_fetch_array($resultBankActs)){ - if (isset($_POST['BankAccount']) and $myrow['accountcode']==$_POST['BankAccount']){ + if (isset($_POST['BankAccount']) + AND $myrow['accountcode']==$_POST['BankAccount']){ + echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; } else { echo '<option value="' . $myrow['accountcode'] . '">' . $myrow['bankaccountname'] . '</option>'; @@ -102,10 +110,10 @@ echo '</select></td> </tr>'; -if (!isset($_POST['BeforeDate']) or !Is_Date($_POST['BeforeDate'])){ +if (!isset($_POST['BeforeDate']) OR !Is_Date($_POST['BeforeDate'])){ $_POST['BeforeDate'] = Date($_SESSION['DefaultDateFormat']); } -if (!isset($_POST['AfterDate']) or !Is_Date($_POST['AfterDate'])){ +if (!isset($_POST['AfterDate']) OR !Is_Date($_POST['AfterDate'])){ $_POST['AfterDate'] = Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m')-3,Date('d'),Date('y'))); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |