fix(finance): 历史订单退款不再进入新财务口径

- 断代前 archived 订单的退款只保留业务记录,不再生成冲减事实/总账
- 退款后的事实与费用重算只针对非归档订单
- 移除 refund_adjustment 渠道值的前端筛选与标签
- 迁移 116 的列约束保留,不再写入该值
This commit is contained in:
yml2213
2026-11-01 16:22:49 +08:00
parent a692723c73
commit 5d7904f6ee
6 changed files with 30 additions and 62 deletions
@@ -41,7 +41,6 @@ const FULFILLMENT_MODE_OPTIONS = [
{ value: 'third_party_voucher', label: '第三方卡券' },
{ value: 'manual', label: '人工客服' },
{ value: 'unclassified', label: '未分类' },
{ value: 'refund_adjustment', label: '历史退款冲减' },
{ value: 'archived', label: '历史归档' },
]
@@ -53,7 +52,6 @@ const FULFILLMENT_MODE_LABEL: Record<string, string> = {
manual: '人工客服',
archived: '历史归档',
unclassified: '未分类',
refund_adjustment: '历史退款冲减',
}
const COST_STAGE_LABEL: Record<string, { label: string; color: string }> = {
@@ -52,7 +52,6 @@ const FULFILLMENT_MODE_LABELS: Record<string, string> = {
pending: '待分类',
archived: '历史归档',
unclassified: '未分类',
refund_adjustment: '历史退款冲减',
}
const REASON_LABELS: Record<string, string> = {
@@ -8,7 +8,6 @@ export type FulfillmentChannel =
| 'third_party_voucher'
| 'legacy_platform'
| 'manual'
| 'refund_adjustment'
/** 商品来源:由 canonical_sku 前缀推导,空串表示未分类。 */
export type ProductSource = 'affiliate_dash' | 'work_order' | 'third_party_voucher' | 'manual' | ''