photo remaining
This commit is contained in:
@ -91,7 +91,8 @@ class Accategories extends CI_Controller
|
||||
if (isset($_POST['submit'])) {
|
||||
|
||||
$TableData = array(
|
||||
'acgroup_id' => filter_var($_POST['acgroup_id']),
|
||||
'acgroup_id' => filter_var(getFieldfromValue("tbl_accategories", "acgroup_id", "accategory_id", $_POST['parent_category_id'])),
|
||||
// 'acgroup_id' => filter_var($_POST['acgroup_id']),
|
||||
'accategory_code' => generateACCategoryCode($_POST['acgroup_id']),
|
||||
'parent_category_id' => filter_var($_POST['parent_category_id']),
|
||||
'accategory_name' => filter_var($_POST['accategory_name']),
|
||||
@ -105,10 +106,13 @@ class Accategories extends CI_Controller
|
||||
redirect("master/accategories");
|
||||
}
|
||||
$data['AccountCategory'] = $this->db->query("select * from tbl_accategories where accategory_id =\"$id\" ")->row();
|
||||
loadView("accounts/accategories/edit", $data);
|
||||
$data['ACCategories'] = $this->myaccounts->getAccountCategories();
|
||||
$data['pageTitle'] = "Account Group";
|
||||
|
||||
loadView("accounts/accategories/list-childs-only", $data);
|
||||
break;
|
||||
case 'edit_parents':
|
||||
$id = $this->uri->segment(4);
|
||||
$id = $this->uri->segment(4);
|
||||
$data['pageTitle'] = "Edit Category";
|
||||
|
||||
if (isset($_POST['submit'])) {
|
||||
|
Reference in New Issue
Block a user