Update: Cannot close job until charge added
If a Non-Warranty job has 'Accounting Charge Required' it cannot be normally closed until 'Accounting Charge Added' (even if 'Account Charge Paid'). The job can still be forcibly closed (by those with permission to forcibly close jobs). The 'Awaiting Finance' and 'Accounting Charge' lists have been updated to reflect this requirement.
This commit is contained in:
@@ -520,15 +520,25 @@
|
||||
</tr>
|
||||
<tr id="Job_Show_Subjects_Actions">
|
||||
<td id="Job_Show_Job_Actions">
|
||||
@if (Model.Job.CanCloseForced())
|
||||
{
|
||||
@{
|
||||
List<string> CanCloseForcedReasons;
|
||||
if (Model.Job.CanCloseForced(out CanCloseForcedReasons))
|
||||
{
|
||||
@Html.ActionLinkSmallButton("Forcibly Close", MVC.API.Job.Close(Model.Job.Id, true), "Job_Show_Job_Actions_ForceClose_Button")
|
||||
<div id="Job_Show_Job_Actions_ForceClose_Dialog" class="dialog" title="Forcibly Close this Job?">
|
||||
<div class="info-box error">
|
||||
<p class="fa-p">
|
||||
<i class="fa fa-exclamation-circle"></i><strong>Are you sure?</strong>
|
||||
</p>
|
||||
<ul>
|
||||
@foreach (var reason in CanCloseForcedReasons)
|
||||
{
|
||||
<li>@reason</li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
@using (Html.BeginForm(MVC.API.Job.ForceClose(Model.Job.Id, null, true)))
|
||||
{
|
||||
<p>
|
||||
<i class="fa fa-exclamation-triangle fa-lg"></i> Are you sure?
|
||||
</p>
|
||||
<h3>Reason:</h3>
|
||||
<p>
|
||||
<textarea name="Reason" class="block"></textarea>
|
||||
@@ -566,6 +576,7 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
}
|
||||
|
||||
@if (Model.Job.CanCloseNormally())
|
||||
|
||||
Reference in New Issue
Block a user