@@ 72-78 (lines=7) @@ | ||
69 | For Invoice Configuration |
|
70 | * */ |
|
71 | if ($accountinfo['type'] == 1 && isset($invoice_config) && $invoice_config == "0") { |
|
72 | if ($accountinfo['country_id'] == NULL) { |
|
73 | $accountinfo['country_id'] = ""; |
|
74 | } else { |
|
75 | $data = $this->db_model->getSelect("country", "countrycode", array("id" => $accountinfo['country_id'])); |
|
76 | $data = $data->result_array(); |
|
77 | $country_name = $data[0]; |
|
78 | } |
|
79 | if ($accountinfo['postal_code'] == NULL) { |
|
80 | $accountinfo['postal_code'] = ""; |
|
81 | } |
@@ 1620-1626 (lines=7) @@ | ||
1617 | $accountid = $accountdata['reseller_id']; |
|
1618 | $invoiceconf = $this->db_model->getSelect("*", "invoice_conf", array("accountid"=> $accountid)); |
|
1619 | $invoiceconf = $invoiceconf->result_array(); |
|
1620 | if(!empty($invoiceconf)){ |
|
1621 | $data['invoiceconf'] = $invoiceconf[0]; |
|
1622 | }else{ |
|
1623 | $invoiceconf = $this->db_model->getSelect("*", "invoice_conf", array("accountid"=> "1")); |
|
1624 | $invoiceconf = $invoiceconf->result_array(); |
|
1625 | $data['invoiceconf'] = $invoiceconf[0]; |
|
1626 | } |
|
1627 | ||
1628 | ||
1629 |