- if (($myrow["type"] == ST_CUSTDELIVERY) || ($myrow["type"] == ST_CUSTCREDIT))
- {
- $cust_row = get_customer_details_from_trans($myrow["type"], $myrow["trans_no"]);
-
- if (strlen($cust_row['name']) > 0)
- $person = $cust_row['name'] . " (" . $cust_row['br_name'] . ")";
-
- }
- elseif ($myrow["type"] == ST_SUPPRECEIVE || $myrow['type'] == ST_SUPPCREDIT)
- {
- // get the supplier name
- $supp_name = get_supplier_name($myrow["person_id"]);
-
- if (strlen($supp_name) > 0)
- $person = $supp_name;
- }
- elseif ($myrow["type"] == ST_LOCTRANSFER || $myrow["type"] == ST_INVADJUST)
- {
- // get the adjustment type
- $movement_type = get_movement_type($myrow["person_id"]);
- $person = $movement_type["name"];
- }
- elseif ($myrow["type"]==ST_WORKORDER || $myrow["type"] == ST_MANUISSUE ||
- $myrow["type"] == ST_MANURECEIVE)
- {
- $person = "";
- }
-
- label_cell($person);