| @@ 1419-1423 (lines=5) @@ | ||
| 1416 | */ |
|
| 1417 | function get_invoice_date($select,$accountid){ |
|
| 1418 | $query = $this->db_model->select($select, "invoices", '',"id","DESC","1","0"); |
|
| 1419 | if($query->num_rows >0){ |
|
| 1420 | $invoiceid = $query->result_array(); |
|
| 1421 | $invoice_date=$invoiceid[0][$select]; |
|
| 1422 | return $invoice_date; |
|
| 1423 | } |
|
| 1424 | return false; |
|
| 1425 | } |
|
| 1426 | /***************************************Completed********************************************************/ |
|
| @@ 1494-1498 (lines=5) @@ | ||
| 1491 | $where = array('type'=>"I"); |
|
| 1492 | $query = $this->db_model->select($select, "invoices", $where,"id","DESC","1","0"); |
|
| 1493 | } |
|
| 1494 | if($query->num_rows >0){ |
|
| 1495 | $invoiceid = $query->result_array(); |
|
| 1496 | $invoice_date=$invoiceid[0][$select]; |
|
| 1497 | return $invoice_date; |
|
| 1498 | } |
|
| 1499 | return false; |
|
| 1500 | } |
|
| 1501 | function invoice_main_download($invoiceid) { |
|