diff --git a/client/src/containers/Accounting/MakeJournalEntriesForm.js b/client/src/containers/Accounting/MakeJournalEntriesForm.js
index 6a255b78c..bcbfa7354 100644
--- a/client/src/containers/Accounting/MakeJournalEntriesForm.js
+++ b/client/src/containers/Accounting/MakeJournalEntriesForm.js
@@ -225,7 +225,7 @@ function MakeJournalEntriesForm({
},
[setSubmitPayload],
);
- console.log(submitPayload, 'RR');
+
return (
@@ -12,10 +14,19 @@ export default function ExpenseFormEntriesField({
entries={value}
error={error}
onChange={(entries) => {
- form.setFieldValue('categories', entries)
+ form.setFieldValue('categories', entries);
+ }}
+ onClickAddNewRow={() => {
+ form.setFieldValue('categories', [...value, defaultRow]);
+ }}
+ onClickClearAllLines={() => {
+ form.setFieldValue(
+ 'categories',
+ orderingLinesIndexes([...repeatValue(defaultRow, linesNumber)])
+ );
}}
/>
)}
- )
-}
\ No newline at end of file
+ );
+}