Reorganized work order costing to make corect registration of costs in journal.
[fa-stable.git] / includes / types.inc
index 9a437f1ba9dad7d78f6624e526344872d4510351..a40f4210e65fbf45c37b39fbe93e49d967c95e99 100644 (file)
@@ -123,9 +123,6 @@ function payment_person_name($type, $person_id, $full=true) {
                case PT_QUICKENTRY :
                        $qe = get_quick_entry($person_id);
                        return ($full ? $payment_person_types[$type] . " ":"") . $qe["description"];
-               case PT_WORKORDER :
-                       global $wo_cost_types;
-                       return $wo_cost_types[$person_id];
                case PT_CUSTOMER :
                        return ($full ?$payment_person_types[$type] . " ":"") . get_customer_name($person_id);
                case PT_SUPPLIER :
@@ -171,6 +168,7 @@ define('WO_ADVANCED', 2);
 
 define('WO_LABOUR', 0);
 define('WO_OVERHEAD', 1);
+define('WO_MATERIALS', 2);
 
 //----------------------------------------------------------------------------------
 //     GL account classes