feat(finance): link bill lines to inbound details
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user