From 931a6c23497785d27b66be9cdc626594fdfb7339 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 5 Jun 2018 14:10:18 +0000 Subject: [PATCH] "redirect issues fixes" in cashbook-bankreport --- application/controllers/cashbook.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/application/controllers/cashbook.php b/application/controllers/cashbook.php index 3d256ffa..afd892e7 100755 --- a/application/controllers/cashbook.php +++ b/application/controllers/cashbook.php @@ -492,7 +492,17 @@ class cashbook extends BaseController $res = $this->cashbook_model->saveIncomeExpense($addincomexpense); if( $res == 1 ){ - echo ""; + //echo ""; + echo ""; + + if($amounttype == ' ')//Redirct To Listing Screen + { + redirect('ViewIncomeExpense','refresh'); + } + else if($amounttype != ' ')//Redirct To Bank Report Screen + { + redirect('Bankingstatement','refresh'); + } } }