提交
This commit is contained in:
1 parent
4611dbc2b2
commit
ebf006eeff
46 files changed
+36802
-20974
No files matched your search
@@ -3,6 +3,7 @@ import { isPlInternalCustomerName } from '@/utils/pl-internal-customer'
|
||||
export type PlanContractDisplayLine = {
|
||||
side: string
|
||||
no: string
|
||||
contractId?: string
|
||||
pending?: boolean
|
||||
}
|
||||
|
||||
@@ -26,8 +27,9 @@ export function planContractSideLines(
|
||||
): PlanContractDisplayLine[] {
|
||||
const lines: PlanContractDisplayLine[] = []
|
||||
for (const item of contracts || []) {
|
||||
const no = item.contractNo || item.contractId
|
||||
if (no) lines.push({ side, no: String(no) })
|
||||
const contractId = item.contractId ? String(item.contractId) : undefined
|
||||
const no = item.contractNo || contractId
|
||||
if (no) lines.push({ side, no: String(no), contractId })
|
||||
}
|
||||
if (lines.length) return lines
|
||||
if (isPlInternalCustomerName(customerName)) {
|
||||
|
||||
Reference in new issue
Block a user