This commit is contained in:
vchikalkin 2024-07-04 17:33:02 +03:00
parent 70d26e472f
commit 818b843909

View File

@ -305,8 +305,8 @@ export function common({ store, apolloClient }: ProcessContext) {
);
reaction(
() => $calculation.$values.getValues(['leaseObjectType', 'maxMass']),
async ({ leaseObjectType: leaseObjectTypeId, maxMass }) => {
() => $calculation.$values.getValues(['leaseObjectType', 'maxSpeed']),
async ({ leaseObjectType: leaseObjectTypeId, maxSpeed }) => {
if (!leaseObjectTypeId) {
$tables.insurance.row('osago').column('insuranceCompany').unblock();
$tables.insurance.row('osago').column('insured').unblock();
@ -330,7 +330,7 @@ export function common({ store, apolloClient }: ProcessContext) {
query: CRMTypes.GetInsuranceCompaniesDocument,
});
if (evo_leasingobject_type?.evo_id === '9' && maxMass < 20) {
if (evo_leasingobject_type?.evo_id === '9' && maxSpeed < 20) {
const otherInsuranceCompany = accounts?.find(
(x) => x?.evo_type_ins_policy === null && x.label?.includes('ПРОЧИЕ')
);