// Save Ledger Entry to Wizard // $awj->addLedgerEntry($ale); if ($id) { Session::flash('info', 'Account Ledger Entry #' . $id . ' updated'); } else { Session::flash('info', 'Account Ledger Entry #' . $ale['id'] . ' created'); } } // Memorise the Transaction if (1 == $_POST['memorise']) { // $awj->save(); Session::flash('info', 'Account Wizard Memorised'); } // File! if (!empty($_FILES['file']) && Base_File::goodPost($_FILES['file'])) { $bf = Base_File::copyPost($_FILES['file']); $bf['link'] = $bf->link($aje); $bf->save(); Session::flash('info', 'Attachment Created'); } // Commit and Redirect // $this->_d->commit(); // if ('Apply' == $_POST['c']) { // $this->_redirect('/account/transaction?id=' . $aje->id); // } if ('save-copy' == $_POST['a']) { // $_SESSION['account-transaction'] = $aje; // $_SESSION['account-transaction-list' = array(); // ] = $ale; // // $_SESSION['new-transaction'] = $aje; Radix::redirect('/account/transaction');