Min первый платеж, % - (evo_addproduct_type.evo_min_first_payment_perc) меньше или равно значению из поля "Первый платеж, %" (tbxFirstPaymentPerc)
Max первый платеж, % - (evo_addproduct_type.evo_max_first_payment_perc) больше или равно значению из поля "Первый платеж, %" (tbxFirstPaymentPerc) По связи evo_evo_addproduct_type_evo_model НЕ связана с карточкой Модель предмета лищинга (evo_model), указанной в поле "Модель" (selectModel)
This commit is contained in:
parent
566ea42220
commit
450eb18f24
@ -836,8 +836,13 @@ const reactionEffects: IReactionEffect[] = [
|
||||
//@ts-ignore
|
||||
const importProgramSum: number = calculationStore.importProgramSum();
|
||||
|
||||
const { leasingPeriod, leaseObjectType, addEquipmentPrice } =
|
||||
calculationStore.values;
|
||||
const {
|
||||
leasingPeriod,
|
||||
leaseObjectType,
|
||||
addEquipmentPrice,
|
||||
firstPaymentPerc,
|
||||
model,
|
||||
} = calculationStore.values;
|
||||
return {
|
||||
leasingPeriod,
|
||||
leaseObjectType,
|
||||
@ -845,6 +850,8 @@ const reactionEffects: IReactionEffect[] = [
|
||||
discountRub,
|
||||
addEquipmentPrice,
|
||||
importProgramSum,
|
||||
firstPaymentPerc,
|
||||
modelId: model,
|
||||
};
|
||||
},
|
||||
effect: ({
|
||||
@ -854,6 +861,8 @@ const reactionEffects: IReactionEffect[] = [
|
||||
discountRub = 0,
|
||||
addEquipmentPrice = 0,
|
||||
importProgramSum = 0,
|
||||
firstPaymentPerc = 0,
|
||||
modelId,
|
||||
}) => {
|
||||
calculationStore.setFilter('selectLeasingWithoutKasko', options =>
|
||||
options.filter(
|
||||
@ -871,7 +880,12 @@ const reactionEffects: IReactionEffect[] = [
|
||||
x.evo_leasingobject_types?.find(
|
||||
x => x.evo_leasingobject_typeid === leaseObjectType,
|
||||
) &&
|
||||
x.evo_visible_calc,
|
||||
x.evo_visible_calc &&
|
||||
x.evo_min_first_payment_perc &&
|
||||
x.evo_min_first_payment_perc <= firstPaymentPerc &&
|
||||
x.evo_max_first_payment_perc &&
|
||||
x.evo_max_first_payment_perc >= firstPaymentPerc &&
|
||||
!x.evo_models?.map(x => x.evo_modelid).includes(modelId),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@ -311,5 +311,10 @@ query GetMainOptions(
|
||||
evo_min_price
|
||||
evo_max_price
|
||||
evo_loss_kv
|
||||
evo_min_first_payment_perc
|
||||
evo_max_first_payment_perc
|
||||
evo_models {
|
||||
evo_modelid
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -405,6 +405,7 @@ type account {
|
||||
evo_div_12month: Boolean
|
||||
evo_documents(evo_documenttypeid_param: GuidParamInput, latestversion: Boolean = true): [evo_document]
|
||||
evo_economic_security_systemuserid: Uuid
|
||||
evo_edos: [evo_edo]
|
||||
evo_employee_count: Int
|
||||
evo_fingap_number_rules: Int
|
||||
evo_fin_department_accountid: Uuid
|
||||
@ -557,11 +558,14 @@ type evo_addproduct_type {
|
||||
evo_leasingobject_types(statecode: Int): [evo_leasingobject_type]
|
||||
evo_loss_kv: Decimal
|
||||
evo_max_age: Int
|
||||
evo_max_first_payment_perc: Decimal
|
||||
evo_max_period: Decimal
|
||||
evo_max_price: Decimal
|
||||
evo_min_age: Int
|
||||
evo_min_first_payment_perc: Decimal
|
||||
evo_min_period: Decimal
|
||||
evo_min_price: Decimal
|
||||
evo_models: [evo_model]
|
||||
evo_name: String
|
||||
evo_nsib_limit: Decimal
|
||||
evo_planpayments(statecode: Int): [evo_planpayment]
|
||||
@ -665,6 +669,7 @@ type evo_insurance_period {
|
||||
evo_invoice_date: DateTime
|
||||
evo_kasko_price: Decimal
|
||||
evo_leasingobjectid: Uuid
|
||||
evo_loss_kv: Decimal
|
||||
evo_mobile_discount: Boolean
|
||||
evo_mobile_discount_factor: Decimal
|
||||
evo_mobile_discount_rub: Decimal
|
||||
@ -2586,6 +2591,7 @@ type email {
|
||||
regardingobjectid_evo_list: Uuid
|
||||
regardingobjectid_incident: Uuid
|
||||
regardingobjectid_opportunity: Uuid
|
||||
statecode: Int
|
||||
statuscode: Int
|
||||
subject: String
|
||||
templateid: Uuid
|
||||
@ -2743,6 +2749,31 @@ type team {
|
||||
toObjectString: String
|
||||
}
|
||||
|
||||
type evo_edo {
|
||||
createdon: DateTime
|
||||
evo_accountid: Uuid
|
||||
evo_accountidData: account
|
||||
evo_activation_status: Int
|
||||
evo_activation_statusname: String
|
||||
evo_box_edoid: Uuid
|
||||
evo_box_edoidData: evo_edo
|
||||
evo_box_id: String
|
||||
evo_box_name: String
|
||||
evo_documentid: Uuid
|
||||
evo_edoid: Uuid
|
||||
evo_edo_status: Int
|
||||
evo_edo_statusname: String
|
||||
evo_edo_type: Int
|
||||
evo_edo_typeename: String
|
||||
evo_invite_crm_status: Int
|
||||
evo_invite_crm_statusname: String
|
||||
evo_name: String
|
||||
evo_statuscodeid: Uuid
|
||||
evo_statuscodeidData: evo_statuscode
|
||||
modifiedon: DateTime
|
||||
toObjectString: String
|
||||
}
|
||||
|
||||
type evo_insurance_policy {
|
||||
createdon: DateTime
|
||||
evo_accountid: Uuid
|
||||
|
||||
@ -403,6 +403,12 @@ export interface IEvoAddproductType extends BaseEntity {
|
||||
evo_type_calc_cerebellum?: number;
|
||||
evo_addproduct_types?: IEvoAddproductType[];
|
||||
evo_evokasko_calc_type?: number;
|
||||
evo_min_price?: number;
|
||||
evo_max_price?: number;
|
||||
evo_loss_kv?: number;
|
||||
evo_min_first_payment_perc?: number;
|
||||
evo_max_first_payment_perc?: number;
|
||||
evo_models?: IEvoModel;
|
||||
}
|
||||
|
||||
export interface IEvoTarif extends BaseEntity {
|
||||
@ -435,9 +441,6 @@ export interface IEvoTarif extends BaseEntity {
|
||||
evo_delivery_time?: number[];
|
||||
evo_cut_irr_with_bonus_coefficient?: number;
|
||||
evo_margin_min?: number;
|
||||
evo_min_price?: number;
|
||||
evo_max_price?: number;
|
||||
evo_loss_kv?: number;
|
||||
}
|
||||
|
||||
export interface IEvoRate extends BaseEntity {
|
||||
|
||||
Reference in New Issue
Block a user