feat: sync latest ARR implementation

This commit is contained in:
Wyndham ARR
2026-07-31 15:11:42 +08:00
parent d6f8a747fa
commit bf7939dd1a
185 changed files with 17527 additions and 2260 deletions

View File

@@ -10,7 +10,7 @@ from decimal import Decimal
from typing import Any, Dict, Mapping, Optional, Sequence, Tuple
PROCESSOR_VERSION = "1.0.0"
PROCESSOR_VERSION = "1.2.0"
RESULT_SCHEMA_VERSION = "1.0"
ENGLISH_MONTH_NAMES: Tuple[str, ...] = (
@@ -271,7 +271,12 @@ def rule_set_sha256() -> str:
"companies": [rule.__dict__ for rule in COMPANY_RULES],
"period_basis": "departure",
"group_code_normalization": "nfkc_trim_upper",
"row_key": ["group_code", "arrival", "departure"],
"row_key": {
"with_group_code": ["group_code", "arrival", "departure"],
"without_group_code": ["daily_record_id"],
},
"missing_group_code_booking_room": "blank",
"unmatched_group_code_booking_room": "blank",
"price_group_key": ["room_category_label", "static_total_price"],
"filename_pattern": "<Company>-<EnglishFullMonth>-<YYYY>.xlsx",
"sheet_pattern": "<Company> <DD-DD> <EnglishMon> <YYYY>",