mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: add equal condition to number fields on bank rule
This commit is contained in:
@@ -65,8 +65,10 @@ export interface IBankRuleConditionDTO {
|
||||
| 'contains'
|
||||
| 'equals'
|
||||
| 'not_contains'
|
||||
| 'smaller'
|
||||
| 'equal'
|
||||
| 'bigger'
|
||||
| 'bigger_or_equal'
|
||||
| 'smaller'
|
||||
| 'smaller_or_equal';
|
||||
value: number;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @ts-nocheck
|
||||
import { useCallback, useMemo } from 'react';
|
||||
import { Form, Formik, FormikHelpers, useFormikContext } from 'formik';
|
||||
import { get } from 'lodash';
|
||||
import { Button, Classes, Intent, Radio, Tag } from '@blueprintjs/core';
|
||||
import * as R from 'ramda';
|
||||
import { CreateRuleFormSchema } from './RuleFormContentForm.schema';
|
||||
@@ -34,7 +35,6 @@ import {
|
||||
import withDialogActions from '@/containers/Dialog/withDialogActions';
|
||||
import { DialogsName } from '@/constants/dialogs';
|
||||
import { getAddMoneyInOptions, getAddMoneyOutOptions } from '@/constants';
|
||||
import { get } from 'lodash';
|
||||
|
||||
// Retrieves the add money in button options.
|
||||
const MoneyInOptions = getAddMoneyInOptions();
|
||||
|
||||
@@ -49,6 +49,7 @@ export const TextFieldConditions = [
|
||||
{ value: 'not_contains', text: 'Not Contains' },
|
||||
];
|
||||
export const NumberFieldConditions = [
|
||||
{ value: 'equal', text: 'Equal' },
|
||||
{ value: 'bigger', text: 'Bigger' },
|
||||
{ value: 'bigger_or_equal', text: 'Bigger or Equal' },
|
||||
{ value: 'smaller', text: 'Smaller' },
|
||||
|
||||
Reference in New Issue
Block a user