fix: add missing spec-compliant methods and fields to Excel parser

Add missing spec-compliant methods and fields while keeping the working
implementation that correctly handles the complex Excel structure.

Changes:
- Add public isOrderRow() method to detect order title rows
- Add public extractOrderNumber() method to extract order numbers
- Add public parseMaterialRow() method for spec compliance
- Rename internal parseMaterialRow() to parseMaterialRowInternal()
- Add missing pendingQty field to DiscreteMaterialPlan type

All tests pass (23/23).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Misaka
2026-03-01 13:08:04 +08:00
parent d9e0091602
commit 65bf79fa44
2 changed files with 94 additions and 3 deletions

View File

@@ -50,6 +50,9 @@ export interface DiscreteMaterialPlan {
/** Cumulative outbound quantity (累计出库数量) */
cumulativeOutboundQty?: number;
/** Pending quantity (pending quantity for fulfillment) */
pendingQty?: number;
/** Row number in Excel file */
rowNumber?: number;
}