- $delivery = get_customer_trans($type_no, $type);
- if ($delivery['trans_link'] != 0)
- {
- $inv = get_customer_trans($delivery['trans_link'], 10);
- if ($inv['ov_amount'] != 0 || $inv['ov_discount'] != 0 || $inv['ov_gst'] != 0 ||
- $inv['ov_freight'] != 0 || $inv['ov_freight_tax'] != 0 || $inv['alloc'] != 0)
+ $childs = get_sales_child_trans($type_no, $type);
+ if ($childs && db_num_rows($childs))