示例#1
0
 function render_pdf()
 {
     // label all the reference links
     for ($i = 0; $i < count(array_keys($this->obj_table->data)); $i++) {
         $this->obj_table->data[$i]["code_reference"] = ledger_trans_typelabel($this->obj_table->data[$i]["type"], $this->obj_table->data[$i]["customid"], FALSE);
     }
     // display table
     $this->obj_table->render_table_pdf();
 }
示例#2
0
 function render_table_csv()
 {
     log_debug("ledger_account_list", "Executing render_table_csv()");
     /*
     	Label the items the transaction belongs to
     
     	Because there are range of different items types (ar, ap, general ledger, etc) we need
     	to check the type of the ledger entry, then display the correct title
     */
     if ($this->obj_table->data_num_rows) {
         for ($i = 0; $i < count(array_keys($this->obj_table->data)); $i++) {
             $this->obj_table->data[$i]["item_id"] = ledger_trans_typelabel($this->obj_table->data[$i]["type"], $this->obj_table->data[$i]["item_id"], FALSE);
         }
     }
     /*
     	Display the table
     */
     if ($this->obj_table->data_num_rows) {
         // display the table
         $this->obj_table->render_table_csv();
     }
 }