feat(webapp): allow to create a new account item in accounts list component.

This commit is contained in:
a.bouhuolia
2023-05-03 22:41:54 +02:00
parent a7d29a31c8
commit 981b65349d
9 changed files with 83 additions and 54 deletions

View File

@@ -101,6 +101,7 @@ function ItemFormBody({ organization: { base_currency } }) {
items={accounts}
sellable={values.sellable}
shouldUpdate={sellAccountFieldShouldUpdate}
fastField={true}
>
<AccountsSelect
name={'sell_account_id'}
@@ -110,6 +111,7 @@ function ItemFormBody({ organization: { base_currency } }) {
filterByParentTypes={[ACCOUNT_PARENT_TYPE.INCOME]}
fill={true}
allowCreate={true}
fastField={true}
/>
</FFormGroup>