fix [3]
This commit is contained in:
parent
70d26e472f
commit
818b843909
@ -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('ПРОЧИЕ')
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user