+ {/*------------ Date -----------*/}
+
+ {({ form, field: { value }, meta: { error, touched } }) => (
+ }
+ labelInfo={}
+ intent={inputIntent({ error, touched })}
+ helperText={}
+ minimal={true}
+ className={classNames(CLASSES.FILL)}
+ >
+ {
+ form.setFieldValue('date', formattedDate);
+ })}
+ value={tansformDateValue(value)}
+ popoverProps={{
+ position: Position.BOTTOM,
+ minimal: true,
+ }}
+ />
+
+ )}
+
+
+ {/*------------ Adjustment type -----------*/}
+
+ {({ form, field: { value }, meta: { error, touched } }) => (
+ }
+ labelInfo={}
+ helperText={}
+ intent={inputIntent({ error, touched })}
+ className={classNames(CLASSES.FILL)}
+ >
+ {
+ console.log(type.value, 'EE');
+ form.setFieldValue('type', type.value);
+ }}
+ selectedItem={value}
+ selectedItemProp={'value'}
+ labelProp={'name'}
+ popoverProps={{ minimal: true }}
+ />
+
+ )}
+
+
+
+
+
+
+
+
+
+
+ {/*------------ Reason -----------*/}
+
+ {({ form, field, meta: { error, touched } }) => (
+ }
+ labelInfo={}
+ intent={inputIntent({ error, touched })}
+ helperText={}
+ >
+
+
+ )}
+
+ {/*------------ Adjustment account -----------*/}
+
+ {({ form, field, meta: { error, touched } }) => (
+ }
+ labelInfo={}
+ intent={inputIntent({ error, touched })}
+ helperText={}
+ >
+
+ form.setFieldValue('adjustment_account_id', item)
+ }
+ />
+
+ )}
+
+ {/*------------ Reference -----------*/}
+
+ {({ form, field, meta: { error, touched } }) => (
+ }
+ className={classNames(CLASSES.FILL)}
+ intent={inputIntent({ error, touched })}
+ helperText={}
+ >
+
+
+ )}
+
+ {/*------------ description -----------*/}
+
+ {({ field, meta: { error, touched } }) => (
+ }
+ className={'form-group--description'}
+ intent={inputIntent({ error, touched })}
+ helperText={}
+ >
+
+
+ )}
+
+
+