mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 06:53:12 +00:00
chore(workorders): keep ticket keys out of source comments
This commit is contained in:
parent
51ca244524
commit
c1fd8f6d88
5 changed files with 5 additions and 5 deletions
|
|
@ -227,7 +227,7 @@ export const workOrdersApi = {
|
|||
"Unable to verify the work order number: search result set exceeded the safety page limit.",
|
||||
);
|
||||
}
|
||||
// Every week plus undated rows: a WO# must be unique regardless of schedule (SH-391).
|
||||
// Every week plus undated rows: a WO# must be unique regardless of schedule.
|
||||
const result = await workOrdersApi.searchBoard({
|
||||
search: normalized,
|
||||
datePreset: "Custom",
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export type DateRangeKey =
|
|||
export type CompletionDocFilter = "No" | "Yes" | "NN";
|
||||
|
||||
export interface WorkOrderAdvancedFilters {
|
||||
/** `null` = no date range selected: search every week (SH-391). */
|
||||
/** `null` = no date range selected: search every week. */
|
||||
dateRange: DateRangeKey | null;
|
||||
customFrom: string;
|
||||
customTo: string;
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ export interface WorkOrderBoardSearchQueryParams {
|
|||
*/
|
||||
unscheduledOnly?: boolean;
|
||||
/**
|
||||
* SH-391: `true` adds open rows with no date to the range. Sent only when no
|
||||
* `true` adds open rows with no date to the range. Sent only when no
|
||||
* date range is selected, so an explicit range strictly narrows the results.
|
||||
*/
|
||||
includeDateless?: boolean;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ const isOpenUndated = (row: WorkOrderTableRow): boolean =>
|
|||
!row.scheduledOn && !isTerminalCarryOverStatus(row.status);
|
||||
|
||||
// Mirrors the board search (ApplyDateRangeFilter and ApplyUnscheduledOnlyFilter)
|
||||
// so the page and /board/search keep the same rows (SH-391): a row is in a range
|
||||
// so the page and /board/search keep the same rows: a row is in a range
|
||||
// when its date is, or when it is week-only and its target week overlaps. With
|
||||
// no range, every week is searched and open undated rows are added. Closed
|
||||
// undated rows are never unscheduled.
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ function resolveAdvancedSearchDate(filters: WorkOrderAdvancedFilters): {
|
|||
if (filters.unscheduledOnly) {
|
||||
return {};
|
||||
}
|
||||
// SH-391: no range selected searches every week, undated rows included. Any
|
||||
// No range selected searches every week, undated rows included. Any
|
||||
// selected range (This week included) strictly narrows the results.
|
||||
if (filters.dateRange === null) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue