merge release/dyn-1999_check-bkk-agency-perc

This commit is contained in:
vchikalkin 2022-12-15 10:56:28 +03:00
parent 024b6f6f71
commit 8f65fd198d
3 changed files with 8 additions and 0 deletions

View File

@ -82,11 +82,17 @@ export default function (this: ICalculationStore) {
console.log('preparedData', preparedData);
const getAdditionalData = () => {
let maxAllAgencyPerc: number | undefined;
if (this.getValue('recalcWithRevision')) {
maxAllAgencyPerc =
this.getOption('selectQuote')?.evo_maximum_percentage_av;
}
return {
//@ts-ignore
minCashflowMSFONominal: this.irr().min,
//@ts-ignore
maxCashflowMSFONominal: this.irr().max,
maxAllAgencyPerc,
};
};

View File

@ -29,4 +29,5 @@ fragment quoteFieldsLite on quote {
evo_program_import_subsidy_sum
evo_equip_price
evo_supplier_currency_price
evo_maximum_percentage_av
}

View File

@ -186,6 +186,7 @@ export interface IQuote extends BaseEntity {
evo_equip_price?: number;
evo_accept_period?: number;
evo_db_accept_registration?: number;
evo_maximum_percentage_av?: number;
}
export interface IEvoGraph extends BaseEntity {