mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 09:13:11 +00:00
Show internal WO number in list WO # column
- Prioritize internalWONumber over workOrderNumber in row mapping
This commit is contained in:
parent
fb5bed9647
commit
46bf66a35d
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ export const fetchWorkOrdersPaged = async ({ search = "", page = 1, pageSize = 1
|
|||
const res = await get(`${API_URL}/WorkOrder/GetWorkOrderList?search=${encodeURIComponent(search)}&page=${page}&pageSize=${pageSize}`);
|
||||
const rows = (res?.data || res?.Data || []).map(x => ({
|
||||
id: x.id ?? x.Id,
|
||||
number: x.workOrderNumber ?? x.WorkOrderNumber ?? x.number ?? "",
|
||||
number: x.internalWONumber ?? x.number ?? x.workOrderNumber ?? "",
|
||||
title: x.title ?? x.Title ?? "",
|
||||
location: x.location ?? x.Location ?? x.locationName ?? x.LocationName ?? "",
|
||||
priority: x.priority ?? x.Priority ?? "",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue