mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-01 19:03:12 +00:00
9 lines
365 B
TypeScript
9 lines
365 B
TypeScript
import { mondayOf } from "@/domain/work-orders/utils/wizard-date-utils";
|
|
|
|
/** True when the new scheduled date falls outside the week currently being viewed. */
|
|
export function shouldNotifyCrossWeek(dateIso: string, activeWeekMonday: string): boolean {
|
|
if (!dateIso || !activeWeekMonday) {
|
|
return false;
|
|
}
|
|
return mondayOf(dateIso) !== activeWeekMonday;
|
|
}
|