case 4087
This commit is contained in:
@@ -269,7 +269,9 @@ I've done the *Orders but nothing else other than a quick check of customer, so
|
|||||||
|
|
||||||
|
|
||||||
- 1 todo: Search limited to a type is *not* working, it just returns all results, search from a Customer for example and you will see all object results
|
- 1 todo: Search limited to a type is *not* working, it just returns all results, search from a Customer for example and you will see all object results
|
||||||
|
- 1 todo: window.$gz.locale.diffHoursFromUTC8601String is often calculated a total of 1.99 due to some rounding even though the two times look identical
|
||||||
|
must be seconds or something, needs a round up in those cases, that's weird. To recreate try a start time of 11:21 and end time of 1:21pm which should be two hours but is 1.99 hours
|
||||||
|
sometimes it just works, I'm guessing it's a milliseconds issue or something, round first maybe to remove ms then calc?
|
||||||
- 1 todo: time control in native browser format isn't showing a title at all, check date as well. Date and time is ok
|
- 1 todo: time control in native browser format isn't showing a title at all, check date as well. Date and time is ok
|
||||||
- 1 todo: help about does it show user has native date time input use browser override?
|
- 1 todo: help about does it show user has native date time input use browser override?
|
||||||
|
|
||||||
|
|||||||
@@ -910,19 +910,17 @@ 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].labors[
|
|
||||||
this.activeItemIndex
|
|
||||||
].serviceStopDate = window.$gz.locale.addMinutesToUTC8601String(
|
|
||||||
dStart,
|
dStart,
|
||||||
globalMinutes
|
globalMinutes
|
||||||
);
|
);
|
||||||
|
//set stop date based on start date and global minutes
|
||||||
this.value.items[this.activeWoItemIndex].labors[
|
this.value.items[this.activeWoItemIndex].labors[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].serviceRateQuantity = globalMinutes;
|
].serviceStopDate = 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].labors[
|
this.value.items[this.activeWoItemIndex].labors[
|
||||||
@@ -940,19 +938,17 @@ 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].labors[
|
|
||||||
this.activeItemIndex
|
|
||||||
].serviceStartDate = 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].labors[
|
this.value.items[this.activeWoItemIndex].labors[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].serviceRateQuantity = globalMinutes;
|
].serviceStartDate = 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].labors[
|
this.value.items[this.activeWoItemIndex].labors[
|
||||||
|
|||||||
@@ -625,19 +625,17 @@ 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].scheduledUsers[
|
|
||||||
this.activeItemIndex
|
|
||||||
].stopDate = window.$gz.locale.addMinutesToUTC8601String(
|
|
||||||
dStart,
|
dStart,
|
||||||
globalMinutes
|
globalMinutes
|
||||||
);
|
);
|
||||||
|
//set stop date based on start date and global minutes
|
||||||
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].estimatedQuantity = globalMinutes;
|
].stopDate = 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].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
@@ -655,19 +653,17 @@ 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].scheduledUsers[
|
|
||||||
this.activeItemIndex
|
|
||||||
].startDate = 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].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].estimatedQuantity = globalMinutes;
|
].startDate = 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].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
|
|||||||
@@ -941,19 +941,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[
|
||||||
@@ -971,19 +970,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[
|
||||||
|
|||||||
@@ -911,19 +911,17 @@ 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].labors[
|
|
||||||
this.activeItemIndex
|
|
||||||
].serviceStopDate = window.$gz.locale.addMinutesToUTC8601String(
|
|
||||||
dStart,
|
dStart,
|
||||||
globalMinutes
|
globalMinutes
|
||||||
);
|
);
|
||||||
|
//set stop date based on start date and global minutes
|
||||||
this.value.items[this.activeWoItemIndex].labors[
|
this.value.items[this.activeWoItemIndex].labors[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].serviceRateQuantity = globalMinutes;
|
].serviceStopDate = 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].labors[
|
this.value.items[this.activeWoItemIndex].labors[
|
||||||
@@ -941,19 +939,17 @@ 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].labors[
|
|
||||||
this.activeItemIndex
|
|
||||||
].serviceStartDate = 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].labors[
|
this.value.items[this.activeWoItemIndex].labors[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].serviceRateQuantity = globalMinutes;
|
].serviceStartDate = 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].labors[
|
this.value.items[this.activeWoItemIndex].labors[
|
||||||
|
|||||||
@@ -625,19 +625,17 @@ 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].scheduledUsers[
|
|
||||||
this.activeItemIndex
|
|
||||||
].stopDate = window.$gz.locale.addMinutesToUTC8601String(
|
|
||||||
dStart,
|
dStart,
|
||||||
globalMinutes
|
globalMinutes
|
||||||
);
|
);
|
||||||
|
//set stop date based on start date and global minutes
|
||||||
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].estimatedQuantity = globalMinutes;
|
].stopDate = 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].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
@@ -655,19 +653,17 @@ 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].scheduledUsers[
|
|
||||||
this.activeItemIndex
|
|
||||||
].startDate = 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].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].estimatedQuantity = globalMinutes;
|
].startDate = 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].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
|
|||||||
@@ -941,19 +941,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[
|
||||||
@@ -971,19 +970,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[
|
||||||
|
|||||||
@@ -614,19 +614,17 @@ 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].scheduledUsers[
|
|
||||||
this.activeItemIndex
|
|
||||||
].stopDate = window.$gz.locale.addMinutesToUTC8601String(
|
|
||||||
dStart,
|
dStart,
|
||||||
globalMinutes
|
globalMinutes
|
||||||
);
|
);
|
||||||
|
//set stop date based on start date and global minutes
|
||||||
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].estimatedQuantity = globalMinutes;
|
].stopDate = 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].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
@@ -644,19 +642,17 @@ 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].scheduledUsers[
|
|
||||||
this.activeItemIndex
|
|
||||||
].startDate = 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].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
this.activeItemIndex
|
this.activeItemIndex
|
||||||
].estimatedQuantity = globalMinutes;
|
].startDate = 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].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
|
|||||||
Reference in New Issue
Block a user