[Weberp-svn] SF.net SVN: weberp:[4635] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-03-01 11:14:16
|
Revision: 4635 http://weberp.svn.sourceforge.net/weberp/?rev=4635&view=rev Author: tim_schofield Date: 2011-03-01 11:14:10 +0000 (Tue, 01 Mar 2011) Log Message: ----------- Make sure credit note session variable is unset if it is a new credit note Modified Paths: -------------- trunk/SelectSupplier.php trunk/SupplierCredit.php Modified: trunk/SelectSupplier.php =================================================================== --- trunk/SelectSupplier.php 2011-03-01 11:13:22 UTC (rev 4634) +++ trunk/SelectSupplier.php 2011-03-01 11:14:10 UTC (rev 4635) @@ -166,7 +166,7 @@ echo '</td><td valign=top class="select">'; /* Supplier Transactions */ echo "<a href=\"$rootpath/PO_Header.php?" . SID . '&NewOrder=Yes&SupplierID=' . $_SESSION['SupplierID'] . "\">" . _('Enter a Purchase Order for This Supplier') . '</a><br>'; echo "<a href=\"$rootpath/SupplierInvoice.php?" . SID . '&SupplierID=' . $_SESSION['SupplierID'] . "\">" . _('Enter a Suppliers Invoice') . '</a><br>'; - echo "<a href=\"$rootpath/SupplierCredit.php?" . SID . '&SupplierID=' . $_SESSION['SupplierID'] . "\">" . _('Enter a Suppliers Credit Note') . '</a><br>'; + echo "<a href=\"$rootpath/SupplierCredit.php?" . SID . '&SupplierID=' . $_SESSION['SupplierID'] . '&New=True' . "\">" . _('Enter a Suppliers Credit Note') . '</a><br>'; echo "<a href=\"$rootpath/Payments.php?" . SID . '&SupplierID=' . $_SESSION['SupplierID'] . "\">" . _('Enter a Payment to, or Receipt from the Supplier') . '</a><br>'; echo '<br>'; echo "<br><a href='$rootpath/ReverseGRN.php?" . SID . '&SupplierID=' . $_SESSION['SupplierID'] . "'>" . _('Reverse an Outstanding Goods Received Note (GRN)') . '</a>'; Modified: trunk/SupplierCredit.php =================================================================== --- trunk/SupplierCredit.php 2011-03-01 11:13:22 UTC (rev 4634) +++ trunk/SupplierCredit.php 2011-03-01 11:14:10 UTC (rev 4635) @@ -35,6 +35,10 @@ //this is available from the menu on this page already //echo "<a href='" . $rootpath . '/SelectSupplier.php?' . SID . "'>" . _('Back to Suppliers') . '</a><br>'; +if (isset($_GET['New'])) { + unset($_SESSION['SuppTrans']); +} + if (!isset($_SESSION['SuppTrans']->SupplierName)) { $sql="SELECT suppname FROM suppliers WHERE supplierid='".$_GET['SupplierID']."'"; $result = DB_query($sql,$db); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |