mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix: edit payment transaction
This commit is contained in:
@@ -22,27 +22,27 @@ import { safeCallback } from '@/utils';
|
||||
export const statusAccessor = (row) => (
|
||||
<Choose>
|
||||
<Choose.When condition={row.is_approved}>
|
||||
<Tag minimal={true} intent={Intent.SUCCESS} round={true}>
|
||||
<Tag intent={Intent.SUCCESS} round>
|
||||
<T id={'approved'} />
|
||||
</Tag>
|
||||
</Choose.When>
|
||||
<Choose.When condition={row.is_rejected}>
|
||||
<Tag minimal={true} intent={Intent.DANGER} round={true}>
|
||||
<Tag intent={Intent.DANGER} round>
|
||||
<T id={'rejected'} />
|
||||
</Tag>
|
||||
</Choose.When>
|
||||
<Choose.When condition={row.is_expired}>
|
||||
<Tag minimal={true} intent={Intent.WARNING} round={true}>
|
||||
<Tag intent={Intent.WARNING} round>
|
||||
<T id={'estimate.status.expired'} />
|
||||
</Tag>
|
||||
</Choose.When>
|
||||
<Choose.When condition={row.is_delivered}>
|
||||
<Tag minimal={true} intent={Intent.SUCCESS} round={true}>
|
||||
<Tag intent={Intent.SUCCESS} round>
|
||||
<T id={'delivered'} />
|
||||
</Tag>
|
||||
</Choose.When>
|
||||
<Choose.Otherwise>
|
||||
<Tag minimal={true} round={true}>
|
||||
<Tag round>
|
||||
<T id={'draft'} />
|
||||
</Tag>
|
||||
</Choose.Otherwise>
|
||||
|
||||
@@ -42,15 +42,15 @@ function PaymentReceiveFormProvider({ query, paymentReceiveId, ...props }) {
|
||||
|
||||
// Fetches payment recevie details.
|
||||
const {
|
||||
data: {
|
||||
paymentReceive: paymentReceiveEditPage,
|
||||
entries: paymentEntriesEditPage,
|
||||
},
|
||||
data: paymentReceivedEditData,
|
||||
isLoading: isPaymentLoading,
|
||||
isFetching: isPaymentFetching,
|
||||
} = usePaymentReceiveEditPage(paymentReceiveId, {
|
||||
enabled: !!paymentReceiveId,
|
||||
});
|
||||
const paymentReceiveEditPage = paymentReceivedEditData?.data;
|
||||
const paymentEntriesEditPage = paymentReceivedEditData?.entries
|
||||
|
||||
// Handle fetch accounts data.
|
||||
const { data: accounts, isLoading: isAccountsLoading } = useAccounts();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user