This commit is contained in:
@@ -569,6 +569,10 @@ PM TODO:
|
|||||||
PM and QUOTE BIZ - all the notifications are probably fucked as copied directly from wo
|
PM and QUOTE BIZ - all the notifications are probably fucked as copied directly from wo
|
||||||
fix and add their own special ones
|
fix and add their own special ones
|
||||||
|
|
||||||
|
"Generate work order" sounds like the PM automatic generation system, is this confusing?
|
||||||
|
need to disambiguate these things because the word generate is used for pm generation to wo
|
||||||
|
but what we are really doing is creating a work order from something or copy to new WorkOrder / Quote / PM?
|
||||||
|
|
||||||
New plan: a way to generate any form of order from any other even if indirectly:
|
New plan: a way to generate any form of order from any other even if indirectly:
|
||||||
Generate WO from quote
|
Generate WO from quote
|
||||||
Generate quote from wo
|
Generate quote from wo
|
||||||
|
|||||||
@@ -57,17 +57,6 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<!-- ##################################################################################### -->
|
<!-- ##################################################################################### -->
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
|
||||||
<v-checkbox
|
|
||||||
v-model="value.active"
|
|
||||||
:readonly="formState.readOnly"
|
|
||||||
:label="$ay.t('Active')"
|
|
||||||
ref="active"
|
|
||||||
data-cy="active"
|
|
||||||
:error-messages="form().serverErrors(this, 'active')"
|
|
||||||
@change="fieldValueChanged('active')"
|
|
||||||
></v-checkbox>
|
|
||||||
</v-col>
|
|
||||||
|
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-row>
|
<v-row>
|
||||||
@@ -154,6 +143,7 @@
|
|||||||
:readonly="formState.readOnly"
|
:readonly="formState.readOnly"
|
||||||
ref="nextServiceDate"
|
ref="nextServiceDate"
|
||||||
data-cy="nextServiceDate"
|
data-cy="nextServiceDate"
|
||||||
|
:rules="[form().required(this, 'nextServiceDate')]"
|
||||||
:error-messages="form().serverErrors(this, 'nextServiceDate')"
|
:error-messages="form().serverErrors(this, 'nextServiceDate')"
|
||||||
@input="fieldValueChanged('nextServiceDate')"
|
@input="fieldValueChanged('nextServiceDate')"
|
||||||
></gz-date-time-picker>
|
></gz-date-time-picker>
|
||||||
@@ -171,6 +161,18 @@
|
|||||||
></gz-date-time-picker>
|
></gz-date-time-picker>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
|
<v-checkbox
|
||||||
|
v-model="value.active"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('Active')"
|
||||||
|
ref="active"
|
||||||
|
data-cy="active"
|
||||||
|
:error-messages="form().serverErrors(this, 'active')"
|
||||||
|
@change="fieldValueChanged('active')"
|
||||||
|
></v-checkbox>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<!-- ##################################################################################### -->
|
<!-- ##################################################################################### -->
|
||||||
<v-col
|
<v-col
|
||||||
v-if="
|
v-if="
|
||||||
|
|||||||
@@ -205,19 +205,21 @@ export default {
|
|||||||
wiki: null,
|
wiki: null,
|
||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
tags: [],
|
tags: [],
|
||||||
|
stopGeneratingDate: null,
|
||||||
|
excludeDaysOfWeek: 96,
|
||||||
|
active: true,
|
||||||
|
nextServiceDate: null,
|
||||||
|
repeatUnit: 7,
|
||||||
|
generateBeforeUnit: 4,
|
||||||
|
repeatInterval: 1,
|
||||||
|
generateBeforeInterval: 14,
|
||||||
|
generateDate: null,
|
||||||
customerId: 0, //part of rule breaking, flip to null on new triggers broken rule
|
customerId: 0, //part of rule breaking, flip to null on new triggers broken rule
|
||||||
projectId: null,
|
projectId: null,
|
||||||
contractId: null,
|
contractId: null,
|
||||||
internalReferenceNumber: null,
|
internalReferenceNumber: null,
|
||||||
customerReferenceNumber: null,
|
customerReferenceNumber: null,
|
||||||
customerContactName: null,
|
customerContactName: null,
|
||||||
fromPMId: null,
|
|
||||||
fromPMId: null,
|
|
||||||
fromCSRId: null,
|
|
||||||
serviceDate: null,
|
|
||||||
completeByDate: null,
|
|
||||||
durationToCompleted: "00:00:00",
|
|
||||||
invoiceNumber: null,
|
|
||||||
onsite: true,
|
onsite: true,
|
||||||
customerSignature: null,
|
customerSignature: null,
|
||||||
customerSignatureName: null,
|
customerSignatureName: null,
|
||||||
@@ -1714,7 +1716,7 @@ function generateMenu(vm) {
|
|||||||
readOnly: vm.formState.readOnly,
|
readOnly: vm.formState.readOnly,
|
||||||
hideCoreBizStandardOptions: vm.obj.userIsRestrictedType,
|
hideCoreBizStandardOptions: vm.obj.userIsRestrictedType,
|
||||||
hideSearch: vm.obj.userIsRestrictedType,
|
hideSearch: vm.obj.userIsRestrictedType,
|
||||||
icon: "$ayiPencilAlt",
|
icon: "$ayiBusinessTime",
|
||||||
title: "PM",
|
title: "PM",
|
||||||
helpUrl: "svc-pms",
|
helpUrl: "svc-pms",
|
||||||
formData: {
|
formData: {
|
||||||
|
|||||||
@@ -2149,7 +2149,8 @@ async function fetchTranslatedText(vm) {
|
|||||||
"RecentWorkOrders",
|
"RecentWorkOrders",
|
||||||
"WorkOrderGenerateUnit",
|
"WorkOrderGenerateUnit",
|
||||||
"ApplyUnitContract",
|
"ApplyUnitContract",
|
||||||
"CustomerServiceRequest"
|
"CustomerServiceRequest",
|
||||||
|
"NewStatus"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2351,7 +2351,8 @@ async function fetchTranslatedText(vm) {
|
|||||||
"WorkOrderFromPMID",
|
"WorkOrderFromPMID",
|
||||||
"CustomerServiceRequest",
|
"CustomerServiceRequest",
|
||||||
"GenerateQuote",
|
"GenerateQuote",
|
||||||
"GeneratePM"
|
"GeneratePM",
|
||||||
|
"NewStatus"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user