# Changelog

## [v2.2.0] - 2026-03-31
### Added
- **UI Simplification**: Removed dedicated buttons for Rongcheng and Tobacco; all Excel orders now use the intelligent auto-routing.
- **Enhanced Yang Biyue Support**: Fixed column mapping for Yang Biyue orders, ensuring standard fields (Barcode, Quantity, Price) are correctly extracted.
- **Headless API Auto-Detect**: `headless_api.py` now automatically distinguishes between Image (OCR) and Excel (Direct) inputs based on file extension.

### Fixed
- **Yang Biyue Preprocessing**: Resolved issue where data was empty due to incorrect column renaming.
- **Interference Filtering**: Added logic to exclude distractor columns like "Settlement Unit" or "Base Quantity" during preprocessing.

### Removed
- **Redundant Files**: Cleaned up `run.py`, `clean.py`, and unused CLI modules.
- **Legacy UI Elements**: Removed tobacco-specific keyboard shortcuts and help entries.

## [v2.1.0] - 2026-03-30
### Added
- **Intelligent Recognition**: Automated fingerprinting for Rongcheng Yigou, Tobacco, and Yang Biyue orders.
- **Auto-Routing**: `OrderService.process_excel` now automatically handles preprocessing without explicit flags.
- **Headless API Enhancements**: `headless_api.py` updated to support the new intelligent recognition mode.
- **Comprehensive Documentation**: Added `OPENCLAW_GUIDE.md` and `FINAL_UPDATE_REPORT.md`.

### Fixed
- **Rongcheng Yigou**: Fixed barcode splitting issue where quantities were incorrectly distributed (30 to 5).
- **Tobacco Orders**: Corrected unit price calculation (divided by 10) and quantity calculation (multiplied by 10).
- **Identification Failure**: Fixed issue where `header=0` caused identification keywords at the very first row to be missed.

## [v2.0.0] - 2026-03-25
### Added
- **Headless API**: First release of `headless_api.py` for OpenClaw integration.
- **Price Validation**: Integration with PosPal item data for unit price auditing.
- **Asynchronous Logging**: GUI now uses a queue for log output to prevent UI freezing.

## [v1.1.0] - 2026-03-10
### Added
- **Rongcheng Yigou Support**: Initial support for Rongcheng Excel templates.
- **Tobacco Support**: Initial support for Tobacco Excel templates.
- **Excel Processor**: Refactored core processing logic into `ExcelProcessor`.
