From: <ex...@us...> - 2015-04-01 09:50:34
|
Revision: 7252 http://sourceforge.net/p/web-erp/reponame/7252 Author: exsonqu Date: 2015-04-01 09:50:32 +0000 (Wed, 01 Apr 2015) Log Message: ----------- 01/04/15 Exson: Fixed the bug that when delete one gl item from the payment details, the bank account related setting will disappeared in Payments.php. Reported by Steven. Modified Paths: -------------- trunk/Payments.php Modified: trunk/Payments.php =================================================================== --- trunk/Payments.php 2015-04-01 01:39:31 UTC (rev 7251) +++ trunk/Payments.php 2015-04-01 09:50:32 UTC (rev 7252) @@ -627,6 +627,15 @@ } elseif (isset($_GET['Delete'])){ /* User hit delete the receipt entry from the batch */ $_SESSION['PaymentDetail' . $identifier]->Remove_GLItem($_GET['Delete']); + //recover the bank account relative setting + $_POST['BankAccount'] = $_SESSION['PaymentDetail'.$identifier]->Account; + $_POST['DatePaid'] = $_SESSION['PaymentDetail'.$identifier]->DatePaid; + $_POST['Currency'] = $_SESSION['PaymentDetail'.$identifier]->Currency; + $_POST['ExRate'] = $_SESSION['PaymentDetail'.$identifier]->ExRate; + $_POST['FunctionalExRate'] = $_SESSION['PaymentDetail'.$identifier]->FunctionalExRate; + $_POST['PaymentType'] = $_SESSION['PaymentDetail'.$identifier]->Paymenttype; + $_POST['BankTransRef'] = $_SESSION['PaymentDetail'.$identifier]->BankTransRef; + $_POST['Narrative'] = $_SESSION['PaymentDetail'.$identifier]->Narrative; } elseif (isset($_POST['Process']) AND !$BankAccountEmpty){ //user hit submit a new GL Analysis line into the payment |