disable completing incomplete work orders
parent
c4397444e5
commit
7b72328176
|
|
@ -61,14 +61,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
return !milestone.workOrderMilestoneCompletionDate;
|
return !milestone.workOrderMilestoneCompletionDate;
|
||||||
});
|
});
|
||||||
if (hasOpenMilestones) {
|
if (hasOpenMilestones) {
|
||||||
bulmaJS.confirm({
|
bulmaJS.alert({
|
||||||
title: "Close Work Order with Outstanding Milestones",
|
title: "Outstanding Milestones",
|
||||||
message: "Are you sure you want to close this work order with outstanding milestones?",
|
message: "You cannot close a work order with outstanding milestones." +
|
||||||
contextualColorName: "danger",
|
" Either complete the outstanding milestones, or remove them from the work order.",
|
||||||
okButton: {
|
contextualColorName: "warning"
|
||||||
text: "Yes, Close Work Order",
|
|
||||||
callbackFunction: doClose
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,16 @@ declare const bulmaJS: BulmaJS;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (hasOpenMilestones) {
|
if (hasOpenMilestones) {
|
||||||
|
bulmaJS.alert({
|
||||||
|
title: "Outstanding Milestones",
|
||||||
|
message:
|
||||||
|
"You cannot close a work order with outstanding milestones." +
|
||||||
|
" Either complete the outstanding milestones, or remove them from the work order.",
|
||||||
|
contextualColorName: "warning"
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
// Disable closing work orders with open milestones
|
||||||
bulmaJS.confirm({
|
bulmaJS.confirm({
|
||||||
title: "Close Work Order with Outstanding Milestones",
|
title: "Close Work Order with Outstanding Milestones",
|
||||||
message:
|
message:
|
||||||
|
|
@ -112,6 +122,7 @@ declare const bulmaJS: BulmaJS;
|
||||||
callbackFunction: doClose
|
callbackFunction: doClose
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
} else {
|
} else {
|
||||||
bulmaJS.confirm({
|
bulmaJS.confirm({
|
||||||
title: "Close Work Order",
|
title: "Close Work Order",
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue