read_sales_order($trans_no[0], $this, $type);
} else { // other type of sales transaction
read_sales_trans($type, $trans_no, $this);
read_sales_order($trans_no[0], $this, $type);
} else { // other type of sales transaction
read_sales_trans($type, $trans_no, $this);