- if ($src_type == ST_SALESORDER || $src_type == 0) { // get src data from sales_orders
- $this->src_docs = array( $sodata['order_no']=>$sodata['version']);
- $srcdetails = get_sales_order_details($this->order_no, $this->trans_type);
- } else { // get src_data from debtor_trans
- $this->src_docs = get_customer_trans_version($src_type,
- get_parent_trans($this->trans_type, $src_no));
- $srcdetails = get_customer_trans_details($src_type, array_keys($this->src_docs));
- }