feat(finance): link bill lines to inbound details

This commit is contained in:
2026-09-02 20:25:45 +08:00
parent 6d10251161
commit 12424281c7
5 changed files with 22 additions and 3 deletions
+2
View File
@@ -34,6 +34,7 @@ export interface FinanceBillLineWire {
sourceVersion: number
orderId: WireScalar | null
inboundId: WireScalar | null
inboundCode: string | null
feeItemCode: string
feeItemName: string
amount: WireScalar
@@ -89,6 +90,7 @@ function mapBillLine(line: FinanceBillLineWire): FinanceBillLine {
return {
id: text(line.id),
orderId: line.orderId == null ? null : text(line.orderId),
inboundCode: line.inboundCode?.trim() || null,
feeNo: `${line.sourceType}:${text(line.sourceId)}/v${line.sourceVersion}`,
feeName: line.feeItemName,
amount: text(line.amount),