case 4087
This commit is contained in:
@@ -911,7 +911,6 @@ export default {
|
||||
|
||||
if (isNew) {
|
||||
if (globalMinutes != 0) {
|
||||
//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
|
||||
@@ -920,17 +919,6 @@ export default {
|
||||
this.value.items[this.activeWoItemIndex].labors[
|
||||
this.activeItemIndex
|
||||
].serviceStopDate = dStop;
|
||||
|
||||
// = window.$gz.locale.addMinutesToUTC8601String(
|
||||
// dStart,
|
||||
// globalMinutes
|
||||
// );
|
||||
// this.value.items[this.activeWoItemIndex].labors[
|
||||
// this.activeItemIndex
|
||||
// ].serviceRateQuantity = window.$gz.locale.diffHoursFromUTC8601String(
|
||||
// dStart,
|
||||
// sstop
|
||||
// );
|
||||
}
|
||||
}
|
||||
{
|
||||
@@ -951,19 +939,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[
|
||||
|
||||
Reference in New Issue
Block a user