fix: explain missing rooms within ARR processing scope

This commit is contained in:
Wyndham ARR committed 2026-10-08 19:34:27 +08:00
1 parent d1363be5b7
commit 36235e7d8d
4 files changed
+18 -2

No files matched your search

+2
View File
@@ -647,6 +647,8 @@
if (sourceState === "failed" || failedReasons.includes(reason)) return "fetch_failed";
if (sourceState === "ambiguous" || /(?:^|_)(?:CONFLICT|AMBIGUOUS|MISMATCH|DISAGREEMENT|CHANGED)(?:_|$)/.test(reason)) return "conflict_value";
if (/(?:^|_)(?:INVALID|MALFORMED)(?:_|$)/.test(reason) || ["XML_NEGATIVE_NIGHTS", "DATA_NEGATIVE_NIGHTS"].includes(reason)) return "invalid_value";
if (item.field === "DISP_ROOM_NO" && !item.can_be_empty
&& ["CALENDAR_MISSING_ROOMS", "DATA_ROOM_MISSING", "XML_ROOM_MISSING"].includes(reason)) return "room_missing_in_scope";
return item.can_be_empty ? "source_unconfirmed" : "required_value_missing";
}
+1
View File
@@ -156,6 +156,7 @@
"data_review.required_field_rule": ["原处理规则必填,不可为空。", "Required by the original processing rules; cannot be blank.", "กฎการประมวลผลเดิมกำหนดให้กรอก ห้ามเว้นว่าง"],
"data_review.optional_field_rule": ["原处理规则允许为空。", "The original processing rules allow this field to be blank.", "กฎการประมวลผลเดิมอนุญาตให้เว้นช่องนี้ว่างได้"],
"data_review.required_value_missing": ["本次未取得该值,请填写核实后的值。", "This value was not obtained. Enter the verified value.", "ครั้งนี้ไม่ได้รับค่านี้ โปรดกรอกค่าที่ตรวจสอบแล้ว"],
"data_review.room_missing_in_scope": ["该记录的费率在处理范围内,但来源数据未提供房号。请填写核实后的房号。", "This record's rate code is within the processing scope, but the source supplied no room number. Enter the verified room number.", "รหัสราคาของรายการนี้อยู่ในขอบเขตการประมวลผล แต่ข้อมูลต้นทางไม่ได้ระบุหมายเลขห้อง โปรดกรอกหมายเลขห้องที่ตรวจสอบแล้ว"],
"data_review.source_unconfirmed": ["来源尚未确认。请核实有无此信息;没有则点击“确认无此信息”。", "The source is unconfirmed. Check whether this information exists; if it does not, choose “Confirm no value”.", "ยังยืนยันข้อมูลจากแหล่งต้นทางไม่ได้ โปรดตรวจสอบว่ามีข้อมูลนี้หรือไม่ หากไม่มี ให้เลือก “ยืนยันว่าไม่มีข้อมูล”"],
"data_review.fetch_failed": ["接口读取未完成,请先核实来源,不能直接认定没有此信息。", "The interface read did not complete. Verify the source before concluding that no information exists.", "การอ่านข้อมูลผ่านอินเทอร์เฟซยังไม่เสร็จ โปรดตรวจสอบแหล่งข้อมูลก่อนสรุปว่าไม่มีข้อมูลนี้"],
"data_review.conflict_value": ["来源值有冲突,请核实后填写正确的值。", "Source values conflict. Verify and enter the correct value.", "ข้อมูลต้นฉบับขัดแย้งกัน โปรดตรวจสอบและกรอกค่าที่ถูกต้อง"],