feat(shipping-notice): 优化货运订单履约流程与用户体验
- 优化聊天附件列表为横向可滚动布局并新增配套测试用例 - 移除自动填充默认用户消息逻辑,空备注时不再伪造默认正文 - 修复流程Gate动作展示逻辑,隐藏历史遗留操作与自动阶段无效按钮 - 完善库存匹配重试与订单快照冻结校验流程 - 优化进度展示优先级,优先显示人工待处理状态 - 移除Excel导出自动推导金额逻辑,强制使用Schema配置字段 - 新增货代通用报表RPA详细设计文档 - 更新相关测试用例与断言逻辑
This commit is contained in:
1 parent
dc282f3b1d
commit
11cef575b4
51 files changed
+2197
-112
No files matched your search
@@ -387,8 +387,8 @@ def test_excel_pull_request_number_uses_export_date_without_changing_case_number
|
||||
assert shipping_case.business_no == 'IVMX26080801'
|
||||
|
||||
|
||||
def test_export_mapping_falls_back_to_export_sequence_and_derived_line_amount(app):
|
||||
"""LineNumber 缺失时用导出行序号,Shipment Value 缺失时用数量乘单价。"""
|
||||
def test_export_mapping_uses_sequence_but_never_derives_formal_line_amount(app):
|
||||
"""正式金额必须来自 Schema FieldValue,禁止由快照或单价静默推导。"""
|
||||
with app.app_context():
|
||||
fields = _lookup_standard_fields('line_no', 'line_amount_with_tax')
|
||||
task = ShippingNotice(task_no='TASK-MAPPING')
|
||||
@@ -400,7 +400,7 @@ def test_export_mapping_falls_back_to_export_sequence_and_derived_line_amount(ap
|
||||
assert _mapping_value(
|
||||
{'source_kind': 'order_field', 'source_key': fields['line_amount_with_tax'].id, 'formatter': 'decimal', 'row_mode': 'line'},
|
||||
task=task, order_values={'__qty': Decimal('14'), '__unit_price': Decimal('941.76')}, inventory_values={},
|
||||
) == 13184.64
|
||||
) is None
|
||||
|
||||
|
||||
def test_clear_template_data_rows_keeps_headers_and_removes_residual_values():
|
||||
|
||||
Reference in new issue
Block a user