This commit is contained in:
@@ -560,7 +560,7 @@ export default {
|
||||
//CONTRACT
|
||||
if (res.data.contract.id != 0) {
|
||||
//has contract, if it differs from main work order contract then offer to set it
|
||||
if (res.data.id == this.value.contractId) {
|
||||
if (res.data.contract.id == this.value.contractId) {
|
||||
//same contract, just bail
|
||||
//yes the date could not be different but we're not going to pick that nit, they can just unset and set if it matters
|
||||
return;
|
||||
@@ -568,7 +568,7 @@ export default {
|
||||
//Prompt user to use new contract
|
||||
const prompt = this.$ay
|
||||
.t("ApplyUnitContract")
|
||||
.replace("{0}", res.data.name);
|
||||
.replace("{0}", res.data.contract.name);
|
||||
|
||||
const dialogResult = await window.$gz.dialog.confirmGenericPreTranslated(
|
||||
prompt,
|
||||
@@ -577,7 +577,7 @@ export default {
|
||||
if (dialogResult == false) {
|
||||
return;
|
||||
} else {
|
||||
this.value.contractId = res.data.id;
|
||||
this.value.contractId = res.data.contract.id;
|
||||
this.value.isDirty = true;
|
||||
this.pvm.formState.dirty = true;
|
||||
this.$emit("change");
|
||||
|
||||
Reference in New Issue
Block a user