feat: checkbox show negative in red.

This commit is contained in:
elforjani3
2021-01-14 15:21:09 +02:00
parent dbf8cae5e5
commit b24a5e31e8
4 changed files with 17 additions and 2 deletions

View File

@@ -115,6 +115,19 @@ export default function NumberFormatFields({
</FormGroup>
)}
</FastField>
{/*------------ show negative in red-----------*/}
<FastField name={'show_in_red'} type={'checkbox'}>
{({ field }) => (
<FormGroup inline={true}>
<Checkbox
inline={true}
label={<T id={'show_negative_in_red'} />}
name={'show_in_red'}
{...field}
/>
</FormGroup>
)}
</FastField>
{/*------------ Divide on 1000 -----------*/}
<FastField name={'divide_on_1000'} type={'checkbox'}>
{({ field }) => (