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...> - 2011-08-04 10:18:20
|
Revision: 4649 http://web-erp.svn.sourceforge.net/web-erp/?rev=4649&view=rev Author: daintree Date: 2011-08-04 10:18:14 +0000 (Thu, 04 Aug 2011) Log Message: ----------- fix for GPPercent reported on discount matrix updates Modified Paths: -------------- trunk/DebtorsAtPeriodEnd.php trunk/PDFOrderStatus.php trunk/SelectOrderItems.php trunk/SelectSalesOrder.php trunk/doc/Change.log Modified: trunk/DebtorsAtPeriodEnd.php =================================================================== --- trunk/DebtorsAtPeriodEnd.php 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/DebtorsAtPeriodEnd.php 2011-08-04 10:18:14 UTC (rev 4649) @@ -91,7 +91,7 @@ $TotBal += $Balance; $LeftOvers = $pdf->addTextWrap($Left_Margin+3,$YPos,220-$Left_Margin,$FontSize,$DebtorBalances['debtorno'] . - ' - ' . html_entity_decode($DebtorBalances['name']),'left'); + ' - ' . html_entity_decode($DebtorBalances['name'],ENT_QUOTES,'UTF-8'),'left'); $LeftOvers = $pdf->addTextWrap(220,$YPos,60,$FontSize,$DisplayBalance,'right'); $LeftOvers = $pdf->addTextWrap(280,$YPos,60,$FontSize,$DisplayFXBalance,'right'); $LeftOvers = $pdf->addTextWrap(350,$YPos,100,$FontSize,$DebtorBalances['currency'],'left'); Modified: trunk/PDFOrderStatus.php =================================================================== --- trunk/PDFOrderStatus.php 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/PDFOrderStatus.php 2011-08-04 10:18:14 UTC (rev 4649) @@ -295,7 +295,7 @@ $YPos -= $line_height; $LeftOvers = $pdf->addTextWrap($Left_Margin+2,$YPos,40,$FontSize,$myrow['orderno'], 'left'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+40,$YPos,150,$FontSize,html_entity_decode($myrow['name']), 'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+40,$YPos,150,$FontSize,html_entity_decode($myrow['name'],ENT_QUOTES,'UTF-8'), 'left'); $LeftOvers = $pdf->addTextWrap($Left_Margin+190,$YPos,110,$FontSize,$myrow['brname'], 'left'); $LeftOvers = $pdf->addTextWrap($Left_Margin+300,$YPos,60,$FontSize,ConvertSQLDate($myrow['orddate']), 'left'); Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/SelectOrderItems.php 2011-08-04 10:18:14 UTC (rev 4649) @@ -1207,7 +1207,7 @@ foreach ($_SESSION['Items'.$identifier]->LineItems as $OrderLine_2) { if ($OrderLine_2->DiscCat==$OrderLine->DiscCat){ $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->DiscountPercent = $DiscountMatrixRate; - $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->GPPercent = (($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price*(1-($DiscountMatrixRate/100))) - $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->StandardCost*$ExRate)/($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price *(1-$DiscountMatrixRate)/100); + $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->GPPercent = (($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price*(1-$DiscountMatrixRate)) - $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->StandardCost*$ExRate)/($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price *(1-$DiscountMatrixRate)/100); } } } Modified: trunk/SelectSalesOrder.php =================================================================== --- trunk/SelectSalesOrder.php 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/SelectSalesOrder.php 2011-08-04 10:18:14 UTC (rev 4649) @@ -816,8 +816,8 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td class=number>%s</td> - <td><input type=checkbox name="PlacePO_%s" value><input type="hidden" name="OrderNo_PO_%s" value="%s"></td> + <td class="number">%s</td> + <td><input type="checkbox" name="PlacePO_%s" value /><input type="hidden" name="OrderNo_PO_%s" value="%s" /></td> </tr>', $ModifyPage, $myrow['orderno'], @@ -828,7 +828,7 @@ $myrow['customerref'], $FormatedOrderDate, $FormatedDelDate, - html_entity_decode($myrow['deliverto'],ENT_QUOTES,UTF-8), + html_entity_decode($myrow['deliverto'],ENT_QUOTES,'UTF-8'), $FormatedOrderValue, $i, $i, @@ -843,7 +843,7 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> </tr>', $ModifyPage, $myrow['orderno'], @@ -854,7 +854,7 @@ $myrow['customerref'], $FormatedOrderDate, $FormatedDelDate, - html_entity_decode($myrow['deliverto'],ENT_QUOTES,UTF-8), + html_entity_decode($myrow['deliverto'],ENT_QUOTES,'UTF-8'), $FormatedOrderValue); } @@ -867,7 +867,7 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> </tr>', $ModifyPage, $myrow['orderno'], @@ -877,7 +877,7 @@ $myrow['customerref'], $FormatedOrderDate, $FormatedDelDate, - html_entity_decode($myrow['deliverto'],ENT_QUOTES,UTF-8), + html_entity_decode($myrow['deliverto'],ENT_QUOTES,'UTF-8'), $FormatedOrderValue); } $i++; @@ -898,15 +898,14 @@ } else { echo '<b>' . _('Total Quotation(s) Value in'); } - echo ' ' . $_SESSION['CompanyRecord']['currencydefault'] . ' :</b></td><td class="number"><b>' . number_format($OrdersTotal,2) . '</b></td></tr> + echo ' ' . $_SESSION['CompanyRecord']['currencydefault'] . ' :</b></td><td class="number"><b>' . number_format($OrdersTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td></tr> </table>'; } //end if there are some orders to show } -?> -</form> +echo '</form>'; -<?php } //end StockID already selected +} //end StockID already selected include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/doc/Change.log 2011-08-04 10:18:14 UTC (rev 4649) @@ -1,6 +1,7 @@ webERP Change Log 4/8/11 Phil: Fix GP Percent reported when discounts updated by discount matrix +4/8/11 Phil: Make PO_SelectOSPurchOrder.php behave similarly to SelectPurchOrder.php (for inquiries) where the order number is the link that takes you to the order 4/8/11 Ricard: SalesInquiry.php now shows net sales after discounts 31/7/11 Phil: PO_Header.php - was not updating when update hit as reported by Klaus(opto) 31/7/11 Phil: BackupDatabase.php script This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-08-04 10:18:20
|
Revision: 4649 http://web-erp.svn.sourceforge.net/web-erp/?rev=4649&view=rev Author: daintree Date: 2011-08-04 10:18:14 +0000 (Thu, 04 Aug 2011) Log Message: ----------- fix for GPPercent reported on discount matrix updates Modified Paths: -------------- trunk/DebtorsAtPeriodEnd.php trunk/PDFOrderStatus.php trunk/SelectOrderItems.php trunk/SelectSalesOrder.php trunk/doc/Change.log Modified: trunk/DebtorsAtPeriodEnd.php =================================================================== --- trunk/DebtorsAtPeriodEnd.php 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/DebtorsAtPeriodEnd.php 2011-08-04 10:18:14 UTC (rev 4649) @@ -91,7 +91,7 @@ $TotBal += $Balance; $LeftOvers = $pdf->addTextWrap($Left_Margin+3,$YPos,220-$Left_Margin,$FontSize,$DebtorBalances['debtorno'] . - ' - ' . html_entity_decode($DebtorBalances['name']),'left'); + ' - ' . html_entity_decode($DebtorBalances['name'],ENT_QUOTES,'UTF-8'),'left'); $LeftOvers = $pdf->addTextWrap(220,$YPos,60,$FontSize,$DisplayBalance,'right'); $LeftOvers = $pdf->addTextWrap(280,$YPos,60,$FontSize,$DisplayFXBalance,'right'); $LeftOvers = $pdf->addTextWrap(350,$YPos,100,$FontSize,$DebtorBalances['currency'],'left'); Modified: trunk/PDFOrderStatus.php =================================================================== --- trunk/PDFOrderStatus.php 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/PDFOrderStatus.php 2011-08-04 10:18:14 UTC (rev 4649) @@ -295,7 +295,7 @@ $YPos -= $line_height; $LeftOvers = $pdf->addTextWrap($Left_Margin+2,$YPos,40,$FontSize,$myrow['orderno'], 'left'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+40,$YPos,150,$FontSize,html_entity_decode($myrow['name']), 'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+40,$YPos,150,$FontSize,html_entity_decode($myrow['name'],ENT_QUOTES,'UTF-8'), 'left'); $LeftOvers = $pdf->addTextWrap($Left_Margin+190,$YPos,110,$FontSize,$myrow['brname'], 'left'); $LeftOvers = $pdf->addTextWrap($Left_Margin+300,$YPos,60,$FontSize,ConvertSQLDate($myrow['orddate']), 'left'); Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/SelectOrderItems.php 2011-08-04 10:18:14 UTC (rev 4649) @@ -1207,7 +1207,7 @@ foreach ($_SESSION['Items'.$identifier]->LineItems as $OrderLine_2) { if ($OrderLine_2->DiscCat==$OrderLine->DiscCat){ $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->DiscountPercent = $DiscountMatrixRate; - $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->GPPercent = (($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price*(1-($DiscountMatrixRate/100))) - $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->StandardCost*$ExRate)/($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price *(1-$DiscountMatrixRate)/100); + $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->GPPercent = (($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price*(1-$DiscountMatrixRate)) - $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->StandardCost*$ExRate)/($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price *(1-$DiscountMatrixRate)/100); } } } Modified: trunk/SelectSalesOrder.php =================================================================== --- trunk/SelectSalesOrder.php 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/SelectSalesOrder.php 2011-08-04 10:18:14 UTC (rev 4649) @@ -816,8 +816,8 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td class=number>%s</td> - <td><input type=checkbox name="PlacePO_%s" value><input type="hidden" name="OrderNo_PO_%s" value="%s"></td> + <td class="number">%s</td> + <td><input type="checkbox" name="PlacePO_%s" value /><input type="hidden" name="OrderNo_PO_%s" value="%s" /></td> </tr>', $ModifyPage, $myrow['orderno'], @@ -828,7 +828,7 @@ $myrow['customerref'], $FormatedOrderDate, $FormatedDelDate, - html_entity_decode($myrow['deliverto'],ENT_QUOTES,UTF-8), + html_entity_decode($myrow['deliverto'],ENT_QUOTES,'UTF-8'), $FormatedOrderValue, $i, $i, @@ -843,7 +843,7 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> </tr>', $ModifyPage, $myrow['orderno'], @@ -854,7 +854,7 @@ $myrow['customerref'], $FormatedOrderDate, $FormatedDelDate, - html_entity_decode($myrow['deliverto'],ENT_QUOTES,UTF-8), + html_entity_decode($myrow['deliverto'],ENT_QUOTES,'UTF-8'), $FormatedOrderValue); } @@ -867,7 +867,7 @@ <td>%s</td> <td>%s</td> <td>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> </tr>', $ModifyPage, $myrow['orderno'], @@ -877,7 +877,7 @@ $myrow['customerref'], $FormatedOrderDate, $FormatedDelDate, - html_entity_decode($myrow['deliverto'],ENT_QUOTES,UTF-8), + html_entity_decode($myrow['deliverto'],ENT_QUOTES,'UTF-8'), $FormatedOrderValue); } $i++; @@ -898,15 +898,14 @@ } else { echo '<b>' . _('Total Quotation(s) Value in'); } - echo ' ' . $_SESSION['CompanyRecord']['currencydefault'] . ' :</b></td><td class="number"><b>' . number_format($OrdersTotal,2) . '</b></td></tr> + echo ' ' . $_SESSION['CompanyRecord']['currencydefault'] . ' :</b></td><td class="number"><b>' . number_format($OrdersTotal,$_SESSION['CompanyRecord']['decimalplaces']) . '</b></td></tr> </table>'; } //end if there are some orders to show } -?> -</form> +echo '</form>'; -<?php } //end StockID already selected +} //end StockID already selected include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-08-04 09:12:45 UTC (rev 4648) +++ trunk/doc/Change.log 2011-08-04 10:18:14 UTC (rev 4649) @@ -1,6 +1,7 @@ webERP Change Log 4/8/11 Phil: Fix GP Percent reported when discounts updated by discount matrix +4/8/11 Phil: Make PO_SelectOSPurchOrder.php behave similarly to SelectPurchOrder.php (for inquiries) where the order number is the link that takes you to the order 4/8/11 Ricard: SalesInquiry.php now shows net sales after discounts 31/7/11 Phil: PO_Header.php - was not updating when update hit as reported by Klaus(opto) 31/7/11 Phil: BackupDatabase.php script This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-08-04 09:12:54
|
Revision: 4648 http://web-erp.svn.sourceforge.net/web-erp/?rev=4648&view=rev Author: daintree Date: 2011-08-04 09:12:45 +0000 (Thu, 04 Aug 2011) Log Message: ----------- fix for GPPercent reported on discount matrix updates Modified Paths: -------------- trunk/PO_SelectOSPurchOrder.php trunk/SelectOrderItems.php trunk/doc/Change.log trunk/includes/DefineCartClass.php trunk/includes/SelectOrderItems_IntoCart.inc Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/PO_SelectOSPurchOrder.php 2011-08-04 09:12:45 UTC (rev 4648) @@ -129,7 +129,7 @@ */ if (!isset($OrderNumber) or $OrderNumber=='' ){ - echo '<a href="' . $rootpath . '/PO_Header.php?' .SID . '&NewOrder=Yes">' . _('Add Purchase Order') . '</a>'; + echo '<a href="' . $rootpath . '/PO_Header.php?NewOrder=Yes">' . _('Add Purchase Order') . '</a>'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . $title.'</p>'; echo '<table class=selection><tr><td>'._('Order Number') . ': <input type="text" name="OrderNumber" maxlength="8" size="9" /> ' . _('Into Stock Location') . ':<select name="StockLocation">'; @@ -183,7 +183,9 @@ echo '<br /><font size=1><div class="page_help_text">' ._('To search for purchase orders for a specific part use the part selection facilities below') .'</div> </font>'; -echo '<br /><table class="selection"><tr>'; +echo '<br /> + <table class="selection"> + <tr>'; echo '<td><font size="1">' . _('Select a stock category') . ':</font><select name="StockCat">'; @@ -196,11 +198,20 @@ } echo '</select>'; echo '<td><font size=1>' . _('Enter text extracts in the') . '<b>' . _('description') . '</b>:</font></td>'; -echo '<td><input type="Text" name="Keywords" size=20 maxlength=25></td></tr><tr><td></td>'; +echo '<td><input type="text" name="Keywords" size="20" maxlength="25"></td> + </tr> + <tr><td></td>'; echo '<td><font size<b>' . _('OR') . '</b></font><font size=1>' . _('Enter extract of the') . '<b>' . _('Stock Code') . '</b>:</font></td>'; -echo '<td><input type="Text" name="StockCode" size=15 maxlength=18></td></tr></table><br />'; -echo '<table><tr><td><input type=submit name="SearchParts" value="' . _('Search Parts Now') . '">'; -echo '<input type=submit name="ResetPart" value="' . _('Show All') . '"></td></tr></table>'; +echo '<td><input type="text" name="StockCode" size="15" maxlength="18"></td> + </tr> + </table> + <br />'; +echo '<table> + <tr> + <td><input type="submit" name="SearchParts" value="' . _('Search Parts Now') . '"> + <input type=submit name="ResetPart" value="' . _('Show All') . '"></td> + </tr> + </table>'; echo '<br />'; @@ -229,8 +240,8 @@ printf('<td><input type="submit" name="SelectedStockItem" value="%s"</td> <td>%s</td> - <td class=number>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> + <td class="number">%s</td> <td>%s</td></tr>', $myrow['stockid'], $myrow['description'], @@ -267,7 +278,7 @@ $StatusCriteria = " AND purchorders.status='Cancelled' "; } - if (isset($OrderNumber) && $OrderNumber !='') { + if (isset($OrderNumber) AND $OrderNumber !='') { $SQL = "SELECT purchorders.orderno, suppliers.suppname, purchorders.orddate, @@ -303,119 +314,119 @@ if (isset($SelectedStockItem)) { $SQL = "SELECT purchorders.realorderno, - purchorders.orderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode, - SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue - FROM purchorders INNER JOIN purchorderdetails - ON purchorders.orderno = purchorderdetails.orderno - INNER JOIN suppliers - ON purchorders.supplierno = suppliers.supplierid - WHERE purchorderdetails.completed=0 - AND purchorderdetails.itemcode='". $SelectedStockItem ."' - AND purchorders.supplierno='" . $SelectedSupplier ."' - AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' - " . $StatusCriteria . " - GROUP BY purchorders.orderno ASC, - purchorders.realorderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode"; + purchorders.orderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode, + SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue + FROM purchorders INNER JOIN purchorderdetails + ON purchorders.orderno = purchorderdetails.orderno + INNER JOIN suppliers + ON purchorders.supplierno = suppliers.supplierid + WHERE purchorderdetails.completed=0 + AND purchorderdetails.itemcode='". $SelectedStockItem ."' + AND purchorders.supplierno='" . $SelectedSupplier ."' + AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' + " . $StatusCriteria . " + GROUP BY purchorders.orderno ASC, + purchorders.realorderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode"; } else { $SQL = "SELECT purchorders.realorderno, - purchorders.orderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode, - SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue - FROM purchorders INNER JOIN purchorderdetails - ON purchorders.orderno = purchorderdetails.orderno - INNER JOIN suppliers - ON purchorders.supplierno = suppliers.supplierid - WHERE purchorderdetails.completed=0 - AND purchorders.supplierno='" . $SelectedSupplier ."' - AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' - " . $StatusCriteria . " - GROUP BY purchorders.orderno ASC, - purchorders.realorderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode"; + purchorders.orderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode, + SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue + FROM purchorders INNER JOIN purchorderdetails + ON purchorders.orderno = purchorderdetails.orderno + INNER JOIN suppliers + ON purchorders.supplierno = suppliers.supplierid + WHERE purchorderdetails.completed=0 + AND purchorders.supplierno='" . $SelectedSupplier ."' + AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' + " . $StatusCriteria . " + GROUP BY purchorders.orderno ASC, + purchorders.realorderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode"; } } else { //no supplier selected if (!isset($_POST['StockLocation'])) {$_POST['StockLocation']='';} if (isset($SelectedStockItem) and isset($_POST['StockLocation'])) { $SQL = "SELECT purchorders.realorderno, - purchorders.orderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode, - SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue - FROM purchorders INNER JOIN purchorderdetails - ON purchorders.orderno = purchorderdetails.orderno - INNER JOIN suppliers - ON purchorders.supplierno = suppliers.supplierid - WHERE purchorderdetails.completed=0 - AND purchorderdetails.itemcode='". $SelectedStockItem ."' - AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' - " . $StatusCriteria . " - GROUP BY purchorders.orderno ASC, - purchorders.realorderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode"; + purchorders.orderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode, + SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue + FROM purchorders INNER JOIN purchorderdetails + ON purchorders.orderno = purchorderdetails.orderno + INNER JOIN suppliers + ON purchorders.supplierno = suppliers.supplierid + WHERE purchorderdetails.completed=0 + AND purchorderdetails.itemcode='". $SelectedStockItem ."' + AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' + " . $StatusCriteria . " + GROUP BY purchorders.orderno ASC, + purchorders.realorderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode"; } else { $SQL = "SELECT purchorders.realorderno, - purchorders.orderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode, - SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue - FROM purchorders INNER JOIN purchorderdetails - ON purchorders.orderno = purchorderdetails.orderno - INNER JOIN suppliers - ON purchorders.supplierno = suppliers.supplierid - WHERE purchorderdetails.completed=0 - AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' - " . $StatusCriteria . " - GROUP BY purchorders.orderno ASC, - purchorders.realorderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode"; + purchorders.orderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode, + SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue + FROM purchorders INNER JOIN purchorderdetails + ON purchorders.orderno = purchorderdetails.orderno + INNER JOIN suppliers + ON purchorders.supplierno = suppliers.supplierid + WHERE purchorderdetails.completed=0 + AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' + " . $StatusCriteria . " + GROUP BY purchorders.orderno ASC, + purchorders.realorderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode"; } } //end selected supplier @@ -430,20 +441,20 @@ // '</td><td class="tableheader">' . _('Receive') . - echo '<tr><th>' . _('Order #') . - '</th><th>' . _('Order Date') . - '</th><th>' . _('Initiated by') . - '</th><th>' . _('Supplier') . - '</th><th>' . _('Currency') . - '</th>'; + echo '<tr> + <th>' . _('Order #') . '</th> + <th>' . _('Order Date') . '</th> + <th>' . _('Initiated by') . '</th> + <th>' . _('Supplier') . '</th> + <th>' . _('Currency') . '</th>'; + if (in_array($PricesSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PricesSecurity)) { echo '<th>' . _('Order Total') .'</th>'; } echo '<th>' . _('Status') . '</th> - <th>' . _('Modify') . '</th> - <th>' . _('Print') . '</th> - <th>' . _('Receive') . '</th> - </tr>'; + <th>' . _('Print') . '</th> + <th>' . _('Receive') . '</th> + </tr>'; $j = 1; $k=0; //row colour counter while ($myrow=DB_fetch_array($PurchOrdersResult)) { @@ -456,20 +467,20 @@ $k++; } - $ModifyPage = $rootpath . '/PO_Header.php?' . SID . '&ModifyOrderNumber=' . $myrow['orderno']; + $ModifyPage = $rootpath . '/PO_Header.php?ModifyOrderNumber=' . $myrow['orderno']; if ($myrow['status'] == 'Printed') { - $ReceiveOrder = '<a href="'.$rootpath . '/GoodsReceived.php?' . SID . '&PONumber=' . $myrow['orderno'].'">'. + $ReceiveOrder = '<a href="'.$rootpath . '/GoodsReceived.php?PONumber=' . $myrow['orderno'].'">'. _('Receive').'</a>'; } else { - $ReceiveOrder = _('Receive'); + $ReceiveOrder = ''; } if ($myrow['status'] == 'Authorised' AND $myrow['allowprint'] == 1){ - $PrintPurchOrder = '<a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?' . SID . '&OrderNo=' . $myrow['orderno'] . '">' . _('Print Now') . '</a>'; + $PrintPurchOrder = '<a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?OrderNo=' . $myrow['orderno'] . '">' . _('Print') . '</a>'; } elseif ($myrow['status'] == 'Authorisied' AND $myrow['allowprint'] == 0) { $PrintPurchOrder = _('Printed'); } elseif ($myrow['status'] == 'Printed'){ - $PrintPurchOrder = '<a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?' . SID . '&OrderNo=' . $myrow['orderno'] . '&realorderno=' . $myrow['realorderno'] . '&ViewingOnly=2"> - ' . _('Print') . '</a>'; + $PrintPurchOrder = '<a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?OrderNo=' . $myrow['orderno'] . '&realorderno=' . $myrow['realorderno'] . '&ViewingOnly=2"> + ' . _('Print Copy') . '</a>'; } else { $PrintPurchOrder = _('N/A'); } @@ -478,7 +489,7 @@ $FormatedOrderDate = ConvertSQLDate($myrow['orddate']); $FormatedOrderValue = number_format($myrow['ordervalue'],2); - echo '<td>' . $myrow['orderno'] . '</td> + echo '<td><a href="'.$ModifyPage.'">' . $myrow['orderno'] . '</a></td> <td>' . $FormatedOrderDate . '</td> <td>' . $myrow['initiator'] . '</td> <td>' . $myrow['suppname'] . '</td> @@ -487,10 +498,9 @@ echo '<td class=number>'.$FormatedOrderValue . '</td>'; } echo '<td>' . _($myrow['status']) . '</td> - <td><a href="'.$ModifyPage.'">' . _('Modify') . '</a></td> - <td>' . $PrintPurchOrder . '</td> - <td>' . $ReceiveOrder . '</td> - </tr>'; + <td>' . $PrintPurchOrder . '</td> + <td>' . $ReceiveOrder . '</td> + </tr>'; //end of page full new headings if } //end of while loop Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/SelectOrderItems.php 2011-08-04 09:12:45 UTC (rev 4648) @@ -1207,6 +1207,7 @@ foreach ($_SESSION['Items'.$identifier]->LineItems as $OrderLine_2) { if ($OrderLine_2->DiscCat==$OrderLine->DiscCat){ $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->DiscountPercent = $DiscountMatrixRate; + $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->GPPercent = (($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price*(1-($DiscountMatrixRate/100))) - $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->StandardCost*$ExRate)/($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price *(1-$DiscountMatrixRate)/100); } } } @@ -1214,9 +1215,9 @@ } /* end of discount matrix lookup code */ } // the order session is started or there is a new item being added if (isset($_POST['DeliveryDetails'])){ - echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/DeliveryDetails.php?' . SID .'identifier='.$identifier . '">'; + echo '<meta http-equiv="refresh" content="0; url=' . $rootpath . '/DeliveryDetails.php?identifier='.$identifier . '">'; prnMsg(_('You should automatically be forwarded to the entry of the delivery details page') . '. ' . _('if this does not happen') . ' (' . _('if the browser does not support META Refresh') . ') ' . - '<a href="' . $rootpath . '/DeliveryDetails.php?' . SID .'identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'), 'info'); + '<a href="' . $rootpath . '/DeliveryDetails.php?identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'), 'info'); exit; } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/doc/Change.log 2011-08-04 09:12:45 UTC (rev 4648) @@ -1,5 +1,6 @@ webERP Change Log +4/8/11 Phil: Fix GP Percent reported when discounts updated by discount matrix 4/8/11 Ricard: SalesInquiry.php now shows net sales after discounts 31/7/11 Phil: PO_Header.php - was not updating when update hit as reported by Klaus(opto) 31/7/11 Phil: BackupDatabase.php script Modified: trunk/includes/DefineCartClass.php =================================================================== --- trunk/includes/DefineCartClass.php 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/includes/DefineCartClass.php 2011-08-04 09:12:45 UTC (rev 4648) @@ -246,7 +246,7 @@ /* Makes a comma seperated list of the stock items ordered for use in SQL expressions */ - $StockID_List=""; + $StockID_List=''; foreach ($this->LineItems as $StockItem) { $StockID_List .= ",'" . $StockItem->StockID . "'"; } Modified: trunk/includes/SelectOrderItems_IntoCart.inc =================================================================== --- trunk/includes/SelectOrderItems_IntoCart.inc 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/includes/SelectOrderItems_IntoCart.inc 2011-08-04 09:12:45 UTC (rev 4648) @@ -98,7 +98,7 @@ AND discountcategory ='" . $myrow['discountcategory'] . "' AND quantitybreak <" . $NewItemQty,$db); $DiscCatRow = DB_fetch_row($result); - if ($DiscCatRow[0] != "" && $DiscCatRow[0] > 0) { + if ($DiscCatRow[0] != '' AND $DiscCatRow[0] > 0) { $Discount = $DiscCatRow[0]; } else { $Discount = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-08-04 09:12:51
|
Revision: 4648 http://web-erp.svn.sourceforge.net/web-erp/?rev=4648&view=rev Author: daintree Date: 2011-08-04 09:12:45 +0000 (Thu, 04 Aug 2011) Log Message: ----------- fix for GPPercent reported on discount matrix updates Modified Paths: -------------- trunk/PO_SelectOSPurchOrder.php trunk/SelectOrderItems.php trunk/doc/Change.log trunk/includes/DefineCartClass.php trunk/includes/SelectOrderItems_IntoCart.inc Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/PO_SelectOSPurchOrder.php 2011-08-04 09:12:45 UTC (rev 4648) @@ -129,7 +129,7 @@ */ if (!isset($OrderNumber) or $OrderNumber=='' ){ - echo '<a href="' . $rootpath . '/PO_Header.php?' .SID . '&NewOrder=Yes">' . _('Add Purchase Order') . '</a>'; + echo '<a href="' . $rootpath . '/PO_Header.php?NewOrder=Yes">' . _('Add Purchase Order') . '</a>'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="">' . ' ' . $title.'</p>'; echo '<table class=selection><tr><td>'._('Order Number') . ': <input type="text" name="OrderNumber" maxlength="8" size="9" /> ' . _('Into Stock Location') . ':<select name="StockLocation">'; @@ -183,7 +183,9 @@ echo '<br /><font size=1><div class="page_help_text">' ._('To search for purchase orders for a specific part use the part selection facilities below') .'</div> </font>'; -echo '<br /><table class="selection"><tr>'; +echo '<br /> + <table class="selection"> + <tr>'; echo '<td><font size="1">' . _('Select a stock category') . ':</font><select name="StockCat">'; @@ -196,11 +198,20 @@ } echo '</select>'; echo '<td><font size=1>' . _('Enter text extracts in the') . '<b>' . _('description') . '</b>:</font></td>'; -echo '<td><input type="Text" name="Keywords" size=20 maxlength=25></td></tr><tr><td></td>'; +echo '<td><input type="text" name="Keywords" size="20" maxlength="25"></td> + </tr> + <tr><td></td>'; echo '<td><font size<b>' . _('OR') . '</b></font><font size=1>' . _('Enter extract of the') . '<b>' . _('Stock Code') . '</b>:</font></td>'; -echo '<td><input type="Text" name="StockCode" size=15 maxlength=18></td></tr></table><br />'; -echo '<table><tr><td><input type=submit name="SearchParts" value="' . _('Search Parts Now') . '">'; -echo '<input type=submit name="ResetPart" value="' . _('Show All') . '"></td></tr></table>'; +echo '<td><input type="text" name="StockCode" size="15" maxlength="18"></td> + </tr> + </table> + <br />'; +echo '<table> + <tr> + <td><input type="submit" name="SearchParts" value="' . _('Search Parts Now') . '"> + <input type=submit name="ResetPart" value="' . _('Show All') . '"></td> + </tr> + </table>'; echo '<br />'; @@ -229,8 +240,8 @@ printf('<td><input type="submit" name="SelectedStockItem" value="%s"</td> <td>%s</td> - <td class=number>%s</td> - <td class=number>%s</td> + <td class="number">%s</td> + <td class="number">%s</td> <td>%s</td></tr>', $myrow['stockid'], $myrow['description'], @@ -267,7 +278,7 @@ $StatusCriteria = " AND purchorders.status='Cancelled' "; } - if (isset($OrderNumber) && $OrderNumber !='') { + if (isset($OrderNumber) AND $OrderNumber !='') { $SQL = "SELECT purchorders.orderno, suppliers.suppname, purchorders.orddate, @@ -303,119 +314,119 @@ if (isset($SelectedStockItem)) { $SQL = "SELECT purchorders.realorderno, - purchorders.orderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode, - SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue - FROM purchorders INNER JOIN purchorderdetails - ON purchorders.orderno = purchorderdetails.orderno - INNER JOIN suppliers - ON purchorders.supplierno = suppliers.supplierid - WHERE purchorderdetails.completed=0 - AND purchorderdetails.itemcode='". $SelectedStockItem ."' - AND purchorders.supplierno='" . $SelectedSupplier ."' - AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' - " . $StatusCriteria . " - GROUP BY purchorders.orderno ASC, - purchorders.realorderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode"; + purchorders.orderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode, + SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue + FROM purchorders INNER JOIN purchorderdetails + ON purchorders.orderno = purchorderdetails.orderno + INNER JOIN suppliers + ON purchorders.supplierno = suppliers.supplierid + WHERE purchorderdetails.completed=0 + AND purchorderdetails.itemcode='". $SelectedStockItem ."' + AND purchorders.supplierno='" . $SelectedSupplier ."' + AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' + " . $StatusCriteria . " + GROUP BY purchorders.orderno ASC, + purchorders.realorderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode"; } else { $SQL = "SELECT purchorders.realorderno, - purchorders.orderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode, - SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue - FROM purchorders INNER JOIN purchorderdetails - ON purchorders.orderno = purchorderdetails.orderno - INNER JOIN suppliers - ON purchorders.supplierno = suppliers.supplierid - WHERE purchorderdetails.completed=0 - AND purchorders.supplierno='" . $SelectedSupplier ."' - AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' - " . $StatusCriteria . " - GROUP BY purchorders.orderno ASC, - purchorders.realorderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode"; + purchorders.orderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode, + SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue + FROM purchorders INNER JOIN purchorderdetails + ON purchorders.orderno = purchorderdetails.orderno + INNER JOIN suppliers + ON purchorders.supplierno = suppliers.supplierid + WHERE purchorderdetails.completed=0 + AND purchorders.supplierno='" . $SelectedSupplier ."' + AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' + " . $StatusCriteria . " + GROUP BY purchorders.orderno ASC, + purchorders.realorderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode"; } } else { //no supplier selected if (!isset($_POST['StockLocation'])) {$_POST['StockLocation']='';} if (isset($SelectedStockItem) and isset($_POST['StockLocation'])) { $SQL = "SELECT purchorders.realorderno, - purchorders.orderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode, - SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue - FROM purchorders INNER JOIN purchorderdetails - ON purchorders.orderno = purchorderdetails.orderno - INNER JOIN suppliers - ON purchorders.supplierno = suppliers.supplierid - WHERE purchorderdetails.completed=0 - AND purchorderdetails.itemcode='". $SelectedStockItem ."' - AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' - " . $StatusCriteria . " - GROUP BY purchorders.orderno ASC, - purchorders.realorderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode"; + purchorders.orderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode, + SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue + FROM purchorders INNER JOIN purchorderdetails + ON purchorders.orderno = purchorderdetails.orderno + INNER JOIN suppliers + ON purchorders.supplierno = suppliers.supplierid + WHERE purchorderdetails.completed=0 + AND purchorderdetails.itemcode='". $SelectedStockItem ."' + AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' + " . $StatusCriteria . " + GROUP BY purchorders.orderno ASC, + purchorders.realorderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode"; } else { $SQL = "SELECT purchorders.realorderno, - purchorders.orderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode, - SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue - FROM purchorders INNER JOIN purchorderdetails - ON purchorders.orderno = purchorderdetails.orderno - INNER JOIN suppliers - ON purchorders.supplierno = suppliers.supplierid - WHERE purchorderdetails.completed=0 - AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' - " . $StatusCriteria . " - GROUP BY purchorders.orderno ASC, - purchorders.realorderno, - suppliers.suppname, - purchorders.orddate, - purchorders.status, - purchorders.initiator, - purchorders.requisitionno, - purchorders.allowprint, - suppliers.currcode"; + purchorders.orderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode, + SUM(purchorderdetails.unitprice*purchorderdetails.quantityord) AS ordervalue + FROM purchorders INNER JOIN purchorderdetails + ON purchorders.orderno = purchorderdetails.orderno + INNER JOIN suppliers + ON purchorders.supplierno = suppliers.supplierid + WHERE purchorderdetails.completed=0 + AND purchorders.intostocklocation = '". $_POST['StockLocation'] . "' + " . $StatusCriteria . " + GROUP BY purchorders.orderno ASC, + purchorders.realorderno, + suppliers.suppname, + purchorders.orddate, + purchorders.status, + purchorders.initiator, + purchorders.requisitionno, + purchorders.allowprint, + suppliers.currcode"; } } //end selected supplier @@ -430,20 +441,20 @@ // '</td><td class="tableheader">' . _('Receive') . - echo '<tr><th>' . _('Order #') . - '</th><th>' . _('Order Date') . - '</th><th>' . _('Initiated by') . - '</th><th>' . _('Supplier') . - '</th><th>' . _('Currency') . - '</th>'; + echo '<tr> + <th>' . _('Order #') . '</th> + <th>' . _('Order Date') . '</th> + <th>' . _('Initiated by') . '</th> + <th>' . _('Supplier') . '</th> + <th>' . _('Currency') . '</th>'; + if (in_array($PricesSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PricesSecurity)) { echo '<th>' . _('Order Total') .'</th>'; } echo '<th>' . _('Status') . '</th> - <th>' . _('Modify') . '</th> - <th>' . _('Print') . '</th> - <th>' . _('Receive') . '</th> - </tr>'; + <th>' . _('Print') . '</th> + <th>' . _('Receive') . '</th> + </tr>'; $j = 1; $k=0; //row colour counter while ($myrow=DB_fetch_array($PurchOrdersResult)) { @@ -456,20 +467,20 @@ $k++; } - $ModifyPage = $rootpath . '/PO_Header.php?' . SID . '&ModifyOrderNumber=' . $myrow['orderno']; + $ModifyPage = $rootpath . '/PO_Header.php?ModifyOrderNumber=' . $myrow['orderno']; if ($myrow['status'] == 'Printed') { - $ReceiveOrder = '<a href="'.$rootpath . '/GoodsReceived.php?' . SID . '&PONumber=' . $myrow['orderno'].'">'. + $ReceiveOrder = '<a href="'.$rootpath . '/GoodsReceived.php?PONumber=' . $myrow['orderno'].'">'. _('Receive').'</a>'; } else { - $ReceiveOrder = _('Receive'); + $ReceiveOrder = ''; } if ($myrow['status'] == 'Authorised' AND $myrow['allowprint'] == 1){ - $PrintPurchOrder = '<a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?' . SID . '&OrderNo=' . $myrow['orderno'] . '">' . _('Print Now') . '</a>'; + $PrintPurchOrder = '<a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?OrderNo=' . $myrow['orderno'] . '">' . _('Print') . '</a>'; } elseif ($myrow['status'] == 'Authorisied' AND $myrow['allowprint'] == 0) { $PrintPurchOrder = _('Printed'); } elseif ($myrow['status'] == 'Printed'){ - $PrintPurchOrder = '<a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?' . SID . '&OrderNo=' . $myrow['orderno'] . '&realorderno=' . $myrow['realorderno'] . '&ViewingOnly=2"> - ' . _('Print') . '</a>'; + $PrintPurchOrder = '<a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?OrderNo=' . $myrow['orderno'] . '&realorderno=' . $myrow['realorderno'] . '&ViewingOnly=2"> + ' . _('Print Copy') . '</a>'; } else { $PrintPurchOrder = _('N/A'); } @@ -478,7 +489,7 @@ $FormatedOrderDate = ConvertSQLDate($myrow['orddate']); $FormatedOrderValue = number_format($myrow['ordervalue'],2); - echo '<td>' . $myrow['orderno'] . '</td> + echo '<td><a href="'.$ModifyPage.'">' . $myrow['orderno'] . '</a></td> <td>' . $FormatedOrderDate . '</td> <td>' . $myrow['initiator'] . '</td> <td>' . $myrow['suppname'] . '</td> @@ -487,10 +498,9 @@ echo '<td class=number>'.$FormatedOrderValue . '</td>'; } echo '<td>' . _($myrow['status']) . '</td> - <td><a href="'.$ModifyPage.'">' . _('Modify') . '</a></td> - <td>' . $PrintPurchOrder . '</td> - <td>' . $ReceiveOrder . '</td> - </tr>'; + <td>' . $PrintPurchOrder . '</td> + <td>' . $ReceiveOrder . '</td> + </tr>'; //end of page full new headings if } //end of while loop Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/SelectOrderItems.php 2011-08-04 09:12:45 UTC (rev 4648) @@ -1207,6 +1207,7 @@ foreach ($_SESSION['Items'.$identifier]->LineItems as $OrderLine_2) { if ($OrderLine_2->DiscCat==$OrderLine->DiscCat){ $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->DiscountPercent = $DiscountMatrixRate; + $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->GPPercent = (($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price*(1-($DiscountMatrixRate/100))) - $_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->StandardCost*$ExRate)/($_SESSION['Items'.$identifier]->LineItems[$OrderLine_2->LineNumber]->Price *(1-$DiscountMatrixRate)/100); } } } @@ -1214,9 +1215,9 @@ } /* end of discount matrix lookup code */ } // the order session is started or there is a new item being added if (isset($_POST['DeliveryDetails'])){ - echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/DeliveryDetails.php?' . SID .'identifier='.$identifier . '">'; + echo '<meta http-equiv="refresh" content="0; url=' . $rootpath . '/DeliveryDetails.php?identifier='.$identifier . '">'; prnMsg(_('You should automatically be forwarded to the entry of the delivery details page') . '. ' . _('if this does not happen') . ' (' . _('if the browser does not support META Refresh') . ') ' . - '<a href="' . $rootpath . '/DeliveryDetails.php?' . SID .'identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'), 'info'); + '<a href="' . $rootpath . '/DeliveryDetails.php?identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'), 'info'); exit; } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/doc/Change.log 2011-08-04 09:12:45 UTC (rev 4648) @@ -1,5 +1,6 @@ webERP Change Log +4/8/11 Phil: Fix GP Percent reported when discounts updated by discount matrix 4/8/11 Ricard: SalesInquiry.php now shows net sales after discounts 31/7/11 Phil: PO_Header.php - was not updating when update hit as reported by Klaus(opto) 31/7/11 Phil: BackupDatabase.php script Modified: trunk/includes/DefineCartClass.php =================================================================== --- trunk/includes/DefineCartClass.php 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/includes/DefineCartClass.php 2011-08-04 09:12:45 UTC (rev 4648) @@ -246,7 +246,7 @@ /* Makes a comma seperated list of the stock items ordered for use in SQL expressions */ - $StockID_List=""; + $StockID_List=''; foreach ($this->LineItems as $StockItem) { $StockID_List .= ",'" . $StockItem->StockID . "'"; } Modified: trunk/includes/SelectOrderItems_IntoCart.inc =================================================================== --- trunk/includes/SelectOrderItems_IntoCart.inc 2011-08-04 08:24:32 UTC (rev 4647) +++ trunk/includes/SelectOrderItems_IntoCart.inc 2011-08-04 09:12:45 UTC (rev 4648) @@ -98,7 +98,7 @@ AND discountcategory ='" . $myrow['discountcategory'] . "' AND quantitybreak <" . $NewItemQty,$db); $DiscCatRow = DB_fetch_row($result); - if ($DiscCatRow[0] != "" && $DiscCatRow[0] > 0) { + if ($DiscCatRow[0] != '' AND $DiscCatRow[0] > 0) { $Discount = $DiscCatRow[0]; } else { $Discount = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-08-04 08:24:38
|
Revision: 4647 http://web-erp.svn.sourceforge.net/web-erp/?rev=4647&view=rev Author: daintree Date: 2011-08-04 08:24:32 +0000 (Thu, 04 Aug 2011) Log Message: ----------- ricards fix for SalesInquiry.php Modified Paths: -------------- trunk/SalesInquiry.php trunk/doc/Change.log Modified: trunk/SalesInquiry.php =================================================================== --- trunk/SalesInquiry.php 2011-07-31 04:42:09 UTC (rev 4646) +++ trunk/SalesInquiry.php 2011-08-04 08:24:32 UTC (rev 4647) @@ -176,7 +176,7 @@ salesorders.branchcode, salesorderdetails.quantity, salesorderdetails.qtyinvoiced, - (salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + (salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, (salesorderdetails.quantity * stockmaster.actualcost) as extcost, IF(salesorderdetails.quantity = salesorderdetails.qtyinvoiced || salesorderdetails.completed = 1,'Completed','Open') as linestatus, @@ -213,7 +213,7 @@ salesorders.branchcode, salesorderdetails.quantity, salesorderdetails.qtyinvoiced, - (tempstockmoves.qty * salesorderdetails.unitprice) * -1 as extprice, + (tempstockmoves.qty * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) * -1 as extprice, (tempstockmoves.qty * tempstockmoves.standardcost) * -1 as extcost, IF(salesorderdetails.quantity = salesorderdetails.qtyinvoiced || salesorderdetails.completed = 1,'Completed','Open') as linestatus, @@ -264,7 +264,7 @@ $sql = "SELECT salesorderdetails.stkcode, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost, stockmaster.description, stockmaster.decimalplaces @@ -298,7 +298,7 @@ debtorsmaster.name, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -331,7 +331,7 @@ debtorsmaster.name, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -361,7 +361,7 @@ CONCAT(MONTHNAME(salesorders.orddate),' ',YEAR(salesorders.orddate)) as monthname, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -390,7 +390,7 @@ stockcategory.categorydescription, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -419,7 +419,7 @@ salesman.salesmanname, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -448,7 +448,7 @@ areas.areadescription, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-31 04:42:09 UTC (rev 4646) +++ trunk/doc/Change.log 2011-08-04 08:24:32 UTC (rev 4647) @@ -1,5 +1,6 @@ webERP Change Log +4/8/11 Ricard: SalesInquiry.php now shows net sales after discounts 31/7/11 Phil: PO_Header.php - was not updating when update hit as reported by Klaus(opto) 31/7/11 Phil: BackupDatabase.php script 30/7/11 Phil: SelectCreditItems.php made it so if several sessions creating a credit note they no longer over-write each other. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-08-04 08:24:38
|
Revision: 4647 http://web-erp.svn.sourceforge.net/web-erp/?rev=4647&view=rev Author: daintree Date: 2011-08-04 08:24:32 +0000 (Thu, 04 Aug 2011) Log Message: ----------- ricards fix for SalesInquiry.php Modified Paths: -------------- trunk/SalesInquiry.php trunk/doc/Change.log Modified: trunk/SalesInquiry.php =================================================================== --- trunk/SalesInquiry.php 2011-07-31 04:42:09 UTC (rev 4646) +++ trunk/SalesInquiry.php 2011-08-04 08:24:32 UTC (rev 4647) @@ -176,7 +176,7 @@ salesorders.branchcode, salesorderdetails.quantity, salesorderdetails.qtyinvoiced, - (salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + (salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, (salesorderdetails.quantity * stockmaster.actualcost) as extcost, IF(salesorderdetails.quantity = salesorderdetails.qtyinvoiced || salesorderdetails.completed = 1,'Completed','Open') as linestatus, @@ -213,7 +213,7 @@ salesorders.branchcode, salesorderdetails.quantity, salesorderdetails.qtyinvoiced, - (tempstockmoves.qty * salesorderdetails.unitprice) * -1 as extprice, + (tempstockmoves.qty * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) * -1 as extprice, (tempstockmoves.qty * tempstockmoves.standardcost) * -1 as extcost, IF(salesorderdetails.quantity = salesorderdetails.qtyinvoiced || salesorderdetails.completed = 1,'Completed','Open') as linestatus, @@ -264,7 +264,7 @@ $sql = "SELECT salesorderdetails.stkcode, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost, stockmaster.description, stockmaster.decimalplaces @@ -298,7 +298,7 @@ debtorsmaster.name, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -331,7 +331,7 @@ debtorsmaster.name, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -361,7 +361,7 @@ CONCAT(MONTHNAME(salesorders.orddate),' ',YEAR(salesorders.orddate)) as monthname, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -390,7 +390,7 @@ stockcategory.categorydescription, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -419,7 +419,7 @@ salesman.salesmanname, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno @@ -448,7 +448,7 @@ areas.areadescription, SUM(salesorderdetails.quantity) as quantity, SUM(salesorderdetails.qtyinvoiced) as qtyinvoiced, - SUM(salesorderdetails.quantity * salesorderdetails.unitprice) as extprice, + SUM(salesorderdetails.quantity * salesorderdetails.unitprice * (1 - salesorderdetails.discountpercent)) as extprice, SUM(salesorderdetails.quantity * stockmaster.actualcost) as extcost FROM salesorderdetails LEFT JOIN salesorders ON salesorders.orderno=salesorderdetails.orderno Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-31 04:42:09 UTC (rev 4646) +++ trunk/doc/Change.log 2011-08-04 08:24:32 UTC (rev 4647) @@ -1,5 +1,6 @@ webERP Change Log +4/8/11 Ricard: SalesInquiry.php now shows net sales after discounts 31/7/11 Phil: PO_Header.php - was not updating when update hit as reported by Klaus(opto) 31/7/11 Phil: BackupDatabase.php script 30/7/11 Phil: SelectCreditItems.php made it so if several sessions creating a credit note they no longer over-write each other. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-31 04:42:16
|
Revision: 4646 http://web-erp.svn.sourceforge.net/web-erp/?rev=4646&view=rev Author: daintree Date: 2011-07-31 04:42:09 +0000 (Sun, 31 Jul 2011) Log Message: ----------- was not updating form variables on update Modified Paths: -------------- trunk/PO_Header.php trunk/doc/Change.log Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2011-07-31 01:31:41 UTC (rev 4645) +++ trunk/PO_Header.php 2011-07-31 04:42:09 UTC (rev 4646) @@ -184,7 +184,7 @@ } -if (isset($_POST['EnterLines'])){ +if (isset($_POST['EnterLines']) OR isset($_POST['AllowRePrint'])){ /*User hit the button to enter line items - * ensure session variables updated then meta refresh to PO_Items.php*/ @@ -216,7 +216,7 @@ $_SESSION['PO'.$identifier]->Tel = $_POST['Tel']; $_SESSION['PO'.$identifier]->Port = $_POST['Port']; - if (isset($_POST['RePrint']) and $_POST['RePrint']==1){ + if (isset($_POST['RePrint']) AND $_POST['RePrint']==1){ $_SESSION['PO'.$identifier]->AllowPrintPO=1; @@ -229,14 +229,15 @@ } else { $_POST['RePrint'] = 0; } - - echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PO_Items.php?identifier='.$identifier. '">'; - echo '<p>'; - prnMsg(_('You should automatically be forwarded to the entry of the purchase order line items page') . '. ' . - _('If this does not happen') . ' (' . _('if the browser does not support META Refresh') . ') ' . - '<a href="' . $rootpath . '/PO_Items.php?identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'),'info'); + if (!isset($_POST['AllowRePrint'])){ // user only hit update not "Enter Lines" + echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PO_Items.php?identifier='.$identifier. '">'; + echo '<p>'; + prnMsg(_('You should automatically be forwarded to the entry of the purchase order line items page') . '. ' . + _('If this does not happen') . ' (' . _('if the browser does not support META Refresh') . ') ' . + '<a href="' . $rootpath . '/PO_Items.php?identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'),'info'); include('includes/footer.inc'); exit; + } } /* end of if isset _POST'EnterLines' */ echo '<span style="float:left"><a href="'. $rootpath . '/PO_SelectOSPurchOrder.php?identifier='.$identifier.'">'. _('Back to Purchase Orders'). '</a></span>'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-31 01:31:41 UTC (rev 4645) +++ trunk/doc/Change.log 2011-07-31 04:42:09 UTC (rev 4646) @@ -1,5 +1,6 @@ webERP Change Log +31/7/11 Phil: PO_Header.php - was not updating when update hit as reported by Klaus(opto) 31/7/11 Phil: BackupDatabase.php script 30/7/11 Phil: SelectCreditItems.php made it so if several sessions creating a credit note they no longer over-write each other. 30/7/11 Ricard: POItems.php now checks for return of more than 1 purchasing data from the supplier and takes the newest record This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-31 04:42:16
|
Revision: 4646 http://web-erp.svn.sourceforge.net/web-erp/?rev=4646&view=rev Author: daintree Date: 2011-07-31 04:42:09 +0000 (Sun, 31 Jul 2011) Log Message: ----------- was not updating form variables on update Modified Paths: -------------- trunk/PO_Header.php trunk/doc/Change.log Modified: trunk/PO_Header.php =================================================================== --- trunk/PO_Header.php 2011-07-31 01:31:41 UTC (rev 4645) +++ trunk/PO_Header.php 2011-07-31 04:42:09 UTC (rev 4646) @@ -184,7 +184,7 @@ } -if (isset($_POST['EnterLines'])){ +if (isset($_POST['EnterLines']) OR isset($_POST['AllowRePrint'])){ /*User hit the button to enter line items - * ensure session variables updated then meta refresh to PO_Items.php*/ @@ -216,7 +216,7 @@ $_SESSION['PO'.$identifier]->Tel = $_POST['Tel']; $_SESSION['PO'.$identifier]->Port = $_POST['Port']; - if (isset($_POST['RePrint']) and $_POST['RePrint']==1){ + if (isset($_POST['RePrint']) AND $_POST['RePrint']==1){ $_SESSION['PO'.$identifier]->AllowPrintPO=1; @@ -229,14 +229,15 @@ } else { $_POST['RePrint'] = 0; } - - echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PO_Items.php?identifier='.$identifier. '">'; - echo '<p>'; - prnMsg(_('You should automatically be forwarded to the entry of the purchase order line items page') . '. ' . - _('If this does not happen') . ' (' . _('if the browser does not support META Refresh') . ') ' . - '<a href="' . $rootpath . '/PO_Items.php?identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'),'info'); + if (!isset($_POST['AllowRePrint'])){ // user only hit update not "Enter Lines" + echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/PO_Items.php?identifier='.$identifier. '">'; + echo '<p>'; + prnMsg(_('You should automatically be forwarded to the entry of the purchase order line items page') . '. ' . + _('If this does not happen') . ' (' . _('if the browser does not support META Refresh') . ') ' . + '<a href="' . $rootpath . '/PO_Items.php?identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'),'info'); include('includes/footer.inc'); exit; + } } /* end of if isset _POST'EnterLines' */ echo '<span style="float:left"><a href="'. $rootpath . '/PO_SelectOSPurchOrder.php?identifier='.$identifier.'">'. _('Back to Purchase Orders'). '</a></span>'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-31 01:31:41 UTC (rev 4645) +++ trunk/doc/Change.log 2011-07-31 04:42:09 UTC (rev 4646) @@ -1,5 +1,6 @@ webERP Change Log +31/7/11 Phil: PO_Header.php - was not updating when update hit as reported by Klaus(opto) 31/7/11 Phil: BackupDatabase.php script 30/7/11 Phil: SelectCreditItems.php made it so if several sessions creating a credit note they no longer over-write each other. 30/7/11 Ricard: POItems.php now checks for return of more than 1 purchasing data from the supplier and takes the newest record This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-31 01:31:47
|
Revision: 4645 http://web-erp.svn.sourceforge.net/web-erp/?rev=4645&view=rev Author: daintree Date: 2011-07-31 01:31:41 +0000 (Sun, 31 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/UpgradeDatabase.php trunk/doc/Change.log Added Paths: ----------- trunk/BackupDatabase.php Added: trunk/BackupDatabase.php =================================================================== --- trunk/BackupDatabase.php (rev 0) +++ trunk/BackupDatabase.php 2011-07-31 01:31:41 UTC (rev 4645) @@ -0,0 +1,48 @@ +<?php +/* $Id BackupDatabase.php 4183 2010-12-14 09:30:20Z daintree $ */ + +$PageSecurity = 15; //hard coded in case database is old and PageSecurity stuff cannot be retrieved + +include('includes/session.inc'); +$title = _('Backup webERP Database'); +include('includes/header.inc'); + +if (isset($_GET['BackupFile'])){ + unlink($_SERVER['DOCUMENT_ROOT'] . $_GET['BackupFile']); + prnMsg(_('The backup file has been deleted'),'success'); +} else { + + $BackupFile = $rootpath . '/companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; + $Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . + $_SERVER['DOCUMENT_ROOT'] . $BackupFile; + + + $CommandOutput = array(); + exec($Command,$CommandOutput, $ReturnValue); + + if ($ReturnValue ==0) { + prnMsg(_('The backup file has now been created. You must now download this to your computer because in case the web-server has a disk failure the backup would then not on the same machine. Use the link below') . '<br /><br /><a href="' . $BackupFile . '">' . _('Download the backup file to your locale machine') . '</a>','success'); + prnMsg(_('Once you have downloaded the database backup file to your local machine you should use the link below to delete it - backup files can consume a lot of space on your hosting account and will accumulate if not deleted - they also contain sensitive information which would otherwise be available for others to download!'),'info'); + echo '<br /> + <br /> + <a href="'. $_SERVER['PHP_SELF'] . '?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'); + } +} +/* +//this could be a weighty file attachment!! +include('includes/htmlMimeMail.php'); +$mail = new htmlMimeMail(); +$attachment = $mail->getFile( $BackupFile); +$mail->setText(_('webERP backup file attached')); +$mail->addAttachment($attachment, $BackupFile, 'application/gz'); +$mail->setSubject(_('Database Backup')); +$mail->setFrom($_SESSION['CompanyRecord']['coyname'] . '<' . $_SESSION['CompanyRecord']['email'] . '>'); +$result = $mail->send(array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>')); + +prnMsg(_('A backup of the database has been taken and emailed to you'), 'info'); +unlink($BackupFile); // would be a security issue to leave it there for all to download/see +*/ +include('includes/footer.inc'); +?> \ No newline at end of file Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-07-30 06:58:14 UTC (rev 4644) +++ trunk/UpgradeDatabase.php 2011-07-31 01:31:41 UTC (rev 4645) @@ -9,7 +9,6 @@ if (!isset($_POST['DoUpgrade'])){ - prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts.') . '<br />' . _('You should do a backup now before proceeding!'),'info'); echo '<p><form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -35,11 +34,16 @@ if ($_SESSION['VersionNumber']=='4.00RC1'){ $_SESSION['VersionNumber']='3.12'; } - prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is') . ' ' . $_SESSION['VersionNumber'],'info'); - echo '<input type="hidden" name="OldVersion" value="' . $_SESSION['VersionNumber'] . '" />'; + if ( $_SESSION['VersionNumber'] == $Version){ + prnMsg(_('The database is up to date, there are no upgrades to perform'),'info'); + } else { + prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts.') . '<br />' . _('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is') . ' ' . $_SESSION['VersionNumber'] . '<br /><a target="_blank" href="' . $rootpath . '/BackupDatabase.php">' ._('Click to do a database backup now before proceeding!') . '</a>','info'); + + echo '<input type="hidden" name="OldVersion" value="' . $_SESSION['VersionNumber'] . '" />'; + echo '<div class="centre"><input type="submit" name="DoUpgrade" value="' . _('Perform Database Upgrade') . '" /></div>'; + } } - - echo '<div class="centre"><input type="submit" name="DoUpgrade" value="' . _('Perform Database Upgrade') . '" /></div>'; + echo '</form>'; } @@ -47,26 +51,6 @@ if ($dbType=='mysql' OR $dbType =='mysqli'){ - /* First do a backup - $BackupFile = $PathPrefix . './companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; - $Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . $BackupFile; - system($Command); - - //this could be a weighty file attachment!! - include('includes/htmlMimeMail.php'); - $mail = new htmlMimeMail(); - $attachment = $mail->getFile( $BackupFile); - $mail->setText(_('webERP backup file attached')); - $mail->addAttachment($attachment, $BackupFile, 'application/gz'); - $mail->setSubject(_('Database Backup')); - $mail->setFrom($_SESSION['CompanyRecord']['coyname'] . '<' . $_SESSION['CompanyRecord']['email'] . '>'); - $result = $mail->send(array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>')); - - prnMsg(_('A backup of the database has been taken and emailed to you'), 'info'); - unlink($BackupFile); // would be a security issue to leave it there for all to download/see - - */ - $SQLScripts = array(); if ($_POST['OldVersion']=='Manual') { Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-30 06:58:14 UTC (rev 4644) +++ trunk/doc/Change.log 2011-07-31 01:31:41 UTC (rev 4645) @@ -1,5 +1,6 @@ webERP Change Log +31/7/11 Phil: BackupDatabase.php script 30/7/11 Phil: SelectCreditItems.php made it so if several sessions creating a credit note they no longer over-write each other. 30/7/11 Ricard: POItems.php now checks for return of more than 1 purchasing data from the supplier and takes the newest record This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-31 01:31:47
|
Revision: 4645 http://web-erp.svn.sourceforge.net/web-erp/?rev=4645&view=rev Author: daintree Date: 2011-07-31 01:31:41 +0000 (Sun, 31 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/UpgradeDatabase.php trunk/doc/Change.log Added Paths: ----------- trunk/BackupDatabase.php Added: trunk/BackupDatabase.php =================================================================== --- trunk/BackupDatabase.php (rev 0) +++ trunk/BackupDatabase.php 2011-07-31 01:31:41 UTC (rev 4645) @@ -0,0 +1,48 @@ +<?php +/* $Id BackupDatabase.php 4183 2010-12-14 09:30:20Z daintree $ */ + +$PageSecurity = 15; //hard coded in case database is old and PageSecurity stuff cannot be retrieved + +include('includes/session.inc'); +$title = _('Backup webERP Database'); +include('includes/header.inc'); + +if (isset($_GET['BackupFile'])){ + unlink($_SERVER['DOCUMENT_ROOT'] . $_GET['BackupFile']); + prnMsg(_('The backup file has been deleted'),'success'); +} else { + + $BackupFile = $rootpath . '/companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; + $Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . + $_SERVER['DOCUMENT_ROOT'] . $BackupFile; + + + $CommandOutput = array(); + exec($Command,$CommandOutput, $ReturnValue); + + if ($ReturnValue ==0) { + prnMsg(_('The backup file has now been created. You must now download this to your computer because in case the web-server has a disk failure the backup would then not on the same machine. Use the link below') . '<br /><br /><a href="' . $BackupFile . '">' . _('Download the backup file to your locale machine') . '</a>','success'); + prnMsg(_('Once you have downloaded the database backup file to your local machine you should use the link below to delete it - backup files can consume a lot of space on your hosting account and will accumulate if not deleted - they also contain sensitive information which would otherwise be available for others to download!'),'info'); + echo '<br /> + <br /> + <a href="'. $_SERVER['PHP_SELF'] . '?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'); + } +} +/* +//this could be a weighty file attachment!! +include('includes/htmlMimeMail.php'); +$mail = new htmlMimeMail(); +$attachment = $mail->getFile( $BackupFile); +$mail->setText(_('webERP backup file attached')); +$mail->addAttachment($attachment, $BackupFile, 'application/gz'); +$mail->setSubject(_('Database Backup')); +$mail->setFrom($_SESSION['CompanyRecord']['coyname'] . '<' . $_SESSION['CompanyRecord']['email'] . '>'); +$result = $mail->send(array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>')); + +prnMsg(_('A backup of the database has been taken and emailed to you'), 'info'); +unlink($BackupFile); // would be a security issue to leave it there for all to download/see +*/ +include('includes/footer.inc'); +?> \ No newline at end of file Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-07-30 06:58:14 UTC (rev 4644) +++ trunk/UpgradeDatabase.php 2011-07-31 01:31:41 UTC (rev 4645) @@ -9,7 +9,6 @@ if (!isset($_POST['DoUpgrade'])){ - prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts.') . '<br />' . _('You should do a backup now before proceeding!'),'info'); echo '<p><form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -35,11 +34,16 @@ if ($_SESSION['VersionNumber']=='4.00RC1'){ $_SESSION['VersionNumber']='3.12'; } - prnMsg(_('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is') . ' ' . $_SESSION['VersionNumber'],'info'); - echo '<input type="hidden" name="OldVersion" value="' . $_SESSION['VersionNumber'] . '" />'; + if ( $_SESSION['VersionNumber'] == $Version){ + prnMsg(_('The database is up to date, there are no upgrades to perform'),'info'); + } else { + prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts.') . '<br />' . _('The webERP code is version') . ' ' . $Version . ' ' . _('and the database version is') . ' ' . $_SESSION['VersionNumber'] . '<br /><a target="_blank" href="' . $rootpath . '/BackupDatabase.php">' ._('Click to do a database backup now before proceeding!') . '</a>','info'); + + echo '<input type="hidden" name="OldVersion" value="' . $_SESSION['VersionNumber'] . '" />'; + echo '<div class="centre"><input type="submit" name="DoUpgrade" value="' . _('Perform Database Upgrade') . '" /></div>'; + } } - - echo '<div class="centre"><input type="submit" name="DoUpgrade" value="' . _('Perform Database Upgrade') . '" /></div>'; + echo '</form>'; } @@ -47,26 +51,6 @@ if ($dbType=='mysql' OR $dbType =='mysqli'){ - /* First do a backup - $BackupFile = $PathPrefix . './companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; - $Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . $BackupFile; - system($Command); - - //this could be a weighty file attachment!! - include('includes/htmlMimeMail.php'); - $mail = new htmlMimeMail(); - $attachment = $mail->getFile( $BackupFile); - $mail->setText(_('webERP backup file attached')); - $mail->addAttachment($attachment, $BackupFile, 'application/gz'); - $mail->setSubject(_('Database Backup')); - $mail->setFrom($_SESSION['CompanyRecord']['coyname'] . '<' . $_SESSION['CompanyRecord']['email'] . '>'); - $result = $mail->send(array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>')); - - prnMsg(_('A backup of the database has been taken and emailed to you'), 'info'); - unlink($BackupFile); // would be a security issue to leave it there for all to download/see - - */ - $SQLScripts = array(); if ($_POST['OldVersion']=='Manual') { Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-30 06:58:14 UTC (rev 4644) +++ trunk/doc/Change.log 2011-07-31 01:31:41 UTC (rev 4645) @@ -1,5 +1,6 @@ webERP Change Log +31/7/11 Phil: BackupDatabase.php script 30/7/11 Phil: SelectCreditItems.php made it so if several sessions creating a credit note they no longer over-write each other. 30/7/11 Ricard: POItems.php now checks for return of more than 1 purchasing data from the supplier and takes the newest record This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-30 06:58:21
|
Revision: 4644 http://web-erp.svn.sourceforge.net/web-erp/?rev=4644&view=rev Author: daintree Date: 2011-07-30 06:58:14 +0000 (Sat, 30 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/PO_Items.php trunk/SelectCreditItems.php trunk/doc/Change.log trunk/includes/PDFTransPageHeader.inc trunk/includes/PDFTransPageHeaderPortrait.inc trunk/includes/session.inc Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-07-29 05:55:03 UTC (rev 4643) +++ trunk/PO_Items.php 2011-07-30 06:58:14 UTC (rev 4644) @@ -554,12 +554,13 @@ purchdata.supplierdescription, purchdata.suppliersuom, purchdata.suppliers_partno, - purchdata.leadtime"; + purchdata.leadtime + ORDER BY latesteffectivefrom DESC"; $ErrMsg = _('The purchasing data for') . ' ' . $ItemCode . ' ' . _('could not be retrieved because'); $DbgMsg = _('The SQL used to retrieve the purchasing data but failed was'); $PurchDataResult = DB_query($sql,$db,$ErrMsg,$DbgMsg); - if (DB_num_rows($PurchDataResult)==1){ //the purchasing data is set up + if (DB_num_rows($PurchDataResult)>0){ //the purchasing data is set up $PurchRow = DB_fetch_array($PurchDataResult); $PurchPrice = $PurchRow['price']/$PurchRow['conversionfactor']; $ConversionFactor = $PurchRow['conversionfactor']; Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2011-07-29 05:55:03 UTC (rev 4643) +++ trunk/SelectCreditItems.php 2011-07-30 06:58:14 UTC (rev 4644) @@ -18,7 +18,14 @@ include('includes/GetPrice.inc'); -if (isset($_POST['ProcessCredit']) AND !isset($_SESSION['CreditItems'])){ +if (empty($_GET['identifier'])) { + /*unique session identifier to ensure that there is no conflict with other order entry sessions on the same machine */ + $identifier=date('U'); +} else { + $identifier=$_GET['identifier']; +} + +if (isset($_POST['ProcessCredit']) AND !isset($_SESSION['CreditItems'.$identifier])){ prnMsg(_('This credit note has already been processed. Refreshing the page will not enter the credit note again') . '<br />' . _('Please use the navigation links provided rather than using the browser back button and then having to refresh'),'info'); echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; include('includes/footer.inc'); @@ -27,17 +34,17 @@ if (isset($_GET['NewCredit'])){ /*New credit note entry - clear any existing credit note details from the Items object and initiate a newy*/ - if (isset($_SESSION['CreditItems'])){ - unset ($_SESSION['CreditItems']->LineItems); - unset ($_SESSION['CreditItems']); + if (isset($_SESSION['CreditItems'.$identifier])){ + unset ($_SESSION['CreditItems'.$identifier]->LineItems); + unset ($_SESSION['CreditItems'.$identifier]); } } -if (!isset($_SESSION['CreditItems'])){ - /* It must be a new credit note being created $_SESSION['CreditItems'] would be set up from a previous call*/ +if (!isset($_SESSION['CreditItems'.$identifier])){ + /* It must be a new credit note being created $_SESSION['CreditItems'.$identifier] would be set up from a previous call*/ - $_SESSION['CreditItems'] = new cart; + $_SESSION['CreditItems'.$identifier] = new cart; $_SESSION['RequireCustomerSelection'] = 1; } @@ -51,9 +58,9 @@ } if (isset($_POST['CancelCredit'])) { - unset($_SESSION['CreditItems']->LineItems); - unset($_SESSION['CreditItems']); - $_SESSION['CreditItems'] = new cart; + unset($_SESSION['CreditItems'.$identifier]->LineItems); + unset($_SESSION['CreditItems'.$identifier]); + $_SESSION['CreditItems'.$identifier] = new cart; $_SESSION['RequireCustomerSelection'] = 1; } @@ -138,8 +145,8 @@ Now retrieve customer information - name, salestype, currency, terms etc */ - $_SESSION['CreditItems']->DebtorNo = $SelectedCustomer; - $_SESSION['CreditItems']->Branch = $SelectedBranch; + $_SESSION['CreditItems'.$identifier]->DebtorNo = $SelectedCustomer; + $_SESSION['CreditItems'.$identifier]->Branch = $SelectedBranch; $_SESSION['RequireCustomerSelection'] = 0; /* default the branch information from the customer branches table CustBranch -particularly where the stock @@ -166,8 +173,8 @@ INNER JOIN locations ON locations.loccode=custbranch.defaultlocation INNER JOIN debtorsmaster ON custbranch.debtorno=debtorsmaster.debtorno INNER JOIN currencies ON debtorsmaster.currcode=currencies.currabrev - WHERE custbranch.branchcode='" . $_SESSION['CreditItems']->Branch . "' - AND custbranch.debtorno = '" . $_SESSION['CreditItems']->DebtorNo . "'"; + WHERE custbranch.branchcode='" . $_SESSION['CreditItems'.$identifier]->Branch . "' + AND custbranch.debtorno = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "'"; $ErrMsg = _('The customer branch record of the customer selected') . ': ' . $SelectedCustomer . ' ' . _('cannot be retrieved because'); $DbgMsg = _('SQL used to retrieve the branch details was'); @@ -177,43 +184,44 @@ /* the sales type determines the price list to be used by default the customer of the user is defaulted from the entry of the userid and password. */ - $_SESSION['CreditItems']->CustomerName = $myrow['name']; - $_SESSION['CreditItems']->DefaultSalesType = $myrow['salestype']; - $_SESSION['CreditItems']->DefaultCurrency = $myrow['currcode']; - $_SESSION['CreditItems']->CurrDecimalPlaces = $myrow['decimalplaces']; + $_SESSION['CreditItems'.$identifier]->CustomerName = $myrow['name']; + $_SESSION['CreditItems'.$identifier]->DefaultSalesType = $myrow['salestype']; + $_SESSION['CreditItems'.$identifier]->DefaultCurrency = $myrow['currcode']; + $_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces = $myrow['decimalplaces']; $_SESSION['CurrencyRate'] = $myrow['rate']; - $_SESSION['CreditItems']->DeliverTo = $myrow['brname']; - $_SESSION['CreditItems']->BrAdd1 = $myrow['braddress1']; - $_SESSION['CreditItems']->BrAdd2 = $myrow['braddress2']; - $_SESSION['CreditItems']->BrAdd3 = $myrow['braddress3']; - $_SESSION['CreditItems']->BrAdd4 = $myrow['braddress4']; - $_SESSION['CreditItems']->BrAdd5 = $myrow['braddress5']; - $_SESSION['CreditItems']->BrAdd6 = $myrow['braddress6']; - $_SESSION['CreditItems']->PhoneNo = $myrow['phoneno']; - $_SESSION['CreditItems']->Email = $myrow['email']; - $_SESSION['CreditItems']->Location = $myrow['defaultlocation']; - $_SESSION['CreditItems']->TaxGroup = $myrow['taxgroupid']; - $_SESSION['CreditItems']->DispatchTaxProvince = $myrow['taxprovinceid']; - $_SESSION['CreditItems']->GetFreightTaxes(); + $_SESSION['CreditItems'.$identifier]->DeliverTo = $myrow['brname']; + $_SESSION['CreditItems'.$identifier]->BrAdd1 = $myrow['braddress1']; + $_SESSION['CreditItems'.$identifier]->BrAdd2 = $myrow['braddress2']; + $_SESSION['CreditItems'.$identifier]->BrAdd3 = $myrow['braddress3']; + $_SESSION['CreditItems'.$identifier]->BrAdd4 = $myrow['braddress4']; + $_SESSION['CreditItems'.$identifier]->BrAdd5 = $myrow['braddress5']; + $_SESSION['CreditItems'.$identifier]->BrAdd6 = $myrow['braddress6']; + $_SESSION['CreditItems'.$identifier]->PhoneNo = $myrow['phoneno']; + $_SESSION['CreditItems'.$identifier]->Email = $myrow['email']; + $_SESSION['CreditItems'.$identifier]->Location = $myrow['defaultlocation']; + $_SESSION['CreditItems'.$identifier]->TaxGroup = $myrow['taxgroupid']; + $_SESSION['CreditItems'.$identifier]->DispatchTaxProvince = $myrow['taxprovinceid']; + $_SESSION['CreditItems'.$identifier]->GetFreightTaxes(); } /* if the change customer button hit or the customer has not already been selected */ if ($_SESSION['RequireCustomerSelection'] ==1 - OR !isset($_SESSION['CreditItems']->DebtorNo) - OR $_SESSION['CreditItems']->DebtorNo=='' ) { + OR !isset($_SESSION['CreditItems'.$identifier]->DebtorNo) + OR $_SESSION['CreditItems'.$identifier]->DebtorNo=='' ) { - echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">'; + echo '<form action="' . $_SERVER['PHP_SELF'] . '?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/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Select Customer For Credit Note').'</p>'; + echo '<table cellpadding="3" colspan="4" class="selection">'; echo '<tr><th colspan="5"><font size="3" color="navy"><b> ' . _('Customer Selection') . '</b></font></th></tr>'; echo '<tr>'; echo '<td><font size="1">' . _('Enter text in the customer name') . ':</font></td>'; - echo '<td><input type="text" name="Keywords" size=20 maxlength=25></td>'; + echo '<td><input type="text" name="Keywords" size="20" maxlength="25" /></td>'; echo '<td><font size="3"><b>' . _('OR') . '</b></font></td>'; echo '<td><font size="1">' . _('Enter text extract in the customer code') . ':</font></td>'; - echo '<td><input type="text" name="CustCode" size="15" maxlength="18"></td>'; + echo '<td><input type="text" name="CustCode" size="15" maxlength="18" /></td>'; echo '</tr>'; echo '</table>'; echo '<br /><div class="centre"><input type="submit" name="SearchCust" value="' . _('Search Now') . '"></div>'; @@ -261,7 +269,7 @@ $j++; //end of page full new headings if } //end of while loop - echo '<input type="hidden" name="JustSelectedACustomer" value="Yes">'; + echo '<input type="hidden" name="JustSelectedACustomer" value="Yes" />'; echo '</table></form>'; }//end if results to show @@ -272,7 +280,7 @@ first add a header to show who we are making a credit note for */ echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/magnifier.png" title="' . - _('Search') . '" alt="" />' . ' ' . $_SESSION['CreditItems']->CustomerName . ' - ' . $_SESSION['CreditItems']->DeliverTo.'</p>'; + _('Search') . '" alt="" />' . ' ' . $_SESSION['CreditItems'.$identifier]->CustomerName . ' - ' . $_SESSION['CreditItems'.$identifier]->DeliverTo.'</p>'; /* do the search for parts that might be being looked up to add to the credit note */ if (isset($_POST['Search'])){ @@ -281,7 +289,7 @@ prnMsg( _('Stock description keywords have been used in preference to the Stock code extract entered') . '.', 'info' ); } - if ($_POST['Keywords']!="") { + if ($_POST['Keywords']!='') { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -289,9 +297,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.description " . LIKE . " '" . $SearchString . "' GROUP BY stockmaster.stockid, stockmaster.description, @@ -301,10 +309,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, - stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.description " . LIKE . " '" . $SearchString . "' AND stockmaster.categoryid='" . $_POST['StockCat'] . "' GROUP BY stockmaster.stockid, @@ -319,10 +326,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, - stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.stockid " . LIKE . " '" . $_POST['StockCode'] . "' GROUP BY stockmaster.stockid, stockmaster.description, @@ -332,10 +338,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, - stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.stockid " . LIKE . " '" . $_POST['StockCode'] . "' AND stockmaster.categoryid='" . $_POST['StockCat'] . "' GROUP BY stockmaster.stockid, @@ -348,9 +353,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') GROUP BY stockmaster.stockid, stockmaster.description, stockmaster.units @@ -359,10 +364,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, - stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.categoryid='" . $_POST['StockCat'] . "' GROUP BY stockmaster.stockid, stockmaster.description, @@ -391,7 +395,7 @@ /*Always do the stuff below if not looking for a customerid Set up the form for the credit note display and entry*/ - echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">'; + echo '<form action="' . $_SERVER['PHP_SELF'] . '?identifier='.$identifier . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -416,7 +420,7 @@ $AlreadyOnThisCredit =0; - foreach ($_SESSION['CreditItems']->LineItems AS $OrderItem) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems AS $OrderItem) { /* do a loop round the items on the credit note to see that the item is not already on this credit note */ @@ -449,41 +453,40 @@ if ($myrow = DB_fetch_array($result1)){ - $LineNumber = $_SESSION['CreditItems']->LineCounter; + $LineNumber = $_SESSION['CreditItems'.$identifier]->LineCounter; - if ($_SESSION['CreditItems']->add_to_cart ($myrow['stockid'], - $NewItemQty, - $myrow['description'], - GetPrice ($_POST['NewItem'], - $_SESSION['CreditItems']->DebtorNo, - $_SESSION['CreditItems']->Branch, $db), - 0, - $myrow['units'], - $myrow['volume'], - $myrow['kgs'], - 0, - $myrow['mbflag'], - Date($_SESSION['DefaultDateFormat']), - 0, - $myrow['discountcategory'], - $myrow['controlled'], - $myrow['serialised'], - $myrow['decimalplaces'], - '', - 'No', - -1, - $myrow['taxcatid'], - '', - '', - '', - $myrow['standardcost']) ==1){ - + if ($_SESSION['CreditItems'.$identifier]->add_to_cart ($myrow['stockid'], + $NewItemQty, + $myrow['description'], + GetPrice ($_POST['NewItem'], + $_SESSION['CreditItems'.$identifier]->DebtorNo, + $_SESSION['CreditItems'.$identifier]->Branch, $db), + 0, + $myrow['units'], + $myrow['volume'], + $myrow['kgs'], + 0, + $myrow['mbflag'], + Date($_SESSION['DefaultDateFormat']), + 0, + $myrow['discountcategory'], + $myrow['controlled'], + $myrow['serialised'], + $myrow['decimalplaces'], + '', + 'No', + -1, + $myrow['taxcatid'], + '', + '', + '', + $myrow['standardcost']) ==1){ - $_SESSION['CreditItems']->GetTaxes($LineNumber); + $_SESSION['CreditItems'.$identifier]->GetTaxes($LineNumber); if ($myrow['controlled']==1){ /*Qty must be built up from serial item entries */ - $_SESSION['CreditItems']->LineItems[$LineNumber]->Quantity = 0; + $_SESSION['CreditItems'.$identifier]->LineItems[$LineNumber]->Quantity = 0; } } @@ -499,31 +502,31 @@ /* setup system defaults for looking up prices and the number of ordered items if an item has been selected for adding to the basket add it to the session arrays */ - if ($_SESSION['CreditItems']->ItemsOrdered > 0 OR isset($_POST['NewItem'])){ + if ($_SESSION['CreditItems'.$identifier]->ItemsOrdered > 0 OR isset($_POST['NewItem'])){ if (isset($_GET['Delete'])){ - $_SESSION['CreditItems']->remove_from_cart($_GET['Delete']); + $_SESSION['CreditItems'.$identifier]->remove_from_cart($_GET['Delete']); } if (isset($_POST['ChargeFreightCost'])){ - $_SESSION['CreditItems']->FreightCost = $_POST['ChargeFreightCost']; + $_SESSION['CreditItems'.$identifier]->FreightCost = $_POST['ChargeFreightCost']; } - if (isset($_POST['Location']) AND $_POST['Location'] != $_SESSION['CreditItems']->Location){ + if (isset($_POST['Location']) AND $_POST['Location'] != $_SESSION['CreditItems'.$identifier]->Location){ - $_SESSION['CreditItems']->Location = $_POST['Location']; + $_SESSION['CreditItems'.$identifier]->Location = $_POST['Location']; $NewDispatchTaxProvResult = DB_query("SELECT taxprovinceid FROM locations WHERE loccode='" . $_POST['Location'] . "'",$db); $myrow = DB_fetch_array($NewDispatchTaxProvResult); - $_SESSION['CreditItems']->DispatchTaxProvince = $myrow['taxprovinceid']; + $_SESSION['CreditItems'.$identifier]->DispatchTaxProvince = $myrow['taxprovinceid']; - foreach ($_SESSION['CreditItems']->LineItems as $LineItem) { - $_SESSION['CreditItems']->GetTaxes($LineItem->LineNumber); + foreach ($_SESSION['CreditItems'.$identifier]->LineItems as $LineItem) { + $_SESSION['CreditItems'.$identifier]->GetTaxes($LineItem->LineNumber); } } - foreach ($_SESSION['CreditItems']->LineItems as $LineItem) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems as $LineItem) { if (isset($_POST['Quantity_' . $LineItem->LineNumber])){ @@ -540,7 +543,7 @@ $TaxTotalPercent += $Tax->TaxRate; } } - $Price = round($_POST['Price_' . $LineItem->LineNumber]/($TaxTotalPercent + 1),2); + $Price = round($_POST['Price_' . $LineItem->LineNumber]/($TaxTotalPercent + 1),$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); } else { $Price = $_POST['Price_' . $LineItem->LineNumber]; } @@ -549,30 +552,30 @@ foreach ($LineItem->Taxes as $TaxLine) { if (isset($_POST[$LineItem->LineNumber . $TaxLine->TaxCalculationOrder . '_TaxRate'])){ - $_SESSION['CreditItems']->LineItems[$LineItem->LineNumber]->Taxes[$TaxLine->TaxCalculationOrder]->TaxRate = $_POST[$LineItem->LineNumber . $TaxLine->TaxCalculationOrder . '_TaxRate']/100; + $_SESSION['CreditItems'.$identifier]->LineItems[$LineItem->LineNumber]->Taxes[$TaxLine->TaxCalculationOrder]->TaxRate = $_POST[$LineItem->LineNumber . $TaxLine->TaxCalculationOrder . '_TaxRate']/100; } } } if ($Quantity<0 OR $Price <0 OR $DiscountPercentage >100 OR $DiscountPercentage <0){ prnMsg(_('The item could not be updated because you are attempting to set the quantity credited to less than 0 or the price less than 0 or the discount more than 100% or less than 0%'),'warn'); } elseif (isset($_POST['Quantity_' . $LineItem->LineNumber])) { - $_SESSION['CreditItems']->update_cart_item($LineItem->LineNumber, - $Quantity, - $Price, - $DiscountPercentage/100, - $Narrative, - 'No', - $LineItem->ItemDue, - $LineItem->POLine, - 0); + $_SESSION['CreditItems'.$identifier]->update_cart_item($LineItem->LineNumber, + $Quantity, + $Price, + $DiscountPercentage/100, + $Narrative, + 'No', + $LineItem->ItemDue, + $LineItem->POLine, + 0); } } } - foreach ($_SESSION['CreditItems']->FreightTaxes as $FreightTaxLine) { + foreach ($_SESSION['CreditItems'.$identifier]->FreightTaxes as $FreightTaxLine) { if (isset($_POST['FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder])){ - $_SESSION['CreditItems']->FreightTaxes[$FreightTaxLine->TaxCalculationOrder]->TaxRate = $_POST['FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder]/100; + $_SESSION['CreditItems'.$identifier]->FreightTaxes[$FreightTaxLine->TaxCalculationOrder]->TaxRate = $_POST['FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder]/100; } } @@ -581,12 +584,12 @@ $AlreadyOnThisCredit =0; - foreach ($_SESSION['CreditItems']->LineItems AS $OrderItem) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems AS $OrderItem) { /* do a loop round the items on the credit note to see that the item is not already on this credit note */ - if ($_SESSION['SO_AllowSameItemMultipleTimes']==0 && strcasecmp($OrderItem->StockID, $_POST['NewItem']) == 0) { + if ($_SESSION['SO_AllowSameItemMultipleTimes']==0 AND strcasecmp($OrderItem->StockID, $_POST['NewItem']) == 0) { $AlreadyOnThisCredit = 1; prnMsg(_('The item selected is already on this credit the system will not allow the same item on the credit note more than once. However you can change the quantity credited of the existing line if necessary.'),'warn'); } @@ -614,14 +617,14 @@ $result1 = DB_query($sql,$db,$ErrMsg,$DbgMsg); $myrow = DB_fetch_array($result1); - $LineNumber = $_SESSION['CreditItems']->LineCounter; + $LineNumber = $_SESSION['CreditItems'.$identifier]->LineCounter; /*validate the data returned before adding to the items to credit */ - if ($_SESSION['CreditItems']->add_to_cart ($myrow['stockid'], + if ($_SESSION['CreditItems'.$identifier]->add_to_cart ($myrow['stockid'], 1, $myrow['description'], GetPrice($_POST['NewItem'], - $_SESSION['CreditItems']->DebtorNo, - $_SESSION['CreditItems']->Branch, + $_SESSION['CreditItems'.$identifier]->DebtorNo, + $_SESSION['CreditItems'.$identifier]->Branch, $db), 0, $myrow['units'], @@ -644,11 +647,11 @@ '', $myrow['standardcost']) ==1){ - $_SESSION['CreditItems']->GetTaxes($LineNumber); + $_SESSION['CreditItems'.$identifier]->GetTaxes($LineNumber); if ($myrow['controlled']==1){ /*Qty must be built up from serial item entries */ - $_SESSION['CreditItems']->LineItems[$LineNumber]->Quantity = 0; + $_SESSION['CreditItems'.$identifier]->LineItems[$LineNumber]->Quantity = 0; } } } /* end of if not already on the credit note */ @@ -672,19 +675,19 @@ <th>' . _('Total') . '<br />' . _('Incl Tax') . '</th> </tr>'; - $_SESSION['CreditItems']->total = 0; - $_SESSION['CreditItems']->totalVolume = 0; - $_SESSION['CreditItems']->totalWeight = 0; + $_SESSION['CreditItems'.$identifier]->total = 0; + $_SESSION['CreditItems'.$identifier]->totalVolume = 0; + $_SESSION['CreditItems'.$identifier]->totalWeight = 0; $TaxTotal = 0; $TaxTotals = array(); $TaxGLCodes = array(); $k =0; //row colour counter - foreach ($_SESSION['CreditItems']->LineItems as $LineItem) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems as $LineItem) { - $LineTotal = round($LineItem->Quantity * $LineItem->Price * (1 - $LineItem->DiscountPercent),$_SESSION['CreditItems']->CurrDecimalPlaces); - $DisplayLineTotal = number_format($LineTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); + $LineTotal = round($LineItem->Quantity * $LineItem->Price * (1 - $LineItem->DiscountPercent),$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); + $DisplayLineTotal = number_format($LineTotal,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); if ($k==1){ $RowStarter = '<tr class="EvenTableRows">'; @@ -698,9 +701,9 @@ <td>' . $LineItem->ItemDescription . '</td>'; if ($LineItem->Controlled==0){ - echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength=6 size=6 value=' . $LineItem->Quantity . '></td>'; + echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength="6" size="6" value=' . $LineItem->Quantity . '></td>'; } else { - echo '<td class=number><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LineItem->LineNumber . '">' . $LineItem->Quantity . '</a> + echo '<td class="number"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LineItem->LineNumber . '">' . $LineItem->Quantity . '</a> <input type=hidden name="Quantity_' . $LineItem->LineNumber . '" value=' . $LineItem->Quantity . '></td>'; } @@ -708,13 +711,13 @@ <td><input type="text" class="number" name="Price_' . $LineItem->LineNumber . '" size=10 maxlength=12 value=' . $LineItem->Price . '></td> <td><input type="CheckBox" name="Gross" value=False></td> <td><input type="text" class="number" name="Discount_' . $LineItem->LineNumber . '" size=3 maxlength=3 value=' . ($LineItem->DiscountPercent * 100) . '>%</td> - <td class=number>' . $DisplayLineTotal . '</td>'; + <td class="number">' . $DisplayLineTotal . '</td>'; /*Need to list the taxes applicable to this line */ echo '<td>'; $i=0; - foreach ($_SESSION['CreditItems']->LineItems[$LineItem->LineNumber]->Taxes AS $Tax) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems[$LineItem->LineNumber]->Taxes AS $Tax) { if ($i>0){ echo '<br />'; } @@ -746,38 +749,38 @@ $TaxTotal += $TaxLineTotal; - $DisplayTaxAmount = number_format($TaxLineTotal ,$_SESSION['CreditItems']->CurrDecimalPlaces); - $DisplayGrossLineTotal = number_format($LineTotal+ $TaxLineTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); + $DisplayTaxAmount = number_format($TaxLineTotal ,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); + $DisplayGrossLineTotal = number_format($LineTotal+ $TaxLineTotal,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); echo '<td class="number">' . $DisplayTaxAmount . '</td> <td class="number">' . $DisplayGrossLineTotal . '</td> - <td><a href="' . $_SERVER['PHP_SELF'] . '?Delete=' . $LineItem->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this line item from the credit note?') . '\');">' . _('Delete') . '</a></td> + <td><a href="' . $_SERVER['PHP_SELF'] . '?identifier=' . $identifier . '&Delete=' . $LineItem->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this line item from the credit note?') . '\');">' . _('Delete') . '</a></td> </tr>'; echo $RowStarter; echo '<td colspan=11><textarea name="Narrative_' . $LineItem->LineNumber . '" cols=100% rows=1>' . $LineItem->Narrative . '</textarea><br /></td></tr>'; - $_SESSION['CreditItems']->total = $_SESSION['CreditItems']->total + $LineTotal; - $_SESSION['CreditItems']->totalVolume = $_SESSION['CreditItems']->totalVolume + $LineItem->Quantity * $LineItem->Volume; $_SESSION['CreditItems']->totalWeight = $_SESSION['CreditItems']->totalWeight + $LineItem->Quantity * $LineItem->Weight; + $_SESSION['CreditItems'.$identifier]->total = $_SESSION['CreditItems'.$identifier]->total + $LineTotal; + $_SESSION['CreditItems'.$identifier]->totalVolume = $_SESSION['CreditItems'.$identifier]->totalVolume + $LineItem->Quantity * $LineItem->Volume; $_SESSION['CreditItems'.$identifier]->totalWeight = $_SESSION['CreditItems'.$identifier]->totalWeight + $LineItem->Quantity * $LineItem->Weight; } - if (!isset($_POST['ChargeFreightCost']) AND !isset($_SESSION['CreditItems']->FreightCost)){ + if (!isset($_POST['ChargeFreightCost']) AND !isset($_SESSION['CreditItems'.$identifier]->FreightCost)){ $_POST['ChargeFreightCost']=0; } echo '<tr> - <td colspan=5></td>'; + <td colspan="5"></td>'; echo '<td colspan="2" class="number">'. _('Credit Freight').'</td> - <td><input type="text" class="number" size=6 maxlength=6 name="ChargeFreightCost" value="' . $_SESSION['CreditItems']->FreightCost . '" /></td>'; + <td><input type="text" class="number" size=6 maxlength=6 name="ChargeFreightCost" value="' . $_SESSION['CreditItems'.$identifier]->FreightCost . '" /></td>'; $FreightTaxTotal =0; //initialise tax total echo '<td>'; $i=0; // initialise the number of taxes iterated through - foreach ($_SESSION['CreditItems']->FreightTaxes as $FreightTaxLine) { + foreach ($_SESSION['CreditItems'.$identifier]->FreightTaxes as $FreightTaxLine) { if ($i>0){ echo '<br />'; } @@ -788,38 +791,38 @@ echo '</td><td>'; $i=0; - foreach ($_SESSION['CreditItems']->FreightTaxes as $FreightTaxLine) { + foreach ($_SESSION['CreditItems'.$identifier]->FreightTaxes as $FreightTaxLine) { if ($i>0){ echo '<br />'; } - echo '<input type="text" class="number" name=FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder . ' maxlength=4 size=4 value="' . $FreightTaxLine->TaxRate * 100 . '" />'; + echo '<input type="text" class="number" name=FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder . ' maxlength="4" size="4" value="' . $FreightTaxLine->TaxRate * 100 . '" />'; if ($FreightTaxLine->TaxOnTax ==1){ - $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems']->FreightCost + $FreightTaxTotal)); - $FreightTaxTotal += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems']->FreightCost + $FreightTaxTotal)); + $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems'.$identifier]->FreightCost + $FreightTaxTotal)); + $FreightTaxTotal += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems'.$identifier]->FreightCost + $FreightTaxTotal)); } else { - $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * $_SESSION['CreditItems']->FreightCost); - $FreightTaxTotal += ($FreightTaxLine->TaxRate * $_SESSION['CreditItems']->FreightCost); + $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * $_SESSION['CreditItems'.$identifier]->FreightCost); + $FreightTaxTotal += ($FreightTaxLine->TaxRate * $_SESSION['CreditItems'.$identifier]->FreightCost); } $i++; $TaxGLCodes[$FreightTaxLine->TaxAuthID] = $FreightTaxLine->TaxGLCode; } echo '</td>'; - echo '<td class="number">' . number_format($FreightTaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> - <td class="number">' . number_format($FreightTaxTotal+ $_SESSION['CreditItems']->FreightCost,$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> + echo '<td class="number">' . number_format($FreightTaxTotal,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '</td> + <td class="number">' . number_format($FreightTaxTotal+ $_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '</td> </tr>'; $TaxTotal += $FreightTaxTotal; - $DisplayTotal = number_format($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost,$_SESSION['CreditItems']->CurrDecimalPlaces); + $DisplayTotal = number_format($_SESSION['CreditItems'.$identifier]->total + $_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); echo '<tr> <td colspan="7" class="number">' . _('Credit Totals') . '</td> <td class="number"><b>' . $DisplayTotal . '</b></td> <td colspan="2"></td> - <td class="number"><b>' . number_format($TaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> - <td class="number"><b>' . number_format($TaxTotal+($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost),$_SESSION['CreditItems']->CurrDecimalPlaces) . '</b></td> + <td class="number"><b>' . number_format($TaxTotal,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '</td> + <td class="number"><b>' . number_format($TaxTotal+($_SESSION['CreditItems'.$identifier]->total + $_SESSION['CreditItems'.$identifier]->FreightCost),$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '</b></td> </tr> </table>'; @@ -853,13 +856,14 @@ /*if the credit note is a return of goods then need to know which location to receive them into */ - echo '<tr><td>' . _('Goods Returned to Location') . ' :</td><td><select name=Location>'; + echo '<tr><td>' . _('Goods Returned to Location') . ' :</td> + <td><select name="Location">'; $SQL="SELECT loccode, locationname FROM locations"; $Result = DB_query($SQL,$db); if (!isset($_POST['Location'])){ - $_POST['Location'] = $_SESSION['CreditItems']->Location; + $_POST['Location'] = $_SESSION['CreditItems'.$identifier]->Location; } while ($myrow = DB_fetch_array($Result)) { @@ -877,10 +881,10 @@ $SQL="SELECT accountcode, accountname - FROM chartmaster, - accountgroups - WHERE chartmaster.group_=accountgroups.groupname - AND accountgroups.pandl=1 ORDER BY accountcode"; + FROM chartmaster INNER JOIN accountgroups + ON chartmaster.group_=accountgroups.groupname + WHERE accountgroups.pandl=1 + ORDER BY accountcode"; $Result = DB_query($SQL,$db); while ($myrow = DB_fetch_array($Result)) { @@ -911,7 +915,7 @@ <input type=submit name="Update" value="' . _('Update') . '" /> <input type=submit name="CancelCredit" value="' . _('Cancel') . '" onclick="return confirm(\'' . _('Are you sure you wish to cancel the whole of this credit note?') . '\');" />'; if (!isset($_POST['ProcessCredit']) AND $OKToProcess == true){ - echo '<input type=submit name="ProcessCredit" value="' . _('Process Credit Note') . '" /> + echo '<input type="submit" name="ProcessCredit" value="' . _('Process Credit Note') . '" /> <br />'; } echo '</div>'; @@ -1048,8 +1052,8 @@ $SQL = "SELECT area FROM custbranch - WHERE custbranch.debtorno ='". $_SESSION['CreditItems']->DebtorNo . "' - AND custbranch.branchcode = '" . $_SESSION['CreditItems']->Branch . "'"; + WHERE custbranch.debtorno ='". $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND custbranch.branchcode = '" . $_SESSION['CreditItems'.$identifier]->Branch . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The area cannot be determined for this customer'); $DbgMsg = _('The following SQL to insert the customer credit note was used'); $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); @@ -1098,15 +1102,15 @@ invtext) VALUES ('". $CreditNo . "', '11', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $SQLCreditDate . "', '" . date('Y-m-d H-i-s') . "', '" . $PeriodNo . "', - '" . $_SESSION['CreditItems']->DefaultSalesType . "', - '" . -($_SESSION['CreditItems']->total) . "', + '" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "', + '" . -($_SESSION['CreditItems'.$identifier]->total) . "', '" . -$TaxTotal . "', - '" . -$_SESSION['CreditItems']->FreightCost . "', + '" . -$_SESSION['CreditItems'.$identifier]->FreightCost . "', '" . $_SESSION['CurrencyRate'] . "', '" . $_POST['CreditText'] . "' )"; @@ -1135,7 +1139,7 @@ /* Insert stock movements for stock coming back in if the Credit is a return of goods */ - foreach ($_SESSION['CreditItems']->LineItems as $CreditLine) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems as $CreditLine) { If ($CreditLine->Quantity > 0){ @@ -1146,7 +1150,7 @@ $SQL="SELECT locstock.quantity FROM locstock WHERE locstock.stockid='" . $CreditLine->StockID . "' - AND loccode= '" . $_SESSION['CreditItems']->Location . "'"; + AND loccode= '" . $_SESSION['CreditItems'.$identifier]->Location . "'"; $Result = DB_query($SQL, $db); if (DB_num_rows($Result)==1){ @@ -1182,10 +1186,10 @@ ('" . $CreditLine->StockID . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . $_POST['CreditText'] . "', @@ -1222,10 +1226,10 @@ '" . $CreditLine->StockID . "', 11, " . $CreditNo . ", - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . $CreditLine->Quantity . "', @@ -1255,10 +1259,10 @@ '" . $CreditLine->StockID . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . $CreditLine->Quantity . "', @@ -1305,7 +1309,7 @@ $SQL = "SELECT COUNT(*) FROM stockserialitems WHERE stockid='" . $CreditLine->StockID . "' - AND loccode='" . $_SESSION['CreditItems']->Location . "' + AND loccode='" . $_SESSION['CreditItems'.$identifier]->Location . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The existence of the serial stock item record could not be determined because'); $DbgMsg = _('The following SQL to find out if the serial stock item record existed already was used'); @@ -1321,7 +1325,7 @@ quantity) VALUES ( '" . $CreditLine->StockID . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $Item->BundleRef . "', '" . $Item->BundleQty . "' )"; @@ -1332,7 +1336,7 @@ } else { /*Update the existing StockSerialItems record */ $SQL = "UPDATE stockserialitems SET quantity= quantity + " . $Item->BundleQty . " WHERE stockid='" . $CreditLine->StockID . "' - AND loccode='" . $_SESSION['CreditItems']->Location . "' + AND loccode='" . $_SESSION['CreditItems'.$identifier]->Location . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The serial stock item record could not be updated because'); @@ -1369,7 +1373,7 @@ $SQL = "UPDATE locstock SET locstock.quantity = locstock.quantity + " . $CreditLine->Quantity . " WHERE locstock.stockid = '" . $CreditLine->StockID . "' - AND locstock.loccode = '" . $_SESSION['CreditItems']->Location . "'"; + AND locstock.loccode = '" . $_SESSION['CreditItems'.$identifier]->Location . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Location stock record could not be updated because'); $DbgMsg = _('The following SQL to update the location stock record was used'); @@ -1404,7 +1408,7 @@ $SQL="SELECT locstock.quantity FROM locstock WHERE locstock.stockid='" . $AssParts['component'] . "' - AND locstock.loccode= '" . $_SESSION['CreditItems']->Location . "'"; + AND locstock.loccode= '" . $_SESSION['CreditItems'.$identifier]->Location . "'"; $Result = DB_query($SQL, $db); if (DB_num_rows($Result)==1){ @@ -1433,10 +1437,10 @@ '" . $AssParts['component'] . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $PeriodNo . "', '" . _('Assembly') .': ' . $CreditLine->StockID . "', '" . $AssParts['quantity'] * $CreditLine->Quantity . ", " . $AssParts['standard'] . "', @@ -1452,7 +1456,7 @@ $SQL = "UPDATE locstock SET locstock.quantity = locstock.quantity + " . $AssParts['quantity'] * $CreditLine->Quantity . " WHERE locstock.stockid = '" . $AssParts['component'] . "' - AND locstock.loccode = '" . $_SESSION['CreditItems']->Location . "'"; + AND locstock.loccode = '" . $_SESSION['CreditItems'.$identifier]->Location . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Location stock record could not be updated for an assembly component because'); $DbgMsg = _('The following SQL to update the component location stock record was used'); @@ -1462,7 +1466,7 @@ /*Update the cart with the recalculated standard cost from the explosion of the assembly's components*/ - $_SESSION['CreditItems']->LineItems[$CreditLine->LineNumber]->StandardCost = $StandardCost; + $_SESSION['CreditItems'.$identifier]->LineItems[$CreditLine->LineNumber]->StandardCost = $StandardCost; $CreditLine->StandardCost = $StandardCost; } /*end of its a return of stock */ @@ -1491,10 +1495,10 @@ '" . $CreditLine->StockID . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . -$CreditLine->Quantity . "', @@ -1526,10 +1530,10 @@ '" . $CreditLine->StockID . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . -$CreditLine->Quantity . "', @@ -1555,7 +1559,7 @@ it would have been added by the return stock movement above */ $SQL = "UPDATE stockserialitems SET quantity= quantity - " . $Item->BundleQty . " WHERE stockid='" . $CreditLine->StockID . "' - AND loccode='" . $_SESSION['CreditItems']->Location . "' + AND loccode='" . $_SESSION['CreditItems'.$identifier]->Location . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The serial stock item record could not be updated for the write off because'); @@ -1602,10 +1606,10 @@ AND salesanalysis.custbranch=custbranch.branchcode AND salesanalysis.area=custbranch.area AND salesanalysis.salesperson=custbranch.salesman - AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems']->DefaultSalesType . "' + AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "' AND salesanalysis.periodno='" . $PeriodNo . "' - AND salesanalysis.cust = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND salesanalysis.custbranch = '" . $_SESSION['CreditItems']->Branch . "' + AND salesanalysis.cust = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND salesanalysis.custbranch = '" . $_SESSION['CreditItems'.$identifier]->Branch . "' AND salesanalysis.stockid = '" . $CreditLine->StockID . "' AND salesanalysis.budgetoractual=1 GROUP BY salesanalysis.stkcategory, @@ -1628,10 +1632,10 @@ disc=disc-" . ($CreditLine->DiscountPercent * $CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . " WHERE salesanalysis.area='" . $myrow[2] . "' AND salesanalysis.salesperson='" . $myrow[3] . "' - AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems']->DefaultSalesType . "' + AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "' AND salesanalysis.periodno = '" . $PeriodNo . "' - AND salesanalysis.cust = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND salesanalysis.custbranch = '" . $_SESSION['CreditItems']->Branch . "' + AND salesanalysis.cust = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND salesanalysis.custbranch = '" . $_SESSION['CreditItems'.$identifier]->Branch . "' AND salesanalysis.stockid = '" . $CreditLine->StockID . "' AND salesanalysis.stkcategory ='" . $myrow[1] . "' AND salesanalysis.budgetoractual=1"; @@ -1644,10 +1648,10 @@ Disc=Disc-" . ($CreditLine->DiscountPercent * $CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . " WHERE salesanalysis.area='" . $myrow[2] . "' AND salesanalysis.salesperson='" . $myrow[3] . "' - AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems']->DefaultSalesType . "' + AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "' AND salesanalysis.periodno = '" . $PeriodNo . "' - AND salesanalysis.cust = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND salesanalysis.custbranch = '" . $_SESSION['CreditItems']->Branch . "' + AND salesanalysis.cust = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND salesanalysis.custbranch = '" . $_SESSION['CreditItems'.$identifier]->Branch . "' AND salesanalysis.stockid = '" . $CreditLine->StockID . "' AND salesanalysis.stkcategory ='" . $myrow[1] . "' AND salesanalysis.budgetoractual=1"; @@ -1669,11 +1673,11 @@ budgetoractual, salesperson, stkcategory) - SELECT '" . $_SESSION['CreditItems']->DefaultSalesType . "', + SELECT '" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "', '" . $PeriodNo . "', '" . -($CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', 0, '" . -($CreditLine->DiscountPercent * $CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . "', '" . $CreditLine->StockID . "', @@ -1683,8 +1687,8 @@ stockmaster.categoryid FROM stockmaster, custbranch WHERE stockmaster.stockid = '" . $CreditLine->StockID . "' - AND custbranch.debtorno = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND custbranch.branchcode='" . $_SESSION['CreditItems']->Branch . "'"; + AND custbranch.debtorno = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND custbranch.branchcode='" . $_SESSION['CreditItems'.$identifier]->Branch . "'"; } else { @@ -1701,12 +1705,12 @@ budgetoractual, salesperson, stkcategory) - SELECT '" . $_SESSION['CreditItems']->DefaultSalesType . "', + SELECT '" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "', '" . $PeriodNo . "', '" . -($CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . "', '" . -($CreditLine->StandardCost * $CreditLine->Quantity) . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . -$CreditLine->Quantity . "', '" . -($CreditLine->DiscountPercent * $CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . "', '" . $CreditLine->StockID . "', @@ -1717,8 +1721,8 @@ FROM stockmaster, custbranch WHERE stockmaster.stockid = '" . $CreditLine->StockID . "' - AND custbranch.debtorno = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND custbranch.branchcode='" . $_SESSION['CreditItems']->Branch . "'"; + AND custbranch.debtorno = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND custbranch.branchcode='" . $_SESSION['CreditItems'.$identifier]->Branch . "'"; } } @@ -1738,7 +1742,7 @@ /*first reverse credit the cost of sales entry*/ $COGSAccount = GetCOGSGLAccount($Area, $CreditLine->StockID, - $_SESSION['CreditItems']->DefaultSalesType, + $_SESSION['CreditItems'.$identifier]->DefaultSalesType, $db); $SQL = "INSERT INTO gltrans (type, typeno, @@ -1753,7 +1757,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $COGSAccount . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', '" . ($CreditLine->StandardCost * -$CreditLine->Quantity) . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The cost of the stock credited GL posting could not be inserted because'); @@ -1778,7 +1782,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $_POST['WriteOffGLCode'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', '" . ($CreditLine->StandardCost * $CreditLine->Quantity) . "' )"; @@ -1801,7 +1805,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $StockGLCode['stockact'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', '" . ($CreditLine->StandardCost * $CreditLine->Quantity) . "' )"; @@ -1817,7 +1821,7 @@ //Post sales transaction to GL credit sales $SalesGLAccounts = GetSalesGLAccount($Area, $CreditLine->StockID, - $_SESSION['CreditItems']->DefaultSalesType, + $_SESSION['CreditItems'.$identifier]->DefaultSalesType, $db); $SQL = "INSERT INTO gltrans (type, @@ -1832,7 +1836,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $SalesGLAccounts['salesglcode'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->Price . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->Price . "', '" . ($CreditLine->Price * $CreditLine->Quantity)/$_SESSION['CurrencyRate'] . "' )"; @@ -1854,7 +1858,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $SalesGLAccounts['discountglcode'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " @ " . ($CreditLine->DiscountPercent * 100) . "%', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " @ " . ($CreditLine->DiscountPercent * 100) . "%', '" . -($CreditLine->Price * $CreditLine->Quantity * $CreditLine->DiscountPercent)/$_SESSION['CurrencyRate'] . "' )"; @@ -1871,7 +1875,7 @@ if ($_SESSION['CompanyRecord']['gllink_debtors']==1){ /*Post credit note transaction to GL credit debtors, debit freight re-charged and debit sales */ - if (($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost + $TaxTotal) !=0) { + if (($_SESSION['CreditItems'.$identifier]->total + $_SESSION['CreditItems'.$identifier]->FreightCost + $TaxTotal) !=0) { $SQL = "INSERT INTO gltrans (type, typeno, trandate, @@ -1884,14 +1888,14 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $_SESSION['CompanyRecord']['debtorsact'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . -($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost + $TaxTotal)/$_SESSION['CurrencyRate'] . "')"; + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . -($_SESSION['CreditItems'.$identifier]->total + $_SESSION['CreditItems'.$identifier]->FreightCost + $TaxTotal)/$_SESSION['CurrencyRate'] . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The total debtor GL posting for the credit note could not be inserted because'); $DbgMsg = _('The following SQL to insert the GLTrans record was used'); $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true); } - if ($_SESSION['CreditItems']->FreightCost !=0) { + if ($_SESSION['CreditItems'.$identifier]->FreightCost !=0) { $SQL = "INSERT INTO gltrans (type, typeno, trandate, @@ -1904,8 +1908,8 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $_SESSION['CompanyRecord']['freightact'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->FreightCost/$_SESSION['CurrencyRate'] . "')"; + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->FreightCost/$_SESSION['CurrencyRate'] . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The freight GL posting for this credit note could not be inserted because'); $DbgMsg = _('The following SQL to insert the GLTrans record was used'); @@ -1925,7 +1929,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $TaxGLCodes[$TaxAuthID] . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', '" . ($TaxAmount/$_SESSION['CurrencyRate']) . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The tax GL posting could not be inserted because'); @@ -1937,8 +1941,8 @@ DB_Txn_Commit($db); - unset($_SESSION['CreditItems']->LineItems); - unset($_SESSION['CreditItems']); + unset($_SESSION['CreditItems'.$identifier]->LineItems); + unset($_SESSION['CreditItems'.$identifier]); echo _('Credit Note number') . ' ' . $CreditNo . ' ' . _('processed') . '<br />'; echo '<a target="_blank" href="' . $rootpath . '/PrintCustTrans.php?FromTransNo=' . $CreditNo . '&InvOrCredit=Credit">' . _('Show this Credit Note on screen') . '</a><br />'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-29 05:55:03 UTC (rev 4643) +++ trunk/doc/Change.log 2011-07-30 06:58:14 UTC (rev 4644) @@ -1,5 +1,8 @@ webERP Change Log +30/7/11 Phil: SelectCreditItems.php made it so if several sessions creating a credit note they no longer over-write each other. +30/7/11 Ricard: POItems.php now checks for return of more than 1 purchasing data from the supplier and takes the newest record + 27/7/11 Version 4.05 27/7/11 includes/LanguageSetup.php now checks for existence of LC_MESSAGES (it doesn't exist on windows servers) and uses LC_ALL as the fall back only Modified: trunk/includes/PDFTransPageHeader.inc =================================================================== --- trunk/includes/PDFTransPageHeader.inc 2011-07-29 05:55:03 UTC (rev 4643) +++ trunk/includes/PDFTransPageHeader.inc 2011-07-30 06:58:14 UTC (rev 4644) @@ -185,10 +185,10 @@ /*Print a vertical line */ $pdf->line($Left_Margin+248, $YPos-10+$line_height+3,$Left_Margin+248, $YPos - 18); - -$pdf->addText($Left_Margin + 252, $YPos, $FontSize, _('Customer Order Ref.') . ':'); -$pdf->addText($Left_Margin+340, $YPos, $FontSize, $myrow['customerref']); - +if ($InvOrCredit=='Invoice'){ + $pdf->addText($Left_Margin + 252, $YPos, $FontSize, _('Customer Order Ref.') . ':'); + $pdf->add... [truncated message content] |
From: <dai...@us...> - 2011-07-30 06:58:21
|
Revision: 4644 http://web-erp.svn.sourceforge.net/web-erp/?rev=4644&view=rev Author: daintree Date: 2011-07-30 06:58:14 +0000 (Sat, 30 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/PO_Items.php trunk/SelectCreditItems.php trunk/doc/Change.log trunk/includes/PDFTransPageHeader.inc trunk/includes/PDFTransPageHeaderPortrait.inc trunk/includes/session.inc Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-07-29 05:55:03 UTC (rev 4643) +++ trunk/PO_Items.php 2011-07-30 06:58:14 UTC (rev 4644) @@ -554,12 +554,13 @@ purchdata.supplierdescription, purchdata.suppliersuom, purchdata.suppliers_partno, - purchdata.leadtime"; + purchdata.leadtime + ORDER BY latesteffectivefrom DESC"; $ErrMsg = _('The purchasing data for') . ' ' . $ItemCode . ' ' . _('could not be retrieved because'); $DbgMsg = _('The SQL used to retrieve the purchasing data but failed was'); $PurchDataResult = DB_query($sql,$db,$ErrMsg,$DbgMsg); - if (DB_num_rows($PurchDataResult)==1){ //the purchasing data is set up + if (DB_num_rows($PurchDataResult)>0){ //the purchasing data is set up $PurchRow = DB_fetch_array($PurchDataResult); $PurchPrice = $PurchRow['price']/$PurchRow['conversionfactor']; $ConversionFactor = $PurchRow['conversionfactor']; Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2011-07-29 05:55:03 UTC (rev 4643) +++ trunk/SelectCreditItems.php 2011-07-30 06:58:14 UTC (rev 4644) @@ -18,7 +18,14 @@ include('includes/GetPrice.inc'); -if (isset($_POST['ProcessCredit']) AND !isset($_SESSION['CreditItems'])){ +if (empty($_GET['identifier'])) { + /*unique session identifier to ensure that there is no conflict with other order entry sessions on the same machine */ + $identifier=date('U'); +} else { + $identifier=$_GET['identifier']; +} + +if (isset($_POST['ProcessCredit']) AND !isset($_SESSION['CreditItems'.$identifier])){ prnMsg(_('This credit note has already been processed. Refreshing the page will not enter the credit note again') . '<br />' . _('Please use the navigation links provided rather than using the browser back button and then having to refresh'),'info'); echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; include('includes/footer.inc'); @@ -27,17 +34,17 @@ if (isset($_GET['NewCredit'])){ /*New credit note entry - clear any existing credit note details from the Items object and initiate a newy*/ - if (isset($_SESSION['CreditItems'])){ - unset ($_SESSION['CreditItems']->LineItems); - unset ($_SESSION['CreditItems']); + if (isset($_SESSION['CreditItems'.$identifier])){ + unset ($_SESSION['CreditItems'.$identifier]->LineItems); + unset ($_SESSION['CreditItems'.$identifier]); } } -if (!isset($_SESSION['CreditItems'])){ - /* It must be a new credit note being created $_SESSION['CreditItems'] would be set up from a previous call*/ +if (!isset($_SESSION['CreditItems'.$identifier])){ + /* It must be a new credit note being created $_SESSION['CreditItems'.$identifier] would be set up from a previous call*/ - $_SESSION['CreditItems'] = new cart; + $_SESSION['CreditItems'.$identifier] = new cart; $_SESSION['RequireCustomerSelection'] = 1; } @@ -51,9 +58,9 @@ } if (isset($_POST['CancelCredit'])) { - unset($_SESSION['CreditItems']->LineItems); - unset($_SESSION['CreditItems']); - $_SESSION['CreditItems'] = new cart; + unset($_SESSION['CreditItems'.$identifier]->LineItems); + unset($_SESSION['CreditItems'.$identifier]); + $_SESSION['CreditItems'.$identifier] = new cart; $_SESSION['RequireCustomerSelection'] = 1; } @@ -138,8 +145,8 @@ Now retrieve customer information - name, salestype, currency, terms etc */ - $_SESSION['CreditItems']->DebtorNo = $SelectedCustomer; - $_SESSION['CreditItems']->Branch = $SelectedBranch; + $_SESSION['CreditItems'.$identifier]->DebtorNo = $SelectedCustomer; + $_SESSION['CreditItems'.$identifier]->Branch = $SelectedBranch; $_SESSION['RequireCustomerSelection'] = 0; /* default the branch information from the customer branches table CustBranch -particularly where the stock @@ -166,8 +173,8 @@ INNER JOIN locations ON locations.loccode=custbranch.defaultlocation INNER JOIN debtorsmaster ON custbranch.debtorno=debtorsmaster.debtorno INNER JOIN currencies ON debtorsmaster.currcode=currencies.currabrev - WHERE custbranch.branchcode='" . $_SESSION['CreditItems']->Branch . "' - AND custbranch.debtorno = '" . $_SESSION['CreditItems']->DebtorNo . "'"; + WHERE custbranch.branchcode='" . $_SESSION['CreditItems'.$identifier]->Branch . "' + AND custbranch.debtorno = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "'"; $ErrMsg = _('The customer branch record of the customer selected') . ': ' . $SelectedCustomer . ' ' . _('cannot be retrieved because'); $DbgMsg = _('SQL used to retrieve the branch details was'); @@ -177,43 +184,44 @@ /* the sales type determines the price list to be used by default the customer of the user is defaulted from the entry of the userid and password. */ - $_SESSION['CreditItems']->CustomerName = $myrow['name']; - $_SESSION['CreditItems']->DefaultSalesType = $myrow['salestype']; - $_SESSION['CreditItems']->DefaultCurrency = $myrow['currcode']; - $_SESSION['CreditItems']->CurrDecimalPlaces = $myrow['decimalplaces']; + $_SESSION['CreditItems'.$identifier]->CustomerName = $myrow['name']; + $_SESSION['CreditItems'.$identifier]->DefaultSalesType = $myrow['salestype']; + $_SESSION['CreditItems'.$identifier]->DefaultCurrency = $myrow['currcode']; + $_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces = $myrow['decimalplaces']; $_SESSION['CurrencyRate'] = $myrow['rate']; - $_SESSION['CreditItems']->DeliverTo = $myrow['brname']; - $_SESSION['CreditItems']->BrAdd1 = $myrow['braddress1']; - $_SESSION['CreditItems']->BrAdd2 = $myrow['braddress2']; - $_SESSION['CreditItems']->BrAdd3 = $myrow['braddress3']; - $_SESSION['CreditItems']->BrAdd4 = $myrow['braddress4']; - $_SESSION['CreditItems']->BrAdd5 = $myrow['braddress5']; - $_SESSION['CreditItems']->BrAdd6 = $myrow['braddress6']; - $_SESSION['CreditItems']->PhoneNo = $myrow['phoneno']; - $_SESSION['CreditItems']->Email = $myrow['email']; - $_SESSION['CreditItems']->Location = $myrow['defaultlocation']; - $_SESSION['CreditItems']->TaxGroup = $myrow['taxgroupid']; - $_SESSION['CreditItems']->DispatchTaxProvince = $myrow['taxprovinceid']; - $_SESSION['CreditItems']->GetFreightTaxes(); + $_SESSION['CreditItems'.$identifier]->DeliverTo = $myrow['brname']; + $_SESSION['CreditItems'.$identifier]->BrAdd1 = $myrow['braddress1']; + $_SESSION['CreditItems'.$identifier]->BrAdd2 = $myrow['braddress2']; + $_SESSION['CreditItems'.$identifier]->BrAdd3 = $myrow['braddress3']; + $_SESSION['CreditItems'.$identifier]->BrAdd4 = $myrow['braddress4']; + $_SESSION['CreditItems'.$identifier]->BrAdd5 = $myrow['braddress5']; + $_SESSION['CreditItems'.$identifier]->BrAdd6 = $myrow['braddress6']; + $_SESSION['CreditItems'.$identifier]->PhoneNo = $myrow['phoneno']; + $_SESSION['CreditItems'.$identifier]->Email = $myrow['email']; + $_SESSION['CreditItems'.$identifier]->Location = $myrow['defaultlocation']; + $_SESSION['CreditItems'.$identifier]->TaxGroup = $myrow['taxgroupid']; + $_SESSION['CreditItems'.$identifier]->DispatchTaxProvince = $myrow['taxprovinceid']; + $_SESSION['CreditItems'.$identifier]->GetFreightTaxes(); } /* if the change customer button hit or the customer has not already been selected */ if ($_SESSION['RequireCustomerSelection'] ==1 - OR !isset($_SESSION['CreditItems']->DebtorNo) - OR $_SESSION['CreditItems']->DebtorNo=='' ) { + OR !isset($_SESSION['CreditItems'.$identifier]->DebtorNo) + OR $_SESSION['CreditItems'.$identifier]->DebtorNo=='' ) { - echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">'; + echo '<form action="' . $_SERVER['PHP_SELF'] . '?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/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Select Customer For Credit Note').'</p>'; + echo '<table cellpadding="3" colspan="4" class="selection">'; echo '<tr><th colspan="5"><font size="3" color="navy"><b> ' . _('Customer Selection') . '</b></font></th></tr>'; echo '<tr>'; echo '<td><font size="1">' . _('Enter text in the customer name') . ':</font></td>'; - echo '<td><input type="text" name="Keywords" size=20 maxlength=25></td>'; + echo '<td><input type="text" name="Keywords" size="20" maxlength="25" /></td>'; echo '<td><font size="3"><b>' . _('OR') . '</b></font></td>'; echo '<td><font size="1">' . _('Enter text extract in the customer code') . ':</font></td>'; - echo '<td><input type="text" name="CustCode" size="15" maxlength="18"></td>'; + echo '<td><input type="text" name="CustCode" size="15" maxlength="18" /></td>'; echo '</tr>'; echo '</table>'; echo '<br /><div class="centre"><input type="submit" name="SearchCust" value="' . _('Search Now') . '"></div>'; @@ -261,7 +269,7 @@ $j++; //end of page full new headings if } //end of while loop - echo '<input type="hidden" name="JustSelectedACustomer" value="Yes">'; + echo '<input type="hidden" name="JustSelectedACustomer" value="Yes" />'; echo '</table></form>'; }//end if results to show @@ -272,7 +280,7 @@ first add a header to show who we are making a credit note for */ echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/magnifier.png" title="' . - _('Search') . '" alt="" />' . ' ' . $_SESSION['CreditItems']->CustomerName . ' - ' . $_SESSION['CreditItems']->DeliverTo.'</p>'; + _('Search') . '" alt="" />' . ' ' . $_SESSION['CreditItems'.$identifier]->CustomerName . ' - ' . $_SESSION['CreditItems'.$identifier]->DeliverTo.'</p>'; /* do the search for parts that might be being looked up to add to the credit note */ if (isset($_POST['Search'])){ @@ -281,7 +289,7 @@ prnMsg( _('Stock description keywords have been used in preference to the Stock code extract entered') . '.', 'info' ); } - if ($_POST['Keywords']!="") { + if ($_POST['Keywords']!='') { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -289,9 +297,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.description " . LIKE . " '" . $SearchString . "' GROUP BY stockmaster.stockid, stockmaster.description, @@ -301,10 +309,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, - stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.description " . LIKE . " '" . $SearchString . "' AND stockmaster.categoryid='" . $_POST['StockCat'] . "' GROUP BY stockmaster.stockid, @@ -319,10 +326,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, - stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.stockid " . LIKE . " '" . $_POST['StockCode'] . "' GROUP BY stockmaster.stockid, stockmaster.description, @@ -332,10 +338,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, - stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.stockid " . LIKE . " '" . $_POST['StockCode'] . "' AND stockmaster.categoryid='" . $_POST['StockCat'] . "' GROUP BY stockmaster.stockid, @@ -348,9 +353,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') GROUP BY stockmaster.stockid, stockmaster.description, stockmaster.units @@ -359,10 +364,9 @@ $SQL = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units - FROM stockmaster, - stockcategory - WHERE stockmaster.categoryid=stockcategory.categoryid - AND (stockcategory.stocktype='F' OR stockcategory.stocktype='D') + FROM stockmaster INNER JOIN stockcategory + ON stockmaster.categoryid=stockcategory.categoryid + WHERE (stockcategory.stocktype='F' OR stockcategory.stocktype='D') AND stockmaster.categoryid='" . $_POST['StockCat'] . "' GROUP BY stockmaster.stockid, stockmaster.description, @@ -391,7 +395,7 @@ /*Always do the stuff below if not looking for a customerid Set up the form for the credit note display and entry*/ - echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">'; + echo '<form action="' . $_SERVER['PHP_SELF'] . '?identifier='.$identifier . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -416,7 +420,7 @@ $AlreadyOnThisCredit =0; - foreach ($_SESSION['CreditItems']->LineItems AS $OrderItem) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems AS $OrderItem) { /* do a loop round the items on the credit note to see that the item is not already on this credit note */ @@ -449,41 +453,40 @@ if ($myrow = DB_fetch_array($result1)){ - $LineNumber = $_SESSION['CreditItems']->LineCounter; + $LineNumber = $_SESSION['CreditItems'.$identifier]->LineCounter; - if ($_SESSION['CreditItems']->add_to_cart ($myrow['stockid'], - $NewItemQty, - $myrow['description'], - GetPrice ($_POST['NewItem'], - $_SESSION['CreditItems']->DebtorNo, - $_SESSION['CreditItems']->Branch, $db), - 0, - $myrow['units'], - $myrow['volume'], - $myrow['kgs'], - 0, - $myrow['mbflag'], - Date($_SESSION['DefaultDateFormat']), - 0, - $myrow['discountcategory'], - $myrow['controlled'], - $myrow['serialised'], - $myrow['decimalplaces'], - '', - 'No', - -1, - $myrow['taxcatid'], - '', - '', - '', - $myrow['standardcost']) ==1){ - + if ($_SESSION['CreditItems'.$identifier]->add_to_cart ($myrow['stockid'], + $NewItemQty, + $myrow['description'], + GetPrice ($_POST['NewItem'], + $_SESSION['CreditItems'.$identifier]->DebtorNo, + $_SESSION['CreditItems'.$identifier]->Branch, $db), + 0, + $myrow['units'], + $myrow['volume'], + $myrow['kgs'], + 0, + $myrow['mbflag'], + Date($_SESSION['DefaultDateFormat']), + 0, + $myrow['discountcategory'], + $myrow['controlled'], + $myrow['serialised'], + $myrow['decimalplaces'], + '', + 'No', + -1, + $myrow['taxcatid'], + '', + '', + '', + $myrow['standardcost']) ==1){ - $_SESSION['CreditItems']->GetTaxes($LineNumber); + $_SESSION['CreditItems'.$identifier]->GetTaxes($LineNumber); if ($myrow['controlled']==1){ /*Qty must be built up from serial item entries */ - $_SESSION['CreditItems']->LineItems[$LineNumber]->Quantity = 0; + $_SESSION['CreditItems'.$identifier]->LineItems[$LineNumber]->Quantity = 0; } } @@ -499,31 +502,31 @@ /* setup system defaults for looking up prices and the number of ordered items if an item has been selected for adding to the basket add it to the session arrays */ - if ($_SESSION['CreditItems']->ItemsOrdered > 0 OR isset($_POST['NewItem'])){ + if ($_SESSION['CreditItems'.$identifier]->ItemsOrdered > 0 OR isset($_POST['NewItem'])){ if (isset($_GET['Delete'])){ - $_SESSION['CreditItems']->remove_from_cart($_GET['Delete']); + $_SESSION['CreditItems'.$identifier]->remove_from_cart($_GET['Delete']); } if (isset($_POST['ChargeFreightCost'])){ - $_SESSION['CreditItems']->FreightCost = $_POST['ChargeFreightCost']; + $_SESSION['CreditItems'.$identifier]->FreightCost = $_POST['ChargeFreightCost']; } - if (isset($_POST['Location']) AND $_POST['Location'] != $_SESSION['CreditItems']->Location){ + if (isset($_POST['Location']) AND $_POST['Location'] != $_SESSION['CreditItems'.$identifier]->Location){ - $_SESSION['CreditItems']->Location = $_POST['Location']; + $_SESSION['CreditItems'.$identifier]->Location = $_POST['Location']; $NewDispatchTaxProvResult = DB_query("SELECT taxprovinceid FROM locations WHERE loccode='" . $_POST['Location'] . "'",$db); $myrow = DB_fetch_array($NewDispatchTaxProvResult); - $_SESSION['CreditItems']->DispatchTaxProvince = $myrow['taxprovinceid']; + $_SESSION['CreditItems'.$identifier]->DispatchTaxProvince = $myrow['taxprovinceid']; - foreach ($_SESSION['CreditItems']->LineItems as $LineItem) { - $_SESSION['CreditItems']->GetTaxes($LineItem->LineNumber); + foreach ($_SESSION['CreditItems'.$identifier]->LineItems as $LineItem) { + $_SESSION['CreditItems'.$identifier]->GetTaxes($LineItem->LineNumber); } } - foreach ($_SESSION['CreditItems']->LineItems as $LineItem) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems as $LineItem) { if (isset($_POST['Quantity_' . $LineItem->LineNumber])){ @@ -540,7 +543,7 @@ $TaxTotalPercent += $Tax->TaxRate; } } - $Price = round($_POST['Price_' . $LineItem->LineNumber]/($TaxTotalPercent + 1),2); + $Price = round($_POST['Price_' . $LineItem->LineNumber]/($TaxTotalPercent + 1),$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); } else { $Price = $_POST['Price_' . $LineItem->LineNumber]; } @@ -549,30 +552,30 @@ foreach ($LineItem->Taxes as $TaxLine) { if (isset($_POST[$LineItem->LineNumber . $TaxLine->TaxCalculationOrder . '_TaxRate'])){ - $_SESSION['CreditItems']->LineItems[$LineItem->LineNumber]->Taxes[$TaxLine->TaxCalculationOrder]->TaxRate = $_POST[$LineItem->LineNumber . $TaxLine->TaxCalculationOrder . '_TaxRate']/100; + $_SESSION['CreditItems'.$identifier]->LineItems[$LineItem->LineNumber]->Taxes[$TaxLine->TaxCalculationOrder]->TaxRate = $_POST[$LineItem->LineNumber . $TaxLine->TaxCalculationOrder . '_TaxRate']/100; } } } if ($Quantity<0 OR $Price <0 OR $DiscountPercentage >100 OR $DiscountPercentage <0){ prnMsg(_('The item could not be updated because you are attempting to set the quantity credited to less than 0 or the price less than 0 or the discount more than 100% or less than 0%'),'warn'); } elseif (isset($_POST['Quantity_' . $LineItem->LineNumber])) { - $_SESSION['CreditItems']->update_cart_item($LineItem->LineNumber, - $Quantity, - $Price, - $DiscountPercentage/100, - $Narrative, - 'No', - $LineItem->ItemDue, - $LineItem->POLine, - 0); + $_SESSION['CreditItems'.$identifier]->update_cart_item($LineItem->LineNumber, + $Quantity, + $Price, + $DiscountPercentage/100, + $Narrative, + 'No', + $LineItem->ItemDue, + $LineItem->POLine, + 0); } } } - foreach ($_SESSION['CreditItems']->FreightTaxes as $FreightTaxLine) { + foreach ($_SESSION['CreditItems'.$identifier]->FreightTaxes as $FreightTaxLine) { if (isset($_POST['FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder])){ - $_SESSION['CreditItems']->FreightTaxes[$FreightTaxLine->TaxCalculationOrder]->TaxRate = $_POST['FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder]/100; + $_SESSION['CreditItems'.$identifier]->FreightTaxes[$FreightTaxLine->TaxCalculationOrder]->TaxRate = $_POST['FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder]/100; } } @@ -581,12 +584,12 @@ $AlreadyOnThisCredit =0; - foreach ($_SESSION['CreditItems']->LineItems AS $OrderItem) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems AS $OrderItem) { /* do a loop round the items on the credit note to see that the item is not already on this credit note */ - if ($_SESSION['SO_AllowSameItemMultipleTimes']==0 && strcasecmp($OrderItem->StockID, $_POST['NewItem']) == 0) { + if ($_SESSION['SO_AllowSameItemMultipleTimes']==0 AND strcasecmp($OrderItem->StockID, $_POST['NewItem']) == 0) { $AlreadyOnThisCredit = 1; prnMsg(_('The item selected is already on this credit the system will not allow the same item on the credit note more than once. However you can change the quantity credited of the existing line if necessary.'),'warn'); } @@ -614,14 +617,14 @@ $result1 = DB_query($sql,$db,$ErrMsg,$DbgMsg); $myrow = DB_fetch_array($result1); - $LineNumber = $_SESSION['CreditItems']->LineCounter; + $LineNumber = $_SESSION['CreditItems'.$identifier]->LineCounter; /*validate the data returned before adding to the items to credit */ - if ($_SESSION['CreditItems']->add_to_cart ($myrow['stockid'], + if ($_SESSION['CreditItems'.$identifier]->add_to_cart ($myrow['stockid'], 1, $myrow['description'], GetPrice($_POST['NewItem'], - $_SESSION['CreditItems']->DebtorNo, - $_SESSION['CreditItems']->Branch, + $_SESSION['CreditItems'.$identifier]->DebtorNo, + $_SESSION['CreditItems'.$identifier]->Branch, $db), 0, $myrow['units'], @@ -644,11 +647,11 @@ '', $myrow['standardcost']) ==1){ - $_SESSION['CreditItems']->GetTaxes($LineNumber); + $_SESSION['CreditItems'.$identifier]->GetTaxes($LineNumber); if ($myrow['controlled']==1){ /*Qty must be built up from serial item entries */ - $_SESSION['CreditItems']->LineItems[$LineNumber]->Quantity = 0; + $_SESSION['CreditItems'.$identifier]->LineItems[$LineNumber]->Quantity = 0; } } } /* end of if not already on the credit note */ @@ -672,19 +675,19 @@ <th>' . _('Total') . '<br />' . _('Incl Tax') . '</th> </tr>'; - $_SESSION['CreditItems']->total = 0; - $_SESSION['CreditItems']->totalVolume = 0; - $_SESSION['CreditItems']->totalWeight = 0; + $_SESSION['CreditItems'.$identifier]->total = 0; + $_SESSION['CreditItems'.$identifier]->totalVolume = 0; + $_SESSION['CreditItems'.$identifier]->totalWeight = 0; $TaxTotal = 0; $TaxTotals = array(); $TaxGLCodes = array(); $k =0; //row colour counter - foreach ($_SESSION['CreditItems']->LineItems as $LineItem) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems as $LineItem) { - $LineTotal = round($LineItem->Quantity * $LineItem->Price * (1 - $LineItem->DiscountPercent),$_SESSION['CreditItems']->CurrDecimalPlaces); - $DisplayLineTotal = number_format($LineTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); + $LineTotal = round($LineItem->Quantity * $LineItem->Price * (1 - $LineItem->DiscountPercent),$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); + $DisplayLineTotal = number_format($LineTotal,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); if ($k==1){ $RowStarter = '<tr class="EvenTableRows">'; @@ -698,9 +701,9 @@ <td>' . $LineItem->ItemDescription . '</td>'; if ($LineItem->Controlled==0){ - echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength=6 size=6 value=' . $LineItem->Quantity . '></td>'; + echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength="6" size="6" value=' . $LineItem->Quantity . '></td>'; } else { - echo '<td class=number><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LineItem->LineNumber . '">' . $LineItem->Quantity . '</a> + echo '<td class="number"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LineItem->LineNumber . '">' . $LineItem->Quantity . '</a> <input type=hidden name="Quantity_' . $LineItem->LineNumber . '" value=' . $LineItem->Quantity . '></td>'; } @@ -708,13 +711,13 @@ <td><input type="text" class="number" name="Price_' . $LineItem->LineNumber . '" size=10 maxlength=12 value=' . $LineItem->Price . '></td> <td><input type="CheckBox" name="Gross" value=False></td> <td><input type="text" class="number" name="Discount_' . $LineItem->LineNumber . '" size=3 maxlength=3 value=' . ($LineItem->DiscountPercent * 100) . '>%</td> - <td class=number>' . $DisplayLineTotal . '</td>'; + <td class="number">' . $DisplayLineTotal . '</td>'; /*Need to list the taxes applicable to this line */ echo '<td>'; $i=0; - foreach ($_SESSION['CreditItems']->LineItems[$LineItem->LineNumber]->Taxes AS $Tax) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems[$LineItem->LineNumber]->Taxes AS $Tax) { if ($i>0){ echo '<br />'; } @@ -746,38 +749,38 @@ $TaxTotal += $TaxLineTotal; - $DisplayTaxAmount = number_format($TaxLineTotal ,$_SESSION['CreditItems']->CurrDecimalPlaces); - $DisplayGrossLineTotal = number_format($LineTotal+ $TaxLineTotal,$_SESSION['CreditItems']->CurrDecimalPlaces); + $DisplayTaxAmount = number_format($TaxLineTotal ,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); + $DisplayGrossLineTotal = number_format($LineTotal+ $TaxLineTotal,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); echo '<td class="number">' . $DisplayTaxAmount . '</td> <td class="number">' . $DisplayGrossLineTotal . '</td> - <td><a href="' . $_SERVER['PHP_SELF'] . '?Delete=' . $LineItem->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this line item from the credit note?') . '\');">' . _('Delete') . '</a></td> + <td><a href="' . $_SERVER['PHP_SELF'] . '?identifier=' . $identifier . '&Delete=' . $LineItem->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this line item from the credit note?') . '\');">' . _('Delete') . '</a></td> </tr>'; echo $RowStarter; echo '<td colspan=11><textarea name="Narrative_' . $LineItem->LineNumber . '" cols=100% rows=1>' . $LineItem->Narrative . '</textarea><br /></td></tr>'; - $_SESSION['CreditItems']->total = $_SESSION['CreditItems']->total + $LineTotal; - $_SESSION['CreditItems']->totalVolume = $_SESSION['CreditItems']->totalVolume + $LineItem->Quantity * $LineItem->Volume; $_SESSION['CreditItems']->totalWeight = $_SESSION['CreditItems']->totalWeight + $LineItem->Quantity * $LineItem->Weight; + $_SESSION['CreditItems'.$identifier]->total = $_SESSION['CreditItems'.$identifier]->total + $LineTotal; + $_SESSION['CreditItems'.$identifier]->totalVolume = $_SESSION['CreditItems'.$identifier]->totalVolume + $LineItem->Quantity * $LineItem->Volume; $_SESSION['CreditItems'.$identifier]->totalWeight = $_SESSION['CreditItems'.$identifier]->totalWeight + $LineItem->Quantity * $LineItem->Weight; } - if (!isset($_POST['ChargeFreightCost']) AND !isset($_SESSION['CreditItems']->FreightCost)){ + if (!isset($_POST['ChargeFreightCost']) AND !isset($_SESSION['CreditItems'.$identifier]->FreightCost)){ $_POST['ChargeFreightCost']=0; } echo '<tr> - <td colspan=5></td>'; + <td colspan="5"></td>'; echo '<td colspan="2" class="number">'. _('Credit Freight').'</td> - <td><input type="text" class="number" size=6 maxlength=6 name="ChargeFreightCost" value="' . $_SESSION['CreditItems']->FreightCost . '" /></td>'; + <td><input type="text" class="number" size=6 maxlength=6 name="ChargeFreightCost" value="' . $_SESSION['CreditItems'.$identifier]->FreightCost . '" /></td>'; $FreightTaxTotal =0; //initialise tax total echo '<td>'; $i=0; // initialise the number of taxes iterated through - foreach ($_SESSION['CreditItems']->FreightTaxes as $FreightTaxLine) { + foreach ($_SESSION['CreditItems'.$identifier]->FreightTaxes as $FreightTaxLine) { if ($i>0){ echo '<br />'; } @@ -788,38 +791,38 @@ echo '</td><td>'; $i=0; - foreach ($_SESSION['CreditItems']->FreightTaxes as $FreightTaxLine) { + foreach ($_SESSION['CreditItems'.$identifier]->FreightTaxes as $FreightTaxLine) { if ($i>0){ echo '<br />'; } - echo '<input type="text" class="number" name=FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder . ' maxlength=4 size=4 value="' . $FreightTaxLine->TaxRate * 100 . '" />'; + echo '<input type="text" class="number" name=FreightTaxRate' . $FreightTaxLine->TaxCalculationOrder . ' maxlength="4" size="4" value="' . $FreightTaxLine->TaxRate * 100 . '" />'; if ($FreightTaxLine->TaxOnTax ==1){ - $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems']->FreightCost + $FreightTaxTotal)); - $FreightTaxTotal += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems']->FreightCost + $FreightTaxTotal)); + $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems'.$identifier]->FreightCost + $FreightTaxTotal)); + $FreightTaxTotal += ($FreightTaxLine->TaxRate * ($_SESSION['CreditItems'.$identifier]->FreightCost + $FreightTaxTotal)); } else { - $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * $_SESSION['CreditItems']->FreightCost); - $FreightTaxTotal += ($FreightTaxLine->TaxRate * $_SESSION['CreditItems']->FreightCost); + $TaxTotals[$FreightTaxLine->TaxAuthID] += ($FreightTaxLine->TaxRate * $_SESSION['CreditItems'.$identifier]->FreightCost); + $FreightTaxTotal += ($FreightTaxLine->TaxRate * $_SESSION['CreditItems'.$identifier]->FreightCost); } $i++; $TaxGLCodes[$FreightTaxLine->TaxAuthID] = $FreightTaxLine->TaxGLCode; } echo '</td>'; - echo '<td class="number">' . number_format($FreightTaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> - <td class="number">' . number_format($FreightTaxTotal+ $_SESSION['CreditItems']->FreightCost,$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> + echo '<td class="number">' . number_format($FreightTaxTotal,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '</td> + <td class="number">' . number_format($FreightTaxTotal+ $_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '</td> </tr>'; $TaxTotal += $FreightTaxTotal; - $DisplayTotal = number_format($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost,$_SESSION['CreditItems']->CurrDecimalPlaces); + $DisplayTotal = number_format($_SESSION['CreditItems'.$identifier]->total + $_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces); echo '<tr> <td colspan="7" class="number">' . _('Credit Totals') . '</td> <td class="number"><b>' . $DisplayTotal . '</b></td> <td colspan="2"></td> - <td class="number"><b>' . number_format($TaxTotal,$_SESSION['CreditItems']->CurrDecimalPlaces) . '</td> - <td class="number"><b>' . number_format($TaxTotal+($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost),$_SESSION['CreditItems']->CurrDecimalPlaces) . '</b></td> + <td class="number"><b>' . number_format($TaxTotal,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '</td> + <td class="number"><b>' . number_format($TaxTotal+($_SESSION['CreditItems'.$identifier]->total + $_SESSION['CreditItems'.$identifier]->FreightCost),$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '</b></td> </tr> </table>'; @@ -853,13 +856,14 @@ /*if the credit note is a return of goods then need to know which location to receive them into */ - echo '<tr><td>' . _('Goods Returned to Location') . ' :</td><td><select name=Location>'; + echo '<tr><td>' . _('Goods Returned to Location') . ' :</td> + <td><select name="Location">'; $SQL="SELECT loccode, locationname FROM locations"; $Result = DB_query($SQL,$db); if (!isset($_POST['Location'])){ - $_POST['Location'] = $_SESSION['CreditItems']->Location; + $_POST['Location'] = $_SESSION['CreditItems'.$identifier]->Location; } while ($myrow = DB_fetch_array($Result)) { @@ -877,10 +881,10 @@ $SQL="SELECT accountcode, accountname - FROM chartmaster, - accountgroups - WHERE chartmaster.group_=accountgroups.groupname - AND accountgroups.pandl=1 ORDER BY accountcode"; + FROM chartmaster INNER JOIN accountgroups + ON chartmaster.group_=accountgroups.groupname + WHERE accountgroups.pandl=1 + ORDER BY accountcode"; $Result = DB_query($SQL,$db); while ($myrow = DB_fetch_array($Result)) { @@ -911,7 +915,7 @@ <input type=submit name="Update" value="' . _('Update') . '" /> <input type=submit name="CancelCredit" value="' . _('Cancel') . '" onclick="return confirm(\'' . _('Are you sure you wish to cancel the whole of this credit note?') . '\');" />'; if (!isset($_POST['ProcessCredit']) AND $OKToProcess == true){ - echo '<input type=submit name="ProcessCredit" value="' . _('Process Credit Note') . '" /> + echo '<input type="submit" name="ProcessCredit" value="' . _('Process Credit Note') . '" /> <br />'; } echo '</div>'; @@ -1048,8 +1052,8 @@ $SQL = "SELECT area FROM custbranch - WHERE custbranch.debtorno ='". $_SESSION['CreditItems']->DebtorNo . "' - AND custbranch.branchcode = '" . $_SESSION['CreditItems']->Branch . "'"; + WHERE custbranch.debtorno ='". $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND custbranch.branchcode = '" . $_SESSION['CreditItems'.$identifier]->Branch . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The area cannot be determined for this customer'); $DbgMsg = _('The following SQL to insert the customer credit note was used'); $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); @@ -1098,15 +1102,15 @@ invtext) VALUES ('". $CreditNo . "', '11', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $SQLCreditDate . "', '" . date('Y-m-d H-i-s') . "', '" . $PeriodNo . "', - '" . $_SESSION['CreditItems']->DefaultSalesType . "', - '" . -($_SESSION['CreditItems']->total) . "', + '" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "', + '" . -($_SESSION['CreditItems'.$identifier]->total) . "', '" . -$TaxTotal . "', - '" . -$_SESSION['CreditItems']->FreightCost . "', + '" . -$_SESSION['CreditItems'.$identifier]->FreightCost . "', '" . $_SESSION['CurrencyRate'] . "', '" . $_POST['CreditText'] . "' )"; @@ -1135,7 +1139,7 @@ /* Insert stock movements for stock coming back in if the Credit is a return of goods */ - foreach ($_SESSION['CreditItems']->LineItems as $CreditLine) { + foreach ($_SESSION['CreditItems'.$identifier]->LineItems as $CreditLine) { If ($CreditLine->Quantity > 0){ @@ -1146,7 +1150,7 @@ $SQL="SELECT locstock.quantity FROM locstock WHERE locstock.stockid='" . $CreditLine->StockID . "' - AND loccode= '" . $_SESSION['CreditItems']->Location . "'"; + AND loccode= '" . $_SESSION['CreditItems'.$identifier]->Location . "'"; $Result = DB_query($SQL, $db); if (DB_num_rows($Result)==1){ @@ -1182,10 +1186,10 @@ ('" . $CreditLine->StockID . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . $_POST['CreditText'] . "', @@ -1222,10 +1226,10 @@ '" . $CreditLine->StockID . "', 11, " . $CreditNo . ", - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . $CreditLine->Quantity . "', @@ -1255,10 +1259,10 @@ '" . $CreditLine->StockID . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . $CreditLine->Quantity . "', @@ -1305,7 +1309,7 @@ $SQL = "SELECT COUNT(*) FROM stockserialitems WHERE stockid='" . $CreditLine->StockID . "' - AND loccode='" . $_SESSION['CreditItems']->Location . "' + AND loccode='" . $_SESSION['CreditItems'.$identifier]->Location . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The existence of the serial stock item record could not be determined because'); $DbgMsg = _('The following SQL to find out if the serial stock item record existed already was used'); @@ -1321,7 +1325,7 @@ quantity) VALUES ( '" . $CreditLine->StockID . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $Item->BundleRef . "', '" . $Item->BundleQty . "' )"; @@ -1332,7 +1336,7 @@ } else { /*Update the existing StockSerialItems record */ $SQL = "UPDATE stockserialitems SET quantity= quantity + " . $Item->BundleQty . " WHERE stockid='" . $CreditLine->StockID . "' - AND loccode='" . $_SESSION['CreditItems']->Location . "' + AND loccode='" . $_SESSION['CreditItems'.$identifier]->Location . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The serial stock item record could not be updated because'); @@ -1369,7 +1373,7 @@ $SQL = "UPDATE locstock SET locstock.quantity = locstock.quantity + " . $CreditLine->Quantity . " WHERE locstock.stockid = '" . $CreditLine->StockID . "' - AND locstock.loccode = '" . $_SESSION['CreditItems']->Location . "'"; + AND locstock.loccode = '" . $_SESSION['CreditItems'.$identifier]->Location . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Location stock record could not be updated because'); $DbgMsg = _('The following SQL to update the location stock record was used'); @@ -1404,7 +1408,7 @@ $SQL="SELECT locstock.quantity FROM locstock WHERE locstock.stockid='" . $AssParts['component'] . "' - AND locstock.loccode= '" . $_SESSION['CreditItems']->Location . "'"; + AND locstock.loccode= '" . $_SESSION['CreditItems'.$identifier]->Location . "'"; $Result = DB_query($SQL, $db); if (DB_num_rows($Result)==1){ @@ -1433,10 +1437,10 @@ '" . $AssParts['component'] . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $PeriodNo . "', '" . _('Assembly') .': ' . $CreditLine->StockID . "', '" . $AssParts['quantity'] * $CreditLine->Quantity . ", " . $AssParts['standard'] . "', @@ -1452,7 +1456,7 @@ $SQL = "UPDATE locstock SET locstock.quantity = locstock.quantity + " . $AssParts['quantity'] * $CreditLine->Quantity . " WHERE locstock.stockid = '" . $AssParts['component'] . "' - AND locstock.loccode = '" . $_SESSION['CreditItems']->Location . "'"; + AND locstock.loccode = '" . $_SESSION['CreditItems'.$identifier]->Location . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Location stock record could not be updated for an assembly component because'); $DbgMsg = _('The following SQL to update the component location stock record was used'); @@ -1462,7 +1466,7 @@ /*Update the cart with the recalculated standard cost from the explosion of the assembly's components*/ - $_SESSION['CreditItems']->LineItems[$CreditLine->LineNumber]->StandardCost = $StandardCost; + $_SESSION['CreditItems'.$identifier]->LineItems[$CreditLine->LineNumber]->StandardCost = $StandardCost; $CreditLine->StandardCost = $StandardCost; } /*end of its a return of stock */ @@ -1491,10 +1495,10 @@ '" . $CreditLine->StockID . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . -$CreditLine->Quantity . "', @@ -1526,10 +1530,10 @@ '" . $CreditLine->StockID . "', 11, '" . $CreditNo . "', - '" . $_SESSION['CreditItems']->Location . "', + '" . $_SESSION['CreditItems'.$identifier]->Location . "', '" . $SQLCreditDate . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . $LocalCurrencyPrice . "', '" . $PeriodNo . "', '" . -$CreditLine->Quantity . "', @@ -1555,7 +1559,7 @@ it would have been added by the return stock movement above */ $SQL = "UPDATE stockserialitems SET quantity= quantity - " . $Item->BundleQty . " WHERE stockid='" . $CreditLine->StockID . "' - AND loccode='" . $_SESSION['CreditItems']->Location . "' + AND loccode='" . $_SESSION['CreditItems'.$identifier]->Location . "' AND serialno='" . $Item->BundleRef . "'"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The serial stock item record could not be updated for the write off because'); @@ -1602,10 +1606,10 @@ AND salesanalysis.custbranch=custbranch.branchcode AND salesanalysis.area=custbranch.area AND salesanalysis.salesperson=custbranch.salesman - AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems']->DefaultSalesType . "' + AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "' AND salesanalysis.periodno='" . $PeriodNo . "' - AND salesanalysis.cust = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND salesanalysis.custbranch = '" . $_SESSION['CreditItems']->Branch . "' + AND salesanalysis.cust = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND salesanalysis.custbranch = '" . $_SESSION['CreditItems'.$identifier]->Branch . "' AND salesanalysis.stockid = '" . $CreditLine->StockID . "' AND salesanalysis.budgetoractual=1 GROUP BY salesanalysis.stkcategory, @@ -1628,10 +1632,10 @@ disc=disc-" . ($CreditLine->DiscountPercent * $CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . " WHERE salesanalysis.area='" . $myrow[2] . "' AND salesanalysis.salesperson='" . $myrow[3] . "' - AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems']->DefaultSalesType . "' + AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "' AND salesanalysis.periodno = '" . $PeriodNo . "' - AND salesanalysis.cust = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND salesanalysis.custbranch = '" . $_SESSION['CreditItems']->Branch . "' + AND salesanalysis.cust = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND salesanalysis.custbranch = '" . $_SESSION['CreditItems'.$identifier]->Branch . "' AND salesanalysis.stockid = '" . $CreditLine->StockID . "' AND salesanalysis.stkcategory ='" . $myrow[1] . "' AND salesanalysis.budgetoractual=1"; @@ -1644,10 +1648,10 @@ Disc=Disc-" . ($CreditLine->DiscountPercent * $CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . " WHERE salesanalysis.area='" . $myrow[2] . "' AND salesanalysis.salesperson='" . $myrow[3] . "' - AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems']->DefaultSalesType . "' + AND salesanalysis.typeabbrev ='" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "' AND salesanalysis.periodno = '" . $PeriodNo . "' - AND salesanalysis.cust = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND salesanalysis.custbranch = '" . $_SESSION['CreditItems']->Branch . "' + AND salesanalysis.cust = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND salesanalysis.custbranch = '" . $_SESSION['CreditItems'.$identifier]->Branch . "' AND salesanalysis.stockid = '" . $CreditLine->StockID . "' AND salesanalysis.stkcategory ='" . $myrow[1] . "' AND salesanalysis.budgetoractual=1"; @@ -1669,11 +1673,11 @@ budgetoractual, salesperson, stkcategory) - SELECT '" . $_SESSION['CreditItems']->DefaultSalesType . "', + SELECT '" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "', '" . $PeriodNo . "', '" . -($CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', 0, '" . -($CreditLine->DiscountPercent * $CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . "', '" . $CreditLine->StockID . "', @@ -1683,8 +1687,8 @@ stockmaster.categoryid FROM stockmaster, custbranch WHERE stockmaster.stockid = '" . $CreditLine->StockID . "' - AND custbranch.debtorno = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND custbranch.branchcode='" . $_SESSION['CreditItems']->Branch . "'"; + AND custbranch.debtorno = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND custbranch.branchcode='" . $_SESSION['CreditItems'.$identifier]->Branch . "'"; } else { @@ -1701,12 +1705,12 @@ budgetoractual, salesperson, stkcategory) - SELECT '" . $_SESSION['CreditItems']->DefaultSalesType . "', + SELECT '" . $_SESSION['CreditItems'.$identifier]->DefaultSalesType . "', '" . $PeriodNo . "', '" . -($CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . "', '" . -($CreditLine->StandardCost * $CreditLine->Quantity) . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->Branch . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->Branch . "', '" . -$CreditLine->Quantity . "', '" . -($CreditLine->DiscountPercent * $CreditLine->Price * $CreditLine->Quantity / $_SESSION['CurrencyRate']) . "', '" . $CreditLine->StockID . "', @@ -1717,8 +1721,8 @@ FROM stockmaster, custbranch WHERE stockmaster.stockid = '" . $CreditLine->StockID . "' - AND custbranch.debtorno = '" . $_SESSION['CreditItems']->DebtorNo . "' - AND custbranch.branchcode='" . $_SESSION['CreditItems']->Branch . "'"; + AND custbranch.debtorno = '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "' + AND custbranch.branchcode='" . $_SESSION['CreditItems'.$identifier]->Branch . "'"; } } @@ -1738,7 +1742,7 @@ /*first reverse credit the cost of sales entry*/ $COGSAccount = GetCOGSGLAccount($Area, $CreditLine->StockID, - $_SESSION['CreditItems']->DefaultSalesType, + $_SESSION['CreditItems'.$identifier]->DefaultSalesType, $db); $SQL = "INSERT INTO gltrans (type, typeno, @@ -1753,7 +1757,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $COGSAccount . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', '" . ($CreditLine->StandardCost * -$CreditLine->Quantity) . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The cost of the stock credited GL posting could not be inserted because'); @@ -1778,7 +1782,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $_POST['WriteOffGLCode'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', '" . ($CreditLine->StandardCost * $CreditLine->Quantity) . "' )"; @@ -1801,7 +1805,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $StockGLCode['stockact'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->StandardCost . "', '" . ($CreditLine->StandardCost * $CreditLine->Quantity) . "' )"; @@ -1817,7 +1821,7 @@ //Post sales transaction to GL credit sales $SalesGLAccounts = GetSalesGLAccount($Area, $CreditLine->StockID, - $_SESSION['CreditItems']->DefaultSalesType, + $_SESSION['CreditItems'.$identifier]->DefaultSalesType, $db); $SQL = "INSERT INTO gltrans (type, @@ -1832,7 +1836,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $SalesGLAccounts['salesglcode'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->Price . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " x " . $CreditLine->Quantity . " @ " . $CreditLine->Price . "', '" . ($CreditLine->Price * $CreditLine->Quantity)/$_SESSION['CurrencyRate'] . "' )"; @@ -1854,7 +1858,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $SalesGLAccounts['discountglcode'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . " - " . $CreditLine->StockID . " @ " . ($CreditLine->DiscountPercent * 100) . "%', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . " - " . $CreditLine->StockID . " @ " . ($CreditLine->DiscountPercent * 100) . "%', '" . -($CreditLine->Price * $CreditLine->Quantity * $CreditLine->DiscountPercent)/$_SESSION['CurrencyRate'] . "' )"; @@ -1871,7 +1875,7 @@ if ($_SESSION['CompanyRecord']['gllink_debtors']==1){ /*Post credit note transaction to GL credit debtors, debit freight re-charged and debit sales */ - if (($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost + $TaxTotal) !=0) { + if (($_SESSION['CreditItems'.$identifier]->total + $_SESSION['CreditItems'.$identifier]->FreightCost + $TaxTotal) !=0) { $SQL = "INSERT INTO gltrans (type, typeno, trandate, @@ -1884,14 +1888,14 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $_SESSION['CompanyRecord']['debtorsact'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . -($_SESSION['CreditItems']->total + $_SESSION['CreditItems']->FreightCost + $TaxTotal)/$_SESSION['CurrencyRate'] . "')"; + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . -($_SESSION['CreditItems'.$identifier]->total + $_SESSION['CreditItems'.$identifier]->FreightCost + $TaxTotal)/$_SESSION['CurrencyRate'] . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The total debtor GL posting for the credit note could not be inserted because'); $DbgMsg = _('The following SQL to insert the GLTrans record was used'); $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true); } - if ($_SESSION['CreditItems']->FreightCost !=0) { + if ($_SESSION['CreditItems'.$identifier]->FreightCost !=0) { $SQL = "INSERT INTO gltrans (type, typeno, trandate, @@ -1904,8 +1908,8 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $_SESSION['CompanyRecord']['freightact'] . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', - '" . $_SESSION['CreditItems']->FreightCost/$_SESSION['CurrencyRate'] . "')"; + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->FreightCost/$_SESSION['CurrencyRate'] . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The freight GL posting for this credit note could not be inserted because'); $DbgMsg = _('The following SQL to insert the GLTrans record was used'); @@ -1925,7 +1929,7 @@ '" . $SQLCreditDate . "', '" . $PeriodNo . "', '" . $TaxGLCodes[$TaxAuthID] . "', - '" . $_SESSION['CreditItems']->DebtorNo . "', + '" . $_SESSION['CreditItems'.$identifier]->DebtorNo . "', '" . ($TaxAmount/$_SESSION['CurrencyRate']) . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The tax GL posting could not be inserted because'); @@ -1937,8 +1941,8 @@ DB_Txn_Commit($db); - unset($_SESSION['CreditItems']->LineItems); - unset($_SESSION['CreditItems']); + unset($_SESSION['CreditItems'.$identifier]->LineItems); + unset($_SESSION['CreditItems'.$identifier]); echo _('Credit Note number') . ' ' . $CreditNo . ' ' . _('processed') . '<br />'; echo '<a target="_blank" href="' . $rootpath . '/PrintCustTrans.php?FromTransNo=' . $CreditNo . '&InvOrCredit=Credit">' . _('Show this Credit Note on screen') . '</a><br />'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-29 05:55:03 UTC (rev 4643) +++ trunk/doc/Change.log 2011-07-30 06:58:14 UTC (rev 4644) @@ -1,5 +1,8 @@ webERP Change Log +30/7/11 Phil: SelectCreditItems.php made it so if several sessions creating a credit note they no longer over-write each other. +30/7/11 Ricard: POItems.php now checks for return of more than 1 purchasing data from the supplier and takes the newest record + 27/7/11 Version 4.05 27/7/11 includes/LanguageSetup.php now checks for existence of LC_MESSAGES (it doesn't exist on windows servers) and uses LC_ALL as the fall back only Modified: trunk/includes/PDFTransPageHeader.inc =================================================================== --- trunk/includes/PDFTransPageHeader.inc 2011-07-29 05:55:03 UTC (rev 4643) +++ trunk/includes/PDFTransPageHeader.inc 2011-07-30 06:58:14 UTC (rev 4644) @@ -185,10 +185,10 @@ /*Print a vertical line */ $pdf->line($Left_Margin+248, $YPos-10+$line_height+3,$Left_Margin+248, $YPos - 18); - -$pdf->addText($Left_Margin + 252, $YPos, $FontSize, _('Customer Order Ref.') . ':'); -$pdf->addText($Left_Margin+340, $YPos, $FontSize, $myrow['customerref']); - +if ($InvOrCredit=='Invoice'){ + $pdf->addText($Left_Margin + 252, $YPos, $FontSize, _('Customer Order Ref.') . ':'); + $pdf->add... [truncated message content] |
From: <dai...@us...> - 2011-07-29 05:55:10
|
Revision: 4643 http://web-erp.svn.sourceforge.net/web-erp/?rev=4643&view=rev Author: daintree Date: 2011-07-29 05:55:03 +0000 (Fri, 29 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/SalesGraph.php trunk/install/save.php Modified: trunk/SalesGraph.php =================================================================== --- trunk/SalesGraph.php 2011-07-27 09:17:10 UTC (rev 4642) +++ trunk/SalesGraph.php 2011-07-29 05:55:03 UTC (rev 4643) @@ -28,12 +28,14 @@ if ((! isset($_POST['FromPeriod']) OR ! isset($_POST['ToPeriod'])) OR $SelectADifferentPeriod==_('Select A Different Period')){ - echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '">'; + echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p>'; - /*Show a form to allow input of criteria for TB to show */ - echo '<table class=selection><tr><td>' . _('Select Period From:') . '</td><td><select Name="FromPeriod">'; + + echo '<table class="selection"> + <tr><td>' . _('Select Period From:') . '</td> + <td><select Name="FromPeriod">'; if (Date('m') > $_SESSION['YearEnd']){ /*Dates in SQL format */ @@ -41,21 +43,21 @@ } else { $DefaultFromDate = Date ('Y-m-d', Mktime(0,0,0,$_SESSION['YearEnd'] + 2,0,Date('Y')-1)); } - $sql = 'SELECT periodno, lastdate_in_period FROM periods ORDER BY periodno'; + $sql = "SELECT periodno, lastdate_in_period FROM periods ORDER BY periodno"; $Periods = DB_query($sql,$db); while ($myrow=DB_fetch_array($Periods,$db)){ if(isset($_POST['FromPeriod']) AND $_POST['FromPeriod']!=''){ if( $_POST['FromPeriod']== $myrow['periodno']){ - echo '<option selected VALUE="' . $myrow['periodno'] . '">' .MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option selected value="' . $myrow['periodno'] . '">' .MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } else { - echo '<option VALUE="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option value="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } } else { if($myrow['lastdate_in_period']==$DefaultFromDate){ - echo '<option selected VALUE="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option selected value="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } else { - echo '<option VALUE="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option value="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } } } @@ -67,95 +69,104 @@ $DefaultToPeriod = $_POST['ToPeriod']; } - echo '<tr><td>' . _('Select Period To:') .'</td><td><select Name="ToPeriod">'; + echo '<tr> + <td>' . _('Select Period To:') .'</td> + <td><select name="ToPeriod">'; $RetResult = DB_data_seek($Periods,0); while ($myrow=DB_fetch_array($Periods,$db)){ if($myrow['periodno']==$DefaultToPeriod){ - echo '<option selected VALUE="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option selected value="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } else { - echo '<option VALUE ="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option value ="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } } echo '</select></td></tr>'; - $AreasResult = DB_query('SELECT areacode, areadescription FROM areas',$db); + $AreasResult = DB_query("SELECT areacode, areadescription FROM areas",$db); if (!isset($_POST['SalesArea'])){ $_POST['SalesArea']=''; } - echo '<tr><td>' . _('For Sales Area/Region:') .'</td><td><select Name="SalesArea">'; + echo '<tr> + <td>' . _('For Sales Area/Region:') .'</td> + <td><select name="SalesArea">'; if($_POST['SalesArea']=='All'){ - echo '<option selected VALUE="All">' . _('All'); + echo '<option selected value="All">' . _('All') . '</option>'; } else { - echo '<option VALUE="All">' . _('All'); + echo '<option value="All">' . _('All') . '</option>'; } while ($myrow=DB_fetch_array($AreasResult)){ if($myrow['areacode']==$_POST['SalesArea']){ - echo '<option selected VALUE="' . $myrow['areacode'] . '">' . $myrow['areadescription']; + echo '<option selected value="' . $myrow['areacode'] . '">' . $myrow['areadescription'] . '</option>'; } else { - echo '<option VALUE="' . $myrow['areacode'] . '">' . $myrow['areadescription']; + echo '<option value="' . $myrow['areacode'] . '">' . $myrow['areadescription'] . '</option>'; } } echo '</select></td></tr>'; - $CategoriesResult = DB_query('SELECT categoryid, categorydescription FROM stockcategory',$db); + $CategoriesResult = DB_query("SELECT categoryid, categorydescription FROM stockcategory",$db); if (!isset($_POST['CategoryID'])){ $_POST['CategoryID']=''; } - echo '<tr><td>' . _('For Stock Category:') .'</td><td><select Name="CategoryID">'; + echo '<tr> + <td>' . _('For Stock Category:') .'</td> + <td><select Name="CategoryID">'; if($_POST['CategoryID']=='All'){ - echo '<option selected VALUE="All">' . _('All'); + echo '<option selected value="All">' . _('All') . '</option>'; } else { - echo '<option VALUE="All">' . _('All'); + echo '<option value="All">' . _('All') . '</option>'; } while ($myrow=DB_fetch_array($CategoriesResult)){ if($myrow['categoryid']==$_POST['CategoryID']){ - echo '<option selected VALUE="' . $myrow['categoryid'] . '">' . $myrow['categorydescription']; + echo '<option selected value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; } else { - echo '<option VALUE="' . $myrow['categoryid'] . '">' . $myrow['categorydescription']; + echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; } } echo '</select></td></tr>'; - $SalesFolkResult = DB_query('SELECT salesmancode, salesmanname FROM salesman',$db); + $SalesFolkResult = DB_query("SELECT salesmancode, salesmanname FROM salesman",$db); - if (! isset($_POST['SalesmanCode'])){ $_POST['SalesmanCode'] = ''; } - echo '<tr><td>' . _('For Sales Person:') .'</td><td><select Name="SalesmanCode">'; + echo '<tr> + <td>' . _('For Sales Person:') .'</td> + <td><select name="SalesmanCode">'; if($_POST['SalesmanCode']=='All'){ - echo '<option selected VALUE="All">' . _('All') . '</option>'; + echo '<option selected value="All">' . _('All') . '</option>'; } else { - echo '<option VALUE="All">' . _('All') . '</option>'; + echo '<option value="All">' . _('All') . '</option>'; } while ($myrow=DB_fetch_array($SalesFolkResult)){ if ($myrow['salesmancode']== $_POST['SalesmanCode']){ - echo '<option selected VALUE="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; + echo '<option selected value="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; } else { - echo '<option VALUE="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; + echo '<option value="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; } } - echo '</select></td><td>' . $_POST['SalesmanCode'] . '</td></tr>'; + echo '</select></td> + <td>' . $_POST['SalesmanCode'] . '</td> + </tr>'; echo '<tr><td>'._('Graph Type').'</td>'; - echo '<td><select name=GraphType>'; - echo '<option value=bars>'._('Bar Graph').'</option>'; - echo '<option value=stackedbars>'._('Stacked Bar Graph').'</option>'; - echo '<option value=lines>'._('Line Graph').'</option>'; - echo '<option value=linepoints>'._('Line Point Graph').'</option>'; - echo '<option value=area>'._('Area Graph').'</option>'; - echo '<option value=points>'._('Points Graph').'</option>'; - echo '<option value=pie>'._('Pie Graph').'</option>'; - echo '<option value=thinbarline>'._('Thin Bar Line Graph').'</option>'; - echo '<option value=squared>'._('Squared Graph').'</option>'; - echo '<option value=stackedarea>'._('Stacked Area Graph').'</option>'; + echo '<td><select name="GraphType">'; + echo '<option value="bars">'._('Bar Graph').'</option>'; + echo '<option value="stackedbars">'._('Stacked Bar Graph').'</option>'; + echo '<option value="lines">'._('Line Graph').'</option>'; + echo '<option value="linepoints">'._('Line Point Graph').'</option>'; + echo '<option value="area">'._('Area Graph').'</option>'; + echo '<option value="points">'._('Points Graph').'</option>'; + echo '<option value="pie">'._('Pie Graph').'</option>'; + echo '<option value="thinbarline">'._('Thin Bar Line Graph').'</option>'; + echo '<option value="squared">'._('Squared Graph').'</option>'; + echo '<option value="stackedarea">'._('Stacked Area Graph').'</option>'; echo '</select></td></tr>'; if (!isset($_POST['ValueFrom'])){ @@ -165,20 +176,20 @@ $_POST['ValueTo']=''; } echo '<tr><td>' . _('Graph On:') . '</td><td> - <input type="RADIO" name="GraphOn" VALUE="All" CHECKED>' . _('All') . '<br /> - <input type="RADIO" name="GraphOn" VALUE="Customer">' . _('Customer') . '<br /> - <input type="RADIO" name="GraphOn" VALUE="StockID">' . _('Item Code') . '</td></tr>'; - echo '<tr><td>' . _('From:') . ' <input type=TEXT name="ValueFrom" VALUE=' . $_POST['ValueFrom'] . '></td> - <td>' . _('To:') . ' <input type=TEXT name="ValueTo" VALUE=' . $_POST['ValueTo'] . '></td></tr>'; + <input type="RADIO" name="GraphOn" value="All" CHECKED>' . _('All') . '<br /> + <input type="RADIO" name="GraphOn" value="Customer">' . _('Customer') . '<br /> + <input type="RADIO" name="GraphOn" value="StockID">' . _('Item Code') . '</td></tr>'; + echo '<tr><td>' . _('From:') . ' <input type=TEXT name="ValueFrom" value=' . $_POST['ValueFrom'] . '></td> + <td>' . _('To:') . ' <input type=TEXT name="ValueTo" value=' . $_POST['ValueTo'] . '></td></tr>'; echo '<tr><td>' . _('Graph Value:') . '</td><td> - <input type="RADIO" name="GraphValue" VALUE="Net" CHECKED>' . _('Net Sales Value') . '<br /> - <input type="RADIO" name="GraphValue" VALUE="GP">' . _('Gross Profit') . '<br /> - <input type="RADIO" name="GraphValue" VALUE="Quantity">' . _('Quantity') . '</td></tr>'; + <input type="RADIO" name="GraphValue" value="Net" CHECKED>' . _('Net Sales Value') . '<br /> + <input type="RADIO" name="GraphValue" value="GP">' . _('Gross Profit') . '<br /> + <input type="RADIO" name="GraphValue" value="Quantity">' . _('Quantity') . '</td></tr>'; echo '</table>'; - echo '<br /><div class="centre"><input type=submit Name="ShowGraph" Value="' . _('Show Sales Graph') .'"></div>'; + echo '<br /><div class="centre"><input type="submit" Name="ShowGraph" Value="' . _('Show Sales Graph') .'"></div>'; include('includes/footer.inc'); } else { @@ -234,16 +245,16 @@ $WhereClause .= " stockid >='" . $_POST['ValueFrom'] . "' AND stockid <='" . $_POST['ValueTo'] . "' AND"; } - $WhereClause = 'WHERE ' . $WhereClause . ' salesanalysis.periodno>=' . $_POST['FromPeriod'] . ' AND salesanalysis.periodno <= ' . $_POST['ToPeriod']; + $WhereClause = "WHERE " . $WhereClause . " salesanalysis.periodno>='" . $_POST['FromPeriod'] . "' AND salesanalysis.periodno <= '" . $_POST['ToPeriod'] . "'"; - $SQL = 'SELECT salesanalysis.periodno, + $SQL = "SELECT salesanalysis.periodno, periods.lastdate_in_period, - SUM(CASE WHEN budgetoractual=1 THEN ' . $SelectClause . ' ELSE 0 END) AS sales, - SUM(CASE WHEN budgetoractual=0 THEN ' . $SelectClause . ' ELSE 0 END) AS budget - FROM salesanalysis INNER JOIN periods ON salesanalysis.periodno=periods.periodno ' . $WhereClause . ' + SUM(CASE WHEN budgetoractual=1 THEN " . $SelectClause . " ELSE 0 END) AS sales, + SUM(CASE WHEN budgetoractual=0 THEN " . $SelectClause . " ELSE 0 END) AS budget + FROM salesanalysis INNER JOIN periods ON salesanalysis.periodno=periods.periodno " . $WhereClause . " GROUP BY salesanalysis.periodno, periods.lastdate_in_period - ORDER BY salesanalysis.periodno'; + ORDER BY salesanalysis.periodno"; $graph->SetTitle($GraphTitle); @@ -259,11 +270,11 @@ } $graph->SetXTickPos('none'); $graph->SetXTickLabelPos('none'); - $graph->SetBackgroundColor("selection"); - $graph->SetTitleColor("blue"); - $graph->SetFileFormat("png"); + $graph->SetBackgroundColor('selection'); + $graph->SetTitleColor('blue'); + $graph->SetFileFormat('png'); $graph->SetPlotType($_POST['GraphType']); - $graph->SetIsInline("1"); + $graph->SetIsInline('1'); $graph->SetShading(5); $graph->SetDrawYGrid(TRUE); $graph->SetDataType('text-data'); @@ -297,9 +308,12 @@ //Draw it $graph->DrawGraph(); - echo '<table class=selection><tr><td>'; + echo '<table class="selection"> + <tr><td>'; echo '<p><img src="companies/' .$_SESSION['DatabaseName'] . '/reports/salesgraph.png" alt="Sales Report Graph"></img></p>'; - echo '</td></tr></table>'; + echo '</td> + </tr> + </table>'; include('includes/footer.inc'); - } - ?> \ No newline at end of file +} +?> \ No newline at end of file Modified: trunk/install/save.php =================================================================== --- trunk/install/save.php 2011-07-27 09:17:10 UTC (rev 4642) +++ trunk/install/save.php 2011-07-29 05:55:03 UTC (rev 4643) @@ -1,8 +1,8 @@ <?php /* $Id$*/ -error_reporting(E_ALL); -ini_set('display_errors', "On"); -ini_set('max_execution_time', "180"); +error_reporting(E_ALL && ~E_NOTICE); +ini_set('display_errors', 'On'); +ini_set('max_execution_time', '180'); require_once('../includes/MiscFunctions.php'); // Start a session @@ -79,7 +79,7 @@ // Function to workout what the default permissions are for files created by the webserver function default_file_mode($temp_dir) { - $v = explode(".",PHP_VERSION); + $v = explode('.',PHP_VERSION); $v = $v[0].$v[1]; if($v > 41 && is_writable($temp_dir)) { @@ -97,7 +97,7 @@ // Function to workout what the default permissions are for directories created by the webserver function default_dir_mode($temp_dir) { - $v = explode(".",PHP_VERSION); + $v = explode('.',PHP_VERSION); $v = $v[0].$v[1]; if ($v > 41 && is_writable($temp_dir)) { $dirname = $temp_dir.'/test_permissions/'; @@ -237,11 +237,10 @@ $Result = mkdir($CompanyDir . '/reportwriter'); $Result = mkdir($CompanyDir . '/pdf_append'); $Result = mkdir($CompanyDir . '/FormDesigns'); - copy ($path_to_root . '/companies/weberpdemo/FormDesigns/GoodsReceived.xml', $CompanyDir . '/FormDesigns/GoodsReceived.xml'); - copy ($path_to_root . '/companies/weberpdemo/FormDesigns/PickingList.xml', $CompanyDir . '/FormDesigns/PickingList.xml'); - copy ($path_to_root . '/companies/weberpdemo/FormDesigns/PurchaseOrder.xml', $CompanyDir . '/FormDesigns/PurchaseOrder.xml'); - copy ($path_to_root . '/companies/weberpdemo/FormDesigns/SalesInvoice.xml', $CompanyDir . '/FormDesigns/SalesInvoice.xml'); - + copy ($path_to_root . '/companies/weberpdemo/FormDesigns/GoodsReceived.xml', $CompanyDir . '/FormDesigns/GoodsReceived.xml'); + copy ($path_to_root . '/companies/weberpdemo/FormDesigns/PickingList.xml', $CompanyDir . '/FormDesigns/PickingList.xml'); + copy ($path_to_root . '/companies/weberpdemo/FormDesigns/PurchaseOrder.xml', $CompanyDir . '/FormDesigns/PurchaseOrder.xml'); + // Now have a destination to place the logo image. if (isset($_FILES['LogoFile'])) { if ($_FILES['LogoFile']['error'] == UPLOAD_ERR_OK) { @@ -249,12 +248,12 @@ $CompanyDir . '/logo.jpg'); } elseif ($_FILES['LogoFile']['error'] == UPLOAD_ERR_INI_SIZE || $_FILES['LogoFile']['error'] == UPLOAD_ERR_FORM_SIZE) { - set_error( "Logo file is too big - Limit: " . $_SESSION['MaxLogoSize'] ); + set_error( 'Logo file is too big - Limit: ' . $_SESSION['MaxLogoSize'] ); } elseif ($_FILES['LogoFile']['error'] == UPLOAD_ERR_NO_FILE ) { // No logo file, so use the default. copy( $path_to_root . '/logo_server.jpg', $CompanyDir . '/logo.jpg'); } else { - set_error( "Error uploading logo file" ); + set_error( 'Error uploading logo file' ); } } else { // No logo file, so use the default. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-29 05:55:10
|
Revision: 4643 http://web-erp.svn.sourceforge.net/web-erp/?rev=4643&view=rev Author: daintree Date: 2011-07-29 05:55:03 +0000 (Fri, 29 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/SalesGraph.php trunk/install/save.php Modified: trunk/SalesGraph.php =================================================================== --- trunk/SalesGraph.php 2011-07-27 09:17:10 UTC (rev 4642) +++ trunk/SalesGraph.php 2011-07-29 05:55:03 UTC (rev 4643) @@ -28,12 +28,14 @@ if ((! isset($_POST['FromPeriod']) OR ! isset($_POST['ToPeriod'])) OR $SelectADifferentPeriod==_('Select A Different Period')){ - echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '">'; + echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p>'; - /*Show a form to allow input of criteria for TB to show */ - echo '<table class=selection><tr><td>' . _('Select Period From:') . '</td><td><select Name="FromPeriod">'; + + echo '<table class="selection"> + <tr><td>' . _('Select Period From:') . '</td> + <td><select Name="FromPeriod">'; if (Date('m') > $_SESSION['YearEnd']){ /*Dates in SQL format */ @@ -41,21 +43,21 @@ } else { $DefaultFromDate = Date ('Y-m-d', Mktime(0,0,0,$_SESSION['YearEnd'] + 2,0,Date('Y')-1)); } - $sql = 'SELECT periodno, lastdate_in_period FROM periods ORDER BY periodno'; + $sql = "SELECT periodno, lastdate_in_period FROM periods ORDER BY periodno"; $Periods = DB_query($sql,$db); while ($myrow=DB_fetch_array($Periods,$db)){ if(isset($_POST['FromPeriod']) AND $_POST['FromPeriod']!=''){ if( $_POST['FromPeriod']== $myrow['periodno']){ - echo '<option selected VALUE="' . $myrow['periodno'] . '">' .MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option selected value="' . $myrow['periodno'] . '">' .MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } else { - echo '<option VALUE="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option value="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } } else { if($myrow['lastdate_in_period']==$DefaultFromDate){ - echo '<option selected VALUE="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option selected value="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } else { - echo '<option VALUE="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option value="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } } } @@ -67,95 +69,104 @@ $DefaultToPeriod = $_POST['ToPeriod']; } - echo '<tr><td>' . _('Select Period To:') .'</td><td><select Name="ToPeriod">'; + echo '<tr> + <td>' . _('Select Period To:') .'</td> + <td><select name="ToPeriod">'; $RetResult = DB_data_seek($Periods,0); while ($myrow=DB_fetch_array($Periods,$db)){ if($myrow['periodno']==$DefaultToPeriod){ - echo '<option selected VALUE="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option selected value="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } else { - echo '<option VALUE ="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']); + echo '<option value ="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } } echo '</select></td></tr>'; - $AreasResult = DB_query('SELECT areacode, areadescription FROM areas',$db); + $AreasResult = DB_query("SELECT areacode, areadescription FROM areas",$db); if (!isset($_POST['SalesArea'])){ $_POST['SalesArea']=''; } - echo '<tr><td>' . _('For Sales Area/Region:') .'</td><td><select Name="SalesArea">'; + echo '<tr> + <td>' . _('For Sales Area/Region:') .'</td> + <td><select name="SalesArea">'; if($_POST['SalesArea']=='All'){ - echo '<option selected VALUE="All">' . _('All'); + echo '<option selected value="All">' . _('All') . '</option>'; } else { - echo '<option VALUE="All">' . _('All'); + echo '<option value="All">' . _('All') . '</option>'; } while ($myrow=DB_fetch_array($AreasResult)){ if($myrow['areacode']==$_POST['SalesArea']){ - echo '<option selected VALUE="' . $myrow['areacode'] . '">' . $myrow['areadescription']; + echo '<option selected value="' . $myrow['areacode'] . '">' . $myrow['areadescription'] . '</option>'; } else { - echo '<option VALUE="' . $myrow['areacode'] . '">' . $myrow['areadescription']; + echo '<option value="' . $myrow['areacode'] . '">' . $myrow['areadescription'] . '</option>'; } } echo '</select></td></tr>'; - $CategoriesResult = DB_query('SELECT categoryid, categorydescription FROM stockcategory',$db); + $CategoriesResult = DB_query("SELECT categoryid, categorydescription FROM stockcategory",$db); if (!isset($_POST['CategoryID'])){ $_POST['CategoryID']=''; } - echo '<tr><td>' . _('For Stock Category:') .'</td><td><select Name="CategoryID">'; + echo '<tr> + <td>' . _('For Stock Category:') .'</td> + <td><select Name="CategoryID">'; if($_POST['CategoryID']=='All'){ - echo '<option selected VALUE="All">' . _('All'); + echo '<option selected value="All">' . _('All') . '</option>'; } else { - echo '<option VALUE="All">' . _('All'); + echo '<option value="All">' . _('All') . '</option>'; } while ($myrow=DB_fetch_array($CategoriesResult)){ if($myrow['categoryid']==$_POST['CategoryID']){ - echo '<option selected VALUE="' . $myrow['categoryid'] . '">' . $myrow['categorydescription']; + echo '<option selected value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; } else { - echo '<option VALUE="' . $myrow['categoryid'] . '">' . $myrow['categorydescription']; + echo '<option value="' . $myrow['categoryid'] . '">' . $myrow['categorydescription'] . '</option>'; } } echo '</select></td></tr>'; - $SalesFolkResult = DB_query('SELECT salesmancode, salesmanname FROM salesman',$db); + $SalesFolkResult = DB_query("SELECT salesmancode, salesmanname FROM salesman",$db); - if (! isset($_POST['SalesmanCode'])){ $_POST['SalesmanCode'] = ''; } - echo '<tr><td>' . _('For Sales Person:') .'</td><td><select Name="SalesmanCode">'; + echo '<tr> + <td>' . _('For Sales Person:') .'</td> + <td><select name="SalesmanCode">'; if($_POST['SalesmanCode']=='All'){ - echo '<option selected VALUE="All">' . _('All') . '</option>'; + echo '<option selected value="All">' . _('All') . '</option>'; } else { - echo '<option VALUE="All">' . _('All') . '</option>'; + echo '<option value="All">' . _('All') . '</option>'; } while ($myrow=DB_fetch_array($SalesFolkResult)){ if ($myrow['salesmancode']== $_POST['SalesmanCode']){ - echo '<option selected VALUE="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; + echo '<option selected value="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; } else { - echo '<option VALUE="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; + echo '<option value="' . $myrow['salesmancode'] . '">' . $myrow['salesmanname'] . '</option>'; } } - echo '</select></td><td>' . $_POST['SalesmanCode'] . '</td></tr>'; + echo '</select></td> + <td>' . $_POST['SalesmanCode'] . '</td> + </tr>'; echo '<tr><td>'._('Graph Type').'</td>'; - echo '<td><select name=GraphType>'; - echo '<option value=bars>'._('Bar Graph').'</option>'; - echo '<option value=stackedbars>'._('Stacked Bar Graph').'</option>'; - echo '<option value=lines>'._('Line Graph').'</option>'; - echo '<option value=linepoints>'._('Line Point Graph').'</option>'; - echo '<option value=area>'._('Area Graph').'</option>'; - echo '<option value=points>'._('Points Graph').'</option>'; - echo '<option value=pie>'._('Pie Graph').'</option>'; - echo '<option value=thinbarline>'._('Thin Bar Line Graph').'</option>'; - echo '<option value=squared>'._('Squared Graph').'</option>'; - echo '<option value=stackedarea>'._('Stacked Area Graph').'</option>'; + echo '<td><select name="GraphType">'; + echo '<option value="bars">'._('Bar Graph').'</option>'; + echo '<option value="stackedbars">'._('Stacked Bar Graph').'</option>'; + echo '<option value="lines">'._('Line Graph').'</option>'; + echo '<option value="linepoints">'._('Line Point Graph').'</option>'; + echo '<option value="area">'._('Area Graph').'</option>'; + echo '<option value="points">'._('Points Graph').'</option>'; + echo '<option value="pie">'._('Pie Graph').'</option>'; + echo '<option value="thinbarline">'._('Thin Bar Line Graph').'</option>'; + echo '<option value="squared">'._('Squared Graph').'</option>'; + echo '<option value="stackedarea">'._('Stacked Area Graph').'</option>'; echo '</select></td></tr>'; if (!isset($_POST['ValueFrom'])){ @@ -165,20 +176,20 @@ $_POST['ValueTo']=''; } echo '<tr><td>' . _('Graph On:') . '</td><td> - <input type="RADIO" name="GraphOn" VALUE="All" CHECKED>' . _('All') . '<br /> - <input type="RADIO" name="GraphOn" VALUE="Customer">' . _('Customer') . '<br /> - <input type="RADIO" name="GraphOn" VALUE="StockID">' . _('Item Code') . '</td></tr>'; - echo '<tr><td>' . _('From:') . ' <input type=TEXT name="ValueFrom" VALUE=' . $_POST['ValueFrom'] . '></td> - <td>' . _('To:') . ' <input type=TEXT name="ValueTo" VALUE=' . $_POST['ValueTo'] . '></td></tr>'; + <input type="RADIO" name="GraphOn" value="All" CHECKED>' . _('All') . '<br /> + <input type="RADIO" name="GraphOn" value="Customer">' . _('Customer') . '<br /> + <input type="RADIO" name="GraphOn" value="StockID">' . _('Item Code') . '</td></tr>'; + echo '<tr><td>' . _('From:') . ' <input type=TEXT name="ValueFrom" value=' . $_POST['ValueFrom'] . '></td> + <td>' . _('To:') . ' <input type=TEXT name="ValueTo" value=' . $_POST['ValueTo'] . '></td></tr>'; echo '<tr><td>' . _('Graph Value:') . '</td><td> - <input type="RADIO" name="GraphValue" VALUE="Net" CHECKED>' . _('Net Sales Value') . '<br /> - <input type="RADIO" name="GraphValue" VALUE="GP">' . _('Gross Profit') . '<br /> - <input type="RADIO" name="GraphValue" VALUE="Quantity">' . _('Quantity') . '</td></tr>'; + <input type="RADIO" name="GraphValue" value="Net" CHECKED>' . _('Net Sales Value') . '<br /> + <input type="RADIO" name="GraphValue" value="GP">' . _('Gross Profit') . '<br /> + <input type="RADIO" name="GraphValue" value="Quantity">' . _('Quantity') . '</td></tr>'; echo '</table>'; - echo '<br /><div class="centre"><input type=submit Name="ShowGraph" Value="' . _('Show Sales Graph') .'"></div>'; + echo '<br /><div class="centre"><input type="submit" Name="ShowGraph" Value="' . _('Show Sales Graph') .'"></div>'; include('includes/footer.inc'); } else { @@ -234,16 +245,16 @@ $WhereClause .= " stockid >='" . $_POST['ValueFrom'] . "' AND stockid <='" . $_POST['ValueTo'] . "' AND"; } - $WhereClause = 'WHERE ' . $WhereClause . ' salesanalysis.periodno>=' . $_POST['FromPeriod'] . ' AND salesanalysis.periodno <= ' . $_POST['ToPeriod']; + $WhereClause = "WHERE " . $WhereClause . " salesanalysis.periodno>='" . $_POST['FromPeriod'] . "' AND salesanalysis.periodno <= '" . $_POST['ToPeriod'] . "'"; - $SQL = 'SELECT salesanalysis.periodno, + $SQL = "SELECT salesanalysis.periodno, periods.lastdate_in_period, - SUM(CASE WHEN budgetoractual=1 THEN ' . $SelectClause . ' ELSE 0 END) AS sales, - SUM(CASE WHEN budgetoractual=0 THEN ' . $SelectClause . ' ELSE 0 END) AS budget - FROM salesanalysis INNER JOIN periods ON salesanalysis.periodno=periods.periodno ' . $WhereClause . ' + SUM(CASE WHEN budgetoractual=1 THEN " . $SelectClause . " ELSE 0 END) AS sales, + SUM(CASE WHEN budgetoractual=0 THEN " . $SelectClause . " ELSE 0 END) AS budget + FROM salesanalysis INNER JOIN periods ON salesanalysis.periodno=periods.periodno " . $WhereClause . " GROUP BY salesanalysis.periodno, periods.lastdate_in_period - ORDER BY salesanalysis.periodno'; + ORDER BY salesanalysis.periodno"; $graph->SetTitle($GraphTitle); @@ -259,11 +270,11 @@ } $graph->SetXTickPos('none'); $graph->SetXTickLabelPos('none'); - $graph->SetBackgroundColor("selection"); - $graph->SetTitleColor("blue"); - $graph->SetFileFormat("png"); + $graph->SetBackgroundColor('selection'); + $graph->SetTitleColor('blue'); + $graph->SetFileFormat('png'); $graph->SetPlotType($_POST['GraphType']); - $graph->SetIsInline("1"); + $graph->SetIsInline('1'); $graph->SetShading(5); $graph->SetDrawYGrid(TRUE); $graph->SetDataType('text-data'); @@ -297,9 +308,12 @@ //Draw it $graph->DrawGraph(); - echo '<table class=selection><tr><td>'; + echo '<table class="selection"> + <tr><td>'; echo '<p><img src="companies/' .$_SESSION['DatabaseName'] . '/reports/salesgraph.png" alt="Sales Report Graph"></img></p>'; - echo '</td></tr></table>'; + echo '</td> + </tr> + </table>'; include('includes/footer.inc'); - } - ?> \ No newline at end of file +} +?> \ No newline at end of file Modified: trunk/install/save.php =================================================================== --- trunk/install/save.php 2011-07-27 09:17:10 UTC (rev 4642) +++ trunk/install/save.php 2011-07-29 05:55:03 UTC (rev 4643) @@ -1,8 +1,8 @@ <?php /* $Id$*/ -error_reporting(E_ALL); -ini_set('display_errors', "On"); -ini_set('max_execution_time', "180"); +error_reporting(E_ALL && ~E_NOTICE); +ini_set('display_errors', 'On'); +ini_set('max_execution_time', '180'); require_once('../includes/MiscFunctions.php'); // Start a session @@ -79,7 +79,7 @@ // Function to workout what the default permissions are for files created by the webserver function default_file_mode($temp_dir) { - $v = explode(".",PHP_VERSION); + $v = explode('.',PHP_VERSION); $v = $v[0].$v[1]; if($v > 41 && is_writable($temp_dir)) { @@ -97,7 +97,7 @@ // Function to workout what the default permissions are for directories created by the webserver function default_dir_mode($temp_dir) { - $v = explode(".",PHP_VERSION); + $v = explode('.',PHP_VERSION); $v = $v[0].$v[1]; if ($v > 41 && is_writable($temp_dir)) { $dirname = $temp_dir.'/test_permissions/'; @@ -237,11 +237,10 @@ $Result = mkdir($CompanyDir . '/reportwriter'); $Result = mkdir($CompanyDir . '/pdf_append'); $Result = mkdir($CompanyDir . '/FormDesigns'); - copy ($path_to_root . '/companies/weberpdemo/FormDesigns/GoodsReceived.xml', $CompanyDir . '/FormDesigns/GoodsReceived.xml'); - copy ($path_to_root . '/companies/weberpdemo/FormDesigns/PickingList.xml', $CompanyDir . '/FormDesigns/PickingList.xml'); - copy ($path_to_root . '/companies/weberpdemo/FormDesigns/PurchaseOrder.xml', $CompanyDir . '/FormDesigns/PurchaseOrder.xml'); - copy ($path_to_root . '/companies/weberpdemo/FormDesigns/SalesInvoice.xml', $CompanyDir . '/FormDesigns/SalesInvoice.xml'); - + copy ($path_to_root . '/companies/weberpdemo/FormDesigns/GoodsReceived.xml', $CompanyDir . '/FormDesigns/GoodsReceived.xml'); + copy ($path_to_root . '/companies/weberpdemo/FormDesigns/PickingList.xml', $CompanyDir . '/FormDesigns/PickingList.xml'); + copy ($path_to_root . '/companies/weberpdemo/FormDesigns/PurchaseOrder.xml', $CompanyDir . '/FormDesigns/PurchaseOrder.xml'); + // Now have a destination to place the logo image. if (isset($_FILES['LogoFile'])) { if ($_FILES['LogoFile']['error'] == UPLOAD_ERR_OK) { @@ -249,12 +248,12 @@ $CompanyDir . '/logo.jpg'); } elseif ($_FILES['LogoFile']['error'] == UPLOAD_ERR_INI_SIZE || $_FILES['LogoFile']['error'] == UPLOAD_ERR_FORM_SIZE) { - set_error( "Logo file is too big - Limit: " . $_SESSION['MaxLogoSize'] ); + set_error( 'Logo file is too big - Limit: ' . $_SESSION['MaxLogoSize'] ); } elseif ($_FILES['LogoFile']['error'] == UPLOAD_ERR_NO_FILE ) { // No logo file, so use the default. copy( $path_to_root . '/logo_server.jpg', $CompanyDir . '/logo.jpg'); } else { - set_error( "Error uploading logo file" ); + set_error( 'Error uploading logo file' ); } } else { // No logo file, so use the default. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-27 09:17:17
|
Revision: 4642 http://web-erp.svn.sourceforge.net/web-erp/?rev=4642&view=rev Author: daintree Date: 2011-07-27 09:17:10 +0000 (Wed, 27 Jul 2011) Log Message: ----------- pre 4.05 Modified Paths: -------------- trunk/UpgradeDatabase.php Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-07-27 09:12:08 UTC (rev 4641) +++ trunk/UpgradeDatabase.php 2011-07-27 09:17:10 UTC (rev 4642) @@ -125,6 +125,7 @@ case '4.04.4': $SQLScripts[] = './sql/mysql/upgrade4.04.4-4.04.5.sql'; case '4.04.5': + $SQLScripts[] = './sql/mysql/upgrade4.04.5-4.05.sql'; case '4.05': break; } //end switch This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-27 09:17:16
|
Revision: 4642 http://web-erp.svn.sourceforge.net/web-erp/?rev=4642&view=rev Author: daintree Date: 2011-07-27 09:17:10 +0000 (Wed, 27 Jul 2011) Log Message: ----------- pre 4.05 Modified Paths: -------------- trunk/UpgradeDatabase.php Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-07-27 09:12:08 UTC (rev 4641) +++ trunk/UpgradeDatabase.php 2011-07-27 09:17:10 UTC (rev 4642) @@ -125,6 +125,7 @@ case '4.04.4': $SQLScripts[] = './sql/mysql/upgrade4.04.4-4.04.5.sql'; case '4.04.5': + $SQLScripts[] = './sql/mysql/upgrade4.04.5-4.05.sql'; case '4.05': break; } //end switch This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-27 09:12:14
|
Revision: 4641 http://web-erp.svn.sourceforge.net/web-erp/?rev=4641&view=rev Author: daintree Date: 2011-07-27 09:12:08 +0000 (Wed, 27 Jul 2011) Log Message: ----------- version update Added Paths: ----------- trunk/sql/mysql/upgrade4.04.5-4.05.sql Added: trunk/sql/mysql/upgrade4.04.5-4.05.sql =================================================================== --- trunk/sql/mysql/upgrade4.04.5-4.05.sql (rev 0) +++ trunk/sql/mysql/upgrade4.04.5-4.05.sql 2011-07-27 09:12:08 UTC (rev 4641) @@ -0,0 +1 @@ +UPDATE config SET confvalue='4.05' 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: <dai...@us...> - 2011-07-27 09:12:14
|
Revision: 4641 http://web-erp.svn.sourceforge.net/web-erp/?rev=4641&view=rev Author: daintree Date: 2011-07-27 09:12:08 +0000 (Wed, 27 Jul 2011) Log Message: ----------- version update Added Paths: ----------- trunk/sql/mysql/upgrade4.04.5-4.05.sql Added: trunk/sql/mysql/upgrade4.04.5-4.05.sql =================================================================== --- trunk/sql/mysql/upgrade4.04.5-4.05.sql (rev 0) +++ trunk/sql/mysql/upgrade4.04.5-4.05.sql 2011-07-27 09:12:08 UTC (rev 4641) @@ -0,0 +1 @@ +UPDATE config SET confvalue='4.05' 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: <dai...@us...> - 2011-07-27 09:10:58
|
Revision: 4640 http://web-erp.svn.sourceforge.net/web-erp/?rev=4640&view=rev Author: daintree Date: 2011-07-27 09:10:47 +0000 (Wed, 27 Jul 2011) Log Message: ----------- pre 4.05 release Modified Paths: -------------- trunk/UpgradeDatabase.php trunk/build/make_release.sh trunk/doc/Change.log trunk/includes/ConnectDB.inc trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po trunk/locale/el_GR.utf8/LC_MESSAGES/messages.mo trunk/locale/el_GR.utf8/LC_MESSAGES/messages.po trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.utf8/LC_MESSAGES/messages.po trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.mo trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.mo trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.po trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po trunk/locale/it_IT.utf8/LC_MESSAGES/messages.mo trunk/locale/it_IT.utf8/LC_MESSAGES/messages.po trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.mo trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.po trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.mo trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.po trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.mo trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.po trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.mo trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.po trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.po trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.mo trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.po trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.po trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.mo trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.po trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/UpgradeDatabase.php 2011-07-27 09:10:47 UTC (rev 4640) @@ -119,9 +119,13 @@ case '4.04': $SQLScripts[] = './sql/mysql/upgrade4.04-4.04.1.sql'; case '4.04.1': + case '4.04.2': + case '4.04.3': $SQLScripts[] = './sql/mysql/upgrade4.04.1-4.04.4.sql'; case '4.04.4': $SQLScripts[] = './sql/mysql/upgrade4.04.4-4.04.5.sql'; + case '4.04.5': + case '4.05': break; } //end switch } Modified: trunk/build/make_release.sh =================================================================== --- trunk/build/make_release.sh 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/build/make_release.sh 2011-07-27 09:10:47 UTC (rev 4640) @@ -126,4 +126,4 @@ cd .. -zip -r $OUTPUT_DIR/webERP webERP -x \*.svn* \*/config.php +zip -r $OUTPUT_DIR/webERP webERP -x \*.svn* \*/config.php \*.ecoder* Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/doc/Change.log 2011-07-27 09:10:47 UTC (rev 4640) @@ -1,6 +1,9 @@ webERP Change Log +27/7/11 Version 4.05 +27/7/11 includes/LanguageSetup.php now checks for existence of LC_MESSAGES (it doesn't exist on windows servers) and uses LC_ALL as the fall back only +27/7/11 Fixed quoting in PDFSuppTransListing.php, StockReorderLevel.php WhereUsedInquiry.php Z_ReverseSuppPaymentRun.php 26/7/11 SalesCategories.php fixed display of active categories - this script is not used by webERP - only by Mo Kelly's joomla cart application 24/7/11 Version 4.04.5 Modified: trunk/includes/ConnectDB.inc =================================================================== --- trunk/includes/ConnectDB.inc 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/includes/ConnectDB.inc 2011-07-27 09:10:47 UTC (rev 4640) @@ -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.04.5'; //must update manually every time there is a DB change +$Version='4.05'; //must update manually every time there is a DB change require_once ($PathPrefix .'includes/MiscFunctions.php'); Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-07-27 09:10:47 UTC (rev 4640) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-07-24 12:24+1200\n" +"POT-Creation-Date: 2011-07-27 19:08+1200\n" "PO-Revision-Date: 2011-02-07 15:33+0000\n" "Last-Translator: Tim Schofield <Unknown>\n" "Language-Team: Czech <cs...@li...>\n" @@ -149,7 +149,7 @@ #: Locations.php:256 Locations.php:265 Locations.php:274 Locations.php:283 #: Locations.php:292 Locations.php:301 MRPDemandTypes.php:87 #: PaymentMethods.php:138 PaymentTerms.php:144 PaymentTerms.php:151 -#: PcExpenses.php:152 SalesCategories.php:125 SalesCategories.php:133 +#: PcExpenses.php:152 SalesCategories.php:124 SalesCategories.php:131 #: SalesPeople.php:149 SalesPeople.php:156 SalesTypes.php:150 #: SalesTypes.php:160 Shippers.php:82 Shippers.php:94 StockCategories.php:179 #: Stocks.php:481 Stocks.php:490 Stocks.php:498 Stocks.php:506 Stocks.php:514 @@ -347,7 +347,7 @@ #: PaymentMethods.php:200 PaymentTerms.php:201 PcAssignCashToTab.php:255 #: PcClaimExpensesFromTab.php:252 PcExpenses.php:208 PcTabs.php:234 #: PcTypeTabs.php:172 PO_AuthorisationLevels.php:149 Prices_Customer.php:280 -#: Prices.php:246 PurchData.php:202 SalesCategories.php:256 +#: Prices.php:246 PurchData.php:202 SalesCategories.php:254 #: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:219 #: SalesTypes.php:216 SecurityTokens.php:110 SelectCustomer.php:668 #: SelectCustomer.php:686 SelectCustomer.php:710 SelectCustomer.php:727 @@ -381,7 +381,7 @@ #: PcExpensesTypeTab.php:185 PcTabs.php:235 PcTypeTabs.php:173 #: PO_AuthorisationLevels.php:151 PO_Items.php:684 Prices_Customer.php:281 #: Prices.php:247 PurchData.php:203 SalesAnalReptCols.php:294 -#: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 +#: SalesAnalRepts.php:302 SalesCategories.php:255 SalesGLPostings.php:133 #: SalesGLPostings.php:246 SalesPeople.php:220 SalesTypes.php:217 #: SecurityTokens.php:111 SelectCreditItems.php:754 SelectCustomer.php:669 #: SelectCustomer.php:687 SelectCustomer.php:711 SelectCustomer.php:728 @@ -701,9 +701,9 @@ msgstr "Datum" #: AddCustomerNotes.php:114 AddCustomerTypeNotes.php:105 PcReportTab.php:173 -#: Stocks.php:892 UpgradeDatabase.php:171 UpgradeDatabase.php:174 -#: UpgradeDatabase.php:177 UpgradeDatabase.php:180 UpgradeDatabase.php:183 -#: UpgradeDatabase.php:186 UpgradeDatabase.php:189 UpgradeDatabase.php:192 +#: Stocks.php:892 UpgradeDatabase.php:175 UpgradeDatabase.php:178 +#: UpgradeDatabase.php:181 UpgradeDatabase.php:184 UpgradeDatabase.php:187 +#: UpgradeDatabase.php:190 UpgradeDatabase.php:193 UpgradeDatabase.php:196 #: 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 @@ -847,15 +847,15 @@ #: PDFRemittanceAdvice.php:84 PDFStockCheckComparison.php:36 #: PDFStockCheckComparison.php:62 PDFStockCheckComparison.php:267 #: PO_PDFPurchOrder.php:31 PO_PDFPurchOrder.php:149 -#: PrintCustOrder_generic.php:243 PrintCustOrder.php:198 ReorderLevel.php:60 -#: ReorderLevel.php:149 SalesAnalysis_UserDefined.php:28 -#: SelectCreditItems.php:23 StockCheck.php:47 StockCheck.php:68 -#: StockCheck.php:98 StockCheck.php:142 StockCheck.php:153 StockCheck.php:195 -#: StockDispatch.php:92 StockDispatch.php:104 SupplierBalsAtPeriodEnd.php:56 -#: SupplierBalsAtPeriodEnd.php:67 SuppPaymentRun.php:109 -#: SuppPaymentRun.php:120 SuppPaymentRun.php:184 SuppPaymentRun.php:214 -#: SuppPriceList.php:121 Tax.php:63 Tax.php:168 Tax.php:277 -#: Z_DataExport.php:72 Z_DataExport.php:168 Z_DataExport.php:259 +#: PrintCustOrder_generic.php:243 PrintCustOrder.php:198 +#: PrintSalesOrder_generic.php:183 ReorderLevel.php:60 ReorderLevel.php:149 +#: SalesAnalysis_UserDefined.php:28 SelectCreditItems.php:23 StockCheck.php:47 +#: StockCheck.php:68 StockCheck.php:98 StockCheck.php:142 StockCheck.php:153 +#: StockCheck.php:195 StockDispatch.php:92 StockDispatch.php:104 +#: SupplierBalsAtPeriodEnd.php:56 SupplierBalsAtPeriodEnd.php:67 +#: SuppPaymentRun.php:109 SuppPaymentRun.php:120 SuppPaymentRun.php:184 +#: SuppPaymentRun.php:214 SuppPriceList.php:121 Tax.php:63 Tax.php:168 +#: Tax.php:277 Z_DataExport.php:72 Z_DataExport.php:168 Z_DataExport.php:259 #: Z_DataExport.php:308 Z_DataExport.php:347 Z_DataExport.php:383 #: Z_DataExport.php:419 Z_DataExport.php:471 Z_poRebuildDefault.php:38 #: includes/PDFPaymentRun_PymtFooter.php:57 @@ -1103,7 +1103,7 @@ #: FixedAssetCategories.php:134 GLAccounts.php:197 Locations.php:328 #: MRPDemands.php:248 PcAssignCashToTab.php:135 PcClaimExpensesFromTab.php:126 #: PcExpenses.php:160 PcExpensesTypeTab.php:101 PcTabs.php:166 -#: PcTypeTabs.php:135 SalesAnalReptCols.php:215 SalesCategories.php:137 +#: PcTypeTabs.php:135 SalesAnalReptCols.php:215 SalesCategories.php:135 #: SalesTypes.php:166 StockCategories.php:196 Suppliers.php:635 #: SupplierTypes.php:151 Z_DeleteInvoice.php:146 msgid "has been deleted" @@ -1170,7 +1170,8 @@ #: SystemParameters.php:943 SystemParameters.php:949 SystemParameters.php:955 #: SystemParameters.php:961 TopItems.php:23 TopItems.php:36 #: WorkOrderEntry.php:562 WorkOrderEntry.php:565 WorkOrderIssue.php:626 -#: WorkOrderIssue.php:629 +#: WorkOrderIssue.php:629 includes/PDFAssetRegisterHeader.inc:15 +#: includes/PDFAssetRegisterHeader.inc:24 msgid "All" msgstr "Všechny" @@ -1730,6 +1731,8 @@ #: includes/PDFPeriodStockTransListingPageHeader.inc:48 #: includes/PDFPeriodStockTransListingPageHeader.inc:52 #: includes/PDFStockComparisonPageHeader.inc:36 +#: includes/PDFStockTransListingPageHeader.inc:68 +#: includes/PDFStockTransListingPageHeader.inc:72 #: includes/PDFSuppTransListingPageHeader.inc:49 msgid "Reference" msgstr "Reference" @@ -1884,9 +1887,10 @@ #: includes/PDFSalesOrder_generic.inc:95 #: includes/PDFStockCheckPageHeader.inc:44 #: includes/PDFStockNegativesHeader.inc:33 -#: includes/PDFStockTransferHeader.inc:39 includes/PDFTransPageHeader.inc:209 -#: includes/PO_PDFOrderPageHeader.inc:78 api/api_xml-rpc.php:2260 -#: api/api_xml-rpc.php:2306 api/api_xml-rpc.php:2502 +#: includes/PDFStockTransferHeader.inc:39 +#: includes/PDFStockTransListingPageHeader.inc:70 +#: includes/PDFTransPageHeader.inc:209 includes/PO_PDFOrderPageHeader.inc:78 +#: api/api_xml-rpc.php:2260 api/api_xml-rpc.php:2306 api/api_xml-rpc.php:2502 msgid "Quantity" msgstr "Množství" @@ -1943,7 +1947,7 @@ #: includes/PDFOrderPageHeader_generic.inc:79 #: includes/PDFOstdgGRNsPageHeader.inc:16 #: includes/PDFPaymentRunPageHeader.inc:11 -#: includes/PDFPickingListHeader.inc:48 +#: includes/PDFPickingListHeader.inc:48 includes/PDFPriceListPageHeader.inc:12 #: includes/PDFProfitAndLossPageHeader.inc:27 #: includes/PDFSalesAnalPageHeader.inc:15 #: includes/PDFSalesOrder_generic.inc:81 @@ -1971,6 +1975,7 @@ #: PrintCustTransPortrait.php:998 ReorderLevel.php:240 StockDispatch.php:337 #: SuppPriceList.php:255 Tax.php:243 includes/PDFAgedDebtorsPageHeader.inc:34 #: includes/PDFAgedSuppliersPageHeader.inc:21 +#: includes/PDFAssetRegisterHeader.inc:38 #: includes/PDFBalanceSheetPageHeader.inc:26 #: includes/PDFBankingSummaryPageHeader.inc:23 #: includes/PDFBOMListingPageHeader.inc:26 @@ -1990,7 +1995,7 @@ #: includes/PDFOstdgGRNsPageHeader.inc:16 #: includes/PDFPaymentRunPageHeader.inc:11 #: includes/PDFPeriodStockTransListingPageHeader.inc:25 -#: includes/PDFPickingListHeader.inc:69 +#: includes/PDFPickingListHeader.inc:69 includes/PDFPriceListPageHeader.inc:12 #: includes/PDFProfitAndLossPageHeader.inc:28 #: includes/PDFQuotationPageHeader.inc:94 #: includes/PDFQuotationPortraitPageHeader.inc:92 @@ -2003,6 +2008,7 @@ #: includes/PDFStockLocTransferHeader.inc:12 #: includes/PDFStockNegativesHeader.inc:12 #: includes/PDFStockTransferHeader.inc:16 +#: includes/PDFStockTransListingPageHeader.inc:45 #: includes/PDFSupplierBalsPageHeader.inc:20 #: includes/PDFSuppTransListingPageHeader.inc:32 #: includes/PDFTabReportHeader.inc:15 @@ -2114,7 +2120,7 @@ #: PDFOrderStatus.php:319 PDFPrintLabel.php:238 PO_Items.php:637 #: PO_Items.php:926 PO_SelectOSPurchOrder.php:211 PO_SelectPurchOrder.php:178 #: PricesByCost.php:152 ReorderLevelLocation.php:55 ReorderLevel.php:254 -#: ReverseGRN.php:377 SalesCategories.php:423 SecurityTokens.php:86 +#: ReverseGRN.php:377 SalesCategories.php:421 SecurityTokens.php:86 #: SecurityTokens.php:92 SecurityTokens.php:102 SelectAsset.php:243 #: SelectCompletedOrder.php:536 SelectContract.php:153 #: SelectCreditItems.php:976 SelectOrderItems.php:1517 @@ -2129,8 +2135,8 @@ #: TaxAuthorities.php:145 TopItems.php:163 WorkCentres.php:124 #: WorkOrderCosting.php:81 WorkOrderCosting.php:111 WorkOrderEntry.php:598 #: WorkOrderIssue.php:668 includes/DefineLabelClass.php:12 -#: includes/DefineLabelClass.php:45 includes/PDFGrnHeader.inc:29 -#: includes/PDFInventoryPlanPageHeader.inc:51 +#: includes/DefineLabelClass.php:45 includes/PDFAssetRegisterHeader.inc:62 +#: includes/PDFGrnHeader.inc:29 includes/PDFInventoryPlanPageHeader.inc:51 #: includes/PDFOstdgGRNsPageHeader.inc:38 #: includes/PDFStockLocTransferHeader.inc:49 #: includes/PDFStockTransferHeader.inc:36 includes/PDFTopItemsHeader.inc:50 @@ -2240,7 +2246,7 @@ #: BOMInquiry.php:26 BOMs.php:806 EmailConfirmation.php:191 MRPDemands.php:333 #: MRPReport.php:542 PO_SelectOSPurchOrder.php:200 PO_SelectPurchOrder.php:170 -#: SalesCategories.php:422 SelectProduct.php:512 Shipt_Select.php:166 +#: SalesCategories.php:420 SelectProduct.php:512 Shipt_Select.php:166 #: StockAdjustments.php:76 StockAdjustments.php:335 StockCounts.php:97 #: StockCounts.php:132 StockMovements.php:31 StockReorderLevel.php:44 #: StockStatus.php:61 StockTransfers.php:38 StockTransfers.php:445 @@ -2641,8 +2647,10 @@ #: StockCounts.php:133 StockReorderLevel.php:49 StockSerialItemResearch.php:78 #: StockStatus.php:84 StockStatus.php:89 WhereUsedInquiry.php:67 #: WorkCentres.php:125 WorkCentres.php:210 +#: includes/PDFAssetRegisterHeader.inc:64 #: includes/PDFPeriodStockTransListingPageHeader.inc:51 -#: includes/PDFStockNegativesHeader.inc:31 api/api_xml-rpc.php:2258 +#: includes/PDFStockNegativesHeader.inc:31 +#: includes/PDFStockTransListingPageHeader.inc:71 api/api_xml-rpc.php:2258 #: api/api_xml-rpc.php:2304 api/api_xml-rpc.php:2500 msgid "Location" msgstr "Umístění" @@ -2988,7 +2996,7 @@ #: PO_AuthoriseMyOrders.php:132 PricesByCost.php:221 PurchData.php:497 #: ReorderLevelLocation.php:156 SecurityTokens.php:89 #: SelectCreditItems.php:911 SMTPServer.php:64 StockCostUpdate.php:163 -#: StockReorderLevel.php:94 Stocks.php:1047 SystemParameters.php:1018 +#: StockReorderLevel.php:95 Stocks.php:1047 SystemParameters.php:1018 #: TaxAuthorityRates.php:79 WorkOrderEntry.php:546 WOSerialNos.php:315 msgid "Update" msgstr "Aktualizace" @@ -3236,6 +3244,7 @@ #: StockMovements.php:97 StockStatus.php:313 SuppCreditGRNs.php:229 #: SuppCreditGRNs.php:230 SupplierTenders.php:267 SupplierTenders.php:494 #: SuppPriceList.php:274 includes/DefineLabelClass.php:49 +#: includes/PDFPriceListPageHeader.inc:46 #: includes/PDFQuotationPageHeader.inc:104 #: includes/PDFQuotationPortraitPageHeader.inc:104 #: includes/PDFTransPageHeaderPortrait.inc:265 @@ -3831,8 +3840,8 @@ #: FixedAssetCategories.php:86 FixedAssetCategories.php:105 #: PricesBasedOnMarkUp.php:337 PricesBasedOnMarkUp.php:353 #: SelectCreditItems.php:1395 SpecialOrder.php:423 StockCategories.php:21 -#: StockCategories.php:82 StockCategories.php:153 Z_ReApplyCostToSA.php:62 -#: Z_ReApplyCostToSA.php:74 +#: StockCategories.php:82 StockCategories.php:153 Z_PriceChanges.php:137 +#: Z_ReApplyCostToSA.php:62 Z_ReApplyCostToSA.php:74 msgid "because" msgstr "protože" @@ -4327,7 +4336,7 @@ msgstr "Obrázek" #: ContractBOM.php:365 CounterSales.php:2013 FixedAssetItems.php:468 -#: FixedAssetItems.php:472 PO_Items.php:951 SalesCategories.php:249 +#: FixedAssetItems.php:472 PO_Items.php:951 SalesCategories.php:247 #: SelectCreditItems.php:1005 SelectOrderItems.php:1531 #: SelectOrderItems.php:1708 Stocks.php:728 Stocks.php:732 #: SupplierTenders.php:518 WorkOrderEntry.php:617 WorkOrderIssue.php:684 @@ -5045,7 +5054,7 @@ #: StockSerialItemResearch.php:81 #: includes/PDFDeliveryDifferencesPageHeader.inc:45 #: includes/PDFDIFOTPageHeader.inc:44 includes/PDFOrderPageHeader.inc:50 -#: includes/PDFTransPageHeader.inc:47 +#: includes/PDFPriceListPageHeader.inc:42 includes/PDFTransPageHeader.inc:47 #: includes/PDFTransPageHeaderPortrait.inc:56 msgid "Branch" msgstr "Větev" @@ -5089,18 +5098,19 @@ #: ReorderLevel.php:242 SalesCategoryPeriodInquiry.php:162 #: SalesTopItemsInquiry.php:218 SpecialOrder.php:606 StockDispatch.php:344 #: Stocks.php:738 SuppPriceList.php:211 SuppPriceList.php:261 -#: includes/PDFInventoryValnPageHeader.inc:32 +#: Z_PriceChanges.php:37 includes/PDFInventoryValnPageHeader.inc:32 #: includes/PDFInventoryValnPageHeader.inc:38 +#: includes/PDFPriceListPageHeader.inc:38 msgid "Category" msgstr "Kategorie" #: Contracts.php:849 PricesBasedOnMarkUp.php:111 SpecialOrder.php:610 -#: Stocks.php:741 +#: Stocks.php:741 Z_PriceChanges.php:42 msgid "The stock categories could not be retrieved because" msgstr "Populace kategorie se nepodařilo získat, protože" #: Contracts.php:850 FixedAssetItems.php:485 PricesBasedOnMarkUp.php:112 -#: SpecialOrder.php:611 Stocks.php:742 +#: SpecialOrder.php:611 Stocks.php:742 Z_PriceChanges.php:43 msgid "The SQL used to retrieve stock categories and failed was" msgstr "SQL slouží k načtení zásob kategorií a neúspěšný byl" @@ -5630,7 +5640,8 @@ #: CounterSales.php:1193 DeliveryDetails.php:552 EDIMessageFormat.php:127 #: EDIMessageFormat.php:204 Prices_Customer.php:41 #: RecurringSalesOrdersProcess.php:88 ReverseGRN.php:332 SpecialOrder.php:111 -#: SpecialOrder.php:113 +#: SpecialOrder.php:113 includes/PDFPriceListPageHeader.inc:18 +#: includes/PDFPriceListPageHeader.inc:21 msgid "for" msgstr "pro" @@ -6632,7 +6643,8 @@ msgstr "Zprávy Velikost stránky" #: CustLoginSetup.php:174 CustLoginSetup.php:176 EmailConfirmation.php:119 -#: PrintCustOrder_generic.php:111 PrintCustOrder.php:90 SuppLoginSetup.php:202 +#: PrintCustOrder_generic.php:111 PrintCustOrder.php:90 +#: PrintSalesOrder_generic.php:90 SuppLoginSetup.php:202 #: SuppLoginSetup.php:204 WWW_Users.php:502 WWW_Users.php:504 msgid "A4" msgstr "A4" @@ -6647,10 +6659,11 @@ #: CustLoginSetup.php:186 CustLoginSetup.php:188 CustLoginSetup.php:198 #: CustLoginSetup.php:200 CustLoginSetup.php:209 CustLoginSetup.php:211 #: EmailConfirmation.php:119 PrintCustOrder_generic.php:111 -#: PrintCustOrder.php:90 SuppLoginSetup.php:214 SuppLoginSetup.php:216 -#: SuppLoginSetup.php:226 SuppLoginSetup.php:228 SuppLoginSetup.php:237 -#: SuppLoginSetup.php:239 WWW_Users.php:514 WWW_Users.php:516 -#: WWW_Users.php:526 WWW_Users.php:528 WWW_Users.php:537 WWW_Users.php:539 +#: PrintCustOrder.php:90 PrintSalesOrder_generic.php:90 SuppLoginSetup.php:214 +#: SuppLoginSetup.php:216 SuppLoginSetup.php:226 SuppLoginSetup.php:228 +#: SuppLoginSetup.php:237 SuppLoginSetup.php:239 WWW_Users.php:514 +#: WWW_Users.php:516 WWW_Users.php:526 WWW_Users.php:528 WWW_Users.php:537 +#: WWW_Users.php:539 msgid "landscape" msgstr "na šířku" @@ -6735,11 +6748,11 @@ msgid "was" msgstr "byl" -#: CustomerAllocations.php:324 +#: CustomerAllocations.php:323 msgid "Allocate Receipt" msgstr "Příjem přidělit" -#: CustomerAllocations.php:324 CustomerReceipt.php:529 +#: CustomerAllocations.php:323 CustomerReceipt.php:529 msgid "Allocate Receipts" msgstr "Příjmy přidělit" @@ -8395,13 +8408,16 @@ #: includes/PDFLowGPPageHeader.inc:15 includes/PDFOstdgGRNsPageHeader.inc:15 #: includes/PDFPaymentRunPageHeader.inc:18 #: includes/PDFPaymentRunPageHeader.inc:21 +#: includes/PDFPriceListPageHeader.inc:18 +#: includes/PDFPriceListPageHeader.inc:21 #: includes/PDFStockCheckPageHeader.inc:16 #: includes/PDFSupplierBalsPageHeader.inc:17 msgid "and" msgstr "a" #: DailyBankTransactions.php:104 PDFCustTransListing.php:35 -#: PDFPeriodStockTransListing.php:39 PDFSuppTransListing.php:35 +#: PDFPeriodStockTransListing.php:39 PDFStockTransListing.php:38 +#: PDFSuppTransListing.php:35 msgid "Transaction type" msgstr "Typ transakce" @@ -8872,6 +8888,17 @@ msgid "Commit Order Changes" msgstr "Spáchat Změny objednávky" +#: DemandWorkOrders.php:9 +#, fuzzy +msgid "Demand Work Orders" +msgstr "Hledat práci Objednávky" + +#: DemandWorkOrders.php:46 SelectProduct.php:282 +msgid "" +"The quantity on work orders for this product cannot be retrieved because" +msgstr "" +"Množství na pracovních příkazů pro tento produkt není možné získat, protože" + #: DiscountCategories.php:7 msgid "Discount Categories Maintenance" msgstr "Sleva Kategorie Údržba" @@ -8909,7 +8936,7 @@ msgstr "Kód slevové skupiny" #: DiscountCategories.php:88 DiscountCategories.php:248 PO_Header.php:855 -#: SalesCategories.php:255 SuppInvGRNs.php:277 SupplierTenders.php:55 +#: SalesCategories.php:253 SuppInvGRNs.php:277 SupplierTenders.php:55 #, php-format msgid "Select" msgstr "Vybrat" @@ -8960,6 +8987,7 @@ #: includes/PDFInventoryPlanPageHeader.inc:50 #: includes/PDFInventoryValnPageHeader.inc:32 #: includes/PDFLowGPPageHeader.inc:45 includes/PDFOstdgGRNsPageHeader.inc:38 +#: includes/PDFPriceListPageHeader.inc:38 #: includes/PDFStockCheckPageHeader.inc:33 #: includes/PDFStockComparisonPageHeader.inc:33 msgid "Item" @@ -9337,7 +9365,7 @@ msgstr "Aby data" #: EDIProcessOrders.php:275 EDIProcessOrders.php:277 -#: SupplierAllocations.php:436 +#: SupplierAllocations.php:436 includes/PDFStockTransListingPageHeader.inc:41 msgid "dated" msgstr "ze dne" @@ -9602,11 +9630,12 @@ "pro" #: EmailConfirmation.php:9 PrintCustOrder_generic.php:12 PrintCustOrder.php:13 +#: PrintSalesOrder_generic.php:14 msgid "Select Order To Print" msgstr "Vyberte Aby bylo možné tisknout" #: EmailConfirmation.php:15 PrintCustOrder_generic.php:15 -#: PrintCustOrder.php:16 +#: PrintCustOrder.php:16 PrintSalesOrder_generic.php:17 msgid "Select an Order Number to Print before calling this page" msgstr "Vyberte číslo objednávky pro tisk před voláním na tuto stránku" @@ -9614,19 +9643,22 @@ #: PO_OrderDetails.php:74 PrintCustOrder_generic.php:22 #: PrintCustOrder_generic.php:84 PrintCustOrder_generic.php:118 #: PrintCustOrder.php:18 PrintCustOrder.php:71 PrintCustOrder.php:95 -#: SelectSalesOrder.php:309 +#: PrintSalesOrder_generic.php:19 PrintSalesOrder_generic.php:70 +#: PrintSalesOrder_generic.php:95 SelectSalesOrder.php:309 msgid "Outstanding Sales Orders" msgstr "Nevyřízené prodejní objednávky" #: EmailConfirmation.php:24 EmailConfirmation.php:96 EmailConfirmation.php:128 #: PrintCustOrder_generic.php:23 PrintCustOrder_generic.php:85 #: PrintCustOrder_generic.php:119 PrintCustOrder.php:19 PrintCustOrder.php:72 -#: PrintCustOrder.php:96 +#: PrintCustOrder.php:96 PrintSalesOrder_generic.php:20 +#: PrintSalesOrder_generic.php:71 PrintSalesOrder_generic.php:96 msgid "Completed Sales Orders" msgstr "Dokončeny Prodejní objednávky" #: EmailConfirmation.php:42 FTP_RadioBeacon.php:178 #: PrintCustOrder_generic.php:36 PrintCustOrder.php:26 +#: PrintSalesOrder_generic.php:27 PrintSalesOrder_generic.php:129 msgid "" "There was a problem retrieving the order header details for Order Number" msgstr "Tam byl problém získávání informací, aby záhlaví pro pořadové číslo" @@ -9640,39 +9672,43 @@ #: PrintCustTrans.php:213 PrintCustTrans.php:263 PrintCustTrans.php:668 #: PrintCustTrans.php:837 PrintCustTransPortrait.php:235 #: PrintCustTransPortrait.php:288 PrintCustTransPortrait.php:689 -#: PrintCustTransPortrait.php:858 +#: PrintCustTransPortrait.php:858 PrintSalesOrder_generic.php:27 +#: PrintSalesOrder_generic.php:130 msgid "from the database" msgstr "z databáze" #: EmailConfirmation.php:81 EmailConfirmation.php:115 #: PrintCustOrder_generic.php:74 PrintCustOrder_generic.php:103 #: PrintCustOrder_generic.php:238 PrintCustOrder.php:66 PrintCustOrder.php:82 -#: PrintCustOrder.php:194 +#: PrintCustOrder.php:194 PrintSalesOrder_generic.php:65 +#: PrintSalesOrder_generic.php:82 PrintSalesOrder_generic.php:179 msgid "Print Packing Slip Error" msgstr "Tisk Balení skluzu Chyba" #: EmailConfirmation.php:87 PrintCustOrder_generic.php:77 -#: PrintCustOrder.php:69 +#: PrintCustOrder.php:69 PrintSalesOrder_generic.php:68 msgid "Unable to Locate Order Number" msgstr "Nelze Vyhledejte Objednací číslo" #: EmailConfirmation.php:117 PrintCustOrder_generic.php:106 -#: PrintCustOrder.php:85 +#: PrintCustOrder.php:85 PrintSalesOrder_generic.php:85 msgid "The packing slip for order number" msgstr "Balení prokluzu pro pořadové číslo" #: EmailConfirmation.php:117 PO_PDFPurchOrder.php:137 #: PrintCustOrder_generic.php:107 PrintCustOrder.php:86 +#: PrintSalesOrder_generic.php:86 msgid "has previously been printed" msgstr "již dříve bylo vytištěno" #: EmailConfirmation.php:117 PO_PDFPurchOrder.php:137 #: PrintCustOrder_generic.php:107 PrintCustOrder.php:86 +#: PrintSalesOrder_generic.php:86 msgid "It was printed on" msgstr "To byl vytištěn na" #: EmailConfirmation.php:117 PrintCustOrder_generic.php:108 -#: PrintCustOrder.php:87 +#: PrintCustOrder.php:87 PrintSalesOrder_generic.php:87 msgid "" "This check is there to ensure that duplicate packing slips are not produced " "and dispatched more than once to the customer" @@ -9682,26 +9718,28 @@ #: EmailConfirmation.php:119 PrintCustOrder_generic.php:110 #: PrintCustOrder_generic.php:111 PrintCustOrder.php:89 PrintCustOrder.php:90 +#: PrintSalesOrder_generic.php:89 PrintSalesOrder_generic.php:90 msgid "Do a Re-Print" msgstr "Do Re-Print" #: EmailConfirmation.php:119 PrintCustOrder_generic.php:110 -#: PrintCustOrder.php:89 +#: PrintCustOrder.php:89 PrintSalesOrder_generic.php:89 msgid "On Pre-Printed Stationery" msgstr "Na Pre-tištěné papírnické" #: EmailConfirmation.php:119 PrintCustOrder_generic.php:110 #: PrintCustOrder_generic.php:111 PrintCustOrder.php:89 PrintCustOrder.php:90 +#: PrintSalesOrder_generic.php:89 PrintSalesOrder_generic.php:90 msgid "Even Though Previously Printed" msgstr "I když dříve vytištěnou" #: EmailConfirmation.php:119 PrintCustOrder_generic.php:111 -#: PrintCustOrder.php:90 +#: PrintCustOrder.php:90 PrintSalesOrder_generic.php:90 msgid "Plain paper" msgstr "Volné listy" #: EmailConfirmation.php:124 PrintCustOrder_generic.php:114 -#: PrintCustOrder.php:93 +#: PrintCustOrder.php:93 PrintSalesOrder_generic.php:93 msgid "Or select another Order Number to Print" msgstr "Nebo zvolte jinou Objednací číslo k tisku" @@ -10106,6 +10144,7 @@ #: FixedAssetDepreciation.php:83 FixedAssetRegister.php:80 #: FixedAssetRegister.php:331 FixedAssetTransfer.php:109 #: SuppFixedAssetChgs.php:72 SupplierCredit.php:372 SupplierInvoice.php:342 +#: includes/PDFAssetRegisterHeader.inc:60 msgid "Asset ID" msgstr "Asset ID" @@ -10116,6 +10155,8 @@ #: FixedAssetDepreciation.php:86 PricesByCost.php:157 SalesAnalReptCols.php:38 #: SalesAnalReptCols.php:40 SelectProduct.php:186 SelectProduct.php:343 #: ShipmentCosting.php:149 ShipmentCosting.php:150 StockCostUpdate.php:149 +#: includes/PDFAssetRegisterHeader.inc:66 +#: includes/PDFAssetRegisterHeader.inc:69 #: includes/PDFInventoryValnPageHeader.inc:35 #: includes/PDFInventoryValnPageHeader.inc:39 #: includes/PDFLowGPPageHeader.inc:48 @@ -10389,7 +10430,7 @@ msgid "long" msgstr "dlouho" -#: FixedAssetItems.php:455 SalesCategories.php:326 Stocks.php:715 +#: FixedAssetItems.php:455 SalesCategories.php:324 Stocks.php:715 msgid "Image File (.jpg)" msgstr "Obrázek File (. Jpg)" @@ -10539,7 +10580,7 @@ msgid "Fixed Asset Register" msgstr "Hmotného majetku Registrace" -#: FixedAssetRegister.php:84 +#: FixedAssetRegister.php:84 includes/PDFAssetRegisterHeader.inc:65 msgid "Date Acquired" msgstr "Získané data" @@ -10555,7 +10596,8 @@ msgid "Additions" msgstr "Přírůstky" -#: FixedAssetRegister.php:88 +#: FixedAssetRegister.php:88 includes/PDFAssetRegisterHeader.inc:67 +#: includes/PDFAssetRegisterHeader.inc:70 msgid "Depn" msgstr "Depn" @@ -10567,7 +10609,8 @@ msgid "Depn C/fwd" msgstr "Depn C / vpřed" -#: FixedAssetRegister.php:91 +#: FixedAssetRegister.php:91 includes/PDFAssetRegisterHeader.inc:68 +#: includes/PDFAssetRegisterHeader.inc:71 msgid "NBV" msgstr "NBV" @@ -10608,15 +10651,15 @@ msgid "Show Assets" msgstr "Zobrazit Aktiva" -#: FixedAssetRegister.php:329 +#: FixedAssetRegister.php:329 includes/PDFAssetRegisterHeader.inc:33 msgid "Asset Category " msgstr "Kategorie aktiv " -#: FixedAssetRegister.php:330 +#: FixedAssetRegister.php:330 includes/PDFAssetRegisterHeader.inc:34 msgid "Asset Location " msgstr "Umístění aktiva " -#: FixedAssetRegister.php:356 +#: FixedAssetRegister.php:356 includes/PDFAssetRegisterHeader.inc:63 msgid "Serial No." msgstr "Pořadové číslo" @@ -15010,6 +15053,7 @@ #: OffersReceived.php:94 PurchData.php:323 Stocks.php:361 #: includes/PDFPeriodStockTransListingPageHeader.inc:47 +#: includes/PDFStockTransListingPageHeader.inc:67 msgid "Stock Item" msgstr "Skladová položka" @@ -16456,7 +16500,7 @@ #: PDFBankingSummary.php:36 PDFChequeListing.php:66 PDFCustTransListing.php:47 #: PDFDeliveryDifferences.php:71 PDFDIFOT.php:81 PDFOrdersInvoiced.php:70 #: PDFOrderStatus.php:73 PDFPeriodStockTransListing.php:78 -#: PDFSuppTransListing.php:47 +#: PDFStockTransListing.php:52 PDFSuppTransListing.php:47 msgid "Create PDF" msgstr "Vytvořit PDF" @@ -16662,7 +16706,7 @@ msgstr "Vzhledem k tomu, činnost" #: PDFCustTransListing.php:10 PDFPeriodStockTransListing.php:9 -#: PDFSuppTransListing.php:10 +#: PDFStockTransListing.php:13 PDFSuppTransListing.php:10 msgid "The date must be specified in the format" msgstr "Datum musí být zadáno ve formátu" @@ -16671,7 +16715,8 @@ msgid "Customer Transaction Listing" msgstr "Zákazník transakce Výpis" -#: PDFCustTransListing.php:31 PDFSuppTransListing.php:31 +#: PDFCustTransListing.php:31 PDFStockTransListing.php:34 +#: PDFSuppTransListing.php:31 msgid "Enter the date for which the transactions are to be listed" msgstr "Zadejte datum, pro které transakce by měly být uvedeny" @@ -16689,6 +16734,7 @@ msgstr "Dobropisů" #: PDFCustTransListing.php:77 PDFPeriodStockTransListing.php:134 +#: PDFStockTransListing.php:85 msgid "An error occurred getting the transactions" msgstr "Došlo k chybě dostat transakce" @@ -16696,12 +16742,13 @@ msgid "The SQL used to get the transaction information that failed was" msgstr "SQL slouží k získání informací o transakcích, které se nepodařilo byla" -#: PDFCustTransListing.php:87 PDFSuppTransListing.php:82 +#: PDFCustTransListing.php:87 PDFStockTransListing.php:92 +#: PDFSuppTransListing.php:82 msgid "There were no transactions found in the database for the date" msgstr "Nebyly zjištěny žádné transakce v databázi na data" #: PDFCustTransListing.php:87 PDFPeriodStockTransListing.php:141 -#: PDFSuppTransListing.php:82 +#: PDFStockTransListing.php:92 PDFSuppTransListing.php:82 msgid "Please try again selecting a different date" msgstr "Zkuste to prosím znovu vybrat jiný den" @@ -16969,7 +17016,8 @@ msgstr "Ještě netisknuto" #: PDFPeriodStockTransListing.php:16 PDFPeriodStockTransListing.php:20 -#: PDFPeriodStockTransListing.php:150 +#: PDFPeriodStockTransListing.php:150 PDFStockTransListing.php:20 +#: PDFStockTransListing.php:24 PDFStockTransListing.php:101 msgid "Stock Transaction Listing" msgstr "Sklad seznamu transakcí" @@ -16983,33 +17031,33 @@ msgid "Enter the date to which the transactions are to be listed" msgstr "Zadejte datum, pro které transakce by měly být uvedeny" -#: PDFPeriodStockTransListing.php:43 PrintCustTrans.php:59 -#: PrintCustTransPortrait.php:57 SalesInquiry.php:1054 +#: PDFPeriodStockTransListing.php:43 PDFStockTransListing.php:42 +#: PrintCustTrans.php:59 PrintCustTransPortrait.php:57 SalesInquiry.php:1054 msgid "Sales Invoice" msgstr "Prodejní faktury" -#: PDFPeriodStockTransListing.php:44 PrintCustTrans.php:62 -#: PrintCustTransPortrait.php:60 +#: PDFPeriodStockTransListing.php:44 PDFStockTransListing.php:43 +#: PrintCustTrans.php:62 PrintCustTransPortrait.php:60 msgid "Sales Credit Note" msgstr "Prodej dobropis" -#: PDFPeriodStockTransListing.php:45 +#: PDFPeriodStockTransListing.php:45 PDFStockTransListing.php:44 msgid "Location Transfer" msgstr "Umístění Transfer" -#: PDFPeriodStockTransListing.php:46 +#: PDFPeriodStockTransListing.php:46 PDFStockTransListing.php:45 msgid "Stock Adjustment" msgstr "Úprava skladu" -#: PDFPeriodStockTransListing.php:47 +#: PDFPeriodStockTransListing.php:47 PDFStockTransListing.php:46 msgid "Purchase Order Delivery" msgstr "Objednávka dodání" -#: PDFPeriodStockTransListing.php:48 +#: PDFPeriodStockTransListing.php:48 PDFStockTransListing.php:47 msgid "Work Order Receipt" msgstr "Práce doručení objednávky" -#: PDFPeriodStockTransListing.php:49 +#: PDFPeriodStockTransListing.php:49 PDFStockTransListing.php:48 msgid "Work Order Issue" msgstr "Objednat výtisk práce" @@ -17018,6 +17066,7 @@ msgstr "Pro Umístění skladu" #: PDFPeriodStockTransListing.php:132 PDFPeriodStockTransListing.php:138 +#: PDFStockTransListing.php:83 PDFStockTransListing.php:89 msgid "Transaction Listing" msgstr "Výpis transakce" @@ -17026,37 +17075,44 @@ msgid "There were no transactions found in the database between the dates" msgstr "Nebyly zjištěny žádné transakce v databázi na data" -#: PDFPeriodStockTransListing.php:151 +#: PDFPeriodStockTransListing.php:151 PDFStockTransListing.php:102 msgid "Stock transaction listing from" msgstr "Transakce na burze bude výpis z" #: PDFPeriodStockTransListing.php:158 #: includes/PDFCustTransListingPageHeader.inc:15 +#: includes/PDFStockTransListingPageHeader.inc:15 msgid "Customer Invoices" msgstr "Odběratelských faktur" #: PDFPeriodStockTransListing.php:161 #: includes/PDFCustTransListingPageHeader.inc:18 +#: includes/PDFStockTransListingPageHeader.inc:18 msgid "Customer Credit Notes" msgstr "Zákazník dobropisy" #: PDFPeriodStockTransListing.php:164 SelectProduct.php:417 +#: includes/PDFStockTransListingPageHeader.inc:21 msgid "Location Transfers" msgstr "Umístění Převody" #: PDFPeriodStockTransListing.php:167 StockAdjustments.php:8 +#: includes/PDFStockTransListingPageHeader.inc:24 msgid "Stock Adjustments" msgstr "Úpravy skladem" #: PDFPeriodStockTransListing.php:170 +#: includes/PDFStockTransListingPageHeader.inc:27 msgid "Purchase Order Deliveries" msgstr "Objednávka Dodávky" #: PDFPeriodStockTransListing.php:173 +#: includes/PDFStockTransListingPageHeader.inc:30 msgid "Work Order Receipts" msgstr "Příjmy práce Objednat" #: PDFPeriodStockTransListing.php:176 +#: includes/PDFStockTransListingPageHeader.inc:33 msgid "Work Order Issues" msgstr "Práce jiných záležitostí" @@ -17118,7 +17174,8 @@ msgstr "Cena Výpis Zpráva" #: PDFPriceList.php:23 PDFPriceList.php:295 PDFPriceList.php:335 -#: PDFPriceList.php:355 +#: PDFPriceList.php:355 includes/PDFPriceListPageHeader.inc:16 +#: includes/PDFPriceListPageHeader.inc:40 msgid "Customer Special Prices Only" msgstr "Zákazník Zvláštní ceny pouze" @@ -17233,7 +17290,7 @@ msgstr "Datum účinnosti Range" #: PDFPriceList.php:362 includes/PDFLowGPPageHeader.inc:49 -#: includes/PDFLowGPPageHeader.inc:50 +#: includes/PDFLowGPPageHeader.inc:50 includes/PDFPriceListPageHeader.inc:49 msgid "GP" msgstr "GP" @@ -17273,7 +17330,7 @@ msgid "Number of labels per item" msgstr "Počet štítků za položku" -#: PDFPrintLabel.php:93 +#: PDFPrintLabel.php:93 Z_PriceChanges.php:94 msgid "Price list" msgstr "Ceník" @@ -19038,7 +19095,7 @@ msgid "Requisition" msgstr "Rekvizice" -#: PricesBasedOnMarkUp.php:8 +#: PricesBasedOnMarkUp.php:8 Z_PriceChanges.php:7 msgid "Update Pricing" msgstr "Aktualizace cen" @@ -19064,7 +19121,7 @@ msgid "Select the Price List to update" msgstr "Zvolte Cena aktualizace" -#: PricesBasedOnMarkUp.php:29 PricesBasedOnMarkUp.php:94 +#: PricesBasedOnMarkUp.php:29 PricesBasedOnMarkUp.php:94 Z_PriceChanges.php:28 msgid "No Price List Selected" msgstr "Ne Cena Vybrané Seznam" @@ -19122,11 +19179,11 @@ msgid "New Price To Be Effective To (Blank = No End Date)" msgstr "Nová cena jako účinná k (prázdné = Ne Datum ukončení)" -#: PricesBasedOnMarkUp.php:163 +#: PricesBasedOnMarkUp.php:163 Z_PriceChanges.php:67 msgid "Percentage Increase (positive) or decrease (negative)" msgstr "Procento zvýšení (pozitivní) nebo snížení (negativní)" -#: PricesBasedOnMarkUp.php:167 +#: PricesBasedOnMarkUp.php:167 Z_PriceChanges.php:71 msgid "Update Prices" msgstr "Aktualizace ceny" @@ -19212,7 +19269,7 @@ "Pro záznam všech cen změnilo této stránce by měly být vytištěny pomocí CTRL " "+ P" -#: PricesBasedOnMarkUp.php:214 +#: PricesBasedOnMarkUp.php:214 Z_PriceChanges.php:77 msgid "So we are using a price list/sales type of" msgstr "Tak jsme se s použitím ceníku / prodej druhu" @@ -19232,7 +19289,7 @@ msgid "against" msgstr "proti" -#: PricesBasedOnMarkUp.php:229 +#: PricesBasedOnMarkUp.php:229 Z_PriceChanges.php:82 msgid "The price list/sales type to be updated must be selected first" msgstr "Ceník / prodeje, který má být aktualizován, musí být vybrány první" @@ -19284,7 +19341,7 @@ "roven nule - žádné cenové změny budou provedeny na základě nulové nákladové " "položky. Z bodu je:" -#: PricesBasedOnMarkUp.php:337 +#: PricesBasedOnMarkUp.php:337 Z_PriceChanges.php:137 msgid "Error updating prices for" msgstr "Chyba při aktualizaci cen pro" @@ -19594,11 +19651,11 @@ msgid "Cheque No." msgstr "Šek Ne" -#: PrintCustOrder_generic.php:141 +#: PrintCustOrder_generic.php:141 PrintSalesOrder_generic.php:111 msgid "Customer Laser Packing Slip" msgstr "Zákazník Laser Balení skluzu" -#: PrintCustOrder_generic.php:142 +#: PrintCustOrder_generic.php:142 PrintSalesOrder_generic.php:112 msgid "Laser Packing slip for order" msgstr "Laser Balení skluzu na objednávku" @@ -19626,6 +19683,7 @@ msgstr "Dodacího listu nelze vytisknout" #: PrintCustOrder_generic.php:241 PrintCustOrder.php:197 +#: PrintSalesOrder_generic.php:182 msgid "Print Another Packing Slip/Order" msgstr "Tisk Další balicí list / Objednávka" @@ -19981,6 +20039,14 @@ msgid "Print Preview" msgstr "Náhled" +#: PrintSalesOrder_generic.php:181 +msgid "" +"There were no outstanding items on the order to deliver. A packing slip " +"cannot be printed" +msgstr "" +"Nebyly zjištěny žádné nesplacené položek na objednávce dodat. Dodacího listu " +"nelze vytisknout" + #: PurchData.php:6 msgid "Supplier Purchasing Data" msgstr "Dodavatel nákupu dat" @@ -20294,20 +20360,20 @@ msgstr "Zobrazit stavu populace" #: PurchData.php:505 SelectProduct.php:393 StockCostUpdate.php:167 -#: StockLocMovements.php:47 StockMovements.php:56 StockReorderLevel.php:95 +#: StockLocMovements.php:47 StockMovements.php:56 StockReorderLevel.php:96 #: StockUsage.php:182 msgid "Show Stock Movements" msgstr "Zobrazit pohybů zásob" #: PurchData.php:506 SelectProduct.php:398 SelectSalesOrder.php:6 #: StockAdjustments.php:426 StockCostUpdate.php:169 StockMovements.php:202 -#: StockReorderLevel.php:97 StockStatus.php:357 StockTransfers.php:532 +#: StockReorderLevel.php:98 StockStatus.php:357 StockTransfers.php:532 #: StockUsage.php:183 msgid "Search Outstanding Sales Orders" msgstr "Hledat Vynikající Prodejní objednávky" #: PurchData.php:507 SelectProduct.php:399 StockAdjustments.php:427 -#: StockCostUpdate.php:170 StockMovements.php:203 StockReorderLevel.php:98 +#: StockCostUpdate.php:170 StockMovements.php:203 StockReorderLevel.php:99 #: StockStatus.php:358 StockTransfers.php:533 StockUsage.php:184 msgid "Search Completed Sales Orders" msgstr "Vyhledávání Dokončené Prodejní objednávky" @@ -21621,11 +21687,11 @@ "Nelze smazat tento prodej kategorií, protože skladě položky byly přidány do " "této kategorie" -#: SalesCategories.php:125 +#: SalesCategories.php:124 msgid "items under to this category" msgstr "položek v této kategorii" -#: SalesCategories.php:132 +#: SalesCategories.php:131 msgid "" "Cannot delete this sales category because sub categories have been added to " "this category" @@ -21633,86 +21699,86 @@ "Nelze smazat tento prodej kategorií, protože dílčí kategorie, které byly " "přidány do této kategorie" -#: SalesCategories.php:133 +#: SalesCategories.php:131 msgid "sub categories" msgstr "dílčí kategorie" -#: SalesCategories.php:137 +#: SalesCategories.php:135 msgid "The sales category" msgstr "Kategorie prodej" -#: SalesCategories.php:153 SalesCategories.php:161 +#: SalesCategories.php:148 SalesCategories.php:156 msgid "Stock item" msgstr "Na skladě" -#: SalesCategories.php:153 +#: SalesCategories.php:148 msgid "has been added" msgstr "Byla přidána" -#: SalesCategories.php:161 +#: SalesCategories.php:156 msgid "has been removed" msgstr "byl odebrán" -#: SalesCategories.php:169 +#: SalesCategories.php:164 msgid "Main" msgstr "Hlavní" -#: SalesCategories.php:197 +#: SalesCategories.php:195 msgid "Selected Sales Category Path" msgstr "Vybrané kategorie Prodej cesta" -#: SalesCategories.php:221 +#: SalesCategories.php:219 msgid "There are no categories defined at this level." msgstr "Nejsou žádné kategorie stanovené na této úrovni." -#: SalesCategories.php:224 +#: SalesCategories.php:222 msgid "Sub Category" msgstr "Sub kategorie" -#: SalesCategories.php:307 +#: SalesCategories.php:305 msgid "Edit Sub Category" msgstr "Upravit Podkategorie" -#: SalesCategories.php:316 +#: SalesCategories.php:314 msgid "New Sub Category" msgstr "Nové Podkategorie" -#: SalesCategories.php:321 +#: SalesCategories.php:319 msgid "Category Name" msgstr "Název kategorie" -#: SalesCategories.php:331 +#: SalesCategories.php:329 msgid "Submit Information" msgstr "Předložit informace" -#: SalesCategories.php:381 +#: SalesCategories.php:379 msgid "Add Inventory to this category." msgstr "Přidat Zásoby v této kategorii." -#: SalesCategories.php:382 +#: SalesCategories.php:380 msgid "Select Inv. Item" msgstr "Vyberte Inv. Bod" -#: SalesCategories.php:394 +#: SalesCategories.php:392 msgid "Add Inventory Item" msgstr "Přidat skladovou položku" -#: SalesCategories.php:399 +#: SalesCategories.php:397 #, fuzzy msgid "No more Inventory items to add" msgstr "Žádné další položky zásob přidat." -#: SalesCategories.php:421 +#: SalesCategories.php:419 msgid "Inventory items in this category." msgstr "Zásoby zboží v této kategorii." -#: SalesCategories.php:438 StockAdjustments.php:391 SupplierTenders.php:291 +#: SalesCategories.php:436 StockAdjustments.php:391 SupplierTenders.php:291 #: TaxGroups.php:354 WWW_Access.php:212 #, php-format msgid "Remove" msgstr "Odstranit" -#: SalesCategories.php:442 +#: SalesCategories.php:440 #, fuzzy msgid "No Inventory items in this category" msgstr "Zásoby žádné položky v této kategorii." @@ -23314,12 +23380,6 @@ msgid "No Default Price Set in Home Currency" msgstr "Č. Výchozí Cena Nastavit v domácí měně" -#: SelectProduct.php:282 -msgid "" -"The quantity on work orders for this product cannot be retrieved because" -msgstr "" -"Množství na pracovních příkazů pro tento produkt není možné získat, protože" - #: SelectProduct.php:323 msgid "" "The workorder component demand for this product cannot be retrieved because" @@ -23365,7 +23425,7 @@ msgstr "Nastavení položek" #: SelectProduct.php:396 StockAdjustments.php:425 StockCostUpdate.php:168 -#: StockMovements.php:201 StockReorderLevel.php:96 StockTransfers.php:531 +#: StockMovements.php:201 StockReorderLevel.php:97 StockTransfers.php:531 #: StockUsage.php:87 msgid "Show Stock Usage" msgstr "Zobrazit skladem Využití" @@ -28310,11 +28370,12 @@ msgid "Items to offer from" msgstr "Položky, které nabízí od" -#: SupplierTenders.php:263 api/api_xml-rpc.php:696 api/api_xml-rpc.php:764 -#: api/api_xml-rpc.php:795 api/api_xml-rpc.php:826 api/api_xml-rpc.php:865 -#: api/api_xml-rpc.php:896 api/api_xml-rpc.php:927 api/api_xml-rpc.php:970 -#: api/api_xml-rpc.php:2220 api/api_xml-rpc.php:2256 api/api_xml-rpc.php:2302 -#: api/api_xml-rpc.php:2498 api/api_xml-rpc.php:2662 +#: SupplierTenders.php:263 includes/PDFAssetRegisterHeader.inc:61 +#: api/api_xml-rpc.php:696 api/api_xml-rpc.php:764 api/api_xml-rpc.php:795 +#: api/api_xml-rpc.php:826 api/api_xml-rpc.php:865 api/api_xml-rpc.php:896 +#: api/api_xml-rpc.php:927 api/api_xml-rpc.php:970 api/api_xml-rpc.php:2220 +#: api/api_xml-rpc.php:2256 api/api_xml-rpc.php:2302 api/api_xml-rpc.php:2498 +#: api/api_xml-rpc.php:2662 msgid "Stock ID" msgstr "Sklad ID" @@ -30614,7 +30675,7 @@ "systému. Přečtěte si prosím pozorně všechny poznámky, aby bylo zajištěno, že " "se očekává, že" -#: UpgradeDatabase.php:129 +#: UpgradeDatabase.php:133 msgid "" "Only mysql upgrades are performed seamlessly at this time. Your database " "will need to be manually updated" @@ -30622,61 +30683,61 @@ "Pouze mysql upgrady jsou prováděny plynule v této době. Databáze bude třeba " "ručně aktualizované" -#: UpgradeDatabase.php:141 +#: UpgradeDatabase.php:145 msgid "Applying" msgstr "Uplatnění" -#: UpgradeDatabase.php:168 Z_Upgrade_3.10-3.11.php:59 Z_Upgrade3.10.php:29 +#: UpgradeDatabase.php:172 Z_Upgrade_3.10-3.11.php:59 Z_Upgrade3.10.php:29 #: Z_Upgrade3.10.php:34 Z_Upgrade3.10.php:46 Z_Upgrade3.10.php:51 #: Z_Upgrade3.10.php:60 Z_Upgrade3.10.php:65 Z_Upgrade3.10.php:74 #: Z_Upgrade3.10.php:79 Z_Upgrade_3.11-4.00.php:59 msgid "Success" msgstr "Úspěch" -#: UpgradeDatabase.php:171 Z_Upgrade_3.10-3.11.php:63 +#: UpgradeDatabase.php:175 Z_Upgrade_3.10-3.11.php:63 #: Z_Upgrade_3.11-4.00.php:63 msgid "Table has already been created" msgstr "Tabulka již byla vytvořena" -#: UpgradeDatabase.php:174 +#: UpgradeDatabase.php:178 #, fuzzy msgid "Column has already been changed" msgstr "Sloupec již byla vytvořena" -#: UpgradeDatabase.php:177 Z_Upgrade_3.10-3.11.php:67 +#: UpgradeDatabase.php:181 Z_Upgrade_3.10-3.11.php:67 #: Z_Upgrade_3.11-4.00.php:67 msgid "Column has already been created" msgstr "Sloupec již byla vytvořena" -#: UpgradeDatabase.php:180 Z_Upgrade_3.10-3.11.php:71 +#: UpgradeDatabase.php:184 Z_Upgrade_3.10-3.11.php:71 #: Z_Upgrade_3.11-4.00.php:71 msgid "Index already exists" msgstr "Index již existuje" -#: UpgradeDatabase.php:183 Z_Upgrade_3.10-3.11.php:75 +#: UpgradeDatabase.php:187 Z_Upgrade_3.10-3.11.php:75 #: Z_Upgrade_3.11-4.00.php:75 msgid "Entry has already been done" msgstr "Vstup již bylo učiněno" -#: UpgradeDatabase.php:186 +#: UpgradeDatabase.php:190 msgid "SQL syntax error. The SQL error message is" msgstr "SQL chyba syntaxe. Chyba SQL zpráva" -#: UpgradeDatabase.php:189 Z_Upgrade_3.10-3.11.php:79 +#: UpgradeDatabase.php:193 Z_Upgrade_3.10-3.11.php:79 #: Z_Upgrade_3.11-4.00.php:79 msgid "Primary key already exists" msgstr "Primární klíč již existuje" -#: UpgradeDatabase.php:192 +#: UpgradeDatabase.php:196 msgid "Index already dropped previously" msgstr "Index již klesl dříve" -#: UpgradeDatabase.php:195 Z_Upgrade_3.10-3.11.php:82 +#: UpgradeDatabase.php:199 Z_Upgrade_3.10-3.11.php:82 #: Z_Upgrade_3.11-4.00.php:82 msgid "Failure" msgstr "Selhání" -#: UpgradeDatabase.php:195 Z_Upgrade_3.10-3.11.php:83 +#: UpgradeDatabase.php:199 Z_Upgrade_3.10-3.11.php:83 #: Z_Upgrade_3.11-4.00.php:83 msgid "Error number" msgstr "Číslo chyby" @@ -33161,6 +33222,36 @@ msgid "Default" msgstr "Výchozí" +#: Z_FixedAssetCostAccumDepnFix.php:8 +#, fuzzy +msgid "Fixed Fixed Asset Records" +msgstr "Hmotného majetku Kredity" + +#: Z_FixedAssetCostAccumDepnFix.php:12 +msgid "This script repairs the fixedasset table cost and accum depn" +msgstr "" + +#: Z_FixedAssetCostAccumDepnFix.php:18 +#, fuzzy +msgid "Updated asset" +msgstr "Sazby aktualizace" + +#: Z_FixedAssetCostAccumDepnFix.php:18 +#, fuzzy +msgid "to have a cost of" +msgstr "std náklady" + +#: Z_FixedAssetCostAccumDepnFix.php:18 +#, fuzzy +msgid "and accum depn of" +msgstr "Accum Depn GL" + +#: Z_FixedAssetCostAccumDepnFix.php:22 +msgid "" +"Asset cost and accumulated depreciation has now been fixed to the " +"transaction cost and depreciation" +msgstr "" + #: Z_ImportChartOfAccounts.php:7 Z_ImportGLAccountGroups.php:5 #: Z_ImportGLAccountSections.php:5 msgid "Import Chart of Accounts" @@ -34006,6 +34097,108 @@ msgid "Existing languages are not affected." msgstr "Stávající jazyky nejsou ovlivněny." +#: Z_PriceChanges.php:11 +msgid "" +"This page updates already existing prices for a specified sales type (price " +"list)" +msgstr "Tato stránka aktualizuje stávající ceny pro určitý typ prodeje (ceník)" + +#: Z_PriceChanges.php:11 +msgid "" +"Choose between updating only customer special prices where the customer is " +"set up under the price list selected, or all prices under the sales type or " +"just specific prices for a customer for the stock category selected" +msgstr "" +"Vyberte si mezi aktualizace jediný zákazník speciální ceny, kde je zákazník " +"zřízený podle ceny vybraného seznamu, nebo všechny ceny v rámci prodeje, " +"nebo jen konkrétní typ ceny pro zákazníka pro populaci vybrané kategorii" + +#: Z_PriceChanges.php:13 +msgid "" +"This script takes no account of start and end dates of prices and updates " +"all historical prices as well as current prices - better to use new scripts " +"under Inventory -> Maintenance" +msgstr "" +"Tento skript nebere v úvahu datum zahájení a ukončení cen a aktualizace " +"všech historických cen, stejně jako v běžných cenách - lépe využít nové " +"skripty pod Inventory -> Údržba" + +#: Z_PriceChanges.php:24 +msgid "Select the Price List to update the costs for" +msgstr "Zvolte Cena aktualizovat náklady na" + +#: Z_PriceChanges.php:55 +msgid "Which Prices to update" +msgstr "Ceny, které k aktualizaci" + +#: Z_PriceChanges.php:57 +msgid "Only Non-customer special prices" +msgstr "Pouze Non-zákazník speciální ceny" + +#: Z_PriceChanges.php:58 +msgid "Only customer special prices" +msgstr "Pouze zákazník speciální ceny" + +#: Z_PriceChanges.php:59 +msgid "Both customer special prices and non-customer special prices" +msgstr "Oba zákazník speciální ceny a non-zákazník speciální ceny" + +#: Z_PriceChanges.php:60 +msgid "customer special prices only" +msgstr "zákazník speciální ceny pouze" + +#: Z_PriceChanges.php:71 +msgid "" +"Are you sure you wish to update all the prices according to the criteria " +"selected?" +msgstr "" +"Jste si jisti, že chcete aktualizovat všechny ceny podle zvolených kritérií?" + +#: Z_PriceChanges.php:78 +msgid "and a stock category code of" +msgstr "a zásoby kategorii kód" + +#: Z_PriceChanges.php:79 +msgid "and a increase percent of" +msgstr "a zvýšení procenta" + +#: Z_PriceChanges.php:89 +msgid "" +"The increase or decrease to be applied is expected to be an integer between " +"1 and 40 it is not necessary to enter the" +msgstr "" +"Zvýšení nebo snížení má být použita, je čekal, že je celé číslo mezi 1 a 40, " +"není nutné zadávat" + +#: Z_PriceChanges.php:89 +#, fuzzy +msgid "sign" +msgstr "Design" + +#: Z_PriceChanges.php:89 +msgid "the amount is assumed to be a percentage" +msgstr "částka Předpokládá se, že procento" + +#: Z_PriceChanges.php:94 +msgid "prices for" +msgstr "ceny pro" + +#: Z_PriceChanges.php:94 +msgid "for the stock category" +msgstr "pro populaci kategorii" + +#: Z_PriceChanges.php:94 +msgid "will been incremented by" +msgstr "bude se zvyšuje o" + +#: Z_PriceChanges.php:94 +msgid "percent" +msgstr "procent" + +#: Z_PriceChanges.php:138 +msgid "Updating prices for" +msgstr "Aktualizace ceny" + #: Z_ReApplyCostToSA.php:6 msgid "Apply Current Cost to Sales Analysis" msgstr "Použít aktuální náklady na analýzu prodeje" @@ -35472,6 +35665,28 @@ msgid "Aged Supplier Balances For Suppliers from" msgstr "Dodavatel ve věku Zůstatky Pro dodavatele z" +#: includes/PDFAssetRegisterHeader.inc:35 +msgid "Asset Type" +msgstr "Typ majetku" + +#: includes/PDFAssetRegisterHeader.inc:36 +#, fuzzy +msgid "Acquired After" +msgstr "Požadované datum" + +#: includes/PDFAssetRegisterHeader.inc:37 +#, fuzzy +msgid "and Before" +msgstr "a pro" + +#: includes/PDFAssetRegisterHeader.inc:57 +msgid "<--------------External Depreciation-------------->" +msgstr "" + +#: includes/PDFAssetRegisterHeader.inc:58 +msgid "<--------------Internal Depreciation-------------->" +msgstr "" + #: includes/PDFBankingSummaryPageHeader.inc:19 msgid "for Receipt Batch" msgstr "pro přijetí dávky" @@ -35567,6 +35782,7 @@ #: includes/PDFCustTransListingPageHeader.inc:50 #: includes/PDFPeriodStockTransListingPageHeader.inc:49 +#: includes/PDFStockTransListingPageHeader.inc:69 #: includes/PDFSuppTransListingPageHeader.inc:50 msgid "Trans Date" msgstr "Trans Datum" @@ -35795,6 +36011,16 @@ msgid "Actual Picked" msgstr "Skutečné Sklizené" +#: includes/PDFPriceListPageHeader.inc:18 +#, fuzzy +msgid "Special Prices for Inventory Categories between" +msgstr "Zkontrolujte, zda listy Kategorie mezi" + +#: includes/PDFPriceListPageHeader.inc:21 +#, fuzzy +msgid "Price List for Inventory Categories between" +msgstr "Zkontrolujte, zda listy Kategorie mezi" + #: includes/PDFProfitAndLossPageHeader.inc:21 #: includes/PDFTagProfitAndLossPageHeader.inc:21 msgid "Profit and loss for the " @@ -38308,10 +38534,6 @@ #~ msgstr "Zákazník záznam vybrané zákazníky" #, fuzzy -#~ msgid "Demand Work Orders" -#~ msgstr "Hledat práci Objednávky" - -#, fuzzy #~ msgid "Annual Depreciation Percentage" #~ msgstr "Neplatné odpisové sazby:" @@ -38320,134 +38542,6 @@ #~ msgstr "Aktualizace faktor" #~ msgid "" -#~ "There were no outstanding items on the order to deliver. A packing slip " -#~ "cannot be printed" -#~ msgstr "" -#~ "Nebyly zjištěny žádné nesplacené položek na objednávce dodat. Dodacího " -#~ "listu nelze vytisknout" - -#, fuzzy -#~ msgid "Fixed Fixed Asset Records" -#~ msgstr "Hmotného majetku Kredity" - -#, fuzzy -#~ msgid "Updated asset" -#~ msgstr "Sazby aktualizace" - -#, fuzzy -#~ msgid "to have a cost of" -#~ msgstr "std náklady" - -#, fuzzy -#~ msgid "and accum depn of" -#~ msgstr "Accum Depn GL" - -#~ msgid "" -#~ "This page updates already existing prices for a specified sales type " -#~ "(price list)" -#~ msgstr "" -#~ "Tato stránka aktualizuje stávající ceny pro určitý typ prodeje (ceník)" - -#~ msgid "" -#~ "Choose between updating only customer special prices where the customer " -#~ "is set up under the price list selected, or all prices under the sales " -#~ "type or just specific prices for a customer for the stock category " -#~ "selected" -#~ msgstr "" -#~ "Vyberte si mezi aktualizace jediný zákazník speciální ceny, kde je " -#~ "zákazník zřízený podle ceny vybraného seznamu, nebo všechny ceny v rámci " -#~ "prodeje, nebo jen konkrétní typ ceny pro zákazníka pro populaci vybrané " -#~ "kategorii" - -#~ msgid "" -#~ "This script takes no account of start and end dates of prices and updates " -#~ "all historical prices as well as current prices - better to use new " -#~ "scripts under Inventory -> Maintenance" -#~ msgstr "" -#~ "Tento skript nebere v úvahu datum zahájení a ukončení cen a aktualizace " -#~ "všech historických cen, stejně jako v běžných cenách - lépe využít nové " -#~ "skripty pod Inventory -> Údržba" - -#~ msgid "Select the Price List to update the costs for" -#~ msgstr "Zvolte Cena aktualizovat náklady na" - -#~ msgid "Which Prices to update" -#~ msgstr "Ceny, které k aktualizaci" - -#~ msgid "Only Non-customer special prices" -#~ msgstr "Pouze Non-zákazník speciální ceny" - -#~ msgid "Only customer special prices" -#~ msgstr "Pouze zákazník speciální ceny" - -#~ msgid "Both customer special prices and non-customer special prices" -#~ msgstr "Oba zákazník speciální ceny a non-zákazník speciální ceny" - -#~ msgid "customer special prices only" -#~ msgstr "zákazník speciální ceny pouze" - -#~ msgid "" -#~ "Are you sure you wish to update all the prices according to the criteria " -#~ "selected?" -#~ msgstr "" -#~ "Jste si jisti, že chcete aktualizovat všechny ceny podle zvolených " -#~ "kritérií?" - -#~ msgid "and a stock category code of" -#~ msgstr "a zásoby kategorii kód" - -#~ msgid "and a increase percent of" -#~ msgstr "a zvýšení procenta" - -#~ msgid "" -#~ "The increase or decrease to be applied is expected to be an integer " -#~ "between 1 and 40 it is not necessary to enter the" -#~ msgstr "" -#~ "Zvýšení nebo snížení má být použita, je čekal, že je celé číslo mezi 1 a " -#~ "40, není nutné zadávat" - -#, fuzzy -#~ msgid "sign" -#~ msgstr "Design" - -#~ msgid "the amount is assumed to be a percentage" -#~ msgstr "částka Předpokládá se, že procento" - -#~ msgid "prices for" -#~ msgstr "ceny pro" - -#~ msgid "for the stock category" -#~ msgstr "pro populaci kategorii" - -#~ msgid "will been incremented by" -#~ msgstr "bude se zvyšuje o" - -#~ msgid "percent" -#~ msgstr "procent" - -#~ msgid "Updating prices for" -#~ msgstr "Aktualizace ceny" - -#~ msgid "Asset Type" -#~ msgstr "Typ majetku" - -#, fuzzy -#~ msgid "Acquired After" -#~ msgstr "Požadované datum" - -#, fuzzy -#~ msgid "and Before" -#~ msgstr "a pro" - -#, fuzzy -#~ msgid "Special Prices for Inventory Categories between" -#~ msgstr "Zkontrolujte, zda listy Kategorie mezi" - -#, fuzzy -#~ msgid "Price List for Inventory Categories between" -#~ msgstr "Zkontrolujte, zda listy Kategorie mezi" - -#~ msgid "" #~ "The effective after date field must be a date in the format dd/mm/yy or " #~ "dd/mm/yyyy or ddmmyy or ddmmyyyy or dd-mm-yy or dd-mm-yyyy" #~ msgstr "" Modified: trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po 2011-07-27 09:10:47 UTC (rev 4640) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: WebERP 4.00/trunk\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-07-24 12:24+1200\n" +"POT-Creation-Date: 2011-07-27 19:08+1200\n" "PO-Revision-Date: 2011-07-17 13:46+0000\n" "Last-Translator: Peter Hürlimann <su...@ph...>\n" "Language-Team: Deutsch <web...@li...>\n" @@ -146,7 +146,7 @@ #: Locations.php:256 Locations.php:265 Locations.php:274 Locations.p... [truncated message content] |
From: <dai...@us...> - 2011-07-27 09:10:57
|
Revision: 4640 http://web-erp.svn.sourceforge.net/web-erp/?rev=4640&view=rev Author: daintree Date: 2011-07-27 09:10:47 +0000 (Wed, 27 Jul 2011) Log Message: ----------- pre 4.05 release Modified Paths: -------------- trunk/UpgradeDatabase.php trunk/build/make_release.sh trunk/doc/Change.log trunk/includes/ConnectDB.inc trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po trunk/locale/el_GR.utf8/LC_MESSAGES/messages.mo trunk/locale/el_GR.utf8/LC_MESSAGES/messages.po trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.utf8/LC_MESSAGES/messages.po trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.mo trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.mo trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.po trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po trunk/locale/it_IT.utf8/LC_MESSAGES/messages.mo trunk/locale/it_IT.utf8/LC_MESSAGES/messages.po trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.mo trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.po trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.mo trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.po trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.mo trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.po trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.mo trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.po trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.po trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.mo trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.po trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.po trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.mo trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.po trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/UpgradeDatabase.php 2011-07-27 09:10:47 UTC (rev 4640) @@ -119,9 +119,13 @@ case '4.04': $SQLScripts[] = './sql/mysql/upgrade4.04-4.04.1.sql'; case '4.04.1': + case '4.04.2': + case '4.04.3': $SQLScripts[] = './sql/mysql/upgrade4.04.1-4.04.4.sql'; case '4.04.4': $SQLScripts[] = './sql/mysql/upgrade4.04.4-4.04.5.sql'; + case '4.04.5': + case '4.05': break; } //end switch } Modified: trunk/build/make_release.sh =================================================================== --- trunk/build/make_release.sh 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/build/make_release.sh 2011-07-27 09:10:47 UTC (rev 4640) @@ -126,4 +126,4 @@ cd .. -zip -r $OUTPUT_DIR/webERP webERP -x \*.svn* \*/config.php +zip -r $OUTPUT_DIR/webERP webERP -x \*.svn* \*/config.php \*.ecoder* Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/doc/Change.log 2011-07-27 09:10:47 UTC (rev 4640) @@ -1,6 +1,9 @@ webERP Change Log +27/7/11 Version 4.05 +27/7/11 includes/LanguageSetup.php now checks for existence of LC_MESSAGES (it doesn't exist on windows servers) and uses LC_ALL as the fall back only +27/7/11 Fixed quoting in PDFSuppTransListing.php, StockReorderLevel.php WhereUsedInquiry.php Z_ReverseSuppPaymentRun.php 26/7/11 SalesCategories.php fixed display of active categories - this script is not used by webERP - only by Mo Kelly's joomla cart application 24/7/11 Version 4.04.5 Modified: trunk/includes/ConnectDB.inc =================================================================== --- trunk/includes/ConnectDB.inc 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/includes/ConnectDB.inc 2011-07-27 09:10:47 UTC (rev 4640) @@ -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.04.5'; //must update manually every time there is a DB change +$Version='4.05'; //must update manually every time there is a DB change require_once ($PathPrefix .'includes/MiscFunctions.php'); Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-07-27 09:10:47 UTC (rev 4640) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-07-24 12:24+1200\n" +"POT-Creation-Date: 2011-07-27 19:08+1200\n" "PO-Revision-Date: 2011-02-07 15:33+0000\n" "Last-Translator: Tim Schofield <Unknown>\n" "Language-Team: Czech <cs...@li...>\n" @@ -149,7 +149,7 @@ #: Locations.php:256 Locations.php:265 Locations.php:274 Locations.php:283 #: Locations.php:292 Locations.php:301 MRPDemandTypes.php:87 #: PaymentMethods.php:138 PaymentTerms.php:144 PaymentTerms.php:151 -#: PcExpenses.php:152 SalesCategories.php:125 SalesCategories.php:133 +#: PcExpenses.php:152 SalesCategories.php:124 SalesCategories.php:131 #: SalesPeople.php:149 SalesPeople.php:156 SalesTypes.php:150 #: SalesTypes.php:160 Shippers.php:82 Shippers.php:94 StockCategories.php:179 #: Stocks.php:481 Stocks.php:490 Stocks.php:498 Stocks.php:506 Stocks.php:514 @@ -347,7 +347,7 @@ #: PaymentMethods.php:200 PaymentTerms.php:201 PcAssignCashToTab.php:255 #: PcClaimExpensesFromTab.php:252 PcExpenses.php:208 PcTabs.php:234 #: PcTypeTabs.php:172 PO_AuthorisationLevels.php:149 Prices_Customer.php:280 -#: Prices.php:246 PurchData.php:202 SalesCategories.php:256 +#: Prices.php:246 PurchData.php:202 SalesCategories.php:254 #: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:219 #: SalesTypes.php:216 SecurityTokens.php:110 SelectCustomer.php:668 #: SelectCustomer.php:686 SelectCustomer.php:710 SelectCustomer.php:727 @@ -381,7 +381,7 @@ #: PcExpensesTypeTab.php:185 PcTabs.php:235 PcTypeTabs.php:173 #: PO_AuthorisationLevels.php:151 PO_Items.php:684 Prices_Customer.php:281 #: Prices.php:247 PurchData.php:203 SalesAnalReptCols.php:294 -#: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 +#: SalesAnalRepts.php:302 SalesCategories.php:255 SalesGLPostings.php:133 #: SalesGLPostings.php:246 SalesPeople.php:220 SalesTypes.php:217 #: SecurityTokens.php:111 SelectCreditItems.php:754 SelectCustomer.php:669 #: SelectCustomer.php:687 SelectCustomer.php:711 SelectCustomer.php:728 @@ -701,9 +701,9 @@ msgstr "Datum" #: AddCustomerNotes.php:114 AddCustomerTypeNotes.php:105 PcReportTab.php:173 -#: Stocks.php:892 UpgradeDatabase.php:171 UpgradeDatabase.php:174 -#: UpgradeDatabase.php:177 UpgradeDatabase.php:180 UpgradeDatabase.php:183 -#: UpgradeDatabase.php:186 UpgradeDatabase.php:189 UpgradeDatabase.php:192 +#: Stocks.php:892 UpgradeDatabase.php:175 UpgradeDatabase.php:178 +#: UpgradeDatabase.php:181 UpgradeDatabase.php:184 UpgradeDatabase.php:187 +#: UpgradeDatabase.php:190 UpgradeDatabase.php:193 UpgradeDatabase.php:196 #: 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 @@ -847,15 +847,15 @@ #: PDFRemittanceAdvice.php:84 PDFStockCheckComparison.php:36 #: PDFStockCheckComparison.php:62 PDFStockCheckComparison.php:267 #: PO_PDFPurchOrder.php:31 PO_PDFPurchOrder.php:149 -#: PrintCustOrder_generic.php:243 PrintCustOrder.php:198 ReorderLevel.php:60 -#: ReorderLevel.php:149 SalesAnalysis_UserDefined.php:28 -#: SelectCreditItems.php:23 StockCheck.php:47 StockCheck.php:68 -#: StockCheck.php:98 StockCheck.php:142 StockCheck.php:153 StockCheck.php:195 -#: StockDispatch.php:92 StockDispatch.php:104 SupplierBalsAtPeriodEnd.php:56 -#: SupplierBalsAtPeriodEnd.php:67 SuppPaymentRun.php:109 -#: SuppPaymentRun.php:120 SuppPaymentRun.php:184 SuppPaymentRun.php:214 -#: SuppPriceList.php:121 Tax.php:63 Tax.php:168 Tax.php:277 -#: Z_DataExport.php:72 Z_DataExport.php:168 Z_DataExport.php:259 +#: PrintCustOrder_generic.php:243 PrintCustOrder.php:198 +#: PrintSalesOrder_generic.php:183 ReorderLevel.php:60 ReorderLevel.php:149 +#: SalesAnalysis_UserDefined.php:28 SelectCreditItems.php:23 StockCheck.php:47 +#: StockCheck.php:68 StockCheck.php:98 StockCheck.php:142 StockCheck.php:153 +#: StockCheck.php:195 StockDispatch.php:92 StockDispatch.php:104 +#: SupplierBalsAtPeriodEnd.php:56 SupplierBalsAtPeriodEnd.php:67 +#: SuppPaymentRun.php:109 SuppPaymentRun.php:120 SuppPaymentRun.php:184 +#: SuppPaymentRun.php:214 SuppPriceList.php:121 Tax.php:63 Tax.php:168 +#: Tax.php:277 Z_DataExport.php:72 Z_DataExport.php:168 Z_DataExport.php:259 #: Z_DataExport.php:308 Z_DataExport.php:347 Z_DataExport.php:383 #: Z_DataExport.php:419 Z_DataExport.php:471 Z_poRebuildDefault.php:38 #: includes/PDFPaymentRun_PymtFooter.php:57 @@ -1103,7 +1103,7 @@ #: FixedAssetCategories.php:134 GLAccounts.php:197 Locations.php:328 #: MRPDemands.php:248 PcAssignCashToTab.php:135 PcClaimExpensesFromTab.php:126 #: PcExpenses.php:160 PcExpensesTypeTab.php:101 PcTabs.php:166 -#: PcTypeTabs.php:135 SalesAnalReptCols.php:215 SalesCategories.php:137 +#: PcTypeTabs.php:135 SalesAnalReptCols.php:215 SalesCategories.php:135 #: SalesTypes.php:166 StockCategories.php:196 Suppliers.php:635 #: SupplierTypes.php:151 Z_DeleteInvoice.php:146 msgid "has been deleted" @@ -1170,7 +1170,8 @@ #: SystemParameters.php:943 SystemParameters.php:949 SystemParameters.php:955 #: SystemParameters.php:961 TopItems.php:23 TopItems.php:36 #: WorkOrderEntry.php:562 WorkOrderEntry.php:565 WorkOrderIssue.php:626 -#: WorkOrderIssue.php:629 +#: WorkOrderIssue.php:629 includes/PDFAssetRegisterHeader.inc:15 +#: includes/PDFAssetRegisterHeader.inc:24 msgid "All" msgstr "Všechny" @@ -1730,6 +1731,8 @@ #: includes/PDFPeriodStockTransListingPageHeader.inc:48 #: includes/PDFPeriodStockTransListingPageHeader.inc:52 #: includes/PDFStockComparisonPageHeader.inc:36 +#: includes/PDFStockTransListingPageHeader.inc:68 +#: includes/PDFStockTransListingPageHeader.inc:72 #: includes/PDFSuppTransListingPageHeader.inc:49 msgid "Reference" msgstr "Reference" @@ -1884,9 +1887,10 @@ #: includes/PDFSalesOrder_generic.inc:95 #: includes/PDFStockCheckPageHeader.inc:44 #: includes/PDFStockNegativesHeader.inc:33 -#: includes/PDFStockTransferHeader.inc:39 includes/PDFTransPageHeader.inc:209 -#: includes/PO_PDFOrderPageHeader.inc:78 api/api_xml-rpc.php:2260 -#: api/api_xml-rpc.php:2306 api/api_xml-rpc.php:2502 +#: includes/PDFStockTransferHeader.inc:39 +#: includes/PDFStockTransListingPageHeader.inc:70 +#: includes/PDFTransPageHeader.inc:209 includes/PO_PDFOrderPageHeader.inc:78 +#: api/api_xml-rpc.php:2260 api/api_xml-rpc.php:2306 api/api_xml-rpc.php:2502 msgid "Quantity" msgstr "Množství" @@ -1943,7 +1947,7 @@ #: includes/PDFOrderPageHeader_generic.inc:79 #: includes/PDFOstdgGRNsPageHeader.inc:16 #: includes/PDFPaymentRunPageHeader.inc:11 -#: includes/PDFPickingListHeader.inc:48 +#: includes/PDFPickingListHeader.inc:48 includes/PDFPriceListPageHeader.inc:12 #: includes/PDFProfitAndLossPageHeader.inc:27 #: includes/PDFSalesAnalPageHeader.inc:15 #: includes/PDFSalesOrder_generic.inc:81 @@ -1971,6 +1975,7 @@ #: PrintCustTransPortrait.php:998 ReorderLevel.php:240 StockDispatch.php:337 #: SuppPriceList.php:255 Tax.php:243 includes/PDFAgedDebtorsPageHeader.inc:34 #: includes/PDFAgedSuppliersPageHeader.inc:21 +#: includes/PDFAssetRegisterHeader.inc:38 #: includes/PDFBalanceSheetPageHeader.inc:26 #: includes/PDFBankingSummaryPageHeader.inc:23 #: includes/PDFBOMListingPageHeader.inc:26 @@ -1990,7 +1995,7 @@ #: includes/PDFOstdgGRNsPageHeader.inc:16 #: includes/PDFPaymentRunPageHeader.inc:11 #: includes/PDFPeriodStockTransListingPageHeader.inc:25 -#: includes/PDFPickingListHeader.inc:69 +#: includes/PDFPickingListHeader.inc:69 includes/PDFPriceListPageHeader.inc:12 #: includes/PDFProfitAndLossPageHeader.inc:28 #: includes/PDFQuotationPageHeader.inc:94 #: includes/PDFQuotationPortraitPageHeader.inc:92 @@ -2003,6 +2008,7 @@ #: includes/PDFStockLocTransferHeader.inc:12 #: includes/PDFStockNegativesHeader.inc:12 #: includes/PDFStockTransferHeader.inc:16 +#: includes/PDFStockTransListingPageHeader.inc:45 #: includes/PDFSupplierBalsPageHeader.inc:20 #: includes/PDFSuppTransListingPageHeader.inc:32 #: includes/PDFTabReportHeader.inc:15 @@ -2114,7 +2120,7 @@ #: PDFOrderStatus.php:319 PDFPrintLabel.php:238 PO_Items.php:637 #: PO_Items.php:926 PO_SelectOSPurchOrder.php:211 PO_SelectPurchOrder.php:178 #: PricesByCost.php:152 ReorderLevelLocation.php:55 ReorderLevel.php:254 -#: ReverseGRN.php:377 SalesCategories.php:423 SecurityTokens.php:86 +#: ReverseGRN.php:377 SalesCategories.php:421 SecurityTokens.php:86 #: SecurityTokens.php:92 SecurityTokens.php:102 SelectAsset.php:243 #: SelectCompletedOrder.php:536 SelectContract.php:153 #: SelectCreditItems.php:976 SelectOrderItems.php:1517 @@ -2129,8 +2135,8 @@ #: TaxAuthorities.php:145 TopItems.php:163 WorkCentres.php:124 #: WorkOrderCosting.php:81 WorkOrderCosting.php:111 WorkOrderEntry.php:598 #: WorkOrderIssue.php:668 includes/DefineLabelClass.php:12 -#: includes/DefineLabelClass.php:45 includes/PDFGrnHeader.inc:29 -#: includes/PDFInventoryPlanPageHeader.inc:51 +#: includes/DefineLabelClass.php:45 includes/PDFAssetRegisterHeader.inc:62 +#: includes/PDFGrnHeader.inc:29 includes/PDFInventoryPlanPageHeader.inc:51 #: includes/PDFOstdgGRNsPageHeader.inc:38 #: includes/PDFStockLocTransferHeader.inc:49 #: includes/PDFStockTransferHeader.inc:36 includes/PDFTopItemsHeader.inc:50 @@ -2240,7 +2246,7 @@ #: BOMInquiry.php:26 BOMs.php:806 EmailConfirmation.php:191 MRPDemands.php:333 #: MRPReport.php:542 PO_SelectOSPurchOrder.php:200 PO_SelectPurchOrder.php:170 -#: SalesCategories.php:422 SelectProduct.php:512 Shipt_Select.php:166 +#: SalesCategories.php:420 SelectProduct.php:512 Shipt_Select.php:166 #: StockAdjustments.php:76 StockAdjustments.php:335 StockCounts.php:97 #: StockCounts.php:132 StockMovements.php:31 StockReorderLevel.php:44 #: StockStatus.php:61 StockTransfers.php:38 StockTransfers.php:445 @@ -2641,8 +2647,10 @@ #: StockCounts.php:133 StockReorderLevel.php:49 StockSerialItemResearch.php:78 #: StockStatus.php:84 StockStatus.php:89 WhereUsedInquiry.php:67 #: WorkCentres.php:125 WorkCentres.php:210 +#: includes/PDFAssetRegisterHeader.inc:64 #: includes/PDFPeriodStockTransListingPageHeader.inc:51 -#: includes/PDFStockNegativesHeader.inc:31 api/api_xml-rpc.php:2258 +#: includes/PDFStockNegativesHeader.inc:31 +#: includes/PDFStockTransListingPageHeader.inc:71 api/api_xml-rpc.php:2258 #: api/api_xml-rpc.php:2304 api/api_xml-rpc.php:2500 msgid "Location" msgstr "Umístění" @@ -2988,7 +2996,7 @@ #: PO_AuthoriseMyOrders.php:132 PricesByCost.php:221 PurchData.php:497 #: ReorderLevelLocation.php:156 SecurityTokens.php:89 #: SelectCreditItems.php:911 SMTPServer.php:64 StockCostUpdate.php:163 -#: StockReorderLevel.php:94 Stocks.php:1047 SystemParameters.php:1018 +#: StockReorderLevel.php:95 Stocks.php:1047 SystemParameters.php:1018 #: TaxAuthorityRates.php:79 WorkOrderEntry.php:546 WOSerialNos.php:315 msgid "Update" msgstr "Aktualizace" @@ -3236,6 +3244,7 @@ #: StockMovements.php:97 StockStatus.php:313 SuppCreditGRNs.php:229 #: SuppCreditGRNs.php:230 SupplierTenders.php:267 SupplierTenders.php:494 #: SuppPriceList.php:274 includes/DefineLabelClass.php:49 +#: includes/PDFPriceListPageHeader.inc:46 #: includes/PDFQuotationPageHeader.inc:104 #: includes/PDFQuotationPortraitPageHeader.inc:104 #: includes/PDFTransPageHeaderPortrait.inc:265 @@ -3831,8 +3840,8 @@ #: FixedAssetCategories.php:86 FixedAssetCategories.php:105 #: PricesBasedOnMarkUp.php:337 PricesBasedOnMarkUp.php:353 #: SelectCreditItems.php:1395 SpecialOrder.php:423 StockCategories.php:21 -#: StockCategories.php:82 StockCategories.php:153 Z_ReApplyCostToSA.php:62 -#: Z_ReApplyCostToSA.php:74 +#: StockCategories.php:82 StockCategories.php:153 Z_PriceChanges.php:137 +#: Z_ReApplyCostToSA.php:62 Z_ReApplyCostToSA.php:74 msgid "because" msgstr "protože" @@ -4327,7 +4336,7 @@ msgstr "Obrázek" #: ContractBOM.php:365 CounterSales.php:2013 FixedAssetItems.php:468 -#: FixedAssetItems.php:472 PO_Items.php:951 SalesCategories.php:249 +#: FixedAssetItems.php:472 PO_Items.php:951 SalesCategories.php:247 #: SelectCreditItems.php:1005 SelectOrderItems.php:1531 #: SelectOrderItems.php:1708 Stocks.php:728 Stocks.php:732 #: SupplierTenders.php:518 WorkOrderEntry.php:617 WorkOrderIssue.php:684 @@ -5045,7 +5054,7 @@ #: StockSerialItemResearch.php:81 #: includes/PDFDeliveryDifferencesPageHeader.inc:45 #: includes/PDFDIFOTPageHeader.inc:44 includes/PDFOrderPageHeader.inc:50 -#: includes/PDFTransPageHeader.inc:47 +#: includes/PDFPriceListPageHeader.inc:42 includes/PDFTransPageHeader.inc:47 #: includes/PDFTransPageHeaderPortrait.inc:56 msgid "Branch" msgstr "Větev" @@ -5089,18 +5098,19 @@ #: ReorderLevel.php:242 SalesCategoryPeriodInquiry.php:162 #: SalesTopItemsInquiry.php:218 SpecialOrder.php:606 StockDispatch.php:344 #: Stocks.php:738 SuppPriceList.php:211 SuppPriceList.php:261 -#: includes/PDFInventoryValnPageHeader.inc:32 +#: Z_PriceChanges.php:37 includes/PDFInventoryValnPageHeader.inc:32 #: includes/PDFInventoryValnPageHeader.inc:38 +#: includes/PDFPriceListPageHeader.inc:38 msgid "Category" msgstr "Kategorie" #: Contracts.php:849 PricesBasedOnMarkUp.php:111 SpecialOrder.php:610 -#: Stocks.php:741 +#: Stocks.php:741 Z_PriceChanges.php:42 msgid "The stock categories could not be retrieved because" msgstr "Populace kategorie se nepodařilo získat, protože" #: Contracts.php:850 FixedAssetItems.php:485 PricesBasedOnMarkUp.php:112 -#: SpecialOrder.php:611 Stocks.php:742 +#: SpecialOrder.php:611 Stocks.php:742 Z_PriceChanges.php:43 msgid "The SQL used to retrieve stock categories and failed was" msgstr "SQL slouží k načtení zásob kategorií a neúspěšný byl" @@ -5630,7 +5640,8 @@ #: CounterSales.php:1193 DeliveryDetails.php:552 EDIMessageFormat.php:127 #: EDIMessageFormat.php:204 Prices_Customer.php:41 #: RecurringSalesOrdersProcess.php:88 ReverseGRN.php:332 SpecialOrder.php:111 -#: SpecialOrder.php:113 +#: SpecialOrder.php:113 includes/PDFPriceListPageHeader.inc:18 +#: includes/PDFPriceListPageHeader.inc:21 msgid "for" msgstr "pro" @@ -6632,7 +6643,8 @@ msgstr "Zprávy Velikost stránky" #: CustLoginSetup.php:174 CustLoginSetup.php:176 EmailConfirmation.php:119 -#: PrintCustOrder_generic.php:111 PrintCustOrder.php:90 SuppLoginSetup.php:202 +#: PrintCustOrder_generic.php:111 PrintCustOrder.php:90 +#: PrintSalesOrder_generic.php:90 SuppLoginSetup.php:202 #: SuppLoginSetup.php:204 WWW_Users.php:502 WWW_Users.php:504 msgid "A4" msgstr "A4" @@ -6647,10 +6659,11 @@ #: CustLoginSetup.php:186 CustLoginSetup.php:188 CustLoginSetup.php:198 #: CustLoginSetup.php:200 CustLoginSetup.php:209 CustLoginSetup.php:211 #: EmailConfirmation.php:119 PrintCustOrder_generic.php:111 -#: PrintCustOrder.php:90 SuppLoginSetup.php:214 SuppLoginSetup.php:216 -#: SuppLoginSetup.php:226 SuppLoginSetup.php:228 SuppLoginSetup.php:237 -#: SuppLoginSetup.php:239 WWW_Users.php:514 WWW_Users.php:516 -#: WWW_Users.php:526 WWW_Users.php:528 WWW_Users.php:537 WWW_Users.php:539 +#: PrintCustOrder.php:90 PrintSalesOrder_generic.php:90 SuppLoginSetup.php:214 +#: SuppLoginSetup.php:216 SuppLoginSetup.php:226 SuppLoginSetup.php:228 +#: SuppLoginSetup.php:237 SuppLoginSetup.php:239 WWW_Users.php:514 +#: WWW_Users.php:516 WWW_Users.php:526 WWW_Users.php:528 WWW_Users.php:537 +#: WWW_Users.php:539 msgid "landscape" msgstr "na šířku" @@ -6735,11 +6748,11 @@ msgid "was" msgstr "byl" -#: CustomerAllocations.php:324 +#: CustomerAllocations.php:323 msgid "Allocate Receipt" msgstr "Příjem přidělit" -#: CustomerAllocations.php:324 CustomerReceipt.php:529 +#: CustomerAllocations.php:323 CustomerReceipt.php:529 msgid "Allocate Receipts" msgstr "Příjmy přidělit" @@ -8395,13 +8408,16 @@ #: includes/PDFLowGPPageHeader.inc:15 includes/PDFOstdgGRNsPageHeader.inc:15 #: includes/PDFPaymentRunPageHeader.inc:18 #: includes/PDFPaymentRunPageHeader.inc:21 +#: includes/PDFPriceListPageHeader.inc:18 +#: includes/PDFPriceListPageHeader.inc:21 #: includes/PDFStockCheckPageHeader.inc:16 #: includes/PDFSupplierBalsPageHeader.inc:17 msgid "and" msgstr "a" #: DailyBankTransactions.php:104 PDFCustTransListing.php:35 -#: PDFPeriodStockTransListing.php:39 PDFSuppTransListing.php:35 +#: PDFPeriodStockTransListing.php:39 PDFStockTransListing.php:38 +#: PDFSuppTransListing.php:35 msgid "Transaction type" msgstr "Typ transakce" @@ -8872,6 +8888,17 @@ msgid "Commit Order Changes" msgstr "Spáchat Změny objednávky" +#: DemandWorkOrders.php:9 +#, fuzzy +msgid "Demand Work Orders" +msgstr "Hledat práci Objednávky" + +#: DemandWorkOrders.php:46 SelectProduct.php:282 +msgid "" +"The quantity on work orders for this product cannot be retrieved because" +msgstr "" +"Množství na pracovních příkazů pro tento produkt není možné získat, protože" + #: DiscountCategories.php:7 msgid "Discount Categories Maintenance" msgstr "Sleva Kategorie Údržba" @@ -8909,7 +8936,7 @@ msgstr "Kód slevové skupiny" #: DiscountCategories.php:88 DiscountCategories.php:248 PO_Header.php:855 -#: SalesCategories.php:255 SuppInvGRNs.php:277 SupplierTenders.php:55 +#: SalesCategories.php:253 SuppInvGRNs.php:277 SupplierTenders.php:55 #, php-format msgid "Select" msgstr "Vybrat" @@ -8960,6 +8987,7 @@ #: includes/PDFInventoryPlanPageHeader.inc:50 #: includes/PDFInventoryValnPageHeader.inc:32 #: includes/PDFLowGPPageHeader.inc:45 includes/PDFOstdgGRNsPageHeader.inc:38 +#: includes/PDFPriceListPageHeader.inc:38 #: includes/PDFStockCheckPageHeader.inc:33 #: includes/PDFStockComparisonPageHeader.inc:33 msgid "Item" @@ -9337,7 +9365,7 @@ msgstr "Aby data" #: EDIProcessOrders.php:275 EDIProcessOrders.php:277 -#: SupplierAllocations.php:436 +#: SupplierAllocations.php:436 includes/PDFStockTransListingPageHeader.inc:41 msgid "dated" msgstr "ze dne" @@ -9602,11 +9630,12 @@ "pro" #: EmailConfirmation.php:9 PrintCustOrder_generic.php:12 PrintCustOrder.php:13 +#: PrintSalesOrder_generic.php:14 msgid "Select Order To Print" msgstr "Vyberte Aby bylo možné tisknout" #: EmailConfirmation.php:15 PrintCustOrder_generic.php:15 -#: PrintCustOrder.php:16 +#: PrintCustOrder.php:16 PrintSalesOrder_generic.php:17 msgid "Select an Order Number to Print before calling this page" msgstr "Vyberte číslo objednávky pro tisk před voláním na tuto stránku" @@ -9614,19 +9643,22 @@ #: PO_OrderDetails.php:74 PrintCustOrder_generic.php:22 #: PrintCustOrder_generic.php:84 PrintCustOrder_generic.php:118 #: PrintCustOrder.php:18 PrintCustOrder.php:71 PrintCustOrder.php:95 -#: SelectSalesOrder.php:309 +#: PrintSalesOrder_generic.php:19 PrintSalesOrder_generic.php:70 +#: PrintSalesOrder_generic.php:95 SelectSalesOrder.php:309 msgid "Outstanding Sales Orders" msgstr "Nevyřízené prodejní objednávky" #: EmailConfirmation.php:24 EmailConfirmation.php:96 EmailConfirmation.php:128 #: PrintCustOrder_generic.php:23 PrintCustOrder_generic.php:85 #: PrintCustOrder_generic.php:119 PrintCustOrder.php:19 PrintCustOrder.php:72 -#: PrintCustOrder.php:96 +#: PrintCustOrder.php:96 PrintSalesOrder_generic.php:20 +#: PrintSalesOrder_generic.php:71 PrintSalesOrder_generic.php:96 msgid "Completed Sales Orders" msgstr "Dokončeny Prodejní objednávky" #: EmailConfirmation.php:42 FTP_RadioBeacon.php:178 #: PrintCustOrder_generic.php:36 PrintCustOrder.php:26 +#: PrintSalesOrder_generic.php:27 PrintSalesOrder_generic.php:129 msgid "" "There was a problem retrieving the order header details for Order Number" msgstr "Tam byl problém získávání informací, aby záhlaví pro pořadové číslo" @@ -9640,39 +9672,43 @@ #: PrintCustTrans.php:213 PrintCustTrans.php:263 PrintCustTrans.php:668 #: PrintCustTrans.php:837 PrintCustTransPortrait.php:235 #: PrintCustTransPortrait.php:288 PrintCustTransPortrait.php:689 -#: PrintCustTransPortrait.php:858 +#: PrintCustTransPortrait.php:858 PrintSalesOrder_generic.php:27 +#: PrintSalesOrder_generic.php:130 msgid "from the database" msgstr "z databáze" #: EmailConfirmation.php:81 EmailConfirmation.php:115 #: PrintCustOrder_generic.php:74 PrintCustOrder_generic.php:103 #: PrintCustOrder_generic.php:238 PrintCustOrder.php:66 PrintCustOrder.php:82 -#: PrintCustOrder.php:194 +#: PrintCustOrder.php:194 PrintSalesOrder_generic.php:65 +#: PrintSalesOrder_generic.php:82 PrintSalesOrder_generic.php:179 msgid "Print Packing Slip Error" msgstr "Tisk Balení skluzu Chyba" #: EmailConfirmation.php:87 PrintCustOrder_generic.php:77 -#: PrintCustOrder.php:69 +#: PrintCustOrder.php:69 PrintSalesOrder_generic.php:68 msgid "Unable to Locate Order Number" msgstr "Nelze Vyhledejte Objednací číslo" #: EmailConfirmation.php:117 PrintCustOrder_generic.php:106 -#: PrintCustOrder.php:85 +#: PrintCustOrder.php:85 PrintSalesOrder_generic.php:85 msgid "The packing slip for order number" msgstr "Balení prokluzu pro pořadové číslo" #: EmailConfirmation.php:117 PO_PDFPurchOrder.php:137 #: PrintCustOrder_generic.php:107 PrintCustOrder.php:86 +#: PrintSalesOrder_generic.php:86 msgid "has previously been printed" msgstr "již dříve bylo vytištěno" #: EmailConfirmation.php:117 PO_PDFPurchOrder.php:137 #: PrintCustOrder_generic.php:107 PrintCustOrder.php:86 +#: PrintSalesOrder_generic.php:86 msgid "It was printed on" msgstr "To byl vytištěn na" #: EmailConfirmation.php:117 PrintCustOrder_generic.php:108 -#: PrintCustOrder.php:87 +#: PrintCustOrder.php:87 PrintSalesOrder_generic.php:87 msgid "" "This check is there to ensure that duplicate packing slips are not produced " "and dispatched more than once to the customer" @@ -9682,26 +9718,28 @@ #: EmailConfirmation.php:119 PrintCustOrder_generic.php:110 #: PrintCustOrder_generic.php:111 PrintCustOrder.php:89 PrintCustOrder.php:90 +#: PrintSalesOrder_generic.php:89 PrintSalesOrder_generic.php:90 msgid "Do a Re-Print" msgstr "Do Re-Print" #: EmailConfirmation.php:119 PrintCustOrder_generic.php:110 -#: PrintCustOrder.php:89 +#: PrintCustOrder.php:89 PrintSalesOrder_generic.php:89 msgid "On Pre-Printed Stationery" msgstr "Na Pre-tištěné papírnické" #: EmailConfirmation.php:119 PrintCustOrder_generic.php:110 #: PrintCustOrder_generic.php:111 PrintCustOrder.php:89 PrintCustOrder.php:90 +#: PrintSalesOrder_generic.php:89 PrintSalesOrder_generic.php:90 msgid "Even Though Previously Printed" msgstr "I když dříve vytištěnou" #: EmailConfirmation.php:119 PrintCustOrder_generic.php:111 -#: PrintCustOrder.php:90 +#: PrintCustOrder.php:90 PrintSalesOrder_generic.php:90 msgid "Plain paper" msgstr "Volné listy" #: EmailConfirmation.php:124 PrintCustOrder_generic.php:114 -#: PrintCustOrder.php:93 +#: PrintCustOrder.php:93 PrintSalesOrder_generic.php:93 msgid "Or select another Order Number to Print" msgstr "Nebo zvolte jinou Objednací číslo k tisku" @@ -10106,6 +10144,7 @@ #: FixedAssetDepreciation.php:83 FixedAssetRegister.php:80 #: FixedAssetRegister.php:331 FixedAssetTransfer.php:109 #: SuppFixedAssetChgs.php:72 SupplierCredit.php:372 SupplierInvoice.php:342 +#: includes/PDFAssetRegisterHeader.inc:60 msgid "Asset ID" msgstr "Asset ID" @@ -10116,6 +10155,8 @@ #: FixedAssetDepreciation.php:86 PricesByCost.php:157 SalesAnalReptCols.php:38 #: SalesAnalReptCols.php:40 SelectProduct.php:186 SelectProduct.php:343 #: ShipmentCosting.php:149 ShipmentCosting.php:150 StockCostUpdate.php:149 +#: includes/PDFAssetRegisterHeader.inc:66 +#: includes/PDFAssetRegisterHeader.inc:69 #: includes/PDFInventoryValnPageHeader.inc:35 #: includes/PDFInventoryValnPageHeader.inc:39 #: includes/PDFLowGPPageHeader.inc:48 @@ -10389,7 +10430,7 @@ msgid "long" msgstr "dlouho" -#: FixedAssetItems.php:455 SalesCategories.php:326 Stocks.php:715 +#: FixedAssetItems.php:455 SalesCategories.php:324 Stocks.php:715 msgid "Image File (.jpg)" msgstr "Obrázek File (. Jpg)" @@ -10539,7 +10580,7 @@ msgid "Fixed Asset Register" msgstr "Hmotného majetku Registrace" -#: FixedAssetRegister.php:84 +#: FixedAssetRegister.php:84 includes/PDFAssetRegisterHeader.inc:65 msgid "Date Acquired" msgstr "Získané data" @@ -10555,7 +10596,8 @@ msgid "Additions" msgstr "Přírůstky" -#: FixedAssetRegister.php:88 +#: FixedAssetRegister.php:88 includes/PDFAssetRegisterHeader.inc:67 +#: includes/PDFAssetRegisterHeader.inc:70 msgid "Depn" msgstr "Depn" @@ -10567,7 +10609,8 @@ msgid "Depn C/fwd" msgstr "Depn C / vpřed" -#: FixedAssetRegister.php:91 +#: FixedAssetRegister.php:91 includes/PDFAssetRegisterHeader.inc:68 +#: includes/PDFAssetRegisterHeader.inc:71 msgid "NBV" msgstr "NBV" @@ -10608,15 +10651,15 @@ msgid "Show Assets" msgstr "Zobrazit Aktiva" -#: FixedAssetRegister.php:329 +#: FixedAssetRegister.php:329 includes/PDFAssetRegisterHeader.inc:33 msgid "Asset Category " msgstr "Kategorie aktiv " -#: FixedAssetRegister.php:330 +#: FixedAssetRegister.php:330 includes/PDFAssetRegisterHeader.inc:34 msgid "Asset Location " msgstr "Umístění aktiva " -#: FixedAssetRegister.php:356 +#: FixedAssetRegister.php:356 includes/PDFAssetRegisterHeader.inc:63 msgid "Serial No." msgstr "Pořadové číslo" @@ -15010,6 +15053,7 @@ #: OffersReceived.php:94 PurchData.php:323 Stocks.php:361 #: includes/PDFPeriodStockTransListingPageHeader.inc:47 +#: includes/PDFStockTransListingPageHeader.inc:67 msgid "Stock Item" msgstr "Skladová položka" @@ -16456,7 +16500,7 @@ #: PDFBankingSummary.php:36 PDFChequeListing.php:66 PDFCustTransListing.php:47 #: PDFDeliveryDifferences.php:71 PDFDIFOT.php:81 PDFOrdersInvoiced.php:70 #: PDFOrderStatus.php:73 PDFPeriodStockTransListing.php:78 -#: PDFSuppTransListing.php:47 +#: PDFStockTransListing.php:52 PDFSuppTransListing.php:47 msgid "Create PDF" msgstr "Vytvořit PDF" @@ -16662,7 +16706,7 @@ msgstr "Vzhledem k tomu, činnost" #: PDFCustTransListing.php:10 PDFPeriodStockTransListing.php:9 -#: PDFSuppTransListing.php:10 +#: PDFStockTransListing.php:13 PDFSuppTransListing.php:10 msgid "The date must be specified in the format" msgstr "Datum musí být zadáno ve formátu" @@ -16671,7 +16715,8 @@ msgid "Customer Transaction Listing" msgstr "Zákazník transakce Výpis" -#: PDFCustTransListing.php:31 PDFSuppTransListing.php:31 +#: PDFCustTransListing.php:31 PDFStockTransListing.php:34 +#: PDFSuppTransListing.php:31 msgid "Enter the date for which the transactions are to be listed" msgstr "Zadejte datum, pro které transakce by měly být uvedeny" @@ -16689,6 +16734,7 @@ msgstr "Dobropisů" #: PDFCustTransListing.php:77 PDFPeriodStockTransListing.php:134 +#: PDFStockTransListing.php:85 msgid "An error occurred getting the transactions" msgstr "Došlo k chybě dostat transakce" @@ -16696,12 +16742,13 @@ msgid "The SQL used to get the transaction information that failed was" msgstr "SQL slouží k získání informací o transakcích, které se nepodařilo byla" -#: PDFCustTransListing.php:87 PDFSuppTransListing.php:82 +#: PDFCustTransListing.php:87 PDFStockTransListing.php:92 +#: PDFSuppTransListing.php:82 msgid "There were no transactions found in the database for the date" msgstr "Nebyly zjištěny žádné transakce v databázi na data" #: PDFCustTransListing.php:87 PDFPeriodStockTransListing.php:141 -#: PDFSuppTransListing.php:82 +#: PDFStockTransListing.php:92 PDFSuppTransListing.php:82 msgid "Please try again selecting a different date" msgstr "Zkuste to prosím znovu vybrat jiný den" @@ -16969,7 +17016,8 @@ msgstr "Ještě netisknuto" #: PDFPeriodStockTransListing.php:16 PDFPeriodStockTransListing.php:20 -#: PDFPeriodStockTransListing.php:150 +#: PDFPeriodStockTransListing.php:150 PDFStockTransListing.php:20 +#: PDFStockTransListing.php:24 PDFStockTransListing.php:101 msgid "Stock Transaction Listing" msgstr "Sklad seznamu transakcí" @@ -16983,33 +17031,33 @@ msgid "Enter the date to which the transactions are to be listed" msgstr "Zadejte datum, pro které transakce by měly být uvedeny" -#: PDFPeriodStockTransListing.php:43 PrintCustTrans.php:59 -#: PrintCustTransPortrait.php:57 SalesInquiry.php:1054 +#: PDFPeriodStockTransListing.php:43 PDFStockTransListing.php:42 +#: PrintCustTrans.php:59 PrintCustTransPortrait.php:57 SalesInquiry.php:1054 msgid "Sales Invoice" msgstr "Prodejní faktury" -#: PDFPeriodStockTransListing.php:44 PrintCustTrans.php:62 -#: PrintCustTransPortrait.php:60 +#: PDFPeriodStockTransListing.php:44 PDFStockTransListing.php:43 +#: PrintCustTrans.php:62 PrintCustTransPortrait.php:60 msgid "Sales Credit Note" msgstr "Prodej dobropis" -#: PDFPeriodStockTransListing.php:45 +#: PDFPeriodStockTransListing.php:45 PDFStockTransListing.php:44 msgid "Location Transfer" msgstr "Umístění Transfer" -#: PDFPeriodStockTransListing.php:46 +#: PDFPeriodStockTransListing.php:46 PDFStockTransListing.php:45 msgid "Stock Adjustment" msgstr "Úprava skladu" -#: PDFPeriodStockTransListing.php:47 +#: PDFPeriodStockTransListing.php:47 PDFStockTransListing.php:46 msgid "Purchase Order Delivery" msgstr "Objednávka dodání" -#: PDFPeriodStockTransListing.php:48 +#: PDFPeriodStockTransListing.php:48 PDFStockTransListing.php:47 msgid "Work Order Receipt" msgstr "Práce doručení objednávky" -#: PDFPeriodStockTransListing.php:49 +#: PDFPeriodStockTransListing.php:49 PDFStockTransListing.php:48 msgid "Work Order Issue" msgstr "Objednat výtisk práce" @@ -17018,6 +17066,7 @@ msgstr "Pro Umístění skladu" #: PDFPeriodStockTransListing.php:132 PDFPeriodStockTransListing.php:138 +#: PDFStockTransListing.php:83 PDFStockTransListing.php:89 msgid "Transaction Listing" msgstr "Výpis transakce" @@ -17026,37 +17075,44 @@ msgid "There were no transactions found in the database between the dates" msgstr "Nebyly zjištěny žádné transakce v databázi na data" -#: PDFPeriodStockTransListing.php:151 +#: PDFPeriodStockTransListing.php:151 PDFStockTransListing.php:102 msgid "Stock transaction listing from" msgstr "Transakce na burze bude výpis z" #: PDFPeriodStockTransListing.php:158 #: includes/PDFCustTransListingPageHeader.inc:15 +#: includes/PDFStockTransListingPageHeader.inc:15 msgid "Customer Invoices" msgstr "Odběratelských faktur" #: PDFPeriodStockTransListing.php:161 #: includes/PDFCustTransListingPageHeader.inc:18 +#: includes/PDFStockTransListingPageHeader.inc:18 msgid "Customer Credit Notes" msgstr "Zákazník dobropisy" #: PDFPeriodStockTransListing.php:164 SelectProduct.php:417 +#: includes/PDFStockTransListingPageHeader.inc:21 msgid "Location Transfers" msgstr "Umístění Převody" #: PDFPeriodStockTransListing.php:167 StockAdjustments.php:8 +#: includes/PDFStockTransListingPageHeader.inc:24 msgid "Stock Adjustments" msgstr "Úpravy skladem" #: PDFPeriodStockTransListing.php:170 +#: includes/PDFStockTransListingPageHeader.inc:27 msgid "Purchase Order Deliveries" msgstr "Objednávka Dodávky" #: PDFPeriodStockTransListing.php:173 +#: includes/PDFStockTransListingPageHeader.inc:30 msgid "Work Order Receipts" msgstr "Příjmy práce Objednat" #: PDFPeriodStockTransListing.php:176 +#: includes/PDFStockTransListingPageHeader.inc:33 msgid "Work Order Issues" msgstr "Práce jiných záležitostí" @@ -17118,7 +17174,8 @@ msgstr "Cena Výpis Zpráva" #: PDFPriceList.php:23 PDFPriceList.php:295 PDFPriceList.php:335 -#: PDFPriceList.php:355 +#: PDFPriceList.php:355 includes/PDFPriceListPageHeader.inc:16 +#: includes/PDFPriceListPageHeader.inc:40 msgid "Customer Special Prices Only" msgstr "Zákazník Zvláštní ceny pouze" @@ -17233,7 +17290,7 @@ msgstr "Datum účinnosti Range" #: PDFPriceList.php:362 includes/PDFLowGPPageHeader.inc:49 -#: includes/PDFLowGPPageHeader.inc:50 +#: includes/PDFLowGPPageHeader.inc:50 includes/PDFPriceListPageHeader.inc:49 msgid "GP" msgstr "GP" @@ -17273,7 +17330,7 @@ msgid "Number of labels per item" msgstr "Počet štítků za položku" -#: PDFPrintLabel.php:93 +#: PDFPrintLabel.php:93 Z_PriceChanges.php:94 msgid "Price list" msgstr "Ceník" @@ -19038,7 +19095,7 @@ msgid "Requisition" msgstr "Rekvizice" -#: PricesBasedOnMarkUp.php:8 +#: PricesBasedOnMarkUp.php:8 Z_PriceChanges.php:7 msgid "Update Pricing" msgstr "Aktualizace cen" @@ -19064,7 +19121,7 @@ msgid "Select the Price List to update" msgstr "Zvolte Cena aktualizace" -#: PricesBasedOnMarkUp.php:29 PricesBasedOnMarkUp.php:94 +#: PricesBasedOnMarkUp.php:29 PricesBasedOnMarkUp.php:94 Z_PriceChanges.php:28 msgid "No Price List Selected" msgstr "Ne Cena Vybrané Seznam" @@ -19122,11 +19179,11 @@ msgid "New Price To Be Effective To (Blank = No End Date)" msgstr "Nová cena jako účinná k (prázdné = Ne Datum ukončení)" -#: PricesBasedOnMarkUp.php:163 +#: PricesBasedOnMarkUp.php:163 Z_PriceChanges.php:67 msgid "Percentage Increase (positive) or decrease (negative)" msgstr "Procento zvýšení (pozitivní) nebo snížení (negativní)" -#: PricesBasedOnMarkUp.php:167 +#: PricesBasedOnMarkUp.php:167 Z_PriceChanges.php:71 msgid "Update Prices" msgstr "Aktualizace ceny" @@ -19212,7 +19269,7 @@ "Pro záznam všech cen změnilo této stránce by měly být vytištěny pomocí CTRL " "+ P" -#: PricesBasedOnMarkUp.php:214 +#: PricesBasedOnMarkUp.php:214 Z_PriceChanges.php:77 msgid "So we are using a price list/sales type of" msgstr "Tak jsme se s použitím ceníku / prodej druhu" @@ -19232,7 +19289,7 @@ msgid "against" msgstr "proti" -#: PricesBasedOnMarkUp.php:229 +#: PricesBasedOnMarkUp.php:229 Z_PriceChanges.php:82 msgid "The price list/sales type to be updated must be selected first" msgstr "Ceník / prodeje, který má být aktualizován, musí být vybrány první" @@ -19284,7 +19341,7 @@ "roven nule - žádné cenové změny budou provedeny na základě nulové nákladové " "položky. Z bodu je:" -#: PricesBasedOnMarkUp.php:337 +#: PricesBasedOnMarkUp.php:337 Z_PriceChanges.php:137 msgid "Error updating prices for" msgstr "Chyba při aktualizaci cen pro" @@ -19594,11 +19651,11 @@ msgid "Cheque No." msgstr "Šek Ne" -#: PrintCustOrder_generic.php:141 +#: PrintCustOrder_generic.php:141 PrintSalesOrder_generic.php:111 msgid "Customer Laser Packing Slip" msgstr "Zákazník Laser Balení skluzu" -#: PrintCustOrder_generic.php:142 +#: PrintCustOrder_generic.php:142 PrintSalesOrder_generic.php:112 msgid "Laser Packing slip for order" msgstr "Laser Balení skluzu na objednávku" @@ -19626,6 +19683,7 @@ msgstr "Dodacího listu nelze vytisknout" #: PrintCustOrder_generic.php:241 PrintCustOrder.php:197 +#: PrintSalesOrder_generic.php:182 msgid "Print Another Packing Slip/Order" msgstr "Tisk Další balicí list / Objednávka" @@ -19981,6 +20039,14 @@ msgid "Print Preview" msgstr "Náhled" +#: PrintSalesOrder_generic.php:181 +msgid "" +"There were no outstanding items on the order to deliver. A packing slip " +"cannot be printed" +msgstr "" +"Nebyly zjištěny žádné nesplacené položek na objednávce dodat. Dodacího listu " +"nelze vytisknout" + #: PurchData.php:6 msgid "Supplier Purchasing Data" msgstr "Dodavatel nákupu dat" @@ -20294,20 +20360,20 @@ msgstr "Zobrazit stavu populace" #: PurchData.php:505 SelectProduct.php:393 StockCostUpdate.php:167 -#: StockLocMovements.php:47 StockMovements.php:56 StockReorderLevel.php:95 +#: StockLocMovements.php:47 StockMovements.php:56 StockReorderLevel.php:96 #: StockUsage.php:182 msgid "Show Stock Movements" msgstr "Zobrazit pohybů zásob" #: PurchData.php:506 SelectProduct.php:398 SelectSalesOrder.php:6 #: StockAdjustments.php:426 StockCostUpdate.php:169 StockMovements.php:202 -#: StockReorderLevel.php:97 StockStatus.php:357 StockTransfers.php:532 +#: StockReorderLevel.php:98 StockStatus.php:357 StockTransfers.php:532 #: StockUsage.php:183 msgid "Search Outstanding Sales Orders" msgstr "Hledat Vynikající Prodejní objednávky" #: PurchData.php:507 SelectProduct.php:399 StockAdjustments.php:427 -#: StockCostUpdate.php:170 StockMovements.php:203 StockReorderLevel.php:98 +#: StockCostUpdate.php:170 StockMovements.php:203 StockReorderLevel.php:99 #: StockStatus.php:358 StockTransfers.php:533 StockUsage.php:184 msgid "Search Completed Sales Orders" msgstr "Vyhledávání Dokončené Prodejní objednávky" @@ -21621,11 +21687,11 @@ "Nelze smazat tento prodej kategorií, protože skladě položky byly přidány do " "této kategorie" -#: SalesCategories.php:125 +#: SalesCategories.php:124 msgid "items under to this category" msgstr "položek v této kategorii" -#: SalesCategories.php:132 +#: SalesCategories.php:131 msgid "" "Cannot delete this sales category because sub categories have been added to " "this category" @@ -21633,86 +21699,86 @@ "Nelze smazat tento prodej kategorií, protože dílčí kategorie, které byly " "přidány do této kategorie" -#: SalesCategories.php:133 +#: SalesCategories.php:131 msgid "sub categories" msgstr "dílčí kategorie" -#: SalesCategories.php:137 +#: SalesCategories.php:135 msgid "The sales category" msgstr "Kategorie prodej" -#: SalesCategories.php:153 SalesCategories.php:161 +#: SalesCategories.php:148 SalesCategories.php:156 msgid "Stock item" msgstr "Na skladě" -#: SalesCategories.php:153 +#: SalesCategories.php:148 msgid "has been added" msgstr "Byla přidána" -#: SalesCategories.php:161 +#: SalesCategories.php:156 msgid "has been removed" msgstr "byl odebrán" -#: SalesCategories.php:169 +#: SalesCategories.php:164 msgid "Main" msgstr "Hlavní" -#: SalesCategories.php:197 +#: SalesCategories.php:195 msgid "Selected Sales Category Path" msgstr "Vybrané kategorie Prodej cesta" -#: SalesCategories.php:221 +#: SalesCategories.php:219 msgid "There are no categories defined at this level." msgstr "Nejsou žádné kategorie stanovené na této úrovni." -#: SalesCategories.php:224 +#: SalesCategories.php:222 msgid "Sub Category" msgstr "Sub kategorie" -#: SalesCategories.php:307 +#: SalesCategories.php:305 msgid "Edit Sub Category" msgstr "Upravit Podkategorie" -#: SalesCategories.php:316 +#: SalesCategories.php:314 msgid "New Sub Category" msgstr "Nové Podkategorie" -#: SalesCategories.php:321 +#: SalesCategories.php:319 msgid "Category Name" msgstr "Název kategorie" -#: SalesCategories.php:331 +#: SalesCategories.php:329 msgid "Submit Information" msgstr "Předložit informace" -#: SalesCategories.php:381 +#: SalesCategories.php:379 msgid "Add Inventory to this category." msgstr "Přidat Zásoby v této kategorii." -#: SalesCategories.php:382 +#: SalesCategories.php:380 msgid "Select Inv. Item" msgstr "Vyberte Inv. Bod" -#: SalesCategories.php:394 +#: SalesCategories.php:392 msgid "Add Inventory Item" msgstr "Přidat skladovou položku" -#: SalesCategories.php:399 +#: SalesCategories.php:397 #, fuzzy msgid "No more Inventory items to add" msgstr "Žádné další položky zásob přidat." -#: SalesCategories.php:421 +#: SalesCategories.php:419 msgid "Inventory items in this category." msgstr "Zásoby zboží v této kategorii." -#: SalesCategories.php:438 StockAdjustments.php:391 SupplierTenders.php:291 +#: SalesCategories.php:436 StockAdjustments.php:391 SupplierTenders.php:291 #: TaxGroups.php:354 WWW_Access.php:212 #, php-format msgid "Remove" msgstr "Odstranit" -#: SalesCategories.php:442 +#: SalesCategories.php:440 #, fuzzy msgid "No Inventory items in this category" msgstr "Zásoby žádné položky v této kategorii." @@ -23314,12 +23380,6 @@ msgid "No Default Price Set in Home Currency" msgstr "Č. Výchozí Cena Nastavit v domácí měně" -#: SelectProduct.php:282 -msgid "" -"The quantity on work orders for this product cannot be retrieved because" -msgstr "" -"Množství na pracovních příkazů pro tento produkt není možné získat, protože" - #: SelectProduct.php:323 msgid "" "The workorder component demand for this product cannot be retrieved because" @@ -23365,7 +23425,7 @@ msgstr "Nastavení položek" #: SelectProduct.php:396 StockAdjustments.php:425 StockCostUpdate.php:168 -#: StockMovements.php:201 StockReorderLevel.php:96 StockTransfers.php:531 +#: StockMovements.php:201 StockReorderLevel.php:97 StockTransfers.php:531 #: StockUsage.php:87 msgid "Show Stock Usage" msgstr "Zobrazit skladem Využití" @@ -28310,11 +28370,12 @@ msgid "Items to offer from" msgstr "Položky, které nabízí od" -#: SupplierTenders.php:263 api/api_xml-rpc.php:696 api/api_xml-rpc.php:764 -#: api/api_xml-rpc.php:795 api/api_xml-rpc.php:826 api/api_xml-rpc.php:865 -#: api/api_xml-rpc.php:896 api/api_xml-rpc.php:927 api/api_xml-rpc.php:970 -#: api/api_xml-rpc.php:2220 api/api_xml-rpc.php:2256 api/api_xml-rpc.php:2302 -#: api/api_xml-rpc.php:2498 api/api_xml-rpc.php:2662 +#: SupplierTenders.php:263 includes/PDFAssetRegisterHeader.inc:61 +#: api/api_xml-rpc.php:696 api/api_xml-rpc.php:764 api/api_xml-rpc.php:795 +#: api/api_xml-rpc.php:826 api/api_xml-rpc.php:865 api/api_xml-rpc.php:896 +#: api/api_xml-rpc.php:927 api/api_xml-rpc.php:970 api/api_xml-rpc.php:2220 +#: api/api_xml-rpc.php:2256 api/api_xml-rpc.php:2302 api/api_xml-rpc.php:2498 +#: api/api_xml-rpc.php:2662 msgid "Stock ID" msgstr "Sklad ID" @@ -30614,7 +30675,7 @@ "systému. Přečtěte si prosím pozorně všechny poznámky, aby bylo zajištěno, že " "se očekává, že" -#: UpgradeDatabase.php:129 +#: UpgradeDatabase.php:133 msgid "" "Only mysql upgrades are performed seamlessly at this time. Your database " "will need to be manually updated" @@ -30622,61 +30683,61 @@ "Pouze mysql upgrady jsou prováděny plynule v této době. Databáze bude třeba " "ručně aktualizované" -#: UpgradeDatabase.php:141 +#: UpgradeDatabase.php:145 msgid "Applying" msgstr "Uplatnění" -#: UpgradeDatabase.php:168 Z_Upgrade_3.10-3.11.php:59 Z_Upgrade3.10.php:29 +#: UpgradeDatabase.php:172 Z_Upgrade_3.10-3.11.php:59 Z_Upgrade3.10.php:29 #: Z_Upgrade3.10.php:34 Z_Upgrade3.10.php:46 Z_Upgrade3.10.php:51 #: Z_Upgrade3.10.php:60 Z_Upgrade3.10.php:65 Z_Upgrade3.10.php:74 #: Z_Upgrade3.10.php:79 Z_Upgrade_3.11-4.00.php:59 msgid "Success" msgstr "Úspěch" -#: UpgradeDatabase.php:171 Z_Upgrade_3.10-3.11.php:63 +#: UpgradeDatabase.php:175 Z_Upgrade_3.10-3.11.php:63 #: Z_Upgrade_3.11-4.00.php:63 msgid "Table has already been created" msgstr "Tabulka již byla vytvořena" -#: UpgradeDatabase.php:174 +#: UpgradeDatabase.php:178 #, fuzzy msgid "Column has already been changed" msgstr "Sloupec již byla vytvořena" -#: UpgradeDatabase.php:177 Z_Upgrade_3.10-3.11.php:67 +#: UpgradeDatabase.php:181 Z_Upgrade_3.10-3.11.php:67 #: Z_Upgrade_3.11-4.00.php:67 msgid "Column has already been created" msgstr "Sloupec již byla vytvořena" -#: UpgradeDatabase.php:180 Z_Upgrade_3.10-3.11.php:71 +#: UpgradeDatabase.php:184 Z_Upgrade_3.10-3.11.php:71 #: Z_Upgrade_3.11-4.00.php:71 msgid "Index already exists" msgstr "Index již existuje" -#: UpgradeDatabase.php:183 Z_Upgrade_3.10-3.11.php:75 +#: UpgradeDatabase.php:187 Z_Upgrade_3.10-3.11.php:75 #: Z_Upgrade_3.11-4.00.php:75 msgid "Entry has already been done" msgstr "Vstup již bylo učiněno" -#: UpgradeDatabase.php:186 +#: UpgradeDatabase.php:190 msgid "SQL syntax error. The SQL error message is" msgstr "SQL chyba syntaxe. Chyba SQL zpráva" -#: UpgradeDatabase.php:189 Z_Upgrade_3.10-3.11.php:79 +#: UpgradeDatabase.php:193 Z_Upgrade_3.10-3.11.php:79 #: Z_Upgrade_3.11-4.00.php:79 msgid "Primary key already exists" msgstr "Primární klíč již existuje" -#: UpgradeDatabase.php:192 +#: UpgradeDatabase.php:196 msgid "Index already dropped previously" msgstr "Index již klesl dříve" -#: UpgradeDatabase.php:195 Z_Upgrade_3.10-3.11.php:82 +#: UpgradeDatabase.php:199 Z_Upgrade_3.10-3.11.php:82 #: Z_Upgrade_3.11-4.00.php:82 msgid "Failure" msgstr "Selhání" -#: UpgradeDatabase.php:195 Z_Upgrade_3.10-3.11.php:83 +#: UpgradeDatabase.php:199 Z_Upgrade_3.10-3.11.php:83 #: Z_Upgrade_3.11-4.00.php:83 msgid "Error number" msgstr "Číslo chyby" @@ -33161,6 +33222,36 @@ msgid "Default" msgstr "Výchozí" +#: Z_FixedAssetCostAccumDepnFix.php:8 +#, fuzzy +msgid "Fixed Fixed Asset Records" +msgstr "Hmotného majetku Kredity" + +#: Z_FixedAssetCostAccumDepnFix.php:12 +msgid "This script repairs the fixedasset table cost and accum depn" +msgstr "" + +#: Z_FixedAssetCostAccumDepnFix.php:18 +#, fuzzy +msgid "Updated asset" +msgstr "Sazby aktualizace" + +#: Z_FixedAssetCostAccumDepnFix.php:18 +#, fuzzy +msgid "to have a cost of" +msgstr "std náklady" + +#: Z_FixedAssetCostAccumDepnFix.php:18 +#, fuzzy +msgid "and accum depn of" +msgstr "Accum Depn GL" + +#: Z_FixedAssetCostAccumDepnFix.php:22 +msgid "" +"Asset cost and accumulated depreciation has now been fixed to the " +"transaction cost and depreciation" +msgstr "" + #: Z_ImportChartOfAccounts.php:7 Z_ImportGLAccountGroups.php:5 #: Z_ImportGLAccountSections.php:5 msgid "Import Chart of Accounts" @@ -34006,6 +34097,108 @@ msgid "Existing languages are not affected." msgstr "Stávající jazyky nejsou ovlivněny." +#: Z_PriceChanges.php:11 +msgid "" +"This page updates already existing prices for a specified sales type (price " +"list)" +msgstr "Tato stránka aktualizuje stávající ceny pro určitý typ prodeje (ceník)" + +#: Z_PriceChanges.php:11 +msgid "" +"Choose between updating only customer special prices where the customer is " +"set up under the price list selected, or all prices under the sales type or " +"just specific prices for a customer for the stock category selected" +msgstr "" +"Vyberte si mezi aktualizace jediný zákazník speciální ceny, kde je zákazník " +"zřízený podle ceny vybraného seznamu, nebo všechny ceny v rámci prodeje, " +"nebo jen konkrétní typ ceny pro zákazníka pro populaci vybrané kategorii" + +#: Z_PriceChanges.php:13 +msgid "" +"This script takes no account of start and end dates of prices and updates " +"all historical prices as well as current prices - better to use new scripts " +"under Inventory -> Maintenance" +msgstr "" +"Tento skript nebere v úvahu datum zahájení a ukončení cen a aktualizace " +"všech historických cen, stejně jako v běžných cenách - lépe využít nové " +"skripty pod Inventory -> Údržba" + +#: Z_PriceChanges.php:24 +msgid "Select the Price List to update the costs for" +msgstr "Zvolte Cena aktualizovat náklady na" + +#: Z_PriceChanges.php:55 +msgid "Which Prices to update" +msgstr "Ceny, které k aktualizaci" + +#: Z_PriceChanges.php:57 +msgid "Only Non-customer special prices" +msgstr "Pouze Non-zákazník speciální ceny" + +#: Z_PriceChanges.php:58 +msgid "Only customer special prices" +msgstr "Pouze zákazník speciální ceny" + +#: Z_PriceChanges.php:59 +msgid "Both customer special prices and non-customer special prices" +msgstr "Oba zákazník speciální ceny a non-zákazník speciální ceny" + +#: Z_PriceChanges.php:60 +msgid "customer special prices only" +msgstr "zákazník speciální ceny pouze" + +#: Z_PriceChanges.php:71 +msgid "" +"Are you sure you wish to update all the prices according to the criteria " +"selected?" +msgstr "" +"Jste si jisti, že chcete aktualizovat všechny ceny podle zvolených kritérií?" + +#: Z_PriceChanges.php:78 +msgid "and a stock category code of" +msgstr "a zásoby kategorii kód" + +#: Z_PriceChanges.php:79 +msgid "and a increase percent of" +msgstr "a zvýšení procenta" + +#: Z_PriceChanges.php:89 +msgid "" +"The increase or decrease to be applied is expected to be an integer between " +"1 and 40 it is not necessary to enter the" +msgstr "" +"Zvýšení nebo snížení má být použita, je čekal, že je celé číslo mezi 1 a 40, " +"není nutné zadávat" + +#: Z_PriceChanges.php:89 +#, fuzzy +msgid "sign" +msgstr "Design" + +#: Z_PriceChanges.php:89 +msgid "the amount is assumed to be a percentage" +msgstr "částka Předpokládá se, že procento" + +#: Z_PriceChanges.php:94 +msgid "prices for" +msgstr "ceny pro" + +#: Z_PriceChanges.php:94 +msgid "for the stock category" +msgstr "pro populaci kategorii" + +#: Z_PriceChanges.php:94 +msgid "will been incremented by" +msgstr "bude se zvyšuje o" + +#: Z_PriceChanges.php:94 +msgid "percent" +msgstr "procent" + +#: Z_PriceChanges.php:138 +msgid "Updating prices for" +msgstr "Aktualizace ceny" + #: Z_ReApplyCostToSA.php:6 msgid "Apply Current Cost to Sales Analysis" msgstr "Použít aktuální náklady na analýzu prodeje" @@ -35472,6 +35665,28 @@ msgid "Aged Supplier Balances For Suppliers from" msgstr "Dodavatel ve věku Zůstatky Pro dodavatele z" +#: includes/PDFAssetRegisterHeader.inc:35 +msgid "Asset Type" +msgstr "Typ majetku" + +#: includes/PDFAssetRegisterHeader.inc:36 +#, fuzzy +msgid "Acquired After" +msgstr "Požadované datum" + +#: includes/PDFAssetRegisterHeader.inc:37 +#, fuzzy +msgid "and Before" +msgstr "a pro" + +#: includes/PDFAssetRegisterHeader.inc:57 +msgid "<--------------External Depreciation-------------->" +msgstr "" + +#: includes/PDFAssetRegisterHeader.inc:58 +msgid "<--------------Internal Depreciation-------------->" +msgstr "" + #: includes/PDFBankingSummaryPageHeader.inc:19 msgid "for Receipt Batch" msgstr "pro přijetí dávky" @@ -35567,6 +35782,7 @@ #: includes/PDFCustTransListingPageHeader.inc:50 #: includes/PDFPeriodStockTransListingPageHeader.inc:49 +#: includes/PDFStockTransListingPageHeader.inc:69 #: includes/PDFSuppTransListingPageHeader.inc:50 msgid "Trans Date" msgstr "Trans Datum" @@ -35795,6 +36011,16 @@ msgid "Actual Picked" msgstr "Skutečné Sklizené" +#: includes/PDFPriceListPageHeader.inc:18 +#, fuzzy +msgid "Special Prices for Inventory Categories between" +msgstr "Zkontrolujte, zda listy Kategorie mezi" + +#: includes/PDFPriceListPageHeader.inc:21 +#, fuzzy +msgid "Price List for Inventory Categories between" +msgstr "Zkontrolujte, zda listy Kategorie mezi" + #: includes/PDFProfitAndLossPageHeader.inc:21 #: includes/PDFTagProfitAndLossPageHeader.inc:21 msgid "Profit and loss for the " @@ -38308,10 +38534,6 @@ #~ msgstr "Zákazník záznam vybrané zákazníky" #, fuzzy -#~ msgid "Demand Work Orders" -#~ msgstr "Hledat práci Objednávky" - -#, fuzzy #~ msgid "Annual Depreciation Percentage" #~ msgstr "Neplatné odpisové sazby:" @@ -38320,134 +38542,6 @@ #~ msgstr "Aktualizace faktor" #~ msgid "" -#~ "There were no outstanding items on the order to deliver. A packing slip " -#~ "cannot be printed" -#~ msgstr "" -#~ "Nebyly zjištěny žádné nesplacené položek na objednávce dodat. Dodacího " -#~ "listu nelze vytisknout" - -#, fuzzy -#~ msgid "Fixed Fixed Asset Records" -#~ msgstr "Hmotného majetku Kredity" - -#, fuzzy -#~ msgid "Updated asset" -#~ msgstr "Sazby aktualizace" - -#, fuzzy -#~ msgid "to have a cost of" -#~ msgstr "std náklady" - -#, fuzzy -#~ msgid "and accum depn of" -#~ msgstr "Accum Depn GL" - -#~ msgid "" -#~ "This page updates already existing prices for a specified sales type " -#~ "(price list)" -#~ msgstr "" -#~ "Tato stránka aktualizuje stávající ceny pro určitý typ prodeje (ceník)" - -#~ msgid "" -#~ "Choose between updating only customer special prices where the customer " -#~ "is set up under the price list selected, or all prices under the sales " -#~ "type or just specific prices for a customer for the stock category " -#~ "selected" -#~ msgstr "" -#~ "Vyberte si mezi aktualizace jediný zákazník speciální ceny, kde je " -#~ "zákazník zřízený podle ceny vybraného seznamu, nebo všechny ceny v rámci " -#~ "prodeje, nebo jen konkrétní typ ceny pro zákazníka pro populaci vybrané " -#~ "kategorii" - -#~ msgid "" -#~ "This script takes no account of start and end dates of prices and updates " -#~ "all historical prices as well as current prices - better to use new " -#~ "scripts under Inventory -> Maintenance" -#~ msgstr "" -#~ "Tento skript nebere v úvahu datum zahájení a ukončení cen a aktualizace " -#~ "všech historických cen, stejně jako v běžných cenách - lépe využít nové " -#~ "skripty pod Inventory -> Údržba" - -#~ msgid "Select the Price List to update the costs for" -#~ msgstr "Zvolte Cena aktualizovat náklady na" - -#~ msgid "Which Prices to update" -#~ msgstr "Ceny, které k aktualizaci" - -#~ msgid "Only Non-customer special prices" -#~ msgstr "Pouze Non-zákazník speciální ceny" - -#~ msgid "Only customer special prices" -#~ msgstr "Pouze zákazník speciální ceny" - -#~ msgid "Both customer special prices and non-customer special prices" -#~ msgstr "Oba zákazník speciální ceny a non-zákazník speciální ceny" - -#~ msgid "customer special prices only" -#~ msgstr "zákazník speciální ceny pouze" - -#~ msgid "" -#~ "Are you sure you wish to update all the prices according to the criteria " -#~ "selected?" -#~ msgstr "" -#~ "Jste si jisti, že chcete aktualizovat všechny ceny podle zvolených " -#~ "kritérií?" - -#~ msgid "and a stock category code of" -#~ msgstr "a zásoby kategorii kód" - -#~ msgid "and a increase percent of" -#~ msgstr "a zvýšení procenta" - -#~ msgid "" -#~ "The increase or decrease to be applied is expected to be an integer " -#~ "between 1 and 40 it is not necessary to enter the" -#~ msgstr "" -#~ "Zvýšení nebo snížení má být použita, je čekal, že je celé číslo mezi 1 a " -#~ "40, není nutné zadávat" - -#, fuzzy -#~ msgid "sign" -#~ msgstr "Design" - -#~ msgid "the amount is assumed to be a percentage" -#~ msgstr "částka Předpokládá se, že procento" - -#~ msgid "prices for" -#~ msgstr "ceny pro" - -#~ msgid "for the stock category" -#~ msgstr "pro populaci kategorii" - -#~ msgid "will been incremented by" -#~ msgstr "bude se zvyšuje o" - -#~ msgid "percent" -#~ msgstr "procent" - -#~ msgid "Updating prices for" -#~ msgstr "Aktualizace ceny" - -#~ msgid "Asset Type" -#~ msgstr "Typ majetku" - -#, fuzzy -#~ msgid "Acquired After" -#~ msgstr "Požadované datum" - -#, fuzzy -#~ msgid "and Before" -#~ msgstr "a pro" - -#, fuzzy -#~ msgid "Special Prices for Inventory Categories between" -#~ msgstr "Zkontrolujte, zda listy Kategorie mezi" - -#, fuzzy -#~ msgid "Price List for Inventory Categories between" -#~ msgstr "Zkontrolujte, zda listy Kategorie mezi" - -#~ msgid "" #~ "The effective after date field must be a date in the format dd/mm/yy or " #~ "dd/mm/yyyy or ddmmyy or ddmmyyyy or dd-mm-yy or dd-mm-yyyy" #~ msgstr "" Modified: trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po 2011-07-27 02:43:17 UTC (rev 4639) +++ trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po 2011-07-27 09:10:47 UTC (rev 4640) @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: WebERP 4.00/trunk\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-07-24 12:24+1200\n" +"POT-Creation-Date: 2011-07-27 19:08+1200\n" "PO-Revision-Date: 2011-07-17 13:46+0000\n" "Last-Translator: Peter Hürlimann <su...@ph...>\n" "Language-Team: Deutsch <web...@li...>\n" @@ -146,7 +146,7 @@ #: Locations.php:256 Locations.php:265 Locations.php:274 Locations.p... [truncated message content] |
From: <dai...@us...> - 2011-07-27 02:43:24
|
Revision: 4639 http://web-erp.svn.sourceforge.net/web-erp/?rev=4639&view=rev Author: daintree Date: 2011-07-27 02:43:17 +0000 (Wed, 27 Jul 2011) Log Message: ----------- quoting Modified Paths: -------------- trunk/PDFSuppTransListing.php trunk/StockReorderLevel.php trunk/WhereUsedInquiry.php trunk/Z_ReverseSuppPaymentRun.php trunk/includes/LanguageSetup.php Modified: trunk/PDFSuppTransListing.php =================================================================== --- trunk/PDFSuppTransListing.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/PDFSuppTransListing.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -1,130 +1,130 @@ -<?php - -/* $Id$*/ - -include('includes/SQL_CommonFunctions.inc'); -include ('includes/session.inc'); - -$InputError=0; -if (isset($_POST['Date']) AND !Is_Date($_POST['Date'])){ - $msg = _('The date must be specified in the format') . ' ' . $_SESSION['DefaultDateFormat']; - $InputError=1; - unset($_POST['Date']); -} - -if (!isset($_POST['Date'])){ - - $title = _('Supplier Transaction Listing'); - include ('includes/header.inc'); - - echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . $title . '" alt="" />' . ' ' - . _('Supplier Transaction Listing').'</p>'; - - if ($InputError==1){ - prnMsg($msg,'error'); - } - - echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; - echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<table class=selection> - <tr> - <td>' . _('Enter the date for which the transactions are to be listed') . ":</td> - <td><input type="text" name='Date' maxlength=10 size=10 class=date alt='" . $_SESSION['DefaultDateFormat'] . "' VALUE='" . Date($_SESSION['DefaultDateFormat']) . "'></td> - </tr>"; - - echo '<tr><td>' . _('Transaction type') . '</td><td>'; - - echo "<select name='TransType'>"; - - echo '<option value=20>' . _('Invoices') . '</option>'; - echo '<option value=21>' . _('Credit Notes') . '</option>'; - echo '<option value=22>' . _('Payments') . '</option>'; - - echo '</select></td></tr>'; - - echo '</select></td></tr> - </table> - <br /><div class="centre"><input type="submit" name="Go" value="' . _('Create PDF') . '"></div>'; - - include('includes/footer.inc'); - exit; -} else { - - include('includes/ConnectDB.inc'); -} - -$sql= "SELECT type, - supplierno, - suppreference, - trandate, - ovamount, - ovgst, - transtext - FROM supptrans - WHERE type='" . $_POST['TransType'] . "' - AND date_format(inputdate, '%Y-%m-%d')='".FormatDateForSQL($_POST['Date'])."'"; - -$result=DB_query($sql,$db,'','',false,false); - -if (DB_error_no($db)!=0){ - $title = _('Payment Listing'); - include('includes/header.inc'); - prnMsg(_('An error occurred getting the payments'),'error'); - if ($Debug==1){ - prnMsg(_('The SQL used to get the receipt header information that failed was') . ':<br />' . $SQL,'error'); - } - include('includes/footer.inc'); - exit; -} elseif (DB_num_rows($result) == 0){ - $title = _('Payment Listing'); - include('includes/header.inc'); - echo '<br />'; - prnMsg (_('There were no transactions found in the database for the date') . ' ' . $_POST['Date'] .'. '._('Please try again selecting a different date'), 'info'); - include('includes/footer.inc'); - exit; -} - -include('includes/PDFStarter.php'); - -/*PDFStarter.php has all the variables for page size and width set up depending on the users default preferences for paper size */ - -$pdf->addInfo('Title',_('Supplier Transaction Listing')); -$pdf->addInfo('Subject',_('Supplier transaction listing from') . ' ' . $_POST['Date'] ); -$line_height=12; -$PageNumber = 1; -$TotalCheques = 0; - -include ('includes/PDFSuppTransListingPageHeader.inc'); - -while ($myrow=DB_fetch_array($result)){ - - $sql="SELECT suppname FROM suppliers WHERE supplierid='" . $myrow['supplierno']."'"; - $supplierresult=DB_query($sql, $db); - $supplierrow=DB_fetch_array($supplierresult); - - $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,160,$FontSize,$supplierrow['suppname'], 'left'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+162,$YPos,80,$FontSize,$myrow['suppreference'], 'left'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+242,$YPos,70,$FontSize,ConvertSQLDate($myrow['trandate']), 'left'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+312,$YPos,70,$FontSize,number_format($myrow['ovamount'],2), 'right'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+382,$YPos,70,$FontSize,number_format($myrow['ovgst'],2), 'right'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+452,$YPos,70,$FontSize,number_format($myrow['ovamount']+$myrow['ovgst'],2), 'right'); - - $YPos -= ($line_height); - $TotalCheques = $TotalCheques - $myrow['ovamount']; - - if ($YPos - (2 *$line_height) < $Bottom_Margin){ - /*Then set up a new page */ - $PageNumber++; - include ('includes/PDFChequeListingPageHeader.inc'); - } /*end of new page header */ -} /* end of while there are customer receipts in the batch to print */ - - -$YPos-=$line_height; -$LeftOvers = $pdf->addTextWrap($Left_Margin+452,$YPos,70,$FontSize,number_format(-$TotalCheques,2), 'right'); -$LeftOvers = $pdf->addTextWrap($Left_Margin+265,$YPos,300,$FontSize,_('Total') . ' ' . _('Transactions'), 'left'); - -$ReportFileName = $_SESSION['DatabaseName'] . '_SuppTransListing_' . date('Y-m-d').'.pdf'; -$pdf->OutputD($ReportFileName); -$pdf->__destruct(); +<?php + +/* $Id$*/ + +include('includes/SQL_CommonFunctions.inc'); +include ('includes/session.inc'); + +$InputError=0; +if (isset($_POST['Date']) AND !Is_Date($_POST['Date'])){ + $msg = _('The date must be specified in the format') . ' ' . $_SESSION['DefaultDateFormat']; + $InputError=1; + unset($_POST['Date']); +} + +if (!isset($_POST['Date'])){ + + $title = _('Supplier Transaction Listing'); + include ('includes/header.inc'); + + echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . $title . '" alt="" />' . ' ' + . _('Supplier Transaction Listing').'</p>'; + + if ($InputError==1){ + prnMsg($msg,'error'); + } + + echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; + echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + echo '<table class=selection> + <tr> + <td>' . _('Enter the date for which the transactions are to be listed') . ':</td> + <td><input type="text" name="Date" maxlength="10" size="10" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '"></td> + <tr>'; + + echo '<tr><td>' . _('Transaction type') . '</td><td>'; + + echo "<select name='TransType'>"; + + echo '<option value=20>' . _('Invoices') . '</option>'; + echo '<option value=21>' . _('Credit Notes') . '</option>'; + echo '<option value=22>' . _('Payments') . '</option>'; + + echo '</select></td></tr>'; + + echo '</select></td></tr> + </table> + <br /><div class="centre"><input type="submit" name="Go" value="' . _('Create PDF') . '"></div>'; + + include('includes/footer.inc'); + exit; +} else { + + include('includes/ConnectDB.inc'); +} + +$sql= "SELECT type, + supplierno, + suppreference, + trandate, + ovamount, + ovgst, + transtext + FROM supptrans + WHERE type='" . $_POST['TransType'] . "' + AND date_format(inputdate, '%Y-%m-%d')='".FormatDateForSQL($_POST['Date'])."'"; + +$result=DB_query($sql,$db,'','',false,false); + +if (DB_error_no($db)!=0){ + $title = _('Payment Listing'); + include('includes/header.inc'); + prnMsg(_('An error occurred getting the payments'),'error'); + if ($Debug==1){ + prnMsg(_('The SQL used to get the receipt header information that failed was') . ':<br />' . $SQL,'error'); + } + include('includes/footer.inc'); + exit; +} elseif (DB_num_rows($result) == 0){ + $title = _('Payment Listing'); + include('includes/header.inc'); + echo '<br />'; + prnMsg (_('There were no transactions found in the database for the date') . ' ' . $_POST['Date'] .'. '._('Please try again selecting a different date'), 'info'); + include('includes/footer.inc'); + exit; +} + +include('includes/PDFStarter.php'); + +/*PDFStarter.php has all the variables for page size and width set up depending on the users default preferences for paper size */ + +$pdf->addInfo('Title',_('Supplier Transaction Listing')); +$pdf->addInfo('Subject',_('Supplier transaction listing from') . ' ' . $_POST['Date'] ); +$line_height=12; +$PageNumber = 1; +$TotalCheques = 0; + +include ('includes/PDFSuppTransListingPageHeader.inc'); + +while ($myrow=DB_fetch_array($result)){ + + $sql="SELECT suppname FROM suppliers WHERE supplierid='" . $myrow['supplierno']."'"; + $supplierresult=DB_query($sql, $db); + $supplierrow=DB_fetch_array($supplierresult); + + $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,160,$FontSize,$supplierrow['suppname'], 'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+162,$YPos,80,$FontSize,$myrow['suppreference'], 'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+242,$YPos,70,$FontSize,ConvertSQLDate($myrow['trandate']), 'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+312,$YPos,70,$FontSize,number_format($myrow['ovamount'],2), 'right'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+382,$YPos,70,$FontSize,number_format($myrow['ovgst'],2), 'right'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+452,$YPos,70,$FontSize,number_format($myrow['ovamount']+$myrow['ovgst'],2), 'right'); + + $YPos -= ($line_height); + $TotalCheques = $TotalCheques - $myrow['ovamount']; + + if ($YPos - (2 *$line_height) < $Bottom_Margin){ + /*Then set up a new page */ + $PageNumber++; + include ('includes/PDFChequeListingPageHeader.inc'); + } /*end of new page header */ +} /* end of while there are customer receipts in the batch to print */ + + +$YPos-=$line_height; +$LeftOvers = $pdf->addTextWrap($Left_Margin+452,$YPos,70,$FontSize,number_format(-$TotalCheques,2), 'right'); +$LeftOvers = $pdf->addTextWrap($Left_Margin+265,$YPos,300,$FontSize,_('Total') . ' ' . _('Transactions'), 'left'); + +$ReportFileName = $_SESSION['DatabaseName'] . '_SuppTransListing_' . date('Y-m-d').'.pdf'; +$pdf->OutputD($ReportFileName); +$pdf->__destruct(); ?> \ No newline at end of file Modified: trunk/StockReorderLevel.php =================================================================== --- trunk/StockReorderLevel.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/StockReorderLevel.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -75,9 +75,9 @@ } - printf("<td>%s</td> - <td class=number>%s</td> - <td><input type="text" class='number' name=%s maxlength=10 size=10 VALUE=%s></td>", + printf('<td>%s</td> + <td class="number">%s</td> + <td><input type="text" class="number" name="%s" maxlength="10" size="10" value="%s" /></td>', $myrow['locationname'], number_format($myrow['quantity'],$myrow['decimalplaces']), $myrow['loccode'], @@ -91,7 +91,8 @@ } //end of while loop -echo '</table><br /><div class="centre"><input type="submit" name="UpdateData" value="' . _('Update') . '"><br /><br />'; +echo '</table> + <br /><div class="centre"><input type="submit" name="UpdateData" value="' . _('Update') . '" /><br /><br />'; echo '<a href="' . $rootpath . '/StockMovements.php?StockID=' . $StockID . '">' . _('Show Stock Movements') . '</a>'; echo '<br /><a href="' . $rootpath . '/StockUsage.php?StockID=' . $StockID . '">' . _('Show Stock Usage') . '</a>'; echo '<br /><a href="' . $rootpath . '/SelectSalesOrder.php?SelectedStockItem=' . $StockID . '">' . _('Search Outstanding Sales Orders') . '</a>'; Modified: trunk/WhereUsedInquiry.php =================================================================== --- trunk/WhereUsedInquiry.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/WhereUsedInquiry.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -35,9 +35,9 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($StockID)) { - echo _('Enter an Item Code') . ": <input type="text" name='StockID' size=21 maxlength=20 value='$StockID' >"; + echo _('Enter an Item Code') . ': <input type="text" name="StockID" size="21" maxlength="20" value="' . $StockID . '" />'; } else { - echo _('Enter an Item Code') . ": <input type="text" name='StockID' size=21 maxlength=20>"; + echo _('Enter an Item Code') . ': <input type="text" name="StockID" size="21" maxlength="20" />'; } echo "<input type=submit name='ShowWhereUsed' value='" . _('Show Where Used') . "'>"; @@ -62,12 +62,12 @@ echo '<table width=97% class=selection>'; - $tableheader = "<tr><th>" . _('Used By') . "</th> - <th>" . _('Work Centre') . "</th> - <th>" . _('Location') . "</th> - <th>" . _('Quantity Required') . "</th> - <th>" . _('Effective After') . "</th> - <th>" . _('Effective To') . '</th></tr>'; + $tableheader = '<tr><th>' . _('Used By') . '</th> + <th>' . _('Work Centre') . '</th> + <th>' . _('Location') . '</th> + <th>' . _('Quantity Required') . '</th> + <th>' . _('Effective After') . '</th> + <th>' . _('Effective To') . '</th></tr>'; echo $tableheader; $k=0; while ($myrow=DB_fetch_array($result)) { @@ -80,7 +80,7 @@ $k=1; } - echo "<td><a target='_blank' href='" . $rootpath . "/BOMInquiry.php?" . SID . "&StockID=" . $myrow['parent'] . "' alt='" . _('Show Bill Of Material') . "'>" . $myrow['parent']. ' - ' . $myrow['description']. '</a></td>'; + echo '<td><a target="_blank" href="' . $rootpath . '/BOMInquiry.php?StockID=' . $myrow['parent'] . '" alt="' . _('Show Bill Of Material') . '">' . $myrow['parent']. ' - ' . $myrow['description']. '</a></td>'; echo '<td>' . $myrow['workcentreadded']. '</td>'; echo '<td>' . $myrow['loccode']. '</td>'; echo '<td>' . $myrow['quantity']. '</td>'; Modified: trunk/Z_ReverseSuppPaymentRun.php =================================================================== --- trunk/Z_ReverseSuppPaymentRun.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/Z_ReverseSuppPaymentRun.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -85,7 +85,7 @@ echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<br />' . _('Enter the date of the payment run') . ": <input type="text" name='PaytDate' maxlength=11 size=11 value='" . $_POST['PaytDate'] . "'>"; +echo '<br />' . _('Enter the date of the payment run') . ': <input type="text" name="PaytDate" maxlength="11" size="11" value="' . $_POST['PaytDate'] . '">'; echo '<input type="submit" name="RevPayts" value="' . _('Reverse Supplier Payments on the Date Entered') . '">'; echo '</form>'; Modified: trunk/includes/LanguageSetup.php =================================================================== --- trunk/includes/LanguageSetup.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/includes/LanguageSetup.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -27,22 +27,22 @@ if (function_exists('gettext')){ - //$Locale = setlocale (LC_ALL, $_SESSION['Language']); + if (defined('LC_MESSAGES')) { + $Locale = setlocale (LC_MESSAGES, $_SESSION['Language']); // Linux + } else { + $Locale = setlocale (LC_ALL, $_SESSION['Language']); // windows + } - $Locale = setlocale (LC_MESSAGES, $_SESSION['Language']); - //Turkish seems to be a special case if ($_SESSION['Language']=='tr_TR.utf8') { $Locale = setlocale(LC_CTYPE, 'C'); } - //$Locale = setlocale (LC_CTYPE, $_SESSION['Language']); - //$Locale = setlocale (LC_MESSAGES, $_SESSION['Language']); + $Locale = setlocale (LC_NUMERIC, 'en_US'); //currently need all decimal points etc to be as expected on webserver // possibly even if locale fails the language will still switch by using Language instead of locale variable putenv('LANG=' . $_SESSION['Language']); putenv('LANGUAGE=' . $_SESSION['Language']); - //putenv('LANG=$Language_Country'); bindtextdomain ('messages', $PathPrefix . 'locale'); textdomain ('messages'); bind_textdomain_codeset('messages', 'UTF-8'); @@ -92,4 +92,4 @@ } */ } -?> +?> \ 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...> - 2011-07-27 02:43:24
|
Revision: 4639 http://web-erp.svn.sourceforge.net/web-erp/?rev=4639&view=rev Author: daintree Date: 2011-07-27 02:43:17 +0000 (Wed, 27 Jul 2011) Log Message: ----------- quoting Modified Paths: -------------- trunk/PDFSuppTransListing.php trunk/StockReorderLevel.php trunk/WhereUsedInquiry.php trunk/Z_ReverseSuppPaymentRun.php trunk/includes/LanguageSetup.php Modified: trunk/PDFSuppTransListing.php =================================================================== --- trunk/PDFSuppTransListing.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/PDFSuppTransListing.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -1,130 +1,130 @@ -<?php - -/* $Id$*/ - -include('includes/SQL_CommonFunctions.inc'); -include ('includes/session.inc'); - -$InputError=0; -if (isset($_POST['Date']) AND !Is_Date($_POST['Date'])){ - $msg = _('The date must be specified in the format') . ' ' . $_SESSION['DefaultDateFormat']; - $InputError=1; - unset($_POST['Date']); -} - -if (!isset($_POST['Date'])){ - - $title = _('Supplier Transaction Listing'); - include ('includes/header.inc'); - - echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . $title . '" alt="" />' . ' ' - . _('Supplier Transaction Listing').'</p>'; - - if ($InputError==1){ - prnMsg($msg,'error'); - } - - echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; - echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<table class=selection> - <tr> - <td>' . _('Enter the date for which the transactions are to be listed') . ":</td> - <td><input type="text" name='Date' maxlength=10 size=10 class=date alt='" . $_SESSION['DefaultDateFormat'] . "' VALUE='" . Date($_SESSION['DefaultDateFormat']) . "'></td> - </tr>"; - - echo '<tr><td>' . _('Transaction type') . '</td><td>'; - - echo "<select name='TransType'>"; - - echo '<option value=20>' . _('Invoices') . '</option>'; - echo '<option value=21>' . _('Credit Notes') . '</option>'; - echo '<option value=22>' . _('Payments') . '</option>'; - - echo '</select></td></tr>'; - - echo '</select></td></tr> - </table> - <br /><div class="centre"><input type="submit" name="Go" value="' . _('Create PDF') . '"></div>'; - - include('includes/footer.inc'); - exit; -} else { - - include('includes/ConnectDB.inc'); -} - -$sql= "SELECT type, - supplierno, - suppreference, - trandate, - ovamount, - ovgst, - transtext - FROM supptrans - WHERE type='" . $_POST['TransType'] . "' - AND date_format(inputdate, '%Y-%m-%d')='".FormatDateForSQL($_POST['Date'])."'"; - -$result=DB_query($sql,$db,'','',false,false); - -if (DB_error_no($db)!=0){ - $title = _('Payment Listing'); - include('includes/header.inc'); - prnMsg(_('An error occurred getting the payments'),'error'); - if ($Debug==1){ - prnMsg(_('The SQL used to get the receipt header information that failed was') . ':<br />' . $SQL,'error'); - } - include('includes/footer.inc'); - exit; -} elseif (DB_num_rows($result) == 0){ - $title = _('Payment Listing'); - include('includes/header.inc'); - echo '<br />'; - prnMsg (_('There were no transactions found in the database for the date') . ' ' . $_POST['Date'] .'. '._('Please try again selecting a different date'), 'info'); - include('includes/footer.inc'); - exit; -} - -include('includes/PDFStarter.php'); - -/*PDFStarter.php has all the variables for page size and width set up depending on the users default preferences for paper size */ - -$pdf->addInfo('Title',_('Supplier Transaction Listing')); -$pdf->addInfo('Subject',_('Supplier transaction listing from') . ' ' . $_POST['Date'] ); -$line_height=12; -$PageNumber = 1; -$TotalCheques = 0; - -include ('includes/PDFSuppTransListingPageHeader.inc'); - -while ($myrow=DB_fetch_array($result)){ - - $sql="SELECT suppname FROM suppliers WHERE supplierid='" . $myrow['supplierno']."'"; - $supplierresult=DB_query($sql, $db); - $supplierrow=DB_fetch_array($supplierresult); - - $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,160,$FontSize,$supplierrow['suppname'], 'left'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+162,$YPos,80,$FontSize,$myrow['suppreference'], 'left'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+242,$YPos,70,$FontSize,ConvertSQLDate($myrow['trandate']), 'left'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+312,$YPos,70,$FontSize,number_format($myrow['ovamount'],2), 'right'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+382,$YPos,70,$FontSize,number_format($myrow['ovgst'],2), 'right'); - $LeftOvers = $pdf->addTextWrap($Left_Margin+452,$YPos,70,$FontSize,number_format($myrow['ovamount']+$myrow['ovgst'],2), 'right'); - - $YPos -= ($line_height); - $TotalCheques = $TotalCheques - $myrow['ovamount']; - - if ($YPos - (2 *$line_height) < $Bottom_Margin){ - /*Then set up a new page */ - $PageNumber++; - include ('includes/PDFChequeListingPageHeader.inc'); - } /*end of new page header */ -} /* end of while there are customer receipts in the batch to print */ - - -$YPos-=$line_height; -$LeftOvers = $pdf->addTextWrap($Left_Margin+452,$YPos,70,$FontSize,number_format(-$TotalCheques,2), 'right'); -$LeftOvers = $pdf->addTextWrap($Left_Margin+265,$YPos,300,$FontSize,_('Total') . ' ' . _('Transactions'), 'left'); - -$ReportFileName = $_SESSION['DatabaseName'] . '_SuppTransListing_' . date('Y-m-d').'.pdf'; -$pdf->OutputD($ReportFileName); -$pdf->__destruct(); +<?php + +/* $Id$*/ + +include('includes/SQL_CommonFunctions.inc'); +include ('includes/session.inc'); + +$InputError=0; +if (isset($_POST['Date']) AND !Is_Date($_POST['Date'])){ + $msg = _('The date must be specified in the format') . ' ' . $_SESSION['DefaultDateFormat']; + $InputError=1; + unset($_POST['Date']); +} + +if (!isset($_POST['Date'])){ + + $title = _('Supplier Transaction Listing'); + include ('includes/header.inc'); + + echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . $title . '" alt="" />' . ' ' + . _('Supplier Transaction Listing').'</p>'; + + if ($InputError==1){ + prnMsg($msg,'error'); + } + + echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; + echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; + echo '<table class=selection> + <tr> + <td>' . _('Enter the date for which the transactions are to be listed') . ':</td> + <td><input type="text" name="Date" maxlength="10" size="10" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '"></td> + <tr>'; + + echo '<tr><td>' . _('Transaction type') . '</td><td>'; + + echo "<select name='TransType'>"; + + echo '<option value=20>' . _('Invoices') . '</option>'; + echo '<option value=21>' . _('Credit Notes') . '</option>'; + echo '<option value=22>' . _('Payments') . '</option>'; + + echo '</select></td></tr>'; + + echo '</select></td></tr> + </table> + <br /><div class="centre"><input type="submit" name="Go" value="' . _('Create PDF') . '"></div>'; + + include('includes/footer.inc'); + exit; +} else { + + include('includes/ConnectDB.inc'); +} + +$sql= "SELECT type, + supplierno, + suppreference, + trandate, + ovamount, + ovgst, + transtext + FROM supptrans + WHERE type='" . $_POST['TransType'] . "' + AND date_format(inputdate, '%Y-%m-%d')='".FormatDateForSQL($_POST['Date'])."'"; + +$result=DB_query($sql,$db,'','',false,false); + +if (DB_error_no($db)!=0){ + $title = _('Payment Listing'); + include('includes/header.inc'); + prnMsg(_('An error occurred getting the payments'),'error'); + if ($Debug==1){ + prnMsg(_('The SQL used to get the receipt header information that failed was') . ':<br />' . $SQL,'error'); + } + include('includes/footer.inc'); + exit; +} elseif (DB_num_rows($result) == 0){ + $title = _('Payment Listing'); + include('includes/header.inc'); + echo '<br />'; + prnMsg (_('There were no transactions found in the database for the date') . ' ' . $_POST['Date'] .'. '._('Please try again selecting a different date'), 'info'); + include('includes/footer.inc'); + exit; +} + +include('includes/PDFStarter.php'); + +/*PDFStarter.php has all the variables for page size and width set up depending on the users default preferences for paper size */ + +$pdf->addInfo('Title',_('Supplier Transaction Listing')); +$pdf->addInfo('Subject',_('Supplier transaction listing from') . ' ' . $_POST['Date'] ); +$line_height=12; +$PageNumber = 1; +$TotalCheques = 0; + +include ('includes/PDFSuppTransListingPageHeader.inc'); + +while ($myrow=DB_fetch_array($result)){ + + $sql="SELECT suppname FROM suppliers WHERE supplierid='" . $myrow['supplierno']."'"; + $supplierresult=DB_query($sql, $db); + $supplierrow=DB_fetch_array($supplierresult); + + $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,160,$FontSize,$supplierrow['suppname'], 'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+162,$YPos,80,$FontSize,$myrow['suppreference'], 'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+242,$YPos,70,$FontSize,ConvertSQLDate($myrow['trandate']), 'left'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+312,$YPos,70,$FontSize,number_format($myrow['ovamount'],2), 'right'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+382,$YPos,70,$FontSize,number_format($myrow['ovgst'],2), 'right'); + $LeftOvers = $pdf->addTextWrap($Left_Margin+452,$YPos,70,$FontSize,number_format($myrow['ovamount']+$myrow['ovgst'],2), 'right'); + + $YPos -= ($line_height); + $TotalCheques = $TotalCheques - $myrow['ovamount']; + + if ($YPos - (2 *$line_height) < $Bottom_Margin){ + /*Then set up a new page */ + $PageNumber++; + include ('includes/PDFChequeListingPageHeader.inc'); + } /*end of new page header */ +} /* end of while there are customer receipts in the batch to print */ + + +$YPos-=$line_height; +$LeftOvers = $pdf->addTextWrap($Left_Margin+452,$YPos,70,$FontSize,number_format(-$TotalCheques,2), 'right'); +$LeftOvers = $pdf->addTextWrap($Left_Margin+265,$YPos,300,$FontSize,_('Total') . ' ' . _('Transactions'), 'left'); + +$ReportFileName = $_SESSION['DatabaseName'] . '_SuppTransListing_' . date('Y-m-d').'.pdf'; +$pdf->OutputD($ReportFileName); +$pdf->__destruct(); ?> \ No newline at end of file Modified: trunk/StockReorderLevel.php =================================================================== --- trunk/StockReorderLevel.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/StockReorderLevel.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -75,9 +75,9 @@ } - printf("<td>%s</td> - <td class=number>%s</td> - <td><input type="text" class='number' name=%s maxlength=10 size=10 VALUE=%s></td>", + printf('<td>%s</td> + <td class="number">%s</td> + <td><input type="text" class="number" name="%s" maxlength="10" size="10" value="%s" /></td>', $myrow['locationname'], number_format($myrow['quantity'],$myrow['decimalplaces']), $myrow['loccode'], @@ -91,7 +91,8 @@ } //end of while loop -echo '</table><br /><div class="centre"><input type="submit" name="UpdateData" value="' . _('Update') . '"><br /><br />'; +echo '</table> + <br /><div class="centre"><input type="submit" name="UpdateData" value="' . _('Update') . '" /><br /><br />'; echo '<a href="' . $rootpath . '/StockMovements.php?StockID=' . $StockID . '">' . _('Show Stock Movements') . '</a>'; echo '<br /><a href="' . $rootpath . '/StockUsage.php?StockID=' . $StockID . '">' . _('Show Stock Usage') . '</a>'; echo '<br /><a href="' . $rootpath . '/SelectSalesOrder.php?SelectedStockItem=' . $StockID . '">' . _('Search Outstanding Sales Orders') . '</a>'; Modified: trunk/WhereUsedInquiry.php =================================================================== --- trunk/WhereUsedInquiry.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/WhereUsedInquiry.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -35,9 +35,9 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($StockID)) { - echo _('Enter an Item Code') . ": <input type="text" name='StockID' size=21 maxlength=20 value='$StockID' >"; + echo _('Enter an Item Code') . ': <input type="text" name="StockID" size="21" maxlength="20" value="' . $StockID . '" />'; } else { - echo _('Enter an Item Code') . ": <input type="text" name='StockID' size=21 maxlength=20>"; + echo _('Enter an Item Code') . ': <input type="text" name="StockID" size="21" maxlength="20" />'; } echo "<input type=submit name='ShowWhereUsed' value='" . _('Show Where Used') . "'>"; @@ -62,12 +62,12 @@ echo '<table width=97% class=selection>'; - $tableheader = "<tr><th>" . _('Used By') . "</th> - <th>" . _('Work Centre') . "</th> - <th>" . _('Location') . "</th> - <th>" . _('Quantity Required') . "</th> - <th>" . _('Effective After') . "</th> - <th>" . _('Effective To') . '</th></tr>'; + $tableheader = '<tr><th>' . _('Used By') . '</th> + <th>' . _('Work Centre') . '</th> + <th>' . _('Location') . '</th> + <th>' . _('Quantity Required') . '</th> + <th>' . _('Effective After') . '</th> + <th>' . _('Effective To') . '</th></tr>'; echo $tableheader; $k=0; while ($myrow=DB_fetch_array($result)) { @@ -80,7 +80,7 @@ $k=1; } - echo "<td><a target='_blank' href='" . $rootpath . "/BOMInquiry.php?" . SID . "&StockID=" . $myrow['parent'] . "' alt='" . _('Show Bill Of Material') . "'>" . $myrow['parent']. ' - ' . $myrow['description']. '</a></td>'; + echo '<td><a target="_blank" href="' . $rootpath . '/BOMInquiry.php?StockID=' . $myrow['parent'] . '" alt="' . _('Show Bill Of Material') . '">' . $myrow['parent']. ' - ' . $myrow['description']. '</a></td>'; echo '<td>' . $myrow['workcentreadded']. '</td>'; echo '<td>' . $myrow['loccode']. '</td>'; echo '<td>' . $myrow['quantity']. '</td>'; Modified: trunk/Z_ReverseSuppPaymentRun.php =================================================================== --- trunk/Z_ReverseSuppPaymentRun.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/Z_ReverseSuppPaymentRun.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -85,7 +85,7 @@ echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<br />' . _('Enter the date of the payment run') . ": <input type="text" name='PaytDate' maxlength=11 size=11 value='" . $_POST['PaytDate'] . "'>"; +echo '<br />' . _('Enter the date of the payment run') . ': <input type="text" name="PaytDate" maxlength="11" size="11" value="' . $_POST['PaytDate'] . '">'; echo '<input type="submit" name="RevPayts" value="' . _('Reverse Supplier Payments on the Date Entered') . '">'; echo '</form>'; Modified: trunk/includes/LanguageSetup.php =================================================================== --- trunk/includes/LanguageSetup.php 2011-07-26 09:21:52 UTC (rev 4638) +++ trunk/includes/LanguageSetup.php 2011-07-27 02:43:17 UTC (rev 4639) @@ -27,22 +27,22 @@ if (function_exists('gettext')){ - //$Locale = setlocale (LC_ALL, $_SESSION['Language']); + if (defined('LC_MESSAGES')) { + $Locale = setlocale (LC_MESSAGES, $_SESSION['Language']); // Linux + } else { + $Locale = setlocale (LC_ALL, $_SESSION['Language']); // windows + } - $Locale = setlocale (LC_MESSAGES, $_SESSION['Language']); - //Turkish seems to be a special case if ($_SESSION['Language']=='tr_TR.utf8') { $Locale = setlocale(LC_CTYPE, 'C'); } - //$Locale = setlocale (LC_CTYPE, $_SESSION['Language']); - //$Locale = setlocale (LC_MESSAGES, $_SESSION['Language']); + $Locale = setlocale (LC_NUMERIC, 'en_US'); //currently need all decimal points etc to be as expected on webserver // possibly even if locale fails the language will still switch by using Language instead of locale variable putenv('LANG=' . $_SESSION['Language']); putenv('LANGUAGE=' . $_SESSION['Language']); - //putenv('LANG=$Language_Country'); bindtextdomain ('messages', $PathPrefix . 'locale'); textdomain ('messages'); bind_textdomain_codeset('messages', 'UTF-8'); @@ -92,4 +92,4 @@ } */ } -?> +?> \ 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...> - 2011-07-26 09:21:59
|
Revision: 4638 http://web-erp.svn.sourceforge.net/web-erp/?rev=4638&view=rev Author: daintree Date: 2011-07-26 09:21:52 +0000 (Tue, 26 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/CustomerAllocations.php trunk/CustomerBranches.php trunk/SalesCategories.php trunk/doc/Change.log Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2011-07-24 03:17:05 UTC (rev 4637) +++ trunk/CustomerAllocations.php 2011-07-26 09:21:52 UTC (rev 4638) @@ -4,9 +4,9 @@ /* Call this page with: - 1. A TransID to show the make up and to modify existing allocations. - 2. A DebtorNo to show all outstanding receipts or credits yet to be allocated. - 3. No parameters to show all outstanding credits and receipts yet to be allocated. + 1. A TransID to show the make up and to modify existing allocations. + 2. A DebtorNo to show all outstanding receipts or credits yet to be allocated. + 3. No parameters to show all outstanding credits and receipts yet to be allocated. */ include('includes/DefineCustAllocsClass.php'); @@ -216,22 +216,23 @@ $_POST['AllocTrans'] = $_GET['AllocTrans']; // Set AllocTrans when page first called $SQL= "SELECT systypes.typename, - debtortrans.type, - debtortrans.transno, - debtortrans.trandate, - debtortrans.debtorno, - debtorsmaster.name, - rate, - (debtortrans.ovamount+debtortrans.ovgst+debtortrans.ovfreight+debtortrans.ovdiscount) as total, - debtortrans.diffonexch, - debtortrans.alloc - FROM debtortrans, - systypes, - debtorsmaster - WHERE - debtortrans.type = systypes.typeid AND - debtortrans.debtorno = debtorsmaster.debtorno AND - debtortrans.id='" . $_POST['AllocTrans'] . "'"; + debtortrans.type, + debtortrans.transno, + debtortrans.trandate, + debtortrans.debtorno, + debtorsmaster.name, + debtortrans.rate, + (debtortrans.ovamount + debtortrans.ovgst + debtortrans.ovfreight + debtortrans.ovdiscount) as total, + debtortrans.diffonexch, + debtortrans.alloc, + currencies.decimalplaces + FROM debtortrans INNER JOIN systypes + ON debtortrans.type = systypes.typeid + INNER JOIN debtorsmaster + ON debtortrans.debtorno = debtorsmaster.debtorno + INNER JOIN currencies + ON debtorsmaster.currcode=currencies.currabrev + WHERE debtortrans.id='" . $_POST['AllocTrans'] . "'"; $Result = DB_query($SQL,$db); $myrow = DB_fetch_array($Result); DB_free_result($Result); @@ -246,93 +247,92 @@ $_SESSION['Alloc']->TransAmt = $myrow['total']; $_SESSION['Alloc']->PrevDiffOnExch = $myrow['diffonexch']; $_SESSION['Alloc']->TransDate = ConvertSQLDate($myrow['trandate']); + $_SESSION['Alloc']->CurrDecimalPlaces = $myrow['decimalplaces']; // First get transactions that have outstanding balances $SQL = "SELECT debtortrans.id, - typename, - transno, - trandate, - rate, - ovamount+ovgst+ovfreight+ovdiscount as total, - diffonexch, - alloc - FROM debtortrans, systypes - WHERE debtortrans.type = systypes.typeid - AND debtortrans.settled=0 + typename, + transno, + trandate, + rate, + ovamount+ovgst+ovfreight+ovdiscount as total, + diffonexch, + alloc + FROM debtortrans INNER JOIN systypes + ON debtortrans.type = systypes.typeid + WHERE debtortrans.settled=0 AND debtorno='" . $_SESSION['Alloc']->DebtorNo . "' ORDER BY debtortrans.trandate"; $Result = DB_query($SQL,$db); while ($myrow=DB_fetch_array($Result)) { - $_SESSION['Alloc']->add_to_AllocsAllocn ( - $myrow['id'], - $myrow['typename'], - $myrow['transno'], - ConvertSQLDate($myrow['trandate']), - 0, - $myrow['total'], - $myrow['rate'], - $myrow['diffonexch'], - $myrow['diffonexch'], - $myrow['alloc'], - 'NA' - ); + $_SESSION['Alloc']->add_to_AllocsAllocn ($myrow['id'], + $myrow['typename'], + $myrow['transno'], + ConvertSQLDate($myrow['trandate']), + 0, + $myrow['total'], + $myrow['rate'], + $myrow['diffonexch'], + $myrow['diffonexch'], + $myrow['alloc'], + 'NA'); } DB_free_result($Result); // Get trans previously allocated to by this trans - this will overwrite incomplete allocations above $SQL= "SELECT debtortrans.id, - typename, - transno, - trandate, - rate, - ovamount+ovgst+ovfreight+ovdiscount AS total, - diffonexch, - debtortrans.alloc-custallocns.amt AS prevallocs, - amt, - custallocns.id AS allocid - FROM debtortrans, - systypes, - custallocns - WHERE debtortrans.type = systypes.typeid AND - debtortrans.id=custallocns.transid_allocto AND - custallocns.transid_allocfrom='" . $_POST['AllocTrans'] . "' AND - debtorno='" . $_SESSION['Alloc']->DebtorNo . "' + typename, + transno, + trandate, + rate, + ovamount+ovgst+ovfreight+ovdiscount AS total, + diffonexch, + debtortrans.alloc-custallocns.amt AS prevallocs, + amt, + custallocns.id AS allocid + FROM debtortrans INNER JOIN systypes + ON debtortrans.type = systypes.typeid + INNER JOIN custallocns + ON debtortrans.id=custallocns.transid_allocto + WHERE custallocns.transid_allocfrom='" . $_POST['AllocTrans'] . "' + AND debtorno='" . $_SESSION['Alloc']->DebtorNo . "' ORDER BY debtortrans.trandate"; + $Result=DB_query($SQL,$db); while ($myrow=DB_fetch_array($Result)) { $DiffOnExchThisOne = ($myrow['amt']/$myrow['rate']) - ($myrow['amt']/$_SESSION['Alloc']->TransExRate); - $_SESSION['Alloc']->add_to_AllocsAllocn ( - $myrow['id'], - $myrow['typename'], - $myrow['transno'], - ConvertSQLDate($myrow['trandate']), - $myrow['amt'], - $myrow['total'], - $myrow['rate'], - $DiffOnExchThisOne, - ($myrow['diffonexch'] - $DiffOnExchThisOne), - $myrow['prevallocs'], - $myrow['allocid'] - ); + $_SESSION['Alloc']->add_to_AllocsAllocn ($myrow['id'], + $myrow['typename'], + $myrow['transno'], + ConvertSQLDate($myrow['trandate']), + $myrow['amt'], + $myrow['total'], + $myrow['rate'], + $DiffOnExchThisOne, + ($myrow['diffonexch'] - $DiffOnExchThisOne), + $myrow['prevallocs'], + $myrow['allocid']); } DB_free_result($Result); } - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Allocate Receipt') . '" alt="" />' . ' ' . _('Allocate Receipts') . '</p>'; + echo '<p class="page_title_text"> + <img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Allocate Receipt') . '" alt="" />' . ' ' . _('Allocate Receipts') . ' + </p>'; $TableHeader = '<tr> - <th>' . _('Trans Type') . '</th> - <th>' . _('Customer') . '</th> - <th>' . _('Cust No') . '</th> - <th>' . _('Number') . '</th> - <th>' . _('Date') . '</th> - <th>' . _('Total') . '</th> - <th>' . _('To Alloc') . '</th> - <th>' . _('Action') . '</th> - </tr>'; + <th>' . _('Trans Type') . '</th> + <th>' . _('Customer') . '</th> + <th>' . _('Cust No') . '</th> + <th>' . _('Number') . '</th> + <th>' . _('Date') . '</th> + <th>' . _('Total') . '</th> + <th>' . _('To Alloc') . '</th> + <th>' . _('Action') . '</th> + </tr>'; if (isset($_POST['AllocTrans'])) { // Page called with trans number @@ -342,11 +342,11 @@ // Show trans already allocated and potential new allocations - echo '<p><table class=selection>'; - echo '<tr><th colspan=7><div class="centre"><font color=blue><b>' . $_SESSION['Alloc']->DebtorNo . ' - ' . $_SESSION['Alloc']->CustomerName . '</b></div>'; + echo '<p><table class="selection">'; + echo '<tr><th colspan="7"><div class="centre"><font color="blue"><b>' . $_SESSION['Alloc']->DebtorNo . ' - ' . $_SESSION['Alloc']->CustomerName . '</b></div>'; if ($_SESSION['Alloc']->TransExRate != 1) { - echo '<br />'._('Amount in customer currency').' <b>' . + echo '<br />' . _('Amount in customer currency') . ' <b>' . number_format(-$_SESSION['Alloc']->TransAmt,2) . '</b><i> ('._('converted into local currency at an exchange rate of'). ' ' . $_SESSION['Alloc']->TransExRate . ')</i>'; Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2011-07-24 03:17:05 UTC (rev 4637) +++ trunk/CustomerBranches.php 2011-07-26 09:21:52 UTC (rev 4638) @@ -580,7 +580,7 @@ } - echo '<input type=hidden name="DebtorNo" value="'. $DebtorNo . '" />'; + echo '<input type="hidden" name="DebtorNo" value="'. $DebtorNo . '" />'; echo '<tr> Modified: trunk/SalesCategories.php =================================================================== --- trunk/SalesCategories.php 2011-07-24 03:17:05 UTC (rev 4637) +++ trunk/SalesCategories.php 2011-07-26 09:21:52 UTC (rev 4638) @@ -21,7 +21,7 @@ } else if (isset($_POST['ParentCategory'])){ $ParentCategory = mb_strtoupper($_POST['ParentCategory']); } -if( isset($ParentCategory) AND $ParentCategory == 0 ) { +if(isset($ParentCategory) AND $ParentCategory == 0 ) { unset($ParentCategory); } @@ -112,7 +112,7 @@ unset($_POST['SalesCatName']); unset($EditName); -} elseif (isset($_GET['delete']) && $EditName == 1) { +} elseif (isset($_GET['delete']) AND $EditName == 1) { //the link to delete a selected record was clicked instead of the submit button // PREVENT DELETES IF DEPENDENT RECORDS IN 'StockMaster' @@ -121,16 +121,14 @@ $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0]>0) { - prnMsg(_('Cannot delete this sales category because stock items have been added to this category') . - '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('items under to this category'),'warn'); + prnMsg(_('Cannot delete this sales category because stock items have been added to this category') . '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('items under to this category'),'warn'); } else { $sql = "SELECT COUNT(*) FROM salescat WHERE parentcatid='".$SelectedCategory."'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0]>0) { - prnMsg(_('Cannot delete this sales category because sub categories have been added to this category') . - '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('sub categories'),'warn'); + prnMsg(_('Cannot delete this sales category because sub categories have been added to this category') . '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('sub categories'),'warn'); } else { $sql="DELETE FROM salescat WHERE salescatid='".$SelectedCategory."'"; $result = DB_query($sql,$db); @@ -142,13 +140,10 @@ unset($_GET['delete']); unset($EditName); } elseif( isset($_POST['submit']) && isset($_POST['AddStockID']) ) { - $sql = "INSERT INTO salescatprod ( - stockid, - salescatid - ) VALUES ( - '". $_POST['AddStockID']."', - '".(isset($ParentCategory)?($ParentCategory):('NULL'))."' - )"; + $sql = "INSERT INTO salescatprod (stockid, + salescatid + ) VALUES ('". $_POST['AddStockID']."', + '".(isset($ParentCategory)?($ParentCategory):('NULL'))."')"; $result = DB_query($sql,$db); prnMsg(_('Stock item') . ' ' . $_POST['AddStockID'] . ' ' . _('has been added') . ' !','success'); @@ -166,17 +161,20 @@ // ---------------------------------------------------------------------------------------- // Calculate Path for navigation -$CategoryPath = '<a href="'.$_SERVER['PHP_SELF'] . '?ParentCategory=NULL">' . _('Main') . '</a>' . " \\ "; +$CategoryPath = '<a href="'.$_SERVER['PHP_SELF'] . '?ParentCategory=0">' . _('Main') . '</a>' . " \\ "; $TempPath = ''; +if ($ParentCategory == null){ + $ParentCategory =0; +} if (isset($ParentCategory)) { $TmpParentID = $ParentCategory; } $LastParentName = ''; -for($Buzy = (isset($TmpParentID) && ($TmpParentID <> '')); +for($Buzy = (isset($TmpParentID) AND ($TmpParentID != 0)); $Buzy == true; - $Buzy = (isset($TmpParentID) && ($TmpParentID <> '')) ) { + $Buzy = (isset($TmpParentID) AND ($TmpParentID != 0)) ) { $sql = "SELECT parentcatid, salescatname FROM salescat WHERE salescatid='".$TmpParentID."'"; $result = DB_query($sql,$db); if( $result ) { @@ -209,10 +207,10 @@ or deletion of the records*/ $sql = "SELECT salescatid, - salescatname - FROM salescat - WHERE parentcatid". (isset($ParentCategory)?('='.$ParentCategory):' is NULL') . " - ORDER BY salescatname"; + salescatname + FROM salescat + WHERE parentcatid". (isset($ParentCategory)?('='.$ParentCategory):' =0') . " + ORDER BY salescatname"; $result = DB_query($sql,$db); @@ -220,7 +218,7 @@ if (DB_num_rows($result) == 0) { prnMsg(_('There are no categories defined at this level.')); } else { - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr><th>' . _('Sub Category') . '</th></tr>'; $k=0; //row colour counter @@ -257,16 +255,16 @@ <td><a href="%sSelectedCategory=%s&delete=yes&EditName=1&ParentCategory=%s">' . _('Delete') . '</td> <td>%s</td> </tr>', - $myrow['salescatname'], - $_SERVER['PHP_SELF'] . '?', - $myrow['salescatid'], - $_SERVER['PHP_SELF'] . '?', - $myrow['salescatid'], - $ParentCategory, - $_SERVER['PHP_SELF'] . '?', - $myrow['salescatid'], - $ParentCategory, - $CatImgLink); + $myrow['salescatname'], + $_SERVER['PHP_SELF'] . '?', + $myrow['salescatid'], + $_SERVER['PHP_SELF'] . '?', + $myrow['salescatid'], + $ParentCategory, + $_SERVER['PHP_SELF'] . '?', + $myrow['salescatid'], + $ParentCategory, + $CatImgLink); } //END WHILE LIST LOOP echo '</table>'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-24 03:17:05 UTC (rev 4637) +++ trunk/doc/Change.log 2011-07-26 09:21:52 UTC (rev 4638) @@ -1,5 +1,8 @@ webERP Change Log + +26/7/11 SalesCategories.php fixed display of active categories - this script is not used by webERP - only by Mo Kelly's joomla cart application + 24/7/11 Version 4.04.5 24/7/11 Phil: CustomerBranches.php check for existance of Shippers and TaxGroups This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-26 09:21:59
|
Revision: 4638 http://web-erp.svn.sourceforge.net/web-erp/?rev=4638&view=rev Author: daintree Date: 2011-07-26 09:21:52 +0000 (Tue, 26 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/CustomerAllocations.php trunk/CustomerBranches.php trunk/SalesCategories.php trunk/doc/Change.log Modified: trunk/CustomerAllocations.php =================================================================== --- trunk/CustomerAllocations.php 2011-07-24 03:17:05 UTC (rev 4637) +++ trunk/CustomerAllocations.php 2011-07-26 09:21:52 UTC (rev 4638) @@ -4,9 +4,9 @@ /* Call this page with: - 1. A TransID to show the make up and to modify existing allocations. - 2. A DebtorNo to show all outstanding receipts or credits yet to be allocated. - 3. No parameters to show all outstanding credits and receipts yet to be allocated. + 1. A TransID to show the make up and to modify existing allocations. + 2. A DebtorNo to show all outstanding receipts or credits yet to be allocated. + 3. No parameters to show all outstanding credits and receipts yet to be allocated. */ include('includes/DefineCustAllocsClass.php'); @@ -216,22 +216,23 @@ $_POST['AllocTrans'] = $_GET['AllocTrans']; // Set AllocTrans when page first called $SQL= "SELECT systypes.typename, - debtortrans.type, - debtortrans.transno, - debtortrans.trandate, - debtortrans.debtorno, - debtorsmaster.name, - rate, - (debtortrans.ovamount+debtortrans.ovgst+debtortrans.ovfreight+debtortrans.ovdiscount) as total, - debtortrans.diffonexch, - debtortrans.alloc - FROM debtortrans, - systypes, - debtorsmaster - WHERE - debtortrans.type = systypes.typeid AND - debtortrans.debtorno = debtorsmaster.debtorno AND - debtortrans.id='" . $_POST['AllocTrans'] . "'"; + debtortrans.type, + debtortrans.transno, + debtortrans.trandate, + debtortrans.debtorno, + debtorsmaster.name, + debtortrans.rate, + (debtortrans.ovamount + debtortrans.ovgst + debtortrans.ovfreight + debtortrans.ovdiscount) as total, + debtortrans.diffonexch, + debtortrans.alloc, + currencies.decimalplaces + FROM debtortrans INNER JOIN systypes + ON debtortrans.type = systypes.typeid + INNER JOIN debtorsmaster + ON debtortrans.debtorno = debtorsmaster.debtorno + INNER JOIN currencies + ON debtorsmaster.currcode=currencies.currabrev + WHERE debtortrans.id='" . $_POST['AllocTrans'] . "'"; $Result = DB_query($SQL,$db); $myrow = DB_fetch_array($Result); DB_free_result($Result); @@ -246,93 +247,92 @@ $_SESSION['Alloc']->TransAmt = $myrow['total']; $_SESSION['Alloc']->PrevDiffOnExch = $myrow['diffonexch']; $_SESSION['Alloc']->TransDate = ConvertSQLDate($myrow['trandate']); + $_SESSION['Alloc']->CurrDecimalPlaces = $myrow['decimalplaces']; // First get transactions that have outstanding balances $SQL = "SELECT debtortrans.id, - typename, - transno, - trandate, - rate, - ovamount+ovgst+ovfreight+ovdiscount as total, - diffonexch, - alloc - FROM debtortrans, systypes - WHERE debtortrans.type = systypes.typeid - AND debtortrans.settled=0 + typename, + transno, + trandate, + rate, + ovamount+ovgst+ovfreight+ovdiscount as total, + diffonexch, + alloc + FROM debtortrans INNER JOIN systypes + ON debtortrans.type = systypes.typeid + WHERE debtortrans.settled=0 AND debtorno='" . $_SESSION['Alloc']->DebtorNo . "' ORDER BY debtortrans.trandate"; $Result = DB_query($SQL,$db); while ($myrow=DB_fetch_array($Result)) { - $_SESSION['Alloc']->add_to_AllocsAllocn ( - $myrow['id'], - $myrow['typename'], - $myrow['transno'], - ConvertSQLDate($myrow['trandate']), - 0, - $myrow['total'], - $myrow['rate'], - $myrow['diffonexch'], - $myrow['diffonexch'], - $myrow['alloc'], - 'NA' - ); + $_SESSION['Alloc']->add_to_AllocsAllocn ($myrow['id'], + $myrow['typename'], + $myrow['transno'], + ConvertSQLDate($myrow['trandate']), + 0, + $myrow['total'], + $myrow['rate'], + $myrow['diffonexch'], + $myrow['diffonexch'], + $myrow['alloc'], + 'NA'); } DB_free_result($Result); // Get trans previously allocated to by this trans - this will overwrite incomplete allocations above $SQL= "SELECT debtortrans.id, - typename, - transno, - trandate, - rate, - ovamount+ovgst+ovfreight+ovdiscount AS total, - diffonexch, - debtortrans.alloc-custallocns.amt AS prevallocs, - amt, - custallocns.id AS allocid - FROM debtortrans, - systypes, - custallocns - WHERE debtortrans.type = systypes.typeid AND - debtortrans.id=custallocns.transid_allocto AND - custallocns.transid_allocfrom='" . $_POST['AllocTrans'] . "' AND - debtorno='" . $_SESSION['Alloc']->DebtorNo . "' + typename, + transno, + trandate, + rate, + ovamount+ovgst+ovfreight+ovdiscount AS total, + diffonexch, + debtortrans.alloc-custallocns.amt AS prevallocs, + amt, + custallocns.id AS allocid + FROM debtortrans INNER JOIN systypes + ON debtortrans.type = systypes.typeid + INNER JOIN custallocns + ON debtortrans.id=custallocns.transid_allocto + WHERE custallocns.transid_allocfrom='" . $_POST['AllocTrans'] . "' + AND debtorno='" . $_SESSION['Alloc']->DebtorNo . "' ORDER BY debtortrans.trandate"; + $Result=DB_query($SQL,$db); while ($myrow=DB_fetch_array($Result)) { $DiffOnExchThisOne = ($myrow['amt']/$myrow['rate']) - ($myrow['amt']/$_SESSION['Alloc']->TransExRate); - $_SESSION['Alloc']->add_to_AllocsAllocn ( - $myrow['id'], - $myrow['typename'], - $myrow['transno'], - ConvertSQLDate($myrow['trandate']), - $myrow['amt'], - $myrow['total'], - $myrow['rate'], - $DiffOnExchThisOne, - ($myrow['diffonexch'] - $DiffOnExchThisOne), - $myrow['prevallocs'], - $myrow['allocid'] - ); + $_SESSION['Alloc']->add_to_AllocsAllocn ($myrow['id'], + $myrow['typename'], + $myrow['transno'], + ConvertSQLDate($myrow['trandate']), + $myrow['amt'], + $myrow['total'], + $myrow['rate'], + $DiffOnExchThisOne, + ($myrow['diffonexch'] - $DiffOnExchThisOne), + $myrow['prevallocs'], + $myrow['allocid']); } DB_free_result($Result); } - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Allocate Receipt') . '" alt="" />' . ' ' . _('Allocate Receipts') . '</p>'; + echo '<p class="page_title_text"> + <img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Allocate Receipt') . '" alt="" />' . ' ' . _('Allocate Receipts') . ' + </p>'; $TableHeader = '<tr> - <th>' . _('Trans Type') . '</th> - <th>' . _('Customer') . '</th> - <th>' . _('Cust No') . '</th> - <th>' . _('Number') . '</th> - <th>' . _('Date') . '</th> - <th>' . _('Total') . '</th> - <th>' . _('To Alloc') . '</th> - <th>' . _('Action') . '</th> - </tr>'; + <th>' . _('Trans Type') . '</th> + <th>' . _('Customer') . '</th> + <th>' . _('Cust No') . '</th> + <th>' . _('Number') . '</th> + <th>' . _('Date') . '</th> + <th>' . _('Total') . '</th> + <th>' . _('To Alloc') . '</th> + <th>' . _('Action') . '</th> + </tr>'; if (isset($_POST['AllocTrans'])) { // Page called with trans number @@ -342,11 +342,11 @@ // Show trans already allocated and potential new allocations - echo '<p><table class=selection>'; - echo '<tr><th colspan=7><div class="centre"><font color=blue><b>' . $_SESSION['Alloc']->DebtorNo . ' - ' . $_SESSION['Alloc']->CustomerName . '</b></div>'; + echo '<p><table class="selection">'; + echo '<tr><th colspan="7"><div class="centre"><font color="blue"><b>' . $_SESSION['Alloc']->DebtorNo . ' - ' . $_SESSION['Alloc']->CustomerName . '</b></div>'; if ($_SESSION['Alloc']->TransExRate != 1) { - echo '<br />'._('Amount in customer currency').' <b>' . + echo '<br />' . _('Amount in customer currency') . ' <b>' . number_format(-$_SESSION['Alloc']->TransAmt,2) . '</b><i> ('._('converted into local currency at an exchange rate of'). ' ' . $_SESSION['Alloc']->TransExRate . ')</i>'; Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2011-07-24 03:17:05 UTC (rev 4637) +++ trunk/CustomerBranches.php 2011-07-26 09:21:52 UTC (rev 4638) @@ -580,7 +580,7 @@ } - echo '<input type=hidden name="DebtorNo" value="'. $DebtorNo . '" />'; + echo '<input type="hidden" name="DebtorNo" value="'. $DebtorNo . '" />'; echo '<tr> Modified: trunk/SalesCategories.php =================================================================== --- trunk/SalesCategories.php 2011-07-24 03:17:05 UTC (rev 4637) +++ trunk/SalesCategories.php 2011-07-26 09:21:52 UTC (rev 4638) @@ -21,7 +21,7 @@ } else if (isset($_POST['ParentCategory'])){ $ParentCategory = mb_strtoupper($_POST['ParentCategory']); } -if( isset($ParentCategory) AND $ParentCategory == 0 ) { +if(isset($ParentCategory) AND $ParentCategory == 0 ) { unset($ParentCategory); } @@ -112,7 +112,7 @@ unset($_POST['SalesCatName']); unset($EditName); -} elseif (isset($_GET['delete']) && $EditName == 1) { +} elseif (isset($_GET['delete']) AND $EditName == 1) { //the link to delete a selected record was clicked instead of the submit button // PREVENT DELETES IF DEPENDENT RECORDS IN 'StockMaster' @@ -121,16 +121,14 @@ $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0]>0) { - prnMsg(_('Cannot delete this sales category because stock items have been added to this category') . - '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('items under to this category'),'warn'); + prnMsg(_('Cannot delete this sales category because stock items have been added to this category') . '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('items under to this category'),'warn'); } else { $sql = "SELECT COUNT(*) FROM salescat WHERE parentcatid='".$SelectedCategory."'"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0]>0) { - prnMsg(_('Cannot delete this sales category because sub categories have been added to this category') . - '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('sub categories'),'warn'); + prnMsg(_('Cannot delete this sales category because sub categories have been added to this category') . '<br /> ' . _('There are') . ' ' . $myrow[0] . ' ' . _('sub categories'),'warn'); } else { $sql="DELETE FROM salescat WHERE salescatid='".$SelectedCategory."'"; $result = DB_query($sql,$db); @@ -142,13 +140,10 @@ unset($_GET['delete']); unset($EditName); } elseif( isset($_POST['submit']) && isset($_POST['AddStockID']) ) { - $sql = "INSERT INTO salescatprod ( - stockid, - salescatid - ) VALUES ( - '". $_POST['AddStockID']."', - '".(isset($ParentCategory)?($ParentCategory):('NULL'))."' - )"; + $sql = "INSERT INTO salescatprod (stockid, + salescatid + ) VALUES ('". $_POST['AddStockID']."', + '".(isset($ParentCategory)?($ParentCategory):('NULL'))."')"; $result = DB_query($sql,$db); prnMsg(_('Stock item') . ' ' . $_POST['AddStockID'] . ' ' . _('has been added') . ' !','success'); @@ -166,17 +161,20 @@ // ---------------------------------------------------------------------------------------- // Calculate Path for navigation -$CategoryPath = '<a href="'.$_SERVER['PHP_SELF'] . '?ParentCategory=NULL">' . _('Main') . '</a>' . " \\ "; +$CategoryPath = '<a href="'.$_SERVER['PHP_SELF'] . '?ParentCategory=0">' . _('Main') . '</a>' . " \\ "; $TempPath = ''; +if ($ParentCategory == null){ + $ParentCategory =0; +} if (isset($ParentCategory)) { $TmpParentID = $ParentCategory; } $LastParentName = ''; -for($Buzy = (isset($TmpParentID) && ($TmpParentID <> '')); +for($Buzy = (isset($TmpParentID) AND ($TmpParentID != 0)); $Buzy == true; - $Buzy = (isset($TmpParentID) && ($TmpParentID <> '')) ) { + $Buzy = (isset($TmpParentID) AND ($TmpParentID != 0)) ) { $sql = "SELECT parentcatid, salescatname FROM salescat WHERE salescatid='".$TmpParentID."'"; $result = DB_query($sql,$db); if( $result ) { @@ -209,10 +207,10 @@ or deletion of the records*/ $sql = "SELECT salescatid, - salescatname - FROM salescat - WHERE parentcatid". (isset($ParentCategory)?('='.$ParentCategory):' is NULL') . " - ORDER BY salescatname"; + salescatname + FROM salescat + WHERE parentcatid". (isset($ParentCategory)?('='.$ParentCategory):' =0') . " + ORDER BY salescatname"; $result = DB_query($sql,$db); @@ -220,7 +218,7 @@ if (DB_num_rows($result) == 0) { prnMsg(_('There are no categories defined at this level.')); } else { - echo '<table class=selection>'; + echo '<table class="selection">'; echo '<tr><th>' . _('Sub Category') . '</th></tr>'; $k=0; //row colour counter @@ -257,16 +255,16 @@ <td><a href="%sSelectedCategory=%s&delete=yes&EditName=1&ParentCategory=%s">' . _('Delete') . '</td> <td>%s</td> </tr>', - $myrow['salescatname'], - $_SERVER['PHP_SELF'] . '?', - $myrow['salescatid'], - $_SERVER['PHP_SELF'] . '?', - $myrow['salescatid'], - $ParentCategory, - $_SERVER['PHP_SELF'] . '?', - $myrow['salescatid'], - $ParentCategory, - $CatImgLink); + $myrow['salescatname'], + $_SERVER['PHP_SELF'] . '?', + $myrow['salescatid'], + $_SERVER['PHP_SELF'] . '?', + $myrow['salescatid'], + $ParentCategory, + $_SERVER['PHP_SELF'] . '?', + $myrow['salescatid'], + $ParentCategory, + $CatImgLink); } //END WHILE LIST LOOP echo '</table>'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-24 03:17:05 UTC (rev 4637) +++ trunk/doc/Change.log 2011-07-26 09:21:52 UTC (rev 4638) @@ -1,5 +1,8 @@ webERP Change Log + +26/7/11 SalesCategories.php fixed display of active categories - this script is not used by webERP - only by Mo Kelly's joomla cart application + 24/7/11 Version 4.04.5 24/7/11 Phil: CustomerBranches.php check for existance of Shippers and TaxGroups This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-24 03:17:15
|
Revision: 4637 http://web-erp.svn.sourceforge.net/web-erp/?rev=4637&view=rev Author: daintree Date: 2011-07-24 03:17:05 +0000 (Sun, 24 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/UpgradeDatabase.php trunk/doc/Change.log trunk/install/save.php trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po trunk/locale/el_GR.utf8/LC_MESSAGES/messages.mo trunk/locale/el_GR.utf8/LC_MESSAGES/messages.po trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.utf8/LC_MESSAGES/messages.po trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.mo trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.mo trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.po trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po trunk/locale/it_IT.utf8/LC_MESSAGES/messages.mo trunk/locale/it_IT.utf8/LC_MESSAGES/messages.po trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.mo trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.po trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.mo trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.po trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.mo trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.po trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.mo trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.po trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.po trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.mo trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.po trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.po trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.mo trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.po trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-07-24 00:14:27 UTC (rev 4636) +++ trunk/UpgradeDatabase.php 2011-07-24 03:17:05 UTC (rev 4637) @@ -9,7 +9,7 @@ if (!isset($_POST['DoUpgrade'])){ - prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts'),'info'); + prnMsg(_('This script will perform any modifications to the database required to allow the additional functionality in later scripts.') . '<br />' . _('You should do a backup now before proceeding!'),'info'); echo '<p><form method="post" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-07-24 00:14:27 UTC (rev 4636) +++ trunk/doc/Change.log 2011-07-24 03:17:05 UTC (rev 4637) @@ -1,7 +1,10 @@ webERP Change Log -23/7/11 Phil: CustLoginSetup.php and SuppLoginSetup can no longer edit user accounts - only add -23/7/11 Phil: Updated Hungarian/German/Portuguese/Japanese translations from launchpad. +24/7/11 Version 4.04.5 + +24/7/11 Phil: CustomerBranches.php check for existance of Shippers and TaxGroups +24/7/11 Phil: CustLoginSetup.php and SuppLoginSetup can no longer edit user accounts - only add +24/7/11 Phil: Updated Hungarian/German/Portuguese/Japanese translations from launchpad. 22/7/11 Phil: Make link from SelectCustomer.php to CounterSales.php so that sales together with payment can be entered directly against a selected customer. 22/7/11 Phil: Change SelectCreditItems.php and SelectCustomer.php to select customer and branch using form variables in the same way as SelectOrderItems.php to avoid difficulties with spaces and hyphens - and to be consistent. 17/7/11 Phil: error in taxes GL posting SelectCreditItems.php Modified: trunk/install/save.php =================================================================== --- trunk/install/save.php 2011-07-24 00:14:27 UTC (rev 4636) +++ trunk/install/save.php 2011-07-24 03:17:05 UTC (rev 4637) @@ -264,7 +264,6 @@ //$msg holds the text of the new config.php file $msg = "<?php\n\n"; -$msg .= "/* \$Revision: 1.7 $ */\n"; $msg .= "// User configurable variables\n"; $msg .= "//---------------------------------------------------\n\n"; $msg .= "//DefaultLanguage to use for the login screen and the setup of new users - the users language selection will override\n"; Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-07-24 00:14:27 UTC (rev 4636) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-07-24 03:17:05 UTC (rev 4637) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-07-02 20:11+1200\n" +"POT-Creation-Date: 2011-07-24 12:24+1200\n" "PO-Revision-Date: 2011-02-07 15:33+0000\n" "Last-Translator: Tim Schofield <Unknown>\n" "Language-Team: Czech <cs...@li...>\n" @@ -122,7 +122,7 @@ msgid "The SQL that was used to insert the account group was" msgstr "SQL, který byl použit pro vložení na účet skupina byla" -#: AccountGroups.php:158 AccountSections.php:116 PaymentMethods.php:106 +#: AccountGroups.php:158 AccountSections.php:116 PaymentMethods.php:103 msgid "Record inserted" msgstr "Záznam vložen" @@ -144,16 +144,16 @@ #: CustomerBranches.php:286 CustomerBranches.php:296 CustomerBranches.php:306 #: CustomerBranches.php:316 Customers.php:312 Customers.php:321 #: Customers.php:329 Customers.php:337 CustomerTypes.php:147 -#: CustomerTypes.php:157 Factors.php:134 FixedAssetCategories.php:130 -#: GLAccounts.php:80 GLAccounts.php:94 Locations.php:244 Locations.php:252 -#: Locations.php:261 Locations.php:269 Locations.php:277 Locations.php:285 -#: Locations.php:293 Locations.php:301 MRPDemandTypes.php:87 -#: PaymentMethods.php:140 PaymentTerms.php:147 PaymentTerms.php:154 +#: CustomerTypes.php:157 Factors.php:134 FixedAssetCategories.php:129 +#: 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 MRPDemandTypes.php:87 +#: PaymentMethods.php:138 PaymentTerms.php:144 PaymentTerms.php:151 #: PcExpenses.php:152 SalesCategories.php:125 SalesCategories.php:133 #: SalesPeople.php:149 SalesPeople.php:156 SalesTypes.php:150 #: SalesTypes.php:160 Shippers.php:82 Shippers.php:94 StockCategories.php:179 -#: Stocks.php:475 Stocks.php:484 Stocks.php:492 Stocks.php:500 Stocks.php:508 -#: Stocks.php:516 Suppliers.php:609 Suppliers.php:618 Suppliers.php:626 +#: Stocks.php:481 Stocks.php:490 Stocks.php:498 Stocks.php:506 Stocks.php:514 +#: Stocks.php:522 Suppliers.php:609 Suppliers.php:618 Suppliers.php:626 #: SupplierTypes.php:145 TaxCategories.php:131 TaxGroups.php:127 #: TaxGroups.php:134 TaxProvinces.php:125 UnitsOfMeasure.php:138 #: WorkCentres.php:89 WorkCentres.php:95 WWW_Access.php:83 @@ -207,16 +207,16 @@ #: Areas.php:144 AuditTrail.php:11 BankReconciliation.php:13 #: BOMExtendedQty.php:259 BOMIndented.php:246 BOMIndentedReverse.php:236 #: BOMInquiry.php:171 BOMListing.php:112 BOMs.php:208 BOMs.php:798 -#: COGSGLPostings.php:18 CompanyPreferences.php:153 CounterSales.php:1983 -#: CounterSales.php:2107 Credit_Invoice.php:255 CreditStatus.php:20 +#: COGSGLPostings.php:18 CompanyPreferences.php:153 CounterSales.php:1995 +#: CounterSales.php:2116 Credit_Invoice.php:255 CreditStatus.php:20 #: Currencies.php:28 CustEDISetup.php:17 DailyBankTransactions.php:10 -#: DebtorsAtPeriodEnd.php:124 DiscountCategories.php:10 -#: DiscountCategories.php:128 DiscountMatrix.php:16 EDIMessageFormat.php:104 +#: DebtorsAtPeriodEnd.php:125 DiscountCategories.php:10 +#: DiscountCategories.php:131 DiscountMatrix.php:16 EDIMessageFormat.php:104 #: FixedAssetLocations.php:9 FixedAssetRegister.php:13 -#: FixedAssetRegister.php:238 FixedAssetTransfer.php:31 FormDesigner.php:129 +#: FixedAssetRegister.php:237 FixedAssetTransfer.php:31 FormDesigner.php:129 #: GLBalanceSheet.php:351 GLBudgets.php:28 GLJournal.php:228 -#: InventoryPlanning.php:374 InventoryPlanningPrefSupplier.php:474 -#: Labels.php:117 Labels.php:273 MRPReport.php:515 OutstandingGRNs.php:150 +#: InventoryPlanning.php:373 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:183 PDFPickingList.php:28 #: PDFPrintLabel.php:131 PDFStockLocTransfer.php:21 @@ -226,10 +226,10 @@ #: PurchData.php:268 RecurringSalesOrders.php:310 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:202 -#: SelectCreditItems.php:270 SelectCustomer.php:323 SelectGLAccount.php:19 -#: SelectGLAccount.php:79 SelectOrderItems.php:618 SelectOrderItems.php:1463 -#: SelectOrderItems.php:1583 SelectProduct.php:485 SelectSalesOrder.php:454 +#: SelectCompletedOrder.php:11 SelectContract.php:78 SelectCreditItems.php:208 +#: SelectCreditItems.php:275 SelectCustomer.php:339 SelectGLAccount.php:19 +#: SelectGLAccount.php:79 SelectOrderItems.php:618 SelectOrderItems.php:1511 +#: SelectOrderItems.php:1633 SelectProduct.php:485 SelectSalesOrder.php:454 #: SelectSupplier.php:9 SelectSupplier.php:192 SelectWorkOrder.php:9 #: SelectWorkOrder.php:145 ShipmentCosting.php:11 Shipments.php:17 #: Shippers.php:123 Shippers.php:159 Shipt_Select.php:8 @@ -256,7 +256,7 @@ msgstr "V pořadí TB" #: AccountGroups.php:232 AccountGroups.php:378 GLProfit_Loss.php:6 -#: GLProfit_Loss.php:105 GLProfit_Loss.php:106 GLProfit_Loss.php:157 +#: GLProfit_Loss.php:113 GLProfit_Loss.php:114 GLProfit_Loss.php:165 #: SelectGLAccount.php:45 SelectGLAccount.php:59 msgid "Profit and Loss" msgstr "Zisky a ztráty" @@ -272,12 +272,12 @@ #: CompanyPreferences.php:469 CompanyPreferences.php:471 #: ContractCosting.php:194 CustomerBranches.php:410 Customers.php:597 #: Customers.php:865 Customers.php:873 Customers.php:876 -#: DeliveryDetails.php:1064 DeliveryDetails.php:1104 DeliveryDetails.php:1107 -#: GLTransInquiry.php:69 MRPCalendar.php:220 MRP.php:529 MRP.php:533 -#: MRP.php:537 MRP.php:541 PaymentMethods.php:199 PaymentMethods.php:200 -#: PaymentMethods.php:201 PaymentMethods.php:264 PaymentMethods.php:270 -#: PaymentMethods.php:276 PcAuthorizeExpenses.php:239 PDFChequeListing.php:62 -#: PDFDeliveryDifferences.php:64 PDFDIFOT.php:67 +#: DeliveryDetails.php:1063 DeliveryDetails.php:1103 DeliveryDetails.php:1106 +#: GLTransInquiry.php:68 MRPCalendar.php:221 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:239 PDFChequeListing.php:62 +#: PDFDeliveryDifferences.php:65 PDFDIFOT.php:75 #: PO_AuthorisationLevels.php:132 PO_AuthorisationLevels.php:137 #: PO_Header.php:761 PO_PDFPurchOrder.php:370 PO_PDFPurchOrder.php:373 #: PurchData.php:187 PurchData.php:489 PurchData.php:492 @@ -286,17 +286,16 @@ #: SalesAnalReptCols.php:404 SalesAnalRepts.php:404 SalesAnalRepts.php:407 #: SalesAnalRepts.php:430 SalesAnalRepts.php:433 SalesAnalRepts.php:456 #: SalesAnalRepts.php:459 SalesPeople.php:208 SalesPeople.php:316 -#: SalesPeople.php:318 SelectProduct.php:374 ShipmentCosting.php:627 -#: Stocks.php:878 Stocks.php:880 Stocks.php:898 Stocks.php:900 -#: SuppContractChgs.php:83 SuppLoginSetup.php:508 SuppLoginSetup.php:510 -#: SystemParameters.php:383 SystemParameters.php:406 SystemParameters.php:422 -#: SystemParameters.php:485 SystemParameters.php:493 SystemParameters.php:533 -#: SystemParameters.php:606 SystemParameters.php:615 SystemParameters.php:623 -#: SystemParameters.php:641 SystemParameters.php:648 SystemParameters.php:775 -#: SystemParameters.php:906 SystemParameters.php:908 SystemParameters.php:918 -#: SystemParameters.php:920 SystemParameters.php:974 SystemParameters.php:986 -#: SystemParameters.php:988 TaxGroups.php:293 TaxGroups.php:296 -#: TaxGroups.php:345 WWW_Users.php:592 WWW_Users.php:594 +#: SalesPeople.php:318 SelectProduct.php:374 ShipmentCosting.php:630 +#: Stocks.php:888 Stocks.php:890 Stocks.php:908 Stocks.php:910 +#: SuppContractChgs.php:83 SystemParameters.php:383 SystemParameters.php:406 +#: SystemParameters.php:422 SystemParameters.php:485 SystemParameters.php:493 +#: SystemParameters.php:533 SystemParameters.php:606 SystemParameters.php:615 +#: SystemParameters.php:623 SystemParameters.php:641 SystemParameters.php:648 +#: SystemParameters.php:775 SystemParameters.php:906 SystemParameters.php:908 +#: SystemParameters.php:918 SystemParameters.php:920 SystemParameters.php:974 +#: SystemParameters.php:986 SystemParameters.php:988 TaxGroups.php:293 +#: TaxGroups.php:296 TaxGroups.php:345 WWW_Users.php:592 WWW_Users.php:594 msgid "Yes" msgstr "Ano" @@ -308,12 +307,12 @@ #: CompanyPreferences.php:468 CompanyPreferences.php:472 #: ContractCosting.php:192 CustomerBranches.php:410 Customers.php:596 #: Customers.php:861 Customers.php:872 Customers.php:875 -#: DeliveryDetails.php:1065 DeliveryDetails.php:1105 DeliveryDetails.php:1108 -#: GLTransInquiry.php:123 MRPCalendar.php:222 MRP.php:527 MRP.php:531 -#: MRP.php:535 MRP.php:539 PaymentMethods.php:199 PaymentMethods.php:200 -#: PaymentMethods.php:201 PaymentMethods.php:265 PaymentMethods.php:271 -#: PaymentMethods.php:277 PcAuthorizeExpenses.php:237 PDFChequeListing.php:61 -#: PDFDeliveryDifferences.php:63 PDFDIFOT.php:66 +#: DeliveryDetails.php:1064 DeliveryDetails.php:1104 DeliveryDetails.php:1107 +#: GLTransInquiry.php:122 MRPCalendar.php:223 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:237 PDFChequeListing.php:61 +#: PDFDeliveryDifferences.php:64 PDFDIFOT.php:74 #: PO_AuthorisationLevels.php:134 PO_AuthorisationLevels.php:139 #: PO_Header.php:760 PO_PDFPurchOrder.php:371 PO_PDFPurchOrder.php:374 #: PurchData.php:190 PurchData.php:490 PurchData.php:493 @@ -322,17 +321,16 @@ #: SalesAnalReptCols.php:405 SalesAnalRepts.php:403 SalesAnalRepts.php:406 #: SalesAnalRepts.php:429 SalesAnalRepts.php:432 SalesAnalRepts.php:455 #: SalesAnalRepts.php:458 SalesPeople.php:208 SalesPeople.php:321 -#: SalesPeople.php:323 SelectProduct.php:376 ShipmentCosting.php:628 -#: Stocks.php:873 Stocks.php:875 Stocks.php:893 Stocks.php:895 -#: SuppContractChgs.php:85 SuppLoginSetup.php:507 SuppLoginSetup.php:511 -#: SystemParameters.php:384 SystemParameters.php:407 SystemParameters.php:423 -#: SystemParameters.php:486 SystemParameters.php:494 SystemParameters.php:534 -#: SystemParameters.php:607 SystemParameters.php:616 SystemParameters.php:624 -#: SystemParameters.php:642 SystemParameters.php:649 SystemParameters.php:776 -#: SystemParameters.php:905 SystemParameters.php:909 SystemParameters.php:917 -#: SystemParameters.php:921 SystemParameters.php:975 SystemParameters.php:985 -#: SystemParameters.php:989 TaxGroups.php:294 TaxGroups.php:297 -#: TaxGroups.php:347 WWW_Users.php:591 WWW_Users.php:595 +#: SalesPeople.php:323 SelectProduct.php:376 ShipmentCosting.php:631 +#: Stocks.php:883 Stocks.php:885 Stocks.php:903 Stocks.php:905 +#: SuppContractChgs.php:85 SystemParameters.php:384 SystemParameters.php:407 +#: SystemParameters.php:423 SystemParameters.php:486 SystemParameters.php:494 +#: SystemParameters.php:534 SystemParameters.php:607 SystemParameters.php:616 +#: SystemParameters.php:624 SystemParameters.php:642 SystemParameters.php:649 +#: SystemParameters.php:776 SystemParameters.php:905 SystemParameters.php:909 +#: SystemParameters.php:917 SystemParameters.php:921 SystemParameters.php:975 +#: SystemParameters.php:985 SystemParameters.php:989 TaxGroups.php:294 +#: TaxGroups.php:297 TaxGroups.php:347 WWW_Users.php:591 WWW_Users.php:595 #: includes/PDFLowGPPageHeader.inc:44 includes/PDFTaxPageHeader.inc:35 msgid "No" msgstr "Ne" @@ -341,58 +339,61 @@ #: AddCustomerNotes.php:132 AddCustomerTypeNotes.php:123 Areas.php:164 #: BankAccounts.php:223 BOMs.php:144 COGSGLPostings.php:107 #: COGSGLPostings.php:204 CreditStatus.php:172 Currencies.php:269 -#: CustLoginSetup.php:219 CustomerBranches.php:414 Customers.php:940 -#: Customers.php:973 CustomerTypes.php:202 EDIMessageFormat.php:150 -#: Factors.php:299 FixedAssetCategories.php:180 FixedAssetLocations.php:102 -#: FreightCosts.php:240 GeocodeSetup.php:170 GLAccounts.php:308 GLTags.php:82 -#: Labels.php:414 Locations.php:377 MRPDemands.php:305 MRPDemandTypes.php:120 -#: PaymentMethods.php:202 PaymentTerms.php:203 PcAssignCashToTab.php:255 +#: CustomerBranches.php:414 Customers.php:940 Customers.php:973 +#: CustomerTypes.php:202 EDIMessageFormat.php:150 Factors.php:300 +#: FixedAssetCategories.php:182 FixedAssetLocations.php:102 +#: FreightCosts.php:240 GeocodeSetup.php:173 GLAccounts.php:312 GLTags.php:83 +#: Labels.php:411 Locations.php:381 MRPDemands.php:305 MRPDemandTypes.php:120 +#: PaymentMethods.php:200 PaymentTerms.php:201 PcAssignCashToTab.php:255 #: PcClaimExpensesFromTab.php:252 PcExpenses.php:208 PcTabs.php:234 #: PcTypeTabs.php:172 PO_AuthorisationLevels.php:149 Prices_Customer.php:280 #: Prices.php:246 PurchData.php:202 SalesCategories.php:256 #: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:219 -#: SalesTypes.php:216 SecurityTokens.php:110 SelectCustomer.php:614 -#: SelectCustomer.php:632 SelectCustomer.php:656 SelectCustomer.php:673 -#: SelectCustomer.php:696 SelectCustomer.php:712 Shippers.php:144 +#: SalesTypes.php:216 SecurityTokens.php:110 SelectCustomer.php:668 +#: SelectCustomer.php:686 SelectCustomer.php:710 SelectCustomer.php:727 +#: SelectCustomer.php:751 SelectCustomer.php:768 Shippers.php:144 #: StockCategories.php:240 SupplierContacts.php:157 SupplierTypes.php:189 -#: SuppLoginSetup.php:271 SuppTransGLAnalysis.php:118 TaxAuthorities.php:172 -#: TaxCategories.php:182 TaxGroups.php:178 TaxProvinces.php:176 -#: UnitsOfMeasure.php:188 WorkCentres.php:137 WWW_Access.php:123 -#: WWW_Users.php:306 includes/InputSerialItems.php:88 -#: includes/OutputSerialItems.php:21 +#: SuppTransGLAnalysis.php:118 TaxAuthorities.php:172 TaxCategories.php:182 +#: TaxGroups.php:178 TaxProvinces.php:176 UnitsOfMeasure.php:188 +#: WorkCentres.php:137 WWW_Access.php:123 WWW_Users.php:306 +#: includes/InputSerialItems.php:88 includes/OutputSerialItems.php:21 #, php-format msgid "Edit" msgstr "Upravit" +#: AccountGroups.php:265 +#, fuzzy +msgid "Are you sure you wish to delete this account group?" +msgstr "Jste si jisti, že chcete smazat tento obor?" + #: AccountGroups.php:265 AccountSections.php:200 AddCustomerContacts.php:150 #: AddCustomerNotes.php:133 AddCustomerTypeNotes.php:124 Areas.php:165 #: BankAccounts.php:224 BOMs.php:146 COGSGLPostings.php:108 #: COGSGLPostings.php:205 ContractBOM.php:266 ContractOtherReqts.php:117 -#: CounterSales.php:781 Credit_Invoice.php:384 CreditStatus.php:173 -#: Currencies.php:272 CustLoginSetup.php:220 CustomerReceipt.php:863 -#: Customers.php:974 CustomerTypes.php:203 DiscountCategories.php:215 -#: DiscountMatrix.php:173 EDIMessageFormat.php:151 -#: FixedAssetCategories.php:181 FreightCosts.php:241 GeocodeSetup.php:171 -#: GLAccounts.php:309 GLJournal.php:382 GLTags.php:83 Labels.php:414 -#: Locations.php:378 MRPDemands.php:306 MRPDemandTypes.php:121 -#: PaymentMethods.php:203 Payments.php:1006 PaymentTerms.php:204 +#: CounterSales.php:793 Credit_Invoice.php:381 CreditStatus.php:173 +#: Currencies.php:272 CustomerReceipt.php:863 Customers.php:974 +#: CustomerTypes.php:203 DiscountCategories.php:219 DiscountMatrix.php:175 +#: EDIMessageFormat.php:151 FixedAssetCategories.php:183 FreightCosts.php:241 +#: GeocodeSetup.php:174 GLAccounts.php:313 GLJournal.php:382 GLTags.php:84 +#: Labels.php:411 Locations.php:382 MRPDemands.php:306 MRPDemandTypes.php:121 +#: PaymentMethods.php:201 Payments.php:1015 PaymentTerms.php:202 #: PcAssignCashToTab.php:259 PcClaimExpensesFromTab.php:253 PcExpenses.php:209 #: PcExpensesTypeTab.php:185 PcTabs.php:235 PcTypeTabs.php:173 -#: PO_AuthorisationLevels.php:151 PO_Items.php:688 Prices_Customer.php:281 +#: PO_AuthorisationLevels.php:151 PO_Items.php:684 Prices_Customer.php:281 #: Prices.php:247 PurchData.php:203 SalesAnalReptCols.php:294 #: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 #: SalesGLPostings.php:246 SalesPeople.php:220 SalesTypes.php:217 -#: SecurityTokens.php:111 SelectCreditItems.php:745 SelectCustomer.php:615 -#: SelectCustomer.php:633 SelectCustomer.php:657 SelectCustomer.php:674 -#: SelectCustomer.php:697 SelectCustomer.php:713 SelectOrderItems.php:1390 +#: SecurityTokens.php:111 SelectCreditItems.php:754 SelectCustomer.php:669 +#: SelectCustomer.php:687 SelectCustomer.php:711 SelectCustomer.php:728 +#: SelectCustomer.php:752 SelectCustomer.php:769 SelectOrderItems.php:1430 #: Shipments.php:423 Shippers.php:145 SpecialOrder.php:581 #: StockCategories.php:241 StockCategories.php:535 SuppContractChgs.php:91 #: SuppCreditGRNs.php:92 SuppFixedAssetChgs.php:84 SuppInvGRNs.php:132 -#: SupplierContacts.php:158 SupplierTypes.php:191 SuppLoginSetup.php:272 -#: SuppShiptChgs.php:89 SuppTransGLAnalysis.php:119 TaxAuthorities.php:173 -#: TaxCategories.php:183 TaxGroups.php:179 TaxProvinces.php:177 -#: UnitsOfMeasure.php:189 WorkCentres.php:138 WOSerialNos.php:303 -#: WWW_Access.php:124 WWW_Users.php:307 includes/InputSerialItemsKeyed.php:59 +#: SupplierContacts.php:158 SupplierTypes.php:191 SuppShiptChgs.php:89 +#: SuppTransGLAnalysis.php:119 TaxAuthorities.php:173 TaxCategories.php:183 +#: TaxGroups.php:179 TaxProvinces.php:177 UnitsOfMeasure.php:189 +#: WorkCentres.php:138 WOSerialNos.php:303 WWW_Access.php:124 +#: WWW_Users.php:307 includes/InputSerialItemsKeyed.php:59 #: includes/OutputSerialItems.php:98 #, php-format msgid "Delete" @@ -418,7 +419,7 @@ msgid "The account group name does not exist in the database" msgstr "Účet jméno skupiny neexistuje v databázi" -#: AccountGroups.php:313 GLAccounts.php:239 GLAccounts.php:288 +#: AccountGroups.php:313 GLAccounts.php:243 GLAccounts.php:292 #: Z_ImportGLAccountGroups.php:26 msgid "Account Group" msgstr "Účetní skupina" @@ -438,16 +439,16 @@ #: AccountGroups.php:399 AccountSections.php:264 AddCustomerContacts.php:244 #: AddCustomerNotes.php:211 AddCustomerTypeNotes.php:191 Areas.php:220 #: BankAccounts.php:391 BOMs.php:730 COGSGLPostings.php:342 -#: CreditStatus.php:250 Currencies.php:393 CustLoginSetup.php:439 +#: CreditStatus.php:250 Currencies.php:393 CustLoginSetup.php:257 #: DiscountMatrix.php:136 EDIMessageFormat.php:247 #: FixedAssetCategories.php:322 FixedAssetLocations.php:148 -#: FreightCosts.php:339 GeocodeSetup.php:267 GLAccounts.php:258 -#: Locations.php:561 MRPDemands.php:411 MRPDemandTypes.php:180 +#: FreightCosts.php:339 GeocodeSetup.php:270 GLAccounts.php:262 +#: Locations.php:567 MRPDemands.php:411 MRPDemandTypes.php:185 #: OffersReceived.php:52 OffersReceived.php:129 PaymentMethods.php:282 -#: PaymentTerms.php:284 PO_AuthorisationLevels.php:244 Prices_Customer.php:350 +#: PaymentTerms.php:293 PO_AuthorisationLevels.php:244 Prices_Customer.php:350 #: SalesAnalReptCols.php:510 SalesAnalRepts.php:494 SalesGLPostings.php:416 #: SalesPeople.php:329 Shippers.php:196 StockCategories.php:557 -#: SupplierContacts.php:258 SuppLoginSetup.php:529 TaxAuthorities.php:312 +#: SupplierContacts.php:258 SuppLoginSetup.php:287 TaxAuthorities.php:312 #: TaxCategories.php:233 TaxProvinces.php:227 UnitsOfMeasure.php:240 #: WorkCentres.php:261 WWW_Users.php:625 msgid "Enter Information" @@ -514,8 +515,8 @@ msgid "Could not retrieve the requested section please try again." msgstr "Nepodařilo se získat požadovanou sekci prosím zkuste to znovu." -#: AddCustomerContacts.php:6 AddCustomerContacts.php:61 SelectCustomer.php:607 -#: SelectCustomer.php:639 +#: AddCustomerContacts.php:6 AddCustomerContacts.php:61 SelectCustomer.php:661 +#: SelectCustomer.php:693 msgid "Customer Contacts" msgstr "Zákazník Kontakty" @@ -558,10 +559,10 @@ #: AddCustomerContacts.php:61 AddCustomerNotes.php:50 #: AddCustomerTypeNotes.php:48 Areas.php:73 CustomerTypes.php:69 -#: DeliveryDetails.php:771 Factors.php:105 FixedAssetItems.php:236 +#: DeliveryDetails.php:770 Factors.php:105 FixedAssetItems.php:243 #: PcAssignCashToTab.php:88 PcClaimExpensesFromTab.php:79 PcExpenses.php:93 -#: PcTabs.php:102 PcTypeTabs.php:60 PO_Items.php:356 SalesAnalReptCols.php:129 -#: SalesPeople.php:96 SalesTypes.php:66 Stocks.php:355 Suppliers.php:510 +#: PcTabs.php:102 PcTypeTabs.php:60 PO_Items.php:354 SalesAnalReptCols.php:129 +#: SalesPeople.php:96 SalesTypes.php:66 Stocks.php:361 Suppliers.php:510 #: SupplierTypes.php:67 msgid "has been updated" msgstr "byla aktualizována" @@ -576,7 +577,7 @@ #: AddCustomerContacts.php:128 CompanyPreferences.php:222 #: CustomerBranches.php:368 Customers.php:928 Customers.php:935 -#: SalesPeople.php:191 SelectCustomer.php:609 StockDispatch.php:185 +#: SalesPeople.php:191 SelectCustomer.php:663 StockDispatch.php:185 #: StockDispatch.php:197 SupplierContacts.php:145 SupplierCredit.php:441 #: SupplierInvoice.php:408 SuppTransGLAnalysis.php:103 #: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 @@ -585,7 +586,7 @@ msgstr "Název" #: AddCustomerContacts.php:129 AddCustomerContacts.php:220 Customers.php:929 -#: Customers.php:936 SelectCustomer.php:610 WWW_Access.php:107 +#: Customers.php:936 SelectCustomer.php:664 WWW_Access.php:107 #: WWW_Access.php:168 msgid "Role" msgstr "Roli" @@ -595,15 +596,14 @@ msgstr "Telefonní číslo" #: AddCustomerContacts.php:131 AddCustomerContacts.php:232 -#: CustLoginSetup.php:193 CustomerBranches.php:374 CustomerBranches.php:716 -#: CustomerInquiry.php:249 Customers.php:931 Customers.php:938 -#: EmailCustTrans.php:15 EmailCustTrans.php:63 Factors.php:226 Factors.php:263 -#: Locations.php:533 OrderDetails.php:105 PDFRemittanceAdvice.php:251 -#: PO_PDFPurchOrder.php:357 PO_PDFPurchOrder.php:360 PrintCustTrans.php:694 -#: PrintCustTrans.php:914 PrintCustTrans.php:961 -#: PrintCustTransPortrait.php:715 PrintCustTransPortrait.php:935 -#: PrintCustTransPortrait.php:979 SelectCustomer.php:612 -#: SupplierContacts.php:149 SupplierContacts.php:253 SuppLoginSetup.php:237 +#: CustomerBranches.php:374 CustomerBranches.php:718 CustomerInquiry.php:249 +#: Customers.php:931 Customers.php:938 EmailCustTrans.php:15 +#: EmailCustTrans.php:63 Factors.php:225 Factors.php:263 Locations.php:539 +#: OrderDetails.php:104 PDFRemittanceAdvice.php:251 PO_PDFPurchOrder.php:357 +#: PO_PDFPurchOrder.php:360 PrintCustTrans.php:709 PrintCustTrans.php:931 +#: PrintCustTrans.php:980 PrintCustTransPortrait.php:728 +#: PrintCustTransPortrait.php:949 PrintCustTransPortrait.php:997 +#: SelectCustomer.php:666 SupplierContacts.php:149 SupplierContacts.php:253 #: UserSettings.php:180 WWW_Users.php:262 includes/PDFPickingListHeader.inc:25 #: includes/PDFStatementPageHeader.inc:67 includes/PDFTransPageHeader.inc:82 #: includes/PDFTransPageHeaderPortrait.inc:109 @@ -614,7 +614,7 @@ #: AddCustomerContacts.php:132 AddCustomerContacts.php:238 Customers.php:932 #: Customers.php:939 PcAssignCashToTab.php:220 PcAssignCashToTab.php:346 #: PcAuthorizeExpenses.php:91 PcClaimExpensesFromTab.php:214 -#: PcClaimExpensesFromTab.php:372 PcReportTab.php:327 SelectCustomer.php:613 +#: PcClaimExpensesFromTab.php:372 PcReportTab.php:327 SelectCustomer.php:667 #: SystemParameters.php:322 WOSerialNos.php:280 WOSerialNos.php:282 msgid "Notes" msgstr "Bere na vědomí" @@ -632,20 +632,20 @@ msgid "Contact Code" msgstr "Kontakt kód" -#: AddCustomerContacts.php:214 Factors.php:220 SupplierContacts.php:225 +#: AddCustomerContacts.php:214 Factors.php:219 SupplierContacts.php:225 msgid "Contact Name" msgstr "Jméno kontaktní osoby" #: AddCustomerContacts.php:226 Contracts.php:777 PDFRemittanceAdvice.php:247 -#: PO_Header.php:965 PO_Header.php:1035 SelectCreditItems.php:223 -#: SelectCustomer.php:463 SelectOrderItems.php:647 +#: PO_Header.php:965 PO_Header.php:1035 SelectCreditItems.php:230 +#: SelectCustomer.php:487 SelectOrderItems.php:647 #: includes/PDFStatementPageHeader.inc:63 includes/PDFTransPageHeader.inc:81 #: includes/PDFTransPageHeaderPortrait.inc:105 msgid "Phone" msgstr "Telefon" -#: AddCustomerNotes.php:6 AddCustomerNotes.php:50 SelectCustomer.php:649 -#: SelectCustomer.php:680 +#: AddCustomerNotes.php:6 AddCustomerNotes.php:50 SelectCustomer.php:703 +#: SelectCustomer.php:734 msgid "Customer Notes" msgstr "Zákazník bere na vědomí" @@ -682,17 +682,17 @@ #: BankMatching.php:231 BankReconciliation.php:198 BankReconciliation.php:270 #: ContractCosting.php:169 CustomerAllocations.php:331 #: CustomerAllocations.php:357 CustomerInquiry.php:192 -#: CustomerTransInquiry.php:90 GLAccountInquiry.php:154 -#: GLAccountReport.php:369 GLTransInquiry.php:41 MRPCalendar.php:215 -#: PaymentAllocations.php:77 PcAssignCashToTab.php:216 +#: CustomerTransInquiry.php:90 GLAccountInquiry.php:152 +#: GLAccountReport.php:349 GLTransInquiry.php:40 MRPCalendar.php:216 +#: PaymentAllocations.php:62 PcAssignCashToTab.php:216 #: PcAuthorizeExpenses.php:87 PDFRemittanceAdvice.php:308 -#: PrintCustTrans.php:793 PrintCustTransPortrait.php:817 ReverseGRN.php:378 -#: ShipmentCosting.php:508 ShipmentCosting.php:579 Shipments.php:466 +#: PrintCustTrans.php:809 PrintCustTransPortrait.php:829 ReverseGRN.php:378 +#: ShipmentCosting.php:510 ShipmentCosting.php:581 Shipments.php:466 #: StockDispatch.php:187 StockDispatch.php:199 StockLocMovements.php:83 #: StockMovements.php:92 StockSerialItemResearch.php:79 #: SupplierAllocations.php:454 SupplierAllocations.php:559 #: SupplierAllocations.php:630 SupplierInquiry.php:201 -#: SupplierTransInquiry.php:89 includes/PDFQuotationPageHeader.inc:91 +#: SupplierTransInquiry.php:89 includes/PDFQuotationPageHeader.inc:92 #: includes/PDFQuotationPortraitPageHeader.inc:90 #: includes/PDFStatementPageHeader.inc:169 includes/PDFTaxPageHeader.inc:36 #: includes/PDFTransPageHeader.inc:48 @@ -701,7 +701,7 @@ msgstr "Datum" #: AddCustomerNotes.php:114 AddCustomerTypeNotes.php:105 PcReportTab.php:173 -#: Stocks.php:882 UpgradeDatabase.php:171 UpgradeDatabase.php:174 +#: Stocks.php:892 UpgradeDatabase.php:171 UpgradeDatabase.php:174 #: UpgradeDatabase.php:177 UpgradeDatabase.php:180 UpgradeDatabase.php:183 #: UpgradeDatabase.php:186 UpgradeDatabase.php:189 UpgradeDatabase.php:192 #: Z_Upgrade_3.10-3.11.php:62 Z_Upgrade_3.10-3.11.php:66 @@ -733,7 +733,7 @@ msgid "Contact Note" msgstr "Kontakt Poznámka:" -#: AddCustomerTypeNotes.php:5 SelectCustomer.php:689 +#: AddCustomerTypeNotes.php:5 SelectCustomer.php:744 msgid "Customer Type (Group) Notes" msgstr "Typ zákazníka (Group) Poznámky" @@ -741,7 +741,7 @@ msgid "The Contact priority must be an integer." msgstr "Prioritou Kontakt musí být celé číslo." -#: AddCustomerTypeNotes.php:48 SelectCustomer.php:719 +#: AddCustomerTypeNotes.php:48 SelectCustomer.php:775 msgid "Customer Group Notes" msgstr "Zákaznická skupina bere na vědomí" @@ -793,21 +793,21 @@ #: AgedDebtors.php:270 AgedDebtors.php:369 AgedDebtors.php:434 #: AgedSuppliers.php:107 BOMExtendedQty.php:149 BOMIndented.php:150 #: BOMIndentedReverse.php:141 BOMListing.php:44 BOMListing.php:55 -#: DebtorsAtPeriodEnd.php:56 DebtorsAtPeriodEnd.php:68 GLBalanceSheet.php:90 -#: GLBalanceSheet.php:128 GLProfit_Loss.php:157 GLTagProfit_Loss.php:172 -#: GLTrialBalance.php:151 InventoryPlanning.php:99 InventoryPlanning.php:174 -#: InventoryPlanning.php:209 InventoryPlanning.php:257 -#: InventoryPlanning.php:295 InventoryPlanningPrefSupplier.php:208 -#: InventoryPlanningPrefSupplier.php:276 InventoryPlanningPrefSupplier.php:310 -#: InventoryPlanningPrefSupplier.php:355 InventoryPlanningPrefSupplier.php:401 -#: InventoryQuantities.php:81 InventoryValuation.php:78 -#: MailInventoryValuation.php:115 MRPPlannedPurchaseOrders.php:114 -#: MRPPlannedWorkOrders.php:105 MRPReport.php:147 MRPReport.php:508 +#: DebtorsAtPeriodEnd.php:57 DebtorsAtPeriodEnd.php:69 GLBalanceSheet.php:90 +#: GLBalanceSheet.php:128 GLProfit_Loss.php:165 GLTagProfit_Loss.php:186 +#: GLTrialBalance.php:155 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 #: MRPReschedules.php:45 MRPReschedules.php:57 MRPShortages.php:155 -#: MRPShortages.php:167 OutstandingGRNs.php:48 OutstandingGRNs.php:60 +#: MRPShortages.php:167 OutstandingGRNs.php:53 OutstandingGRNs.php:65 #: PDFCustomerList.php:18 PDFCustomerList.php:230 PDFCustomerList.php:242 -#: PDFLowGP.php:20 PDFStockCheckComparison.php:35 -#: PDFStockCheckComparison.php:61 PDFStockCheckComparison.php:262 +#: PDFLowGP.php:20 PDFStockCheckComparison.php:32 +#: PDFStockCheckComparison.php:58 PDFStockCheckComparison.php:263 #: ReorderLevel.php:57 SelectAsset.php:37 SelectProduct.php:39 #: StockCheck.php:65 StockCheck.php:139 SupplierTenders.php:326 #: SuppPriceList.php:118 includes/PDFPaymentRun_PymtFooter.php:149 @@ -815,7 +815,7 @@ msgstr "Problém" #: AgedDebtors.php:272 CustomerInquiry.php:85 CustomerInquiry.php:109 -#: DebtorsAtPeriodEnd.php:58 +#: DebtorsAtPeriodEnd.php:59 msgid "The customer details could not be retrieved by the SQL because" msgstr "Zákazník podrobnosti se nepodařilo získat do SQL, protože" @@ -823,29 +823,29 @@ #: AgedSuppliers.php:110 AgedSuppliers.php:192 BOMExtendedQty.php:152 #: BOMExtendedQty.php:246 BOMIndented.php:153 BOMIndented.php:234 #: BOMIndentedReverse.php:145 BOMIndentedReverse.php:222 BOMListing.php:47 -#: Credit_Invoice.php:184 DebtorsAtPeriodEnd.php:59 DebtorsAtPeriodEnd.php:71 +#: Credit_Invoice.php:184 DebtorsAtPeriodEnd.php:60 DebtorsAtPeriodEnd.php:72 #: FTP_RadioBeacon.php:187 GetStockImage.php:154 GLBalanceSheet.php:93 -#: GLBalanceSheet.php:131 GLBalanceSheet.php:294 GLProfit_Loss.php:160 -#: GLProfit_Loss.php:172 GLTagProfit_Loss.php:175 GLTagProfit_Loss.php:187 -#: GLTrialBalance.php:154 GLTrialBalance.php:166 InventoryPlanning.php:102 -#: InventoryPlanning.php:177 InventoryPlanning.php:212 -#: InventoryPlanning.php:260 InventoryPlanning.php:298 -#: InventoryPlanning.php:361 InventoryPlanningPrefSupplier.php:211 -#: InventoryPlanningPrefSupplier.php:279 InventoryPlanningPrefSupplier.php:313 -#: InventoryPlanningPrefSupplier.php:358 InventoryPlanningPrefSupplier.php:404 -#: InventoryPlanningPrefSupplier.php:460 InventoryQuantities.php:84 -#: InventoryQuantities.php:95 InventoryValuation.php:81 -#: InventoryValuation.php:92 MailInventoryValuation.php:118 -#: MailInventoryValuation.php:214 MRPPlannedPurchaseOrders.php:117 -#: MRPPlannedPurchaseOrders.php:128 MRPPlannedWorkOrders.php:108 -#: MRPPlannedWorkOrders.php:119 MRPPlannedWorkOrders.php:306 MRPReport.php:39 +#: GLBalanceSheet.php:131 GLBalanceSheet.php:294 GLProfit_Loss.php:168 +#: GLProfit_Loss.php:180 GLTagProfit_Loss.php:190 GLTagProfit_Loss.php:203 +#: GLTrialBalance.php:158 GLTrialBalance.php:170 InventoryPlanning.php:101 +#: InventoryPlanning.php:176 InventoryPlanning.php:211 +#: InventoryPlanning.php:259 InventoryPlanning.php:297 +#: InventoryPlanning.php:360 InventoryPlanningPrefSupplier.php:204 +#: InventoryPlanningPrefSupplier.php:272 InventoryPlanningPrefSupplier.php:306 +#: InventoryPlanningPrefSupplier.php:351 InventoryPlanningPrefSupplier.php:397 +#: InventoryPlanningPrefSupplier.php:453 InventoryQuantities.php:87 +#: InventoryQuantities.php:98 InventoryValuation.php:81 +#: InventoryValuation.php:92 MailInventoryValuation.php:117 +#: MailInventoryValuation.php:213 MRPPlannedPurchaseOrders.php:117 +#: MRPPlannedPurchaseOrders.php:128 MRPPlannedWorkOrders.php:109 +#: MRPPlannedWorkOrders.php:120 MRPPlannedWorkOrders.php:307 MRPReport.php:39 #: MRPReport.php:50 MRPReport.php:150 MRPReschedules.php:48 #: MRPReschedules.php:60 MRPShortages.php:158 MRPShortages.php:170 -#: OutstandingGRNs.php:51 OutstandingGRNs.php:63 PDFCustomerList.php:233 -#: PDFCustomerList.php:245 PDFGrn.php:123 PDFLowGP.php:60 PDFLowGP.php:72 -#: PDFPriceList.php:124 PDFQuotation.php:234 PDFQuotationPortrait.php:235 -#: PDFRemittanceAdvice.php:84 PDFStockCheckComparison.php:39 -#: PDFStockCheckComparison.php:65 PDFStockCheckComparison.php:266 +#: OutstandingGRNs.php:56 OutstandingGRNs.php:68 PDFCustomerList.php:233 +#: PDFCustomerList.php:245 PDFGrn.php:123 PDFLowGP.php:59 PDFLowGP.php:71 +#: PDFPriceList.php:124 PDFQuotation.php:250 PDFQuotationPortrait.php:264 +#: PDFRemittanceAdvice.php:84 PDFStockCheckComparison.php:36 +#: PDFStockCheckComparison.php:62 PDFStockCheckComparison.php:267 #: PO_PDFPurchOrder.php:31 PO_PDFPurchOrder.php:149 #: PrintCustOrder_generic.php:243 PrintCustOrder.php:198 ReorderLevel.php:60 #: ReorderLevel.php:149 SalesAnalysis_UserDefined.php:28 @@ -875,8 +875,8 @@ msgstr "Podrobnosti o nesplacených transakcí pro zákazníka" #: AgedDebtors.php:371 AgedSuppliers.php:191 GLAccountCSV.php:168 -#: GLAccountInquiry.php:145 GLAccountReport.php:93 PO_Items.php:416 -#: PO_Items.php:539 PO_Items.php:563 SalesAnalReptCols.php:356 +#: GLAccountInquiry.php:143 GLAccountReport.php:94 PO_Items.php:414 +#: PO_Items.php:535 PO_Items.php:559 SalesAnalReptCols.php:356 #: SpecialOrder.php:370 StockLocTransferReceive.php:373 #: StockQuantityByDate.php:110 includes/SelectOrderItems_IntoCart.inc:53 msgid "could not be retrieved because" @@ -884,13 +884,13 @@ #: AgedDebtors.php:374 AgedSuppliers.php:194 Areas.php:95 #: ConfirmDispatch_Invoice.php:150 ConfirmDispatch_Invoice.php:957 -#: ConfirmDispatch_Invoice.php:971 Contracts.php:581 CounterSales.php:1323 -#: CounterSales.php:1337 Credit_Invoice.php:703 Credit_Invoice.php:725 +#: ConfirmDispatch_Invoice.php:971 Contracts.php:581 CounterSales.php:1335 +#: CounterSales.php:1349 Credit_Invoice.php:699 Credit_Invoice.php:721 #: CustomerReceipt.php:523 CustomerReceipt.php:655 CustomerReceipt.php:683 -#: CustomerTransInquiry.php:82 DeliveryDetails.php:393 GLProfit_Loss.php:579 -#: GLTagProfit_Loss.php:488 Payments.php:312 PDFRemittanceAdvice.php:86 +#: CustomerTransInquiry.php:82 DeliveryDetails.php:393 GLProfit_Loss.php:587 +#: GLTagProfit_Loss.php:507 Payments.php:319 PDFRemittanceAdvice.php:86 #: PurchData.php:87 PurchData.php:105 PurchData.php:237 ReverseGRN.php:191 -#: ReverseGRN.php:205 ReverseGRN.php:366 SelectCreditItems.php:1372 +#: ReverseGRN.php:205 ReverseGRN.php:366 SelectCreditItems.php:1396 #: SelectSalesOrder.php:113 SelectSalesOrder.php:277 StockCheck.php:225 #: StockCostUpdate.php:76 StockCostUpdate.php:86 StockLocStatus.php:147 #: StockMovements.php:85 StockQuantityByDate.php:86 StockReorderLevel.php:39 @@ -899,7 +899,7 @@ #: SupplierInquiry.php:130 SupplierInquiry.php:182 SupplierTransInquiry.php:81 #: SuppPaymentRun.php:111 SuppPaymentRun.php:186 SuppPaymentRun.php:216 #: WorkOrderCosting.php:399 WorkOrderReceive.php:270 WOSerialNos.php:45 -#: Z_ChangeBranchCode.php:108 Z_ChangeCustomerCode.php:92 +#: Z_ChangeBranchCode.php:105 Z_ChangeCustomerCode.php:92 #: Z_DeleteCreditNote.php:58 Z_DeleteInvoice.php:87 #: includes/PDFPaymentRun_PymtFooter.php:59 #: includes/PDFPaymentRun_PymtFooter.php:89 @@ -918,11 +918,11 @@ msgid "Aged Debtor Analysis" msgstr "Ve věku dlužníka analýza" -#: AgedDebtors.php:464 DebtorsAtPeriodEnd.php:135 +#: AgedDebtors.php:464 DebtorsAtPeriodEnd.php:136 msgid "From Customer Code" msgstr "Od kódu zákazníka" -#: AgedDebtors.php:467 DebtorsAtPeriodEnd.php:138 +#: AgedDebtors.php:467 DebtorsAtPeriodEnd.php:139 msgid "To Customer Code" msgstr "Do kódu zákazníka" @@ -969,14 +969,14 @@ #: AgedDebtors.php:515 AgedSuppliers.php:312 BOMExtendedQty.php:282 #: BOMIndented.php:272 BOMIndentedReverse.php:250 BOMListing.php:132 -#: DebtorsAtPeriodEnd.php:156 InventoryPlanning.php:442 -#: InventoryPlanningPrefSupplier.php:518 InventoryQuantities.php:187 -#: InventoryValuation.php:251 MRPPlannedPurchaseOrders.php:282 -#: MRPPlannedWorkOrders.php:335 MRPReschedules.php:140 MRPShortages.php:290 -#: OutstandingGRNs.php:162 PDFCustomerList.php:410 PDFLowGP.php:145 +#: DebtorsAtPeriodEnd.php:157 InventoryPlanning.php:442 +#: InventoryPlanningPrefSupplier.php:516 InventoryQuantities.php:203 +#: InventoryValuation.php:255 MRPPlannedPurchaseOrders.php:282 +#: MRPPlannedWorkOrders.php:336 MRPReschedules.php:140 MRPShortages.php:302 +#: OutstandingGRNs.php:172 PDFCustomerList.php:410 PDFLowGP.php:146 #: PDFPriceList.php:301 PDFRemittanceAdvice.php:152 -#: PDFStockCheckComparison.php:379 PrintCustTrans.php:536 -#: PrintCustTransPortrait.php:558 ReorderLevel.php:217 StockDispatch.php:308 +#: PDFStockCheckComparison.php:357 PrintCustTrans.php:542 +#: PrintCustTransPortrait.php:562 ReorderLevel.php:217 StockDispatch.php:308 #: SupplierBalsAtPeriodEnd.php:150 SuppPriceList.php:228 Tax.php:344 msgid "Print PDF" msgstr "Tisknout PDF" @@ -1009,12 +1009,12 @@ msgid "Aged Supplier Analysis" msgstr "Dodavatel ve věku analýza" -#: AgedSuppliers.php:278 OutstandingGRNs.php:157 PDFRemittanceAdvice.php:138 +#: AgedSuppliers.php:278 OutstandingGRNs.php:167 PDFRemittanceAdvice.php:138 #: SupplierBalsAtPeriodEnd.php:131 SuppPaymentRun.php:259 msgid "From Supplier Code" msgstr "Od kódu dodavatele" -#: AgedSuppliers.php:281 OutstandingGRNs.php:159 PDFRemittanceAdvice.php:140 +#: AgedSuppliers.php:281 OutstandingGRNs.php:169 PDFRemittanceAdvice.php:140 #: SupplierBalsAtPeriodEnd.php:133 SuppPaymentRun.php:261 msgid "To Supplier Code" msgstr "Do kódu dodavatele" @@ -1100,7 +1100,7 @@ msgstr "Kód oblasti" #: Areas.php:132 CustomerTypes.php:164 Factors.php:140 -#: FixedAssetCategories.php:135 GLAccounts.php:193 Locations.php:325 +#: FixedAssetCategories.php:134 GLAccounts.php:197 Locations.php:328 #: MRPDemands.php:248 PcAssignCashToTab.php:135 PcClaimExpensesFromTab.php:126 #: PcExpenses.php:160 PcExpensesTypeTab.php:101 PcTabs.php:166 #: PcTypeTabs.php:135 SalesAnalReptCols.php:215 SalesCategories.php:137 @@ -1135,12 +1135,12 @@ msgstr "Nesprávné datum používaného formátu, prosím, re-zadání" #: AuditTrail.php:35 BOMIndented.php:310 BOMIndentedReverse.php:289 -#: MRPCalendar.php:258 +#: MRPCalendar.php:260 msgid "From Date" msgstr "Od data" #: AuditTrail.php:37 BOMIndented.php:311 BOMIndentedReverse.php:290 -#: MRPCalendar.php:260 +#: MRPCalendar.php:262 msgid "To Date" msgstr "To Date" @@ -1151,18 +1151,18 @@ msgstr "ID uživatele" #: AuditTrail.php:43 AuditTrail.php:56 ContractBOM.php:298 -#: CounterSales.php:2113 CounterSales.php:2116 CustomerTransInquiry.php:29 +#: CounterSales.php:2122 CounterSales.php:2125 CustomerTransInquiry.php:29 #: DailySalesInquiry.php:41 DailySalesInquiry.php:43 FixedAssetRegister.php:56 -#: FixedAssetRegister.php:65 InventoryQuantities.php:153 -#: InventoryQuantities.php:175 InventoryQuantities.php:177 MRP.php:564 +#: FixedAssetRegister.php:65 InventoryQuantities.php:163 +#: InventoryQuantities.php:188 InventoryQuantities.php:190 MRP.php:564 #: MRPReport.php:523 MRPReport.php:525 MRPReschedules.php:135 #: PDFPeriodStockTransListing.php:58 PDFPriceList.php:194 -#: PDFPrintLabel.php:239 PO_Items.php:884 POReport.php:1548 +#: PDFPrintLabel.php:239 PO_Items.php:880 POReport.php:1548 #: ReorderLevel.php:175 ReorderLevel.php:177 ReorderLevel.php:205 #: ReorderLevel.php:207 SalesGraph.php:91 SalesGraph.php:93 SalesGraph.php:111 #: SalesGraph.php:113 SalesGraph.php:134 SalesGraph.php:136 SalesGraph.php:168 -#: SalesInquiry.php:1053 SalesInquiry.php:1092 SelectCreditItems.php:923 -#: SelectOrderItems.php:1589 SelectOrderItems.php:1592 SelectProduct.php:493 +#: SalesInquiry.php:1053 SalesInquiry.php:1092 SelectCreditItems.php:940 +#: SelectOrderItems.php:1639 SelectOrderItems.php:1642 SelectProduct.php:493 #: SelectProduct.php:495 StockDispatch.php:282 StockDispatch.php:284 #: StockLocStatus.php:67 StockLocStatus.php:69 StockLocStatus.php:87 #: StockLocStatus.php:91 StockLocStatus.php:95 StockQuantityByDate.php:21 @@ -1194,10 +1194,10 @@ #: AuditTrail.php:146 BankReconciliation.php:199 BankReconciliation.php:271 #: CustomerAllocations.php:355 CustomerInquiry.php:190 #: CustomerTransInquiry.php:18 CustomerTransInquiry.php:88 -#: CustWhereAlloc.php:17 CustWhereAlloc.php:88 DailyBankTransactions.php:104 -#: GLAccountInquiry.php:152 GLAccountReport.php:367 GLJournal.php:240 +#: CustWhereAlloc.php:18 CustWhereAlloc.php:92 DailyBankTransactions.php:105 +#: GLAccountInquiry.php:150 GLAccountReport.php:347 GLJournal.php:240 #: MRPReschedules.php:178 SalesByTypePeriodInquiry.php:327 -#: SelectCustomer.php:462 ShipmentCosting.php:506 ShipmentCosting.php:577 +#: SelectCustomer.php:486 ShipmentCosting.php:508 ShipmentCosting.php:579 #: StockCategories.php:215 StockLocMovements.php:81 StockMovements.php:90 #: SupplierAllocations.php:452 SupplierInquiry.php:199 #: SupplierTransInquiry.php:19 SupplierTransInquiry.php:86 @@ -1213,7 +1213,7 @@ msgstr "Tabulka" #: AuditTrail.php:148 api/api_xml-rpc.php:314 api/api_xml-rpc.php:729 -#: api/api_xml-rpc.php:1892 +#: api/api_xml-rpc.php:1914 msgid "Field Name" msgstr "Název pole" @@ -1394,7 +1394,7 @@ msgid "Bank Account Matching - Receipts" msgstr "Bankovní účet odpovídající - Příjmy" -#: BankMatching.php:20 PaymentAllocations.php:33 PaymentMethods.php:11 +#: BankMatching.php:20 PaymentAllocations.php:30 PaymentMethods.php:11 #: PDFSuppTransListing.php:41 msgid "Payments" msgstr "Platby" @@ -1439,7 +1439,7 @@ "zjistíte, odpovídající transakce." #: BankMatching.php:87 BankReconciliation.php:101 CustomerReceipt.php:726 -#: DailyBankTransactions.php:29 Payments.php:737 PDFChequeListing.php:44 +#: DailyBankTransactions.php:29 Payments.php:734 PDFChequeListing.php:44 #: TaxAuthorities.php:149 TaxAuthorities.php:305 msgid "Bank Account" msgstr "Bankovní účet" @@ -1448,8 +1448,8 @@ msgid "Show" msgstr "Zobrazit" -#: BankMatching.php:110 CreditItemsControlled.php:78 FreightCosts.php:267 -#: GoodsReceivedControlled.php:65 GoodsReceived.php:65 +#: BankMatching.php:110 CounterSales.php:218 CreditItemsControlled.php:78 +#: FreightCosts.php:267 GoodsReceivedControlled.php:65 GoodsReceived.php:65 #: StockLocTransferReceive.php:426 SupplierAllocations.php:434 #: SuppShiptChgs.php:129 msgid "from" @@ -1457,18 +1457,18 @@ #: BankMatching.php:113 ConfirmDispatchControlled_Invoice.php:58 #: EmailCustTrans.php:63 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 -#: GLAccountCSV.php:171 GLAccountReport.php:102 Payments.php:717 +#: GLAccountCSV.php:171 GLAccountReport.php:103 Payments.php:714 #: PcReportTab.php:102 PDFChequeListing.php:107 PDFChequeListing.php:117 -#: PDFChequeListing.php:192 PDFDeliveryDifferences.php:166 -#: PDFDeliveryDifferences.php:179 PDFDeliveryDifferences.php:287 -#: PDFDIFOT.php:172 PDFDIFOT.php:185 PDFDIFOT.php:289 PDFOrdersInvoiced.php:71 -#: PDFOrdersInvoiced.php:268 PDFOrderStatus.php:78 PDFOrderStatus.php:253 +#: PDFChequeListing.php:192 PDFDeliveryDifferences.php:172 +#: PDFDeliveryDifferences.php:185 PDFDeliveryDifferences.php:281 +#: PDFDIFOT.php:190 PDFDIFOT.php:203 PDFDIFOT.php:307 PDFOrdersInvoiced.php:77 +#: PDFOrdersInvoiced.php:274 PDFOrderStatus.php:82 PDFOrderStatus.php:256 #: PO_PDFPurchOrder.php:323 PricesBasedOnMarkUp.php:216 -#: PricesBasedOnMarkUp.php:355 PrintCustStatements.php:50 +#: PricesBasedOnMarkUp.php:355 PrintCustStatements.php:45 #: PrintCustTrans.php:60 PrintCustTrans.php:63 PrintCustTransPortrait.php:58 #: PrintCustTransPortrait.php:61 SalesGraph.php:200 SalesGraph.php:229 #: SalesGraph.php:233 StockLocTransferReceive.php:310 -#: StockLocTransferReceive.php:426 Stocks.php:231 Stocks.php:236 +#: StockLocTransferReceive.php:426 Stocks.php:234 Stocks.php:239 #: StockStatus.php:309 StockStatus.php:350 StockTransfers.php:426 #: includes/PDFAgedDebtorsPageHeader.inc:18 #: includes/PDFAgedSuppliersPageHeader.inc:17 @@ -1564,19 +1564,19 @@ msgid "The payments with the selected criteria could not be retrieved because" msgstr "Platby podle zadaných kriterií se nepodařilo získat, protože" -#: BankMatching.php:229 ShipmentCosting.php:507 ShipmentCosting.php:578 +#: BankMatching.php:229 ShipmentCosting.php:509 ShipmentCosting.php:580 #: SupplierAllocations.php:455 msgid "Ref" msgstr "Ref" #: BankMatching.php:232 ConfirmDispatch_Invoice.php:274 Credit_Invoice.php:279 #: CustomerAllocations.php:358 CustomerReceipt.php:842 -#: CustomerTransInquiry.php:97 CustWhereAlloc.php:92 PaymentAllocations.php:78 -#: Payments.php:969 Payments.php:972 Payments.php:984 +#: CustomerTransInquiry.php:97 CustWhereAlloc.php:96 PaymentAllocations.php:63 +#: Payments.php:972 Payments.php:976 Payments.php:992 #: PcAssignCashToTab.php:218 PcAssignCashToTab.php:339 #: PcAuthorizeExpenses.php:89 PcClaimExpensesFromTab.php:212 #: PcClaimExpensesFromTab.php:365 PcReportTab.php:172 PcReportTab.php:326 -#: PrintCheque.php:70 PrintCheque.php:84 SelectCreditItems.php:659 +#: PrintCheque.php:64 PrintCheque.php:78 SelectCreditItems.php:671 #: SuppContractChgs.php:73 SuppContractChgs.php:142 SuppFixedAssetChgs.php:74 #: SuppFixedAssetChgs.php:140 SupplierAllocations.php:456 #: SupplierCredit.php:344 SupplierCredit.php:374 SupplierCredit.php:406 @@ -1590,7 +1590,7 @@ msgstr "Částka" #: BankMatching.php:233 BankReconciliation.php:203 BankReconciliation.php:275 -#: PDFOrdersInvoiced.php:345 PDFOrderStatus.php:319 +#: PDFOrdersInvoiced.php:351 PDFOrderStatus.php:322 #: PO_SelectOSPurchOrder.php:213 PO_SelectPurchOrder.php:180 #: Shipt_Select.php:182 SuppCreditGRNs.php:227 #: includes/PDFStatementPageHeader.inc:173 @@ -1653,7 +1653,7 @@ msgstr "Bankovní účty se nepodařilo získat na SQL, protože" #: BankReconciliation.php:98 CustomerReceipt.php:717 -#: DailyBankTransactions.php:26 Payments.php:734 SuppPaymentRun.php:302 +#: DailyBankTransactions.php:26 Payments.php:731 SuppPaymentRun.php:302 msgid "The SQL used to retrieve the bank accounts was" msgstr "SQL slouží k získání bankovní účty byly" @@ -1666,12 +1666,12 @@ msgstr "Musíte nejprve" #: BankReconciliation.php:108 CustomerReceipt.php:731 -#: DailyBankTransactions.php:34 Payments.php:742 SuppPaymentRun.php:310 +#: DailyBankTransactions.php:35 Payments.php:739 SuppPaymentRun.php:310 msgid "define the bank accounts" msgstr "definovat bankovních účtů" #: BankReconciliation.php:108 CustomerReceipt.php:731 -#: DailyBankTransactions.php:34 Payments.php:742 SuppPaymentRun.php:310 +#: DailyBankTransactions.php:35 Payments.php:739 SuppPaymentRun.php:310 msgid "and general ledger accounts to be affected" msgstr "a účtů hlavní knihy mohly být postiženy" @@ -1703,15 +1703,15 @@ #: BankReconciliation.php:200 BankReconciliation.php:272 #: CustomerAllocations.php:330 CustomerAllocations.php:356 -#: CustomerInquiry.php:191 CustomerTransInquiry.php:89 CustWhereAlloc.php:89 -#: EmailCustTrans.php:15 GLAccountInquiry.php:153 PrintCustTrans.php:480 -#: PrintCustTrans.php:681 PrintCustTrans.php:901 PrintCustTrans.php:948 -#: PrintCustTransPortrait.php:502 PrintCustTransPortrait.php:703 -#: PrintCustTransPortrait.php:922 PrintCustTransPortrait.php:967 +#: CustomerInquiry.php:191 CustomerTransInquiry.php:89 CustWhereAlloc.php:93 +#: EmailCustTrans.php:15 GLAccountInquiry.php:151 PrintCustTrans.php:486 +#: PrintCustTrans.php:696 PrintCustTrans.php:918 PrintCustTrans.php:967 +#: PrintCustTransPortrait.php:506 PrintCustTransPortrait.php:716 +#: PrintCustTransPortrait.php:936 PrintCustTransPortrait.php:983 #: StockMovements.php:91 SupplierAllocations.php:453 #: SupplierAllocations.php:558 SupplierAllocations.php:629 #: SupplierTransInquiry.php:87 Z_CheckAllocs.php:58 -#: Z_CheckGLTransBalance.php:12 includes/PDFQuotationPageHeader.inc:87 +#: Z_CheckGLTransBalance.php:12 includes/PDFQuotationPageHeader.inc:88 #: includes/PDFQuotationPortraitPageHeader.inc:86 #: includes/PDFStatementPageHeader.inc:168 #: includes/PDFStatementPageHeader.inc:179 includes/PDFTransPageHeader.inc:44 @@ -1721,8 +1721,8 @@ #: BankReconciliation.php:201 BankReconciliation.php:273 #: ContractCosting.php:168 CustomerInquiry.php:194 CustomerTransInquiry.php:93 -#: CustWhereAlloc.php:90 DailyBankTransactions.php:105 GLAccountReport.php:368 -#: PaymentAllocations.php:75 PaymentAllocations.php:76 +#: CustWhereAlloc.php:94 DailyBankTransactions.php:106 GLAccountReport.php:348 +#: PaymentAllocations.php:60 PaymentAllocations.php:61 #: PDFRemittanceAdvice.php:309 ShiptsList.php:37 StockCounts.php:99 #: StockCounts.php:135 StockLocMovements.php:86 StockMovements.php:96 #: Z_CheckAllocs.php:59 includes/PDFBankingSummaryPageHeader.inc:40 @@ -1776,8 +1776,8 @@ "zůstatek na účtu. Je důležité, že směnný kurz výše odráží současnou hodnotu " "měny bankovního účtu" -#: BankReconciliation.php:331 CounterSales.php:781 Customers.php:1000 -#: SelectOrderItems.php:1401 Stocks.php:1041 WorkOrderCosting.php:518 +#: BankReconciliation.php:331 CounterSales.php:793 Customers.php:1000 +#: SelectOrderItems.php:1441 Stocks.php:1051 WorkOrderCosting.php:518 #: WorkOrderEntry.php:548 msgid "Are You Sure?" msgstr "Opravdu provést?" @@ -1844,26 +1844,26 @@ #: BOMIndentedReverse.php:288 BOMInquiry.php:178 BOMs.php:522 BOMs.php:685 #: ContractBOM.php:237 ContractBOM.php:345 ContractCosting.php:77 #: ContractCosting.php:83 ContractCosting.php:148 ContractOtherReqts.php:92 -#: Contracts.php:938 Contracts.php:973 CounterSales.php:701 -#: CounterSales.php:1994 CounterSales.php:2174 CounterSales.php:2302 -#: Credit_Invoice.php:273 DeliveryDetails.php:822 DeliveryDetails.php:887 -#: GoodsReceived.php:88 GoodsReceived.php:92 GoodsReceived.php:95 -#: InventoryPlanningPrefSupplier.php:83 InventoryQuantities.php:223 +#: Contracts.php:938 Contracts.php:973 CounterSales.php:713 +#: CounterSales.php:2006 CounterSales.php:2183 CounterSales.php:2307 +#: Credit_Invoice.php:273 DeliveryDetails.php:821 DeliveryDetails.php:886 +#: GoodsReceived.php:92 GoodsReceived.php:96 GoodsReceived.php:99 +#: InventoryPlanningPrefSupplier.php:78 InventoryQuantities.php:240 #: MRPDemands.php:293 MRPDemands.php:383 MRPPlannedPurchaseOrders.php:326 -#: MRPPlannedWorkOrders.php:258 MRPPlannedWorkOrders.php:379 MRPReport.php:413 +#: MRPPlannedWorkOrders.php:259 MRPPlannedWorkOrders.php:380 MRPReport.php:413 #: MRPReport.php:419 MRPReschedules.php:179 OffersReceived.php:95 -#: OffersReceived.php:197 OffersReceived.php:244 OrderDetails.php:155 -#: PDFOrdersInvoiced.php:384 POReport.php:743 POReport.php:1428 -#: PrintCustTrans.php:831 PrintCustTrans.php:919 PrintCustTrans.php:966 -#: PrintCustTransPortrait.php:857 PrintCustTransPortrait.php:940 -#: PrintCustTransPortrait.php:984 RecurringSalesOrders.php:321 +#: OffersReceived.php:197 OffersReceived.php:244 OrderDetails.php:154 +#: PDFOrdersInvoiced.php:390 POReport.php:743 POReport.php:1428 +#: PrintCustTrans.php:848 PrintCustTrans.php:937 PrintCustTrans.php:986 +#: PrintCustTransPortrait.php:870 PrintCustTransPortrait.php:955 +#: PrintCustTransPortrait.php:1005 RecurringSalesOrders.php:321 #: ReorderLevel.php:256 ReverseGRN.php:379 ReverseGRN.php:380 #: SalesAnalReptCols.php:18 SalesAnalReptCols.php:20 SalesGraph.php:177 #: SalesGraph.php:258 SalesInquiry.php:965 SalesTopItemsInquiry.php:222 -#: SelectCreditItems.php:651 SelectCreditItems.php:1004 -#: SelectOrderItems.php:1325 SelectOrderItems.php:1474 -#: SelectOrderItems.php:1654 SelectOrderItems.php:1778 ShipmentCosting.php:144 -#: ShipmentCosting.php:145 Shipments.php:385 Shipments.php:387 +#: SelectCreditItems.php:663 SelectCreditItems.php:1022 +#: SelectOrderItems.php:1365 SelectOrderItems.php:1523 +#: SelectOrderItems.php:1705 SelectOrderItems.php:1830 ShipmentCosting.php:145 +#: ShipmentCosting.php:146 Shipments.php:385 Shipments.php:387 #: Shipments.php:388 Shipments.php:463 Shipments.php:465 SpecialOrder.php:542 #: StockCounts.php:98 StockLocMovements.php:85 StockLocTransfer.php:185 #: StockMovements.php:95 StockStatus.php:312 StockUsageGraph.php:12 @@ -1879,14 +1879,14 @@ #: includes/PDFOrderPageHeader_generic.inc:93 #: includes/PDFPeriodStockTransListingPageHeader.inc:50 #: includes/PDFPickingListHeader.inc:74 -#: includes/PDFQuotationPageHeader.inc:102 -#: includes/PDFQuotationPortraitPageHeader.inc:101 +#: includes/PDFQuotationPageHeader.inc:103 +#: includes/PDFQuotationPortraitPageHeader.inc:103 #: includes/PDFSalesOrder_generic.inc:95 #: includes/PDFStockCheckPageHeader.inc:44 #: includes/PDFStockNegativesHeader.inc:33 #: includes/PDFStockTransferHeader.inc:39 includes/PDFTransPageHeader.inc:209 -#: includes/PO_PDFOrderPageHeader.inc:78 api/api_xml-rpc.php:2235 -#: api/api_xml-rpc.php:2281 api/api_xml-rpc.php:2477 +#: includes/PO_PDFOrderPageHeader.inc:78 api/api_xml-rpc.php:2260 +#: api/api_xml-rpc.php:2306 api/api_xml-rpc.php:2502 msgid "Quantity" msgstr "Množství" @@ -1903,20 +1903,20 @@ msgstr "Zobrazit pouze Nedostatky" #: BOMExtendedQty.php:273 BOMIndented.php:264 BOMIndentedReverse.php:244 -#: MRPPlannedPurchaseOrders.php:276 MRPPlannedWorkOrders.php:327 -#: MRPReschedules.php:130 MRPShortages.php:286 +#: MRPPlannedPurchaseOrders.php:276 MRPPlannedWorkOrders.php:328 +#: MRPReschedules.php:130 MRPShortages.php:292 msgid "Print Option" msgstr "Možnost tisku" #: BOMExtendedQty.php:275 BOMIndented.php:266 BOMIndentedReverse.php:246 -#: MRPPlannedPurchaseOrders.php:277 MRPPlannedWorkOrders.php:328 -#: MRPReschedules.php:131 MRPShortages.php:287 +#: MRPPlannedPurchaseOrders.php:277 MRPPlannedWorkOrders.php:329 +#: MRPReschedules.php:131 MRPShortages.php:294 msgid "Print With Alternating Highlighted Lines" msgstr "Tisk se střídavými Zvýrazněné Lines" #: BOMExtendedQty.php:276 BOMIndented.php:267 BOMIndentedReverse.php:247 -#: MRPPlannedPurchaseOrders.php:278 MRPPlannedWorkOrders.php:329 -#: MRPReschedules.php:132 MRPShortages.php:288 +#: MRPPlannedPurchaseOrders.php:278 MRPPlannedWorkOrders.php:330 +#: MRPReschedules.php:132 MRPShortages.php:295 msgid "Plain Print" msgstr "Prostý Tisk" @@ -1925,10 +1925,10 @@ msgstr "Rozšířená Množství kusovníku výpis " #: BOMExtendedQty.php:307 BOMIndented.php:296 BOMIndentedReverse.php:275 -#: GLAccountReport.php:353 InventoryPlanningPrefSupplier.php:63 -#: InventoryQuantities.php:209 MRPPlannedPurchaseOrders.php:305 -#: MRPPlannedWorkOrders.php:358 MRPReport.php:805 MRPReschedules.php:164 -#: MRPShortages.php:318 PDFOrderStatus.php:302 PDFPriceList.php:331 +#: GLAccountReport.php:3... [truncated message content] |