Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<Order OrderNumber="81" JobID="002D">
<Phase>
<Name>e</Name>
<Notes></Notes>
</Phase>
<Area>
<Name>e</Name>
<Notes></Notes>
</Area>
// calculate cardboard box square footage for a stock kit
function calcCardboardBoxSquareFootage(parts: Part[]): {
totalBoxAreaSqFeetWithWaste: number;
cost: { material: number; labor: number; total: number };
weight: number;
} {
// Use getTheCardboardDims for dimension calculations
const { maxWidthInches, maxHeightInches, totalThicknessInches } = getTheCardboardDims(parts);
// Calculate board needed for thickness (square inches of sides of kit)