This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |