evo_coefficient extend find
This commit is contained in:
parent
d96b30a192
commit
97527caefb
@ -194,6 +194,7 @@ const query = gql`
|
||||
evo_max_period
|
||||
evo_min_period
|
||||
evo_controls_program
|
||||
evo_helpcard_type
|
||||
}
|
||||
selectTarif: evo_tarifs(
|
||||
statecode: $statecode
|
||||
|
||||
@ -40,6 +40,11 @@ const query = gql`
|
||||
evo_id
|
||||
evo_leasingobject_typeid
|
||||
}
|
||||
evo_businessunits {
|
||||
evo_name
|
||||
evo_businessunitid
|
||||
evo_sale_businessunitid
|
||||
}
|
||||
}
|
||||
evo_sot_coefficient_type: evo_sot_coefficient_types(statecode: $statecode) {
|
||||
evo_id
|
||||
|
||||
@ -350,7 +350,10 @@ export default ({
|
||||
const evo_coefficient = evo_coefficient_bonuses.find(
|
||||
x =>
|
||||
x.evo_sot_coefficient_typeid ===
|
||||
evo_sot_coefficient_type?.evo_sot_coefficient_typeid,
|
||||
evo_sot_coefficient_type?.evo_sot_coefficient_typeid &&
|
||||
x.evo_businessunits?.find(
|
||||
x => x.evo_sale_businessunitid === systemuser.businessunitid,
|
||||
),
|
||||
);
|
||||
|
||||
if (evo_coefficient) {
|
||||
@ -370,7 +373,10 @@ export default ({
|
||||
const evo_coefficient = evo_coefficient_bonuses.find(
|
||||
x =>
|
||||
x.evo_sot_coefficient_typeid ===
|
||||
evo_sot_coefficient_type?.evo_sot_coefficient_typeid,
|
||||
evo_sot_coefficient_type?.evo_sot_coefficient_typeid &&
|
||||
x.evo_businessunits?.find(
|
||||
x => x.evo_sale_businessunitid === systemuser.businessunitid,
|
||||
),
|
||||
);
|
||||
|
||||
if (evo_coefficient) {
|
||||
|
||||
@ -231,6 +231,12 @@ export interface IEvoStatusCode {
|
||||
statecode?: number;
|
||||
}
|
||||
|
||||
export interface IEvoBusinessunit {
|
||||
evo_name?: string;
|
||||
evo_businessunitid?: string;
|
||||
evo_sale_businessunitid?: string;
|
||||
}
|
||||
|
||||
export interface IEvoCoefficient {
|
||||
evo_coefficientid?: string;
|
||||
evo_corfficient_type?: number;
|
||||
@ -249,6 +255,7 @@ export interface IEvoCoefficient {
|
||||
evo_risk_delta?: number;
|
||||
evo_leasingobject_types?: IEvoLeasingObjectType[];
|
||||
evo_job_titleid?: string;
|
||||
evo_businessunits?: IEvoBusinessunit[];
|
||||
}
|
||||
|
||||
export interface IEvoAddproductType {
|
||||
@ -275,6 +282,7 @@ export interface IEvoAddproductType {
|
||||
evo_cost_price_telematics?: number;
|
||||
evo_cost_equipment?: number;
|
||||
evo_controls_program?: number[];
|
||||
evo_helpcard_type?: number;
|
||||
}
|
||||
|
||||
export interface IEvoTarif {
|
||||
@ -342,6 +350,7 @@ export interface ISystemUser {
|
||||
firstname?: string;
|
||||
lastname?: string;
|
||||
fullname?: string;
|
||||
businessunitid?: string;
|
||||
}
|
||||
|
||||
export interface IEvoSotCoefficientType {
|
||||
@ -385,6 +394,7 @@ export type TCRMEntity = BaseEntity &
|
||||
IEvoImpairmentGroup &
|
||||
IEvoCurrencyChange &
|
||||
IEvoStatusCode &
|
||||
IEvoBusinessunit &
|
||||
IEvoCoefficient &
|
||||
IEvoAddproductType &
|
||||
IEvoTarif &
|
||||
|
||||
Reference in New Issue
Block a user