mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
Merge branch 'feature/react-query' of https://github.com/abouolia/Ratteb into feature/react-query
This commit is contained in:
@@ -3,7 +3,7 @@ import { FastField } from 'formik';
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { CLASSES } from 'common/classes';
|
import { CLASSES } from 'common/classes';
|
||||||
import MakeJournalEntriesTable from './MakeJournalEntriesTable';
|
import MakeJournalEntriesTable from './MakeJournalEntriesTable';
|
||||||
import { defaultManualJournal, MIN_LINES_NUMBER } from './utils';
|
import { defaultEntry, MIN_LINES_NUMBER } from './utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Make journal entries field.
|
* Make journal entries field.
|
||||||
@@ -18,7 +18,7 @@ export default function MakeJournalEntriesField() {
|
|||||||
form.setFieldValue('entries', entries);
|
form.setFieldValue('entries', entries);
|
||||||
}}
|
}}
|
||||||
entries={value}
|
entries={value}
|
||||||
defaultEntry={defaultManualJournal}
|
defaultEntry={defaultEntry}
|
||||||
initialLinesNumber={MIN_LINES_NUMBER}
|
initialLinesNumber={MIN_LINES_NUMBER}
|
||||||
error={error}
|
error={error}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export default function MakeJournalFloatingAction() {
|
|||||||
|
|
||||||
// Handle submit as draft button click.
|
// Handle submit as draft button click.
|
||||||
const handleSubmitDraftBtnClick = (event) => {
|
const handleSubmitDraftBtnClick = (event) => {
|
||||||
|
submitForm();
|
||||||
setSubmitPayload({ redirect: true, publish: false });
|
setSubmitPayload({ redirect: true, publish: false });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ function AccountsDataTable({
|
|||||||
onDelete: handleDeleteAccount,
|
onDelete: handleDeleteAccount,
|
||||||
onActivate: handleActivateAccount,
|
onActivate: handleActivateAccount,
|
||||||
onInactivate: handleInactivateAccount,
|
onInactivate: handleInactivateAccount,
|
||||||
newChild: handleNewChildAccount
|
onNewChild: handleNewChildAccount
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user