case 4087

This commit is contained in:
2022-01-25 19:09:09 +00:00
parent 905a9f832f
commit 3a1d884d5d
2 changed files with 86 additions and 7 deletions

View File

@@ -911,19 +911,29 @@ 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(
//todo: minimize this code, try to use dStop instead of new variable and let else block set actual minutes - cleaner
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;
// = window.$gz.locale.addMinutesToUTC8601String(
// dStart,
// globalMinutes
// );
// this.value.items[this.activeWoItemIndex].labors[
// this.activeItemIndex
// ].serviceRateQuantity = window.$gz.locale.diffHoursFromUTC8601String(
// dStart,
// sstop
// );
}
} else {
}
{
//Existing record or both dates filled, just update quantity
if (dStop != null) {
this.value.items[this.activeWoItemIndex].labors[