CASH-699 move kentucky farm bureau to constants
CASH-699 move kentucky farm bureau to constants
This commit is contained in:
parent
ab4b2cdaff
commit
65a1712fc4
2 changed files with 10 additions and 5 deletions
|
|
@ -78,3 +78,7 @@ export function coverageTypeEnum(strCoverageType) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS = [
|
||||||
|
{ name: "KentuckyFarmBureau", value: "223499" },
|
||||||
|
];
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,7 @@ import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||||
import { stateOptions } from "@/constants/state-options";
|
import { stateOptions } from "@/constants/state-options";
|
||||||
import { regex } from "@/helpers/validation-rules";
|
import { regex } from "@/helpers/validation-rules";
|
||||||
|
import { NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS } from "@/constants/insurance";
|
||||||
|
|
||||||
// DEFINE VALIDATION RULES
|
// DEFINE VALIDATION RULES
|
||||||
defineRule(
|
defineRule(
|
||||||
|
|
@ -199,11 +200,11 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
displayClaimNumber() {
|
displayClaimNumber() {
|
||||||
const order = store.getters.order;
|
const order = store.getters.order;
|
||||||
// Kentucky Farm Bureau
|
|
||||||
if (order.payment?.parentAccountNumber.toString() === "223499") {
|
const parent = NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS.find(
|
||||||
return true;
|
(item) => item.value === order.payment?.parentAccountNumber?.toString()
|
||||||
}
|
);
|
||||||
return false;
|
return !!parent;
|
||||||
},
|
},
|
||||||
stateOptions() {
|
stateOptions() {
|
||||||
return stateOptions;
|
return stateOptions;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue