feat(fleet): bind quote versions and reconcile actual return quantities

This commit is contained in:
2026-10-03 13:32:55 +08:00
parent cb6c54ffe5
commit a6fd0ba3c5
60 changed files with 1363 additions and 75 deletions
@@ -45,6 +45,9 @@ test('车次直接成本按车次幂等并保留独立币种与不可变更正
})
test('车辆报价与实测记录保留业务去重和不可变版本', () => {
const booking = table(overseas, 'baiyue_lastleg', 'll_fleet_external_booking')
assert.match(booking, /quote_source_json JSON NULL/i)
assert.match(booking, /agreed_amount DECIMAL\(16,2\) NULL/i)
const quote = table(overseas, 'baiyue_lastleg', 'll_fleet_quote')
assert.match(quote, /UNIQUE KEY uk_fleet_quote_no \(quote_no\)/i)
assert.match(quote, /UNIQUE KEY uk_fleet_quote_natural \(natural_key\)/i)