Fix: Job dump parsing issue

Corrected job dump parsing to include the first line of the BOM.
This commit is contained in:
gpt-engineer-app[bot]
2025-07-09 12:58:54 +00:00
committed by PhatPhuckDave
parent dc5b91d104
commit 6ce39c89d0

View File

@@ -58,8 +58,8 @@ const JobForm: React.FC<JobFormProps> = ({ job, onSubmit, onCancel }) => {
projectedRevenue: revenue
}));
// Parse BOM starting from line 4 (after empty line)
const bomLines = lines.slice(4); // Skip first 3 lines and empty line
// Parse BOM - everything after the first 3 lines is BOM
const bomLines = lines.slice(3); // Start from line 4 (index 3)
const billOfMaterials: { name: string; quantity: number }[] = [];
for (const line of bomLines) {