process/gibdd: supplierFinancing
This commit is contained in:
parent
12b82ec9a9
commit
430aaa641c
@ -19,8 +19,8 @@ export function common({ store, apolloClient, queryClient }: ProcessContext) {
|
||||
const { $calculation, $process } = store;
|
||||
|
||||
reaction(
|
||||
() => $calculation.element('selectLeaseObjectType').getValue(),
|
||||
async (leaseObjectTypeId) => {
|
||||
() => $calculation.$values.getValues(['leaseObjectType', 'supplierFinancing']),
|
||||
async ({ leaseObjectType: leaseObjectTypeId, supplierFinancing }) => {
|
||||
if (!leaseObjectTypeId) {
|
||||
$calculation.element('radioObjectRegistration').resetValue().unblock();
|
||||
|
||||
@ -34,8 +34,9 @@ export function common({ store, apolloClient, queryClient }: ProcessContext) {
|
||||
});
|
||||
|
||||
if (
|
||||
evo_leasingobject_type?.evo_id &&
|
||||
['6', '9', '10', '11'].includes(evo_leasingobject_type.evo_id)
|
||||
supplierFinancing ||
|
||||
(evo_leasingobject_type?.evo_id &&
|
||||
['6', '9', '10', '11'].includes(evo_leasingobject_type.evo_id))
|
||||
) {
|
||||
$calculation.element('radioObjectRegistration').setValue(100_000_000).block();
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user