@@ 297-305 (lines=9) @@ | ||
294 | $data["paypal_tax"] = $system_config["paypal_tax"]; |
|
295 | $data["from_currency"] = $this->common->get_field_name('currency', 'currency', $account_data["currency_id"]); |
|
296 | $data["to_currency"] = Common_model::$global_config['system_config']['base_currency']; |
|
297 | if($account_data['type'] == -1){ |
|
298 | $data["to_currency"] = $data["to_currency"]; |
|
299 | } elseif($account_data['type'] == 1){ |
|
300 | $accountdata["currency_id"] = $this->common->get_field_name('currency', 'currency', $account_data["currency_id"]); |
|
301 | $data["to_currency"] = $accountdata["currency_id"]; |
|
302 | } else{ |
|
303 | $accountdata["currency_id"] = $this->common->get_field_name('currency', 'currency', $account_data["currency_id"]); |
|
304 | $data["to_currency"] = $accountdata["currency_id"]; |
|
305 | } |
|
306 | $data['total_tax']=$total_tax; |
|
307 | $data['invoice_notes']=$result['notes']; |
|
308 | $data['from_date']=$result['from_date']; |
|
@@ 1552-1561 (lines=10) @@ | ||
1549 | $accountdata = $accountdata[0]; |
|
1550 | // $accountdata["currency_id"] = $this->common->get_field_name('currency', 'currency', $accountdata["currency_id"]); |
|
1551 | //$currency = $accountdata["currency_id"]; |
|
1552 | if($login_info['type'] == -1){ |
|
1553 | $data["to_currency"] = Common_model::$global_config['system_config']['base_currency']; |
|
1554 | $currency = $data["to_currency"]; |
|
1555 | } elseif($login_info['type'] == 1){ |
|
1556 | $accountdata["currency_id"] = $this->common->get_field_name('currency', 'currency', $login_info["currency_id"]); |
|
1557 | $currency = $accountdata["currency_id"]; |
|
1558 | } else{ |
|
1559 | $accountdata["currency_id"] = $this->common->get_field_name('currency', 'currency', $login_info["currency_id"]); |
|
1560 | $currency = $accountdata["currency_id"]; |
|
1561 | } |
|
1562 | $invoice_cdr_list = array(); |
|
1563 | $invoicedata = $this->db_model->getSelect("*", "invoices", array("id"=> $invoiceid)); |
|
1564 | $invoicedata = $invoicedata->result_array(); |