mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 10:53:13 +00:00
fix(work-orders): drop vendor string from Completed closability (SH-114)
This commit is contained in:
parent
3c914f4e57
commit
5d7ac297e4
2 changed files with 2 additions and 6 deletions
|
|
@ -73,9 +73,6 @@ export function getClosabilityGaps(row: WoClosabilityInput): string[] {
|
|||
if (!row.tech.trim()) {
|
||||
gaps.push("Technician");
|
||||
}
|
||||
if (!row.company.trim()) {
|
||||
gaps.push("Company / vendor");
|
||||
}
|
||||
if (!row.completedDate.trim()) {
|
||||
gaps.push("Completed Date");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,8 +64,8 @@ describe("getClosabilityGaps", () => {
|
|||
expect(getClosabilityGaps(makeInput({ tech: "" }))).toEqual(["Technician"]);
|
||||
});
|
||||
|
||||
it("does not let a technician satisfy a missing company requirement", () => {
|
||||
expect(getClosabilityGaps(makeInput({ company: "" }))).toEqual(["Company / vendor"]);
|
||||
it("does not block Completed when vendor/company is empty if technician is assigned", () => {
|
||||
expect(getClosabilityGaps(makeInput({ company: "" }))).toEqual([]);
|
||||
});
|
||||
|
||||
it("lists field gaps before uplift and document gaps", () => {
|
||||
|
|
@ -87,7 +87,6 @@ describe("getClosabilityGaps", () => {
|
|||
).toEqual([
|
||||
"Dispatcher",
|
||||
"Technician",
|
||||
"Company / vendor",
|
||||
"Completed Date",
|
||||
"WO number",
|
||||
"Service",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue