This commit is contained in:
2022-01-25 19:25:10 +00:00
parent 386ce00bf1
commit 81b9ceee15

View File

@@ -930,19 +930,18 @@ export default {
if (isNew) { if (isNew) {
if (globalMinutes != 0) { if (globalMinutes != 0) {
//set stop date based on start date and global minutes dStop = window.$gz.locale.addMinutesToUTC8601String(
this.value.items[this.activeWoItemIndex].travels[
this.activeItemIndex
].travelStopDate = window.$gz.locale.addMinutesToUTC8601String(
dStart, dStart,
globalMinutes globalMinutes
); );
//set stop date based on start date and global minutes
this.value.items[this.activeWoItemIndex].travels[ this.value.items[this.activeWoItemIndex].travels[
this.activeItemIndex this.activeItemIndex
].travelRateQuantity = globalMinutes; ].travelStopDate = dStop;
} }
} else { }
{
//Existing record or both dates filled, just update quantity //Existing record or both dates filled, just update quantity
if (dStop != null) { if (dStop != null) {
this.value.items[this.activeWoItemIndex].travels[ this.value.items[this.activeWoItemIndex].travels[
@@ -960,19 +959,18 @@ export default {
if (isNew && dStart == null) { if (isNew && dStart == null) {
if (globalMinutes != 0) { if (globalMinutes != 0) {
//set start date based on stop date and global minutes dStart = window.$gz.locale.addMinutesToUTC8601String(
this.value.items[this.activeWoItemIndex].travels[
this.activeItemIndex
].travelStartDate = window.$gz.locale.addMinutesToUTC8601String(
dStop, dStop,
0 - globalMinutes 0 - globalMinutes
); );
//set start date based on stop date and global minutes
this.value.items[this.activeWoItemIndex].travels[ this.value.items[this.activeWoItemIndex].travels[
this.activeItemIndex this.activeItemIndex
].travelRateQuantity = globalMinutes; ].travelStartDate = dStart;
} }
} else { }
{
//Existing record or both dates filled, just update quantity //Existing record or both dates filled, just update quantity
if (dStart != null) { if (dStart != null) {
this.value.items[this.activeWoItemIndex].travels[ this.value.items[this.activeWoItemIndex].travels[