refactor(shipping-notice): 统一料号字段,移除过时的 SKU 相关字段,更新相关逻辑以支持新字段命名
This commit is contained in:
1 parent
dde25344ca
commit
46eb63f5bb
111 files changed
+3116
-1250
No files matched your search
@@ -41,14 +41,16 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"table.field": "字段",
|
||||
"table.value": "值",
|
||||
"field.po": "采购单号",
|
||||
"field.sku": "料号",
|
||||
"field.sku": "库存内部料号",
|
||||
"field.part_number": "内部料号",
|
||||
"field.customer_part_number": "客户料号",
|
||||
"field.aws_part_number": "AWS 料号",
|
||||
"field.reservation_id": "预订单号",
|
||||
"field.qty": "数量",
|
||||
"field.unit_price": "单价",
|
||||
"field.amount": "金额",
|
||||
"field.required_date": "需求日期",
|
||||
"field.ship_to": "收货方",
|
||||
"field.vendor_part_number": "供应商料号",
|
||||
"field.line_no": "项次",
|
||||
"field.available_qty": "可用数量",
|
||||
"field.aws_sku": "料号",
|
||||
@@ -99,9 +101,9 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"workflow.inventory.parse_failed": "未能解析库存明细。大 Excel 请 upload_inventory_file;小表可粘贴;无库存可走 RPA。",
|
||||
"workflow.inventory.preview_read_failed": "读取库存表头失败: {error}",
|
||||
"workflow.inventory.preview_ready": "已读取库存表头与样例行。请根据 schema_preview 推断列映射,调用 apply_inventory_mapping(map_json=...)。",
|
||||
"workflow.inventory.preview_next": "根据 data.schema_preview.headers 与 sample_rows 推断 JSON:{\"sku\":\"<列名>\",\"reservation_id\":\"<列名>\",\"available_qty\":\"<列名>\"},再调用 apply_inventory_mapping",
|
||||
"workflow.inventory.preview_next": "根据 data.schema_preview.headers 与 sample_rows 推断 JSON:{\"part_number\":\"<Supplier Sku列>\",\"aws_part_number\":\"<AWS Sku列,可选>\",\"reservation_id\":\"<列名>\",\"available_qty\":\"<列名>\"},再调用 apply_inventory_mapping",
|
||||
"workflow.inventory.uploaded_file_missing_short": "未找到已上传的库存文件。请先 upload_inventory_file。",
|
||||
"workflow.inventory.mapping_invalid": "map_json 无效或不完整。需要提供 {\"sku\":\"列名\",\"reservation_id\":\"列名\",\"available_qty\":\"列名\"}。(库存的 Reservation ID 列允许为空值,但必须有该列标题)",
|
||||
"workflow.inventory.mapping_invalid": "map_json 无效或不完整。需要提供 {\"part_number\":\"Supplier Sku列\",\"reservation_id\":\"列名\",\"available_qty\":\"列名\"};aws_part_number 可选。",
|
||||
"workflow.inventory.mapping_header_mismatch": "列映射与 Excel 表头不匹配。(表头在第 {row} 行){errors} 请根据 schema_preview.headers 重新调用 apply_inventory_mapping。",
|
||||
"workflow.inventory.parse_failed_detail": "解析库存失败: {error}",
|
||||
"workflow.inventory.file_missing": "未收到 file 字段",
|
||||
@@ -177,14 +179,16 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"table.field": "Field",
|
||||
"table.value": "Value",
|
||||
"field.po": "PO",
|
||||
"field.sku": "SKU",
|
||||
"field.sku": "Inventory SKU",
|
||||
"field.part_number": "Part Number",
|
||||
"field.customer_part_number": "Customer Part Number",
|
||||
"field.aws_part_number": "AWS Part Number",
|
||||
"field.reservation_id": "Reservation ID",
|
||||
"field.qty": "Qty",
|
||||
"field.unit_price": "Unit Price",
|
||||
"field.amount": "Amount",
|
||||
"field.required_date": "Required date",
|
||||
"field.ship_to": "Ship to",
|
||||
"field.vendor_part_number": "Vendor PN",
|
||||
"field.line_no": "Line",
|
||||
"field.available_qty": "Available qty",
|
||||
"field.aws_sku": "AWS Sku",
|
||||
@@ -235,9 +239,9 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"workflow.inventory.parse_failed": "Inventory lines could not be parsed. For large Excel files, use upload_inventory_file; for small tables, paste the content; if inventory is unavailable, use RPA.",
|
||||
"workflow.inventory.preview_read_failed": "Failed to read inventory headers: {error}",
|
||||
"workflow.inventory.preview_ready": "Inventory headers and sample rows have been loaded. Please infer the column mapping from schema_preview and call apply_inventory_mapping(map_json=...).",
|
||||
"workflow.inventory.preview_next": "Infer JSON from data.schema_preview.headers and sample_rows: {\"sku\":\"<column>\",\"reservation_id\":\"<column>\",\"available_qty\":\"<column>\"}, then call apply_inventory_mapping",
|
||||
"workflow.inventory.preview_next": "Infer JSON from data.schema_preview.headers and sample_rows: {\"part_number\":\"<Supplier Sku column>\",\"aws_part_number\":\"<AWS Sku column, optional>\",\"reservation_id\":\"<column>\",\"available_qty\":\"<column>\"}, then call apply_inventory_mapping",
|
||||
"workflow.inventory.uploaded_file_missing_short": "No uploaded inventory file was found. Please call upload_inventory_file first.",
|
||||
"workflow.inventory.mapping_invalid": "map_json is invalid or incomplete. You must provide {\"sku\":\"column\",\"reservation_id\":\"column\",\"available_qty\":\"column\"}. The Reservation ID column may contain empty values, but the column header itself must exist.",
|
||||
"workflow.inventory.mapping_invalid": "map_json is invalid or incomplete. Provide part_number (Supplier Sku), reservation_id, and available_qty mappings; aws_part_number is optional.",
|
||||
"workflow.inventory.mapping_header_mismatch": "The column mapping does not match the Excel headers. (The header row is row {row}) {errors} Please call apply_inventory_mapping again using schema_preview.headers.",
|
||||
"workflow.inventory.parse_failed_detail": "Failed to parse inventory: {error}",
|
||||
"workflow.inventory.file_missing": "The file field was not received.",
|
||||
@@ -313,14 +317,16 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"table.field": "ฟิลด์",
|
||||
"table.value": "ค่า",
|
||||
"field.po": "PO",
|
||||
"field.sku": "SKU",
|
||||
"field.sku": "SKU สต็อก",
|
||||
"field.part_number": "หมายเลขชิ้นส่วน",
|
||||
"field.customer_part_number": "หมายเลขชิ้นส่วนลูกค้า",
|
||||
"field.aws_part_number": "หมายเลขชิ้นส่วน AWS",
|
||||
"field.reservation_id": "Reservation ID",
|
||||
"field.qty": "จำนวน",
|
||||
"field.unit_price": "ราคาต่อหน่วย",
|
||||
"field.amount": "จำนวนเงิน",
|
||||
"field.required_date": "วันที่ต้องการ",
|
||||
"field.ship_to": "ผู้รับ",
|
||||
"field.vendor_part_number": "หมายเลขชิ้นส่วนผู้ขาย",
|
||||
"field.line_no": "รายการ",
|
||||
"field.available_qty": "จำนวนคงเหลือ",
|
||||
"field.aws_sku": "AWS Sku",
|
||||
@@ -371,9 +377,9 @@ _MESSAGES: dict[str, dict[str, str]] = {
|
||||
"workflow.inventory.parse_failed": "ไม่สามารถแยกรายการสต็อกได้ สำหรับไฟล์ Excel ขนาดใหญ่ให้ใช้ upload_inventory_file; สำหรับตารางเล็กสามารถวางข้อความได้; หากไม่มีสต็อกให้ใช้ RPA",
|
||||
"workflow.inventory.preview_read_failed": "อ่านหัวตารางสต็อกไม่สำเร็จ: {error}",
|
||||
"workflow.inventory.preview_ready": "อ่านหัวตารางและแถวตัวอย่างของสต็อกแล้ว โปรดอนุมานการจับคู่คอลัมน์จาก schema_preview แล้วเรียก apply_inventory_mapping(map_json=...)",
|
||||
"workflow.inventory.preview_next": "อนุมาน JSON จาก data.schema_preview.headers และ sample_rows: {\"sku\":\"<คอลัมน์>\",\"reservation_id\":\"<คอลัมน์>\",\"available_qty\":\"<คอลัมน์>\"} แล้วจึงเรียก apply_inventory_mapping",
|
||||
"workflow.inventory.preview_next": "อนุมาน JSON จาก data.schema_preview.headers และ sample_rows โดยใช้ part_number จาก Supplier Sku, aws_part_number จาก AWS Sku (ไม่บังคับ), reservation_id และ available_qty แล้วเรียก apply_inventory_mapping",
|
||||
"workflow.inventory.uploaded_file_missing_short": "ไม่พบไฟล์สต็อกที่อัปโหลดไว้ โปรดเรียก upload_inventory_file ก่อน",
|
||||
"workflow.inventory.mapping_invalid": "map_json ไม่ถูกต้องหรือไม่ครบ ต้องระบุ {\"sku\":\"ชื่อคอลัมน์\",\"reservation_id\":\"ชื่อคอลัมน์\",\"available_qty\":\"ชื่อคอลัมน์\"} โดยคอลัมน์ Reservation ID สามารถมีค่าว่างได้ แต่ต้องมีหัวคอลัมน์นี้",
|
||||
"workflow.inventory.mapping_invalid": "map_json ไม่ถูกต้องหรือไม่ครบ ต้องระบุ part_number (Supplier Sku), reservation_id และ available_qty; aws_part_number เป็นตัวเลือก",
|
||||
"workflow.inventory.mapping_header_mismatch": "การจับคู่คอลัมน์ไม่ตรงกับหัวตาราง Excel (หัวตารางอยู่ที่แถว {row}) {errors} โปรดเรียก apply_inventory_mapping ใหม่โดยอ้างอิง schema_preview.headers",
|
||||
"workflow.inventory.parse_failed_detail": "解析库存失败: {error}",
|
||||
"workflow.inventory.file_missing": "ไม่ได้รับฟิลด์ file",
|
||||
|
||||
Reference in new issue
Block a user