feat: update completed also cover ended
This commit is contained in:
parent
813d1d9faa
commit
f91a4ade1e
2 changed files with 8 additions and 2 deletions
|
|
@ -603,7 +603,10 @@ export class RequestListController extends Controller {
|
||||||
)?.stepCount || 0;
|
)?.stepCount || 0;
|
||||||
|
|
||||||
const completeCount = work.stepStatus.filter(
|
const completeCount = work.stepStatus.filter(
|
||||||
(v) => v.workStatus === RequestWorkStatus.Completed,
|
(v) =>
|
||||||
|
v.workStatus === RequestWorkStatus.Completed ||
|
||||||
|
v.workStatus === RequestWorkStatus.Ended ||
|
||||||
|
v.workStatus === RequestWorkStatus.Canceled,
|
||||||
).length;
|
).length;
|
||||||
|
|
||||||
// NOTE: step found then check if complete count equals step count
|
// NOTE: step found then check if complete count equals step count
|
||||||
|
|
|
||||||
|
|
@ -601,7 +601,10 @@ export class TaskActionController extends Controller {
|
||||||
)?.stepCount || 0;
|
)?.stepCount || 0;
|
||||||
|
|
||||||
const completeCount = work.stepStatus.filter(
|
const completeCount = work.stepStatus.filter(
|
||||||
(v) => v.workStatus === RequestWorkStatus.Completed,
|
(v) =>
|
||||||
|
v.workStatus === RequestWorkStatus.Completed ||
|
||||||
|
v.workStatus === RequestWorkStatus.Ended ||
|
||||||
|
v.workStatus === RequestWorkStatus.Canceled,
|
||||||
).length;
|
).length;
|
||||||
|
|
||||||
// NOTE: step found then check if complete count equals step count
|
// NOTE: step found then check if complete count equals step count
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue