CASH-699 move kentucky farm bureau to constants

CASH-699 move  kentucky farm bureau to constants
This commit is contained in:
CarlNation 2026-05-07 12:50:13 -04:00
parent ab4b2cdaff
commit 65a1712fc4
2 changed files with 10 additions and 5 deletions

View file

@ -78,3 +78,7 @@ export function coverageTypeEnum(strCoverageType) {
return null;
}
}
export const NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS = [
{ name: "KentuckyFarmBureau", value: "223499" },
];

View file

@ -138,6 +138,7 @@ import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
import { settleAllPromises } from "@/helpers/layout-helper";
import { stateOptions } from "@/constants/state-options";
import { regex } from "@/helpers/validation-rules";
import { NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS } from "@/constants/insurance";
// DEFINE VALIDATION RULES
defineRule(
@ -199,11 +200,11 @@ export default {
computed: {
displayClaimNumber() {
const order = store.getters.order;
// Kentucky Farm Bureau
if (order.payment?.parentAccountNumber.toString() === "223499") {
return true;
}
return false;
const parent = NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS.find(
(item) => item.value === order.payment?.parentAccountNumber?.toString()
);
return !!parent;
},
stateOptions() {
return stateOptions;