销售侧汇总统一叫费用合计,并认准空运费的金额。
企微跳转改为账号密码登录,报价卡上的费用按原金额改回;航线按单价数量金额报价时不再记成海运费。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -90,6 +90,22 @@ class AttachWaveTests(unittest.TestCase):
|
||||
self.assertIn("纽约港", oral)
|
||||
self.assertEqual(classify_multi_text(oral), "multi")
|
||||
|
||||
def test_one_sea_quote_filename_is_single(self) -> None:
|
||||
"""只传一份海运报价单:文件名带海运,表里再写运输方式,不能报同一方式两段。"""
|
||||
from agent.policy.multi_segments import classify_multi_text
|
||||
|
||||
self.book.open_wait("s1", precede_text="", token="tok1", now=1.0)
|
||||
self.book.add_files("s1", ["WO202608250012_海运报价单.xlsx"], now=2.0)
|
||||
self.book.complete_material(
|
||||
"s1",
|
||||
0,
|
||||
text="运输方式:海运\n起运港:纽约港\n目的港:巴生西港\n海运询价",
|
||||
)
|
||||
oral = self.book.compose_oral("s1")
|
||||
self.assertIn("段1:海运", oral)
|
||||
self.assertIn("运输方式:海运", oral)
|
||||
self.assertEqual(classify_multi_text(oral), "single")
|
||||
|
||||
def test_ltl_filename_counts_as_land_segment(self) -> None:
|
||||
"""零担询价表文件名没有「陆运」二字,也要和海运表切成两段。"""
|
||||
from agent.policy.multi_segments import classify_multi_text
|
||||
|
||||
Reference in New Issue
Block a user