From 6ce39c89d0d1e7b2734a4e96c07aaafc6f1e41f4 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:58:54 +0000 Subject: [PATCH] Fix: Job dump parsing issue Corrected job dump parsing to include the first line of the BOM. --- src/components/JobForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/JobForm.tsx b/src/components/JobForm.tsx index b270534..127622f 100644 --- a/src/components/JobForm.tsx +++ b/src/components/JobForm.tsx @@ -58,8 +58,8 @@ const JobForm: React.FC = ({ 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) {