This commit is contained in:
@@ -506,10 +506,8 @@ todo:2 many biz objects are not using new PUT methodology
|
||||
|
||||
|
||||
CURRENTLY DOING: PM stuff:
|
||||
pmdatalist
|
||||
|
||||
front end
|
||||
front end default data objects in quote and pm and properly set defaults for new record
|
||||
front end default data objects in quote and properly set defaults for new record
|
||||
todo: add back NewStatus trans key it's used by status control
|
||||
report fields coming over properly
|
||||
back end biz job to actually do the generation
|
||||
@@ -526,35 +524,6 @@ CURRENTLY DOING: PM stuff:
|
||||
|
||||
|
||||
|
||||
//ADD KEY public bool[] ExcludeDaysOfWeek { get; set; }//Monday to Sunday (0-6 index)
|
||||
//ADDpublic TimeSpan Repeat { get; set; }//was generate span
|
||||
//ADDpublic TimeSpan GenerateBefore { get; set; }//was threshold span
|
||||
// l.Add(new FormField { TKey = "PMStopGeneratingDate", FieldKey = "PMStopGeneratingDate" });
|
||||
// l.Add(new FormField { TKey = "ExcludeDaysOfWeek", FieldKey = "ExcludeDaysOfWeek" });
|
||||
// l.Add(new FormField { TKey = "PMNextServiceDate", FieldKey = "PMNextServiceDate" });
|
||||
"GenerateWorkOrder": "Generate Work order",
|
||||
"GenerateQuote": "Generate Quote",
|
||||
"GeneratePM":"Generate Preventive Maintenance",
|
||||
"GenerateBefore":"Generate beforehand",
|
||||
"RepeatInterval": "Repeat interval"
|
||||
|
||||
/*
|
||||
+ "stopgeneratingdate TIMESTAMP, nextservicedate TIMESTAMP NOT NULL, generatedate TIMESTAMP, excludedaysofweek BOOL ARRAY NOT NULL, active BOOL NOT NULL, "
|
||||
+ "repeatunit INTEGER NOT NULL, generatebeforeunit INTEGER NOT NULL, repeatinterval INTEGER NOT NULL, generatebeforeinterval INTEGER NOT NULL, "
|
||||
|
||||
|
||||
|
||||
* public DateTime NextServiceDate { get; set; }
|
||||
public PMTimeUnit RepeatUnit { get; set; }
|
||||
public PMTimeUnit GenerateBeforeUnit { get; set; }
|
||||
public int RepeatInterval { get; set; }
|
||||
public int GenerateBeforeInterval { get; set; }
|
||||
* public DateTime? GenerateDate { get; set; }//Internal, not exposed to UI and is the date to do the next generate on that takes into account generatebefore and next service date and is calcd when first created and after that when generate happens for next time see pmbiz top with reference v7 code
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
PM TODO:
|
||||
case 3349 implement all possible grandchild collections in PM (same as quote)
|
||||
case 3344 wo to pm generator (was a case, didn't realize had thought of it already)
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<v-row justify="center">
|
||||
<v-dialog persistent max-width="600px" v-model="genDlg">
|
||||
<v-card>
|
||||
<v-card-title>{{ $ay.t("GenerateWorkOrder") }}</v-card-title>
|
||||
<v-card-title>{{ $ay.t("DuplicateToWorkOrder") }}</v-card-title>
|
||||
<v-card-text>
|
||||
<v-checkbox
|
||||
v-model="genCopyWiki"
|
||||
@@ -221,12 +221,6 @@ export default {
|
||||
customerReferenceNumber: null,
|
||||
customerContactName: null,
|
||||
onsite: true,
|
||||
customerSignature: null,
|
||||
customerSignatureName: null,
|
||||
customerSignatureCaptured: null,
|
||||
techSignature: null,
|
||||
techSignatureName: null,
|
||||
techSignatureCaptured: null,
|
||||
postAddress: null,
|
||||
postCity: null,
|
||||
postRegion: null,
|
||||
@@ -1787,7 +1781,7 @@ function generateMenu(vm) {
|
||||
!vm.obj.userIsRestrictedType
|
||||
) {
|
||||
menuOptions.menuItems.push({
|
||||
title: "GenerateWorkOrder",
|
||||
title: "DuplicateToWorkOrder",
|
||||
icon: "$ayiTools",
|
||||
key: FORM_KEY + ":genwo",
|
||||
vm: vm
|
||||
@@ -1860,7 +1854,7 @@ async function fetchTranslatedText(vm) {
|
||||
"Customer",
|
||||
"PMSerialNumber",
|
||||
"WorkOrderSummary",
|
||||
"GenerateWorkOrder",
|
||||
"DuplicateToWorkOrder",
|
||||
"Contract",
|
||||
"Project",
|
||||
"WorkOrderCustomerContactName",
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<v-row justify="center">
|
||||
<v-dialog persistent max-width="600px" v-model="genDlg">
|
||||
<v-card>
|
||||
<v-card-title>{{ $ay.t("GenerateWorkOrder") }}</v-card-title>
|
||||
<v-card-title>{{ $ay.t("DuplicateToWorkOrder") }}</v-card-title>
|
||||
<v-card-text>
|
||||
<v-checkbox
|
||||
v-model="genCopyWiki"
|
||||
@@ -211,20 +211,13 @@ export default {
|
||||
internalReferenceNumber: null,
|
||||
customerReferenceNumber: null,
|
||||
customerContactName: null,
|
||||
fromQuoteId: null,
|
||||
fromPMId: null,
|
||||
fromCSRId: null,
|
||||
serviceDate: null,
|
||||
completeByDate: null,
|
||||
durationToCompleted: "00:00:00",
|
||||
invoiceNumber: null,
|
||||
preparedById: window.$gz.store.state.userId,
|
||||
introduction: null,
|
||||
requested: window.$gz.locale.nowUTC8601String(),
|
||||
validUntil: null,
|
||||
submitted: null,
|
||||
approved: null,
|
||||
onsite: true,
|
||||
customerSignature: null,
|
||||
customerSignatureName: null,
|
||||
customerSignatureCaptured: null,
|
||||
techSignature: null,
|
||||
techSignatureName: null,
|
||||
techSignatureCaptured: null,
|
||||
postAddress: null,
|
||||
postCity: null,
|
||||
postRegion: null,
|
||||
@@ -1861,7 +1854,7 @@ function generateMenu(vm) {
|
||||
!vm.obj.userIsRestrictedType
|
||||
) {
|
||||
menuOptions.menuItems.push({
|
||||
title: "GenerateWorkOrder",
|
||||
title: "DuplicateToWorkOrder",
|
||||
icon: "$ayiTools",
|
||||
key: FORM_KEY + ":genwo",
|
||||
vm: vm
|
||||
@@ -1940,7 +1933,7 @@ async function fetchTranslatedText(vm) {
|
||||
"Customer",
|
||||
"QuoteSerialNumber",
|
||||
"WorkOrderSummary",
|
||||
"GenerateWorkOrder",
|
||||
"DuplicateToWorkOrder",
|
||||
"Contract",
|
||||
"Project",
|
||||
"WorkOrderCustomerContactName",
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<v-row justify="center">
|
||||
<v-dialog persistent max-width="600px" v-model="genQuoteDlg">
|
||||
<v-card>
|
||||
<v-card-title>{{ $ay.t("GenerateQuote") }}</v-card-title>
|
||||
<v-card-title>{{ $ay.t("DuplicateToQuote") }}</v-card-title>
|
||||
<v-card-text>
|
||||
<v-checkbox
|
||||
v-model="genCopyWiki"
|
||||
@@ -75,7 +75,7 @@
|
||||
<v-row justify="center">
|
||||
<v-dialog persistent max-width="600px" v-model="genPMDlg">
|
||||
<v-card>
|
||||
<v-card-title>{{ $ay.t("GeneratePM") }}</v-card-title>
|
||||
<v-card-title>{{ $ay.t("DuplicateToPM") }}</v-card-title>
|
||||
<v-card-text>
|
||||
<v-checkbox
|
||||
v-model="genCopyWiki"
|
||||
@@ -2004,7 +2004,7 @@ function generateMenu(vm) {
|
||||
!vm.obj.userIsRestrictedType
|
||||
) {
|
||||
menuOptions.menuItems.push({
|
||||
title: "GenerateQuote",
|
||||
title: "DuplicateToQuote",
|
||||
icon: "$ayiPencilAlt",
|
||||
key: FORM_KEY + ":genquote",
|
||||
vm: vm
|
||||
@@ -2017,7 +2017,7 @@ function generateMenu(vm) {
|
||||
!vm.obj.userIsRestrictedType
|
||||
) {
|
||||
menuOptions.menuItems.push({
|
||||
title: "GeneratePM",
|
||||
title: "DuplicateToPM",
|
||||
icon: "$ayiBusinessTime",
|
||||
key: FORM_KEY + ":genpm",
|
||||
vm: vm
|
||||
@@ -2350,8 +2350,8 @@ async function fetchTranslatedText(vm) {
|
||||
"WorkOrderFromQuoteID",
|
||||
"WorkOrderFromPMID",
|
||||
"CustomerServiceRequest",
|
||||
"GenerateQuote",
|
||||
"GeneratePM",
|
||||
"DuplicateToQuote",
|
||||
"DuplicateToPM",
|
||||
"NewStatus"
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user