diff --git a/src/client/Containers/Calculation/Sections/sectionsList.ts b/src/client/Containers/Calculation/Sections/sectionsList.ts index 5c51405..2ca7c8f 100644 --- a/src/client/Containers/Calculation/Sections/sectionsList.ts +++ b/src/client/Containers/Calculation/Sections/sectionsList.ts @@ -1201,15 +1201,15 @@ const sections: ISection[] = [ // valueName: 'insPeriod', // }, // }, - { - Component: Button, - props: { - type: 'ghost', - name: 'btnFranschise', - text: 'Заявление на франшизу', - onClick: undefined, - }, - }, + // { + // Component: Button, + // props: { + // type: 'ghost', + // name: 'btnFranschise', + // text: 'Заявление на франшизу', + // onClick: undefined, + // }, + // }, ], }, { @@ -1250,15 +1250,15 @@ const sections: ISection[] = [ // valueName: 'INNForCalc', // }, // }, - { - Component: Button, - props: { - type: 'ghost', - name: 'btnDriversApplication', - text: 'Заявление на ограничения по водителям', - onClick: undefined, - }, - }, + // { + // Component: Button, + // props: { + // type: 'ghost', + // name: 'btnDriversApplication', + // text: 'Заявление на ограничения по водителям', + // onClick: undefined, + // }, + // }, ], }, { diff --git a/src/client/stores/CalculationStore/Effects/reaction.ts b/src/client/stores/CalculationStore/Effects/reaction.ts index f470015..8e8003b 100644 --- a/src/client/stores/CalculationStore/Effects/reaction.ts +++ b/src/client/stores/CalculationStore/Effects/reaction.ts @@ -1259,25 +1259,25 @@ const reactionEffects: IReactionEffect[] = [ }, }), - calculationStore => ({ - expression: () => { - const { leasingPeriod } = calculationStore.values; - return leasingPeriod; - }, - effect: leasingPeriod => { - if (leasingPeriod) { - if (parseInt(leasingPeriod) < 12) { - calculationStore.setStatus('radioBalanceHolder', Status.Disabled); - calculationStore.setValue('balanceHolder', 100000000); - } else { - calculationStore.setStatus('radioBalanceHolder', Status.Default); - } - } - }, - options: { - fireImmediately: true, - }, - }), + // calculationStore => ({ + // expression: () => { + // const { leasingPeriod } = calculationStore.values; + // return leasingPeriod; + // }, + // effect: leasingPeriod => { + // if (leasingPeriod) { + // if (parseInt(leasingPeriod) < 12) { + // calculationStore.setStatus('radioBalanceHolder', Status.Disabled); + // calculationStore.setValue('balanceHolder', 100000000); + // } else { + // calculationStore.setStatus('radioBalanceHolder', Status.Default); + // } + // } + // }, + // options: { + // fireImmediately: true, + // }, + // }), calculationStore => ({ expression: () => { diff --git a/src/core/config/initialStatuses.ts b/src/core/config/initialStatuses.ts index 69acc66..01d39ea 100644 --- a/src/core/config/initialStatuses.ts +++ b/src/core/config/initialStatuses.ts @@ -36,6 +36,8 @@ const initialStatuses: TElements = { selectAgent: Status.Disabled, tbxCommentLead: Status.Disabled, btnCreateLead: Status.Disabled, + + radioBalanceHolder: Status.Disabled, }; export default initialStatuses; diff --git a/src/core/config/initialTables/tableInsurance.ts b/src/core/config/initialTables/tableInsurance.ts index 1f8330d..7f8026a 100644 --- a/src/core/config/initialTables/tableInsurance.ts +++ b/src/core/config/initialTables/tableInsurance.ts @@ -18,7 +18,7 @@ const tableInsurance: ITable = { ), }, insured: { - value: null, + value: 100000000, }, insCost: { value: 0, @@ -42,7 +42,7 @@ const tableInsurance: ITable = { ), }, insured: { - value: null, + value: 100000000, }, insCost: { value: 0, diff --git a/src/core/config/initialValues.ts b/src/core/config/initialValues.ts index 7c70b10..a29f0ba 100644 --- a/src/core/config/initialValues.ts +++ b/src/core/config/initialValues.ts @@ -26,7 +26,7 @@ const initialValues: TValues = { highSeasonStart: 100000000, comissionPerc: 0, comissionRub: 0, - saleBonus: 1.25, + saleBonus: 1.3, IRR_Perc: 20, brand: null, model: null,