Misaka 8f6ca7b453 feat: implement CleanerService for ERP material deletion
**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>
2026-03-01 14:53:49 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-03-01 12:22:26 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00
2026-02-28 20:36:59 +08:00

erpauto

An Electron application with React and TypeScript

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
No description provided
Readme 16 MiB
Languages
TypeScript 97.1%
JavaScript 2%
C# 0.4%
CSS 0.3%
TSQL 0.2%