8f6ca7b4538e33436da8e686684d152c71e30c10
**Core Implementation (src/main/services/erp/cleaner.ts):** - CleanerService class with dry-run mode support - Material deletion logic with safety constraints: - Row numbers 7000-7999 are protected - Materials with pending quantity are skipped - Materials not in delete list are ignored - Order processing with nested iframe navigation - Progress callback support for UI integration **Types (src/main/types/cleaner.types.ts):** - CleanerInput: order numbers, material codes, dry-run flag - CleanerResult: processing statistics and details - OrderCleanDetail: per-order breakdown **Tests:** - Unit tests for shouldDeleteMaterial logic - Integration tests for order processing - Dry-run mode validation - Navigation tests Reference: playwrite/utils/discrete_material_plan_cleaner.py Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
erpauto
An Electron application with React and TypeScript
Recommended IDE Setup
Project Setup
Install
$ npm install
Development
$ npm run dev
Build
# For windows
$ npm run build:win
# For macOS
$ npm run build:mac
# For Linux
$ npm run build:linux
Description
Languages
TypeScript
97.1%
JavaScript
2%
C#
0.4%
CSS
0.3%
TSQL
0.2%