This commit is contained in:
2021-07-28 22:00:49 +00:00
parent 1762905d37
commit ccc4ee0552
5 changed files with 31 additions and 21 deletions

View File

@@ -569,6 +569,10 @@ PM TODO:
PM and QUOTE BIZ - all the notifications are probably fucked as copied directly from wo
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:
Generate WO from quote
Generate quote from wo

View File

@@ -57,17 +57,6 @@
</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-row>
@@ -154,6 +143,7 @@
:readonly="formState.readOnly"
ref="nextServiceDate"
data-cy="nextServiceDate"
:rules="[form().required(this, 'nextServiceDate')]"
:error-messages="form().serverErrors(this, 'nextServiceDate')"
@input="fieldValueChanged('nextServiceDate')"
></gz-date-time-picker>
@@ -171,6 +161,18 @@
></gz-date-time-picker>
</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-if="

View File

@@ -205,19 +205,21 @@ export default {
wiki: null,
customFields: "{}",
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
projectId: null,
contractId: null,
internalReferenceNumber: null,
customerReferenceNumber: null,
customerContactName: null,
fromPMId: null,
fromPMId: null,
fromCSRId: null,
serviceDate: null,
completeByDate: null,
durationToCompleted: "00:00:00",
invoiceNumber: null,
onsite: true,
customerSignature: null,
customerSignatureName: null,
@@ -1714,7 +1716,7 @@ function generateMenu(vm) {
readOnly: vm.formState.readOnly,
hideCoreBizStandardOptions: vm.obj.userIsRestrictedType,
hideSearch: vm.obj.userIsRestrictedType,
icon: "$ayiPencilAlt",
icon: "$ayiBusinessTime",
title: "PM",
helpUrl: "svc-pms",
formData: {

View File

@@ -2149,7 +2149,8 @@ async function fetchTranslatedText(vm) {
"RecentWorkOrders",
"WorkOrderGenerateUnit",
"ApplyUnitContract",
"CustomerServiceRequest"
"CustomerServiceRequest",
"NewStatus"
]);
}

View File

@@ -2351,7 +2351,8 @@ async function fetchTranslatedText(vm) {
"WorkOrderFromPMID",
"CustomerServiceRequest",
"GenerateQuote",
"GeneratePM"
"GeneratePM",
"NewStatus"
]);
}