fix quote?.evo_committee_quote check
This commit is contained in:
parent
7797325f8c
commit
870d7b373b
@ -116,7 +116,7 @@ export function common({ store, apolloClient }: ProcessContext) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (quote?.evo_committee_quote) {
|
if (quote?.evo_committee_quote === 100_000_000) {
|
||||||
elements.forEach((elementName) =>
|
elements.forEach((elementName) =>
|
||||||
$calculation.$status.overrideStatus(elementName, 'Disabled')
|
$calculation.$status.overrideStatus(elementName, 'Disabled')
|
||||||
);
|
);
|
||||||
|
|||||||
@ -245,7 +245,7 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quote?.evo_committee_quote && quote.evo_accept_quoteid) {
|
if (quote?.evo_committee_quote === 100_000_000 && quote.evo_accept_quoteid) {
|
||||||
const {
|
const {
|
||||||
data: { quote: accept_quote },
|
data: { quote: accept_quote },
|
||||||
} = await apolloClient.query({
|
} = await apolloClient.query({
|
||||||
|
|||||||
@ -24,7 +24,7 @@ export async function validateResults({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (quote?.evo_committee_quote && quote.evo_accept_quoteid) {
|
if (quote?.evo_committee_quote === 100_000_000 && quote.evo_accept_quoteid) {
|
||||||
const { preparedValues } = calculateResult;
|
const { preparedValues } = calculateResult;
|
||||||
const { npvBonusExpensesColumn } = calculateResult.columns;
|
const { npvBonusExpensesColumn } = calculateResult.columns;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user