@@ 1322-1326 (lines=5) @@ | ||
1319 | $username = $this->session->userdata('username'); |
|
1320 | $login_user_data = $this->session->userdata("accountinfo"); |
|
1321 | $accountinfo = $this->accounts_model->get_account_by_number($post_array['id']); |
|
1322 | if($accountinfo['reseller_id'] == 0){ |
|
1323 | $where = array("accountid"=> 1); |
|
1324 | }else{ |
|
1325 | $where = array("accountid"=> $accountinfo['id']); |
|
1326 | } |
|
1327 | $query = $this->db_model->getSelect("*", "invoice_conf", $where); |
|
1328 | if($query->num_rows >0){ |
|
1329 | $invoice_conf = $query->result_array(); |
@@ 682-686 (lines=5) @@ | ||
679 | $invoicedata =$invoicedata[0]; |
|
680 | //$res = $this->common->get_invoice_template($invoicedata,$accountdata,"False"); |
|
681 | $invoice_conf = array(); |
|
682 | if($accountdata['reseller_id'] == 0){ |
|
683 | $where = array("accountid"=> 1); |
|
684 | } else{ |
|
685 | $where = array("accountid"=> $accountdata['reseller_id']); |
|
686 | } |
|
687 | $query = $this->db_model->getSelect("*", "invoice_conf", $where); |
|
688 | if($query->num_rows >0){ |
|
689 | $invoice_conf = $query->result_array(); |
|
@@ 1426-1430 (lines=5) @@ | ||
1423 | exec($command); |
|
1424 | $invoice_data_count = 0; |
|
1425 | $invoice_conf = array(); |
|
1426 | if($accountdata['reseller_id'] == 0){ |
|
1427 | $where = array("accountid"=> 1); |
|
1428 | } else{ |
|
1429 | $where = array("accountid"=> $accountdata['reseller_id']); |
|
1430 | } |
|
1431 | $query = $this->db_model->getSelect("*", "invoice_conf", $where); |
|
1432 | if($query->num_rows >0){ |
|
1433 | $invoice_conf = $query->result_array(); |