case 4087

This commit is contained in:
2022-01-25 19:42:24 +00:00
parent 81b9ceee15
commit 213b84cbf3
8 changed files with 73 additions and 95 deletions

View File

@@ -910,19 +910,17 @@ export default {
if (isNew) {
if (globalMinutes != 0) {
//set stop date based on start date and global minutes
this.value.items[this.activeWoItemIndex].labors[
this.activeItemIndex
].serviceStopDate = window.$gz.locale.addMinutesToUTC8601String(
dStop = window.$gz.locale.addMinutesToUTC8601String(
dStart,
globalMinutes
);
//set stop date based on start date and global minutes
this.value.items[this.activeWoItemIndex].labors[
this.activeItemIndex
].serviceRateQuantity = globalMinutes;
].serviceStopDate = dStop;
}
} else {
}
{
//Existing record or both dates filled, just update quantity
if (dStop != null) {
this.value.items[this.activeWoItemIndex].labors[
@@ -940,19 +938,17 @@ export default {
if (isNew && dStart == null) {
if (globalMinutes != 0) {
//set start date based on stop date and global minutes
this.value.items[this.activeWoItemIndex].labors[
this.activeItemIndex
].serviceStartDate = window.$gz.locale.addMinutesToUTC8601String(
dStart = window.$gz.locale.addMinutesToUTC8601String(
dStop,
0 - globalMinutes
);
//set start date based on stop date and global minutes
this.value.items[this.activeWoItemIndex].labors[
this.activeItemIndex
].serviceRateQuantity = globalMinutes;
].serviceStartDate = dStart;
}
} else {
}
{
//Existing record or both dates filled, just update quantity
if (dStart != null) {
this.value.items[this.activeWoItemIndex].labors[