if ($error): ?>
Error:
=$error?>
else: ?>
=$part->get('name')?>
if ($part->get('type') == 'module' || $part->get('type') == 'assembly' || $part->get('type') == 'kit'): ?>
Bill of Materials
if (!empty($list->type_list)): ?>
Id
Part
Quantity
foreach ($list->type_list AS $type => $data): ?> foreach ($data AS $unique_id): ?> $unique = $list->getUnique($unique_id); ?> $raw_id = ""; if (!empty($list->raw_list[$unique->id])) { $raw_ids = array(); foreach ($list->raw_list[$unique->id] AS $raw) { $temp = explode(",", $raw->get("raw_id")); if (!empty($temp)) { foreach ($temp AS $key => $tval) $temp[$key] = trim($tval); } $raw_ids[] = implode(", ", $temp); } $raw_id = implode(", ", $raw_ids); } //hack to get borders. if ($raw_id == "") $raw_id = " "; ?>
=$raw_id?>
=$unique->get('name')?>
=$list->getUniqueQuantity($unique->id)?> =$unique->get('units')?>
endforeach ?> endforeach ?>
else: ?>
No parts found.
endif ?> endif ?> endif ?>
Generated by the
=RR_PROJECT_NAME?>