Show internal WO number in list WO # column

- Prioritize internalWONumber over workOrderNumber in row mapping
This commit is contained in:
Adam Moussa 2026-04-16 19:32:52 -04:00
parent fb5bed9647
commit 46bf66a35d

View file

@ -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 ?? "",