Fix: Job dump parsing issue
Corrected job dump parsing to include the first line of the BOM.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user