|
@@ 82-86 (lines=5) @@
|
| 79 |
|
if ($result['type'] == '2' || $result['type'] == '-1') { |
| 80 |
|
$this->db->where(array("accountid"=>$result["id"])); |
| 81 |
|
} else if ($result['type'] == '0') { |
| 82 |
|
if ($result['reseller_id'] == 0) { |
| 83 |
|
$this->db->where(array("accountid"=>"1")); |
| 84 |
|
} else { |
| 85 |
|
$this->db->where(array("accountid"=>$result["reseller_id"])); |
| 86 |
|
} |
| 87 |
|
} else if ($result['type'] == '1') { |
| 88 |
|
if ($result['reseller_id'] == 0) { |
| 89 |
|
$result_invoice = $this->common->get_field_name('id', 'invoice_conf', array("accountid" => $result['id'])); |
|
@@ 91-95 (lines=5) @@
|
| 88 |
|
if ($result['reseller_id'] == 0) { |
| 89 |
|
$result_invoice = $this->common->get_field_name('id', 'invoice_conf', array("accountid" => $result['id'])); |
| 90 |
|
|
| 91 |
|
if ($result_invoice) { |
| 92 |
|
$this->db->where(array("accountid"=>$result["id"])); |
| 93 |
|
} else { |
| 94 |
|
$this->db->where(array("accountid"=>"1")); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
} else { |
| 98 |
|
$result_invoice = $this->common->get_field_name('id', 'invoice_conf', array("accountid" => $result['reseller_id'])); |
|
@@ 99-103 (lines=5) @@
|
| 96 |
|
|
| 97 |
|
} else { |
| 98 |
|
$result_invoice = $this->common->get_field_name('id', 'invoice_conf', array("accountid" => $result['reseller_id'])); |
| 99 |
|
if ($result_invoice) { |
| 100 |
|
$this->db->where(array("accountid"=>$result["reseller_id"])); |
| 101 |
|
} else { |
| 102 |
|
$this->db->where(array("accountid"=>"1")); |
| 103 |
|
} |
| 104 |
|
} |
| 105 |
|
} else { |
| 106 |
|
$this->db->where(array("accountid"=>"1")); |