This commit is contained in:
@@ -539,6 +539,8 @@ PM TODO:
|
||||
todo: should be able to directly duplicate to from any *order to any other *order
|
||||
iow no, it's not enough to have wo be the pivot object for a quote to PM, it should be direct
|
||||
|
||||
todo: pm needs fields for copy wiki and copy attachments so server knows to do that on generate
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -650,6 +650,17 @@ export default {
|
||||
});
|
||||
cp.id = 0;
|
||||
cp.fromPMId = this.obj.id;
|
||||
//Service work order defaults copied from work order Data object
|
||||
cp.serviceDate = null;
|
||||
cp.completeByDate = null;
|
||||
cp.durationToCompleted = "00:00:00";
|
||||
cp.invoiceNumber = null;
|
||||
cp.customerSignature = null;
|
||||
cp.customerSignatureName = null;
|
||||
cp.customerSignatureCaptured = null;
|
||||
cp.techSignature = null;
|
||||
cp.techSignatureName = null;
|
||||
cp.techSignatureCaptured = null;
|
||||
|
||||
//Navigate to new record
|
||||
this.$router.push({
|
||||
|
||||
@@ -690,6 +690,18 @@ export default {
|
||||
cp.id = 0;
|
||||
cp.fromQuoteId = this.obj.id;
|
||||
|
||||
//Service work order defaults copied from work order Data object
|
||||
cp.serviceDate = null;
|
||||
cp.completeByDate = null;
|
||||
cp.durationToCompleted = "00:00:00";
|
||||
cp.invoiceNumber = null;
|
||||
cp.customerSignature = null;
|
||||
cp.customerSignatureName = null;
|
||||
cp.customerSignatureCaptured = null;
|
||||
cp.techSignature = null;
|
||||
cp.techSignatureName = null;
|
||||
cp.techSignatureCaptured = null;
|
||||
|
||||
//Navigate to new record
|
||||
this.$router.push({
|
||||
name: "workorder-edit",
|
||||
@@ -717,6 +729,17 @@ export default {
|
||||
});
|
||||
cp.id = 0;
|
||||
|
||||
//PM Defaults copied from PM data object
|
||||
cp.stopGeneratingDate = null;
|
||||
cp.excludeDaysOfWeek = 96;
|
||||
cp.active = true;
|
||||
cp.nextServiceDate = null;
|
||||
cp.repeatUnit = 7;
|
||||
cp.generateBeforeUnit = 4;
|
||||
cp.repeatInterval = 1;
|
||||
cp.generateBeforeInterval = 14;
|
||||
cp.generateDate = null;
|
||||
|
||||
//Navigate to new record
|
||||
this.$router.push({
|
||||
name: "pm-edit",
|
||||
|
||||
@@ -735,6 +735,17 @@ export default {
|
||||
});
|
||||
cp.id = 0;
|
||||
|
||||
//PM Defaults copied from PM data object
|
||||
cp.stopGeneratingDate = null;
|
||||
cp.excludeDaysOfWeek = 96;
|
||||
cp.active = true;
|
||||
cp.nextServiceDate = this.obj.serviceDate;
|
||||
cp.repeatUnit = 7;
|
||||
cp.generateBeforeUnit = 4;
|
||||
cp.repeatInterval = 1;
|
||||
cp.generateBeforeInterval = 14;
|
||||
cp.generateDate = null;
|
||||
|
||||
//Navigate to new record
|
||||
this.$router.push({
|
||||
name: "pm-edit",
|
||||
|
||||
Reference in New Issue
Block a user