Merged in release/2023-02-03 (pull request #672)
IO-2162 Resolve display issues on scheduling modal . Approved-by: Patrick Fic
This commit is contained in:
@@ -201,7 +201,7 @@ export function ScheduleJobModalComponent({
|
||||
{() => {
|
||||
const values = form.getFieldsValue();
|
||||
if (values.start) {
|
||||
calculateScheduleLoad(values.start);
|
||||
calculateScheduleLoad(moment(values.start).add(3, "days"));
|
||||
}
|
||||
return (
|
||||
<div className="schedule-job-modal">
|
||||
|
||||
@@ -92,7 +92,7 @@ export function* calculateScheduleLoad({ payload: end }) {
|
||||
code: "Job has no scheduled in date",
|
||||
});
|
||||
}
|
||||
if(!item.actual_completion && item.actual_in && !item.inproduction){
|
||||
if (!item.actual_completion && item.actual_in && !item.inproduction) {
|
||||
problemJobs.push({
|
||||
...item,
|
||||
code: "Job has an actual in date, but no actual completion date and is not marked as in production",
|
||||
@@ -207,7 +207,7 @@ export function* calculateScheduleLoad({ payload: end }) {
|
||||
|
||||
//Propagate the expected load to each day.
|
||||
|
||||
const range = Math.round(moment.duration(end.diff(today)).asDays());
|
||||
const range = Math.round(moment.duration(end.diff(today)).asDays()) + 1;
|
||||
for (var day = 0; day < range; day++) {
|
||||
const current = moment(today).add(day, "days").format("yyyy-MM-DD");
|
||||
const prev = moment(today)
|
||||
|
||||
Reference in New Issue
Block a user