This commit is contained in:
2021-09-08 18:41:33 +00:00
parent d28b4d6497
commit edf32a0f47
2 changed files with 23 additions and 2 deletions

View File

@@ -247,13 +247,14 @@ todo:2 notify on server boot?? (general notify to admin user or whatever?)
or on shutdown?
todo:3 notify on user login?
todo:2 errors are inconsistent some use "error" some use "code" to mean the same thing
this is likely becuase "code" is used in the outer wrapper and "error" is used in the individual "details" validation errors
this is likely because "code" is used in the outer wrapper and "error" is used in the individual "details" validation errors
however it would be much cleaner if it was the same thing at all levels
Settle on "Code" only, change "error" to "code"
some things are producing {message:"blah",target:"blah",error:"blah"}
controller apierror
and validation errors are : {message:"blah", target:"blah", code:"blah"}
todo: 2 Should the database integrity check run as a regular job?
because a person could fuck up the db while the server is running and the server wouldn't notice until it tried to access a fucked up table
NOW

View File

@@ -245,6 +245,20 @@
}}<v-icon right large>$ayiTrashRestoreAlt</v-icon></v-btn
>
<div ref="topform"></div>
<v-col
v-if="value.items[activeItemIndex].fromCSRId != null"
cols="12"
sm="6"
lg="4"
xl="3"
>
<v-btn text @click="openCSR()">
<v-icon>$ayiConciergeBell</v-icon>
<span class="text-h6 accent--text" @click="openCSR()"
>{{ $ay.t("CustomerServiceRequest") }}
</span></v-btn
>
</v-col>
<v-col
v-if="form().showMe(this, 'Items.WorkOrderItemSummary')"
cols="12"
@@ -917,6 +931,12 @@ export default {
}
},
methods: {
openCSR: function() {
window.$gz.eventBus.$emit("openobject", {
type: window.$gz.type.CustomerServiceRequest,
id: this.value.items[this.activeItemIndex].fromCSRId
});
},
async copyItemToWorkOrder() {
if (!this.copyItemWoNumber) {
return;