getTypes(); foreach ($types AS $type) { $parts = $bom->getParts($type); renderGenericPartsCSV($parts, ucfirst(strtolower($type))); } } function renderUniqueJSON($bom) { $parts = $bom->getParts(); echo json_encode($parts); } function renderUniqueHTML($bom) { drawHeader("Choose Suppliers"); $types = $bom->getTypes(); $suppliers = $bom->getUniqueSuppliers(); ?>

Set a global supplier (it will choose this supplier if available below.)

getParts($type); if ($type != 'assembly') renderGenericPartsHTML($parts, ucfirst(strtolower($type))); } ?>
name, $part->quantity)); fputcsv($fp, array()); fclose($fp); } function renderGenericPartsHTML($parts, $name) { ?>

quantity;?>
Part Quantity Suppliers
name?> quantity?>
Total:
No parts found. getSafeName() . '"/>'; echo ''; if (!empty($part->unique_part->suppliers)) { echo ''; } else { echo ''; echo 'no suppliers - suggest one!'; } echo "\n"; } ?>