@accounter/client 0.0.8-alpha-20251028123619-bcce9ab485db2997b6b76ff0df765834d86f30e7 → 0.0.8-alpha-20251028124234-328844c99a42b68aa9e2f32fd86da80b4832f631
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -13
- package/dist/assets/{Checkbox-BZ680-Kk.js → Checkbox-BR6kGuhg.js} +2 -2
- package/dist/assets/MultiSelect-BqcJrWnD.js +1 -0
- package/dist/assets/Pagination-6Sv5LXxl.js +1 -0
- package/dist/assets/{Progress-DembKoIO.js → Progress-7xtiFwK3.js} +1 -1
- package/dist/assets/Table-C5zxD95i.js +1 -0
- package/dist/assets/Typography-CMzSQZKD.js +1 -0
- package/dist/assets/YearPickerInput-CllwSjcn.js +1 -0
- package/dist/assets/accordion-CMR2fANH.js +1 -0
- package/dist/assets/accountant-approvals-BHFXpHHc.js +1 -0
- package/dist/assets/accounter-table-CpeQD4PG.js +1 -0
- package/dist/assets/addDays-DvwuJbUs.js +1 -0
- package/dist/assets/all-charges-At7WJXuW.js +1 -0
- package/dist/assets/{arrow-up-down-J9wnXx-h.js → arrow-up-down-DPG1l9S1.js} +1 -1
- package/dist/assets/{building-2-1saARtmG.js → building-2-BgvPBt2Z.js} +1 -1
- package/dist/assets/business-DKvbSnga.js +32 -0
- package/dist/assets/business-extended-info-7CM8px2e.js +13 -0
- package/dist/assets/{business-header-SAnNK6FP.js → business-header-u2sfE_d8.js} +1 -1
- package/dist/assets/business-transactions-filters-DmpO9Bwo.js +1 -0
- package/dist/assets/business-transactions-single-rF6JbAL7.js +1 -0
- package/dist/assets/business-trip-BGrp09N7.js +1 -0
- package/dist/assets/charge-C-EaA1Xc.js +1 -0
- package/dist/assets/charges-filters-Dq-8QHH-.js +1 -0
- package/dist/assets/charges-ledger-validation-DlkzVow7.js +1 -0
- package/dist/assets/charges-table-Cncs1HLi.js +62 -0
- package/dist/assets/{chart-Dq5fMHeT.js → chart-ByngRufj.js} +6 -6
- package/dist/assets/create-event-handler-BiA-1lGu.js +1 -0
- package/dist/assets/{data-table-pagination-4YqSgXqX.js → data-table-pagination-D4OEFmX_.js} +1 -1
- package/dist/assets/download-csv-button-Df5rDeDc.js +1 -0
- package/dist/assets/editable-business-trip-Bav24z0u.js +16 -0
- package/dist/assets/funnel-BJ71hzoq.js +6 -0
- package/dist/assets/index-BRv0JZw4.js +1 -0
- package/dist/assets/index-BXlS8oD_.js +1 -0
- package/dist/assets/{index-BYoh_mMo.js → index-BetG0HVN.js} +3 -3
- package/dist/assets/index-BplSRMAq.css +1 -0
- package/dist/assets/{index-B4-_AJ5N.js → index-Bsl7tJp_.js} +16 -16
- package/dist/assets/{index-sA_45leD.js → index-CLUhAJ3t.js} +3 -3
- package/dist/assets/index-Cix5qjA-.js +2 -0
- package/dist/assets/index-CizLtiES.js +1 -0
- package/dist/assets/index-DKBzv0gc.js +1 -0
- package/dist/assets/index-DR_5jpS4.js +6 -0
- package/dist/assets/index-DTmtILfq.js +1 -0
- package/dist/assets/index-DU0G7FZm.js +1 -0
- package/dist/assets/index-DUWRgLfu.js +9 -0
- package/dist/assets/index-DYZPWG4k.js +2 -0
- package/dist/assets/index-DdUE2_44.js +1 -0
- package/dist/assets/index-De5dvO0S.js +1 -0
- package/dist/assets/index-Des3eR4f.js +1 -0
- package/dist/assets/index-DpYwi5kf.js +6 -0
- package/dist/assets/index-GzyQZkbY.js +1 -0
- package/dist/assets/index-HzLXi-qB.js +1 -0
- package/dist/assets/index-Ji28AZwq.js +1 -0
- package/dist/assets/{index-AxUq37Ea.js → index-UMFH47hN.js} +2 -2
- package/dist/assets/index-fuT9duEO.js +1 -0
- package/dist/assets/{index-CBQNwu37.js → index-vChLJwSt.js} +2 -2
- package/dist/assets/index-wck8Xuay.js +1 -0
- package/dist/assets/index-wyU9I4Kz.js +768 -0
- package/dist/assets/{index.es-Dwfw0glc.js → index.es-NphQjU3m.js} +1 -1
- package/dist/assets/insert-business-trip-modal-vS1QrUJz.js +6 -0
- package/dist/assets/issue-document-pIswc_8i.js +1 -0
- package/dist/assets/list-plus-Dy3vzJVy.js +6 -0
- package/dist/assets/login-page-YXRfklK1.js +1 -0
- package/dist/assets/match-document-modal-BPG_hljb.js +16 -0
- package/dist/assets/missing-info-charges-D8dUfChs.js +1 -0
- package/dist/assets/modal-D47umnak.js +1 -0
- package/dist/assets/page-layout-BG0XvWfD.js +1 -0
- package/dist/assets/page-not-found-Cy6oIIb1.js +1 -0
- package/dist/assets/panel-top-open-B1rhJYjQ.js +11 -0
- package/dist/assets/{pencil-CYypGy_s.js → pencil-tV0FsM6V.js} +1 -1
- package/dist/assets/report-commentary-row-BL2RkIHq.js +1 -0
- package/dist/assets/{save-BE7zhMeq.js → save-Czmh3tvC.js} +1 -1
- package/dist/assets/similar-transactions-modal-MQeC2gtu.js +1 -0
- package/dist/assets/sub-B4_VmmF9.js +1 -0
- package/dist/assets/subMonths-DG7w6bCY.js +1 -0
- package/dist/assets/summary-DvHtnArZ.js +1 -0
- package/dist/assets/switch-GSloW_Ey.js +1 -0
- package/dist/assets/toggle-expansion-button-lwJYTklN.js +1 -0
- package/dist/assets/tooltip-BbKSwLCX.js +1 -0
- package/dist/assets/use-url-query-CUVSXgm0.js +1 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/src/components/business/contracts-section.tsx +0 -7
- package/src/components/business-transactions/business-extended-info.tsx +5 -5
- package/src/components/business-transactions/index.tsx +1 -28
- package/src/components/businesses/index.tsx +6 -2
- package/src/components/charges/cells/business-trip.tsx +6 -1
- package/src/components/charges/cells/counterparty.tsx +4 -28
- package/src/components/clients/contracts/modify-contract-dialog.tsx +3 -7
- package/src/components/common/business-trip-report/parts/core-expense-row.tsx +2 -2
- package/src/components/common/business-trip-report/parts/report-header.tsx +2 -1
- package/src/components/common/business-trip-report/parts/uncategorized-transactions.tsx +2 -2
- package/src/components/common/buttons/charge-navigate-button.tsx +12 -11
- package/src/components/common/modals/edit-charge-modal.tsx +2 -2
- package/src/components/common/modals/insert-document-modal.tsx +2 -2
- package/src/components/common/modals/match-document-modal.tsx +2 -2
- package/src/components/common/new-documents-list.tsx +2 -2
- package/src/components/documents-table/cells/creditor.tsx +2 -11
- package/src/components/documents-table/cells/debtor.tsx +2 -11
- package/src/components/ledger-table/counterparty-cell.tsx +4 -33
- package/src/components/reports/conto/index.tsx +1 -18
- package/src/components/reports/trial-balance-report/index.tsx +1 -17
- package/src/components/screens/businesses/business.tsx +0 -4
- package/src/components/screens/charges/all-charges.tsx +1 -17
- package/src/components/screens/charges/charge.tsx +0 -4
- package/src/components/screens/reports/balance-report/index.tsx +0 -14
- package/src/components/screens/reports/depreciation-report/index.tsx +0 -14
- package/src/components/transactions-table/cells/counterparty.tsx +2 -23
- package/src/components/transactions-table/cells-legacy/counterparty.tsx +3 -26
- package/src/gql/gql.ts +3 -3
- package/src/gql/graphql.ts +2 -5
- package/src/providers/urql.tsx +2 -2
- package/dist/assets/Typography-DPXB3hIS.js +0 -1
- package/dist/assets/accordion-UZwiz3fM.js +0 -1
- package/dist/assets/accountant-approvals-DDxSuMql.js +0 -1
- package/dist/assets/all-charges-BCP7OG1d.js +0 -1
- package/dist/assets/business-CBRlGy9p.js +0 -32
- package/dist/assets/business-transactions-single-DvPZFvmH.js +0 -1
- package/dist/assets/business-trip-g2hB76cn.js +0 -1
- package/dist/assets/charges-filters-T9c4RGLH.js +0 -1
- package/dist/assets/charges-ledger-validation-DaD8DCN4.js +0 -1
- package/dist/assets/editable-business-trip-B95j7iAh.js +0 -16
- package/dist/assets/index-5Fl36gjg.js +0 -1
- package/dist/assets/index-BDKAR_k1.js +0 -1
- package/dist/assets/index-BKXeyD9a.js +0 -1
- package/dist/assets/index-BPSZWRv9.js +0 -9
- package/dist/assets/index-BVetJA6_.js +0 -6
- package/dist/assets/index-BXp9NrWt.js +0 -1
- package/dist/assets/index-Br0-IMSG.js +0 -1
- package/dist/assets/index-Bw6OrQ7c.js +0 -1
- package/dist/assets/index-C3bFFbEz.js +0 -1
- package/dist/assets/index-CDIzaROV.js +0 -2
- package/dist/assets/index-CgQ4Qjvh.js +0 -886
- package/dist/assets/index-D4O5HA1y.js +0 -1
- package/dist/assets/index-DAbvR7_s.js +0 -1
- package/dist/assets/index-DkwmPZgt.js +0 -1
- package/dist/assets/index-DpsNoHLd.js +0 -2
- package/dist/assets/index-DtE5Y1ZB.css +0 -1
- package/dist/assets/index-k-cHMsFi.js +0 -1
- package/dist/assets/index-vkYxo-Uq.js +0 -1
- package/dist/assets/index-vstSRm8a.js +0 -1
- package/dist/assets/issue-document-umUFIxCu.js +0 -1
- package/dist/assets/login-page-Ck61EC35.js +0 -1
- package/dist/assets/missing-info-charges-aak-KkPt.js +0 -1
- package/dist/assets/page-not-found-Dzg-czJK.js +0 -1
- package/dist/assets/report-commentary-row-B479zk-x.js +0 -1
- package/dist/assets/sub-BxFupCKS.js +0 -1
- package/dist/assets/subMonths-DskeQPiN.js +0 -1
- package/src/components/charges/helpers.ts +0 -15
|
@@ -7,10 +7,7 @@ import { useUrlQuery } from '../../../hooks/use-url-query.js';
|
|
|
7
7
|
import { FiltersContext } from '../../../providers/filters-context.js';
|
|
8
8
|
import { PageLayout } from '../../layout/page-layout.js';
|
|
9
9
|
import { Button } from '../../ui/button.js';
|
|
10
|
-
import {
|
|
11
|
-
encodeTrialBalanceReportFilters,
|
|
12
|
-
TrialBalanceReportFilters,
|
|
13
|
-
} from './trial-balance-report-filters.js';
|
|
10
|
+
import { TrialBalanceReportFilters } from './trial-balance-report-filters.js';
|
|
14
11
|
import { TrialBalanceTable } from './trial-balance-table.js';
|
|
15
12
|
|
|
16
13
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions -- used by codegen
|
|
@@ -27,19 +24,6 @@ import { TrialBalanceTable } from './trial-balance-table.js';
|
|
|
27
24
|
}
|
|
28
25
|
`;
|
|
29
26
|
|
|
30
|
-
export function getTrialBalanceReportHref(filter?: TrialBalanceReportFilters | null): string {
|
|
31
|
-
const params = new URLSearchParams();
|
|
32
|
-
|
|
33
|
-
const trialBalanceReportFilters = encodeTrialBalanceReportFilters(filter);
|
|
34
|
-
if (trialBalanceReportFilters) {
|
|
35
|
-
// Add it as a single encoded parameter
|
|
36
|
-
params.append('trialBalanceReportFilters', trialBalanceReportFilters);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const queryParams = params.size > 0 ? `?${params}` : '';
|
|
40
|
-
return `/reports/trial-balance${queryParams}`;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
27
|
export const TrialBalanceReport = (): ReactElement => {
|
|
44
28
|
const [isAllOpened, setIsAllOpened] = useState(false);
|
|
45
29
|
const { get } = useUrlQuery();
|
|
@@ -15,10 +15,6 @@ import { AccounterLoader } from '../../common/index.js';
|
|
|
15
15
|
}
|
|
16
16
|
`;
|
|
17
17
|
|
|
18
|
-
export function getBusinessHref(businessId: string): string {
|
|
19
|
-
return `/businesses/${businessId}`;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
18
|
export const BusinessScreen = (): ReactElement => {
|
|
23
19
|
const { businessId } = useParams<{ businessId: string }>();
|
|
24
20
|
|
|
@@ -5,7 +5,7 @@ import { Tooltip } from '@mantine/core';
|
|
|
5
5
|
import { AllChargesDocument, type ChargeFilter } from '../../../gql/graphql.js';
|
|
6
6
|
import { useUrlQuery } from '../../../hooks/use-url-query.js';
|
|
7
7
|
import { FiltersContext } from '../../../providers/filters-context.js';
|
|
8
|
-
import { ChargesFilters
|
|
8
|
+
import { ChargesFilters } from '../../charges/charges-filters.js';
|
|
9
9
|
import { ChargesTable } from '../../charges/charges-table.js';
|
|
10
10
|
import {
|
|
11
11
|
EditChargeModal,
|
|
@@ -31,22 +31,6 @@ import { Button } from '../../ui/button.js';
|
|
|
31
31
|
}
|
|
32
32
|
`;
|
|
33
33
|
|
|
34
|
-
export function getAllChargesHref(filter?: ChargeFilter | null, page?: number): string {
|
|
35
|
-
const params = new URLSearchParams();
|
|
36
|
-
if (page) {
|
|
37
|
-
params.append('page', String(page));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const chargesFilters = encodeChargesFilters(filter);
|
|
41
|
-
if (chargesFilters) {
|
|
42
|
-
// Add it as a single encoded parameter
|
|
43
|
-
params.append('chargesFilters', chargesFilters);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const queryParams = params.size > 0 ? `?${params}` : '';
|
|
47
|
-
return `/charges${queryParams}`;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
34
|
export const AllCharges = (): ReactElement => {
|
|
51
35
|
const { setFiltersContext } = useContext(FiltersContext);
|
|
52
36
|
const [editChargeId, setEditChargeId] = useState<
|
|
@@ -25,7 +25,6 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
BALANCE_REPORT_FILTERS_QUERY_PARAM,
|
|
27
27
|
BalanceReportFilters,
|
|
28
|
-
encodeBalanceReportFilters,
|
|
29
28
|
Periods,
|
|
30
29
|
type BalanceReportFilter,
|
|
31
30
|
type Period,
|
|
@@ -60,19 +59,6 @@ import { ExtendedTransactionsCard } from './extended-transactions.jsx';
|
|
|
60
59
|
}
|
|
61
60
|
`;
|
|
62
61
|
|
|
63
|
-
export function getBalanceReportHref(filter?: BalanceReportFilter | null): string {
|
|
64
|
-
const params = new URLSearchParams();
|
|
65
|
-
|
|
66
|
-
const balanceReportFilters = encodeBalanceReportFilters(filter);
|
|
67
|
-
if (balanceReportFilters) {
|
|
68
|
-
// Add it as a single encoded parameter
|
|
69
|
-
params.append(BALANCE_REPORT_FILTERS_QUERY_PARAM, balanceReportFilters);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const queryParams = params.size > 0 ? `?${params}` : '';
|
|
73
|
-
return `/reports/balance${queryParams}`;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
62
|
const chartConfig = {
|
|
77
63
|
income: {
|
|
78
64
|
label: 'Income',
|
|
@@ -22,7 +22,6 @@ import { DepreciationRecordRow } from './depreciation-record-row.js';
|
|
|
22
22
|
import {
|
|
23
23
|
DEPRECIATION_REPORT_FILTERS_QUERY_PARAM,
|
|
24
24
|
DepreciationReportFilters,
|
|
25
|
-
encodeDepreciationReportFilters,
|
|
26
25
|
} from './depreciation-report-filters.js';
|
|
27
26
|
import { DepreciationSummaryRow } from './depreciation-summary-row.js';
|
|
28
27
|
|
|
@@ -76,19 +75,6 @@ import { DepreciationSummaryRow } from './depreciation-summary-row.js';
|
|
|
76
75
|
}
|
|
77
76
|
`;
|
|
78
77
|
|
|
79
|
-
export function getDepreciationReportHref(filter?: DepreciationReportFilter | null): string {
|
|
80
|
-
const params = new URLSearchParams();
|
|
81
|
-
|
|
82
|
-
const depreciationReportFilters = encodeDepreciationReportFilters(filter);
|
|
83
|
-
if (depreciationReportFilters) {
|
|
84
|
-
// Add it as a single encoded parameter
|
|
85
|
-
params.append(DEPRECIATION_REPORT_FILTERS_QUERY_PARAM, depreciationReportFilters);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const queryParams = params.size > 0 ? `?${params}` : '';
|
|
89
|
-
return `/reports/depreciation${queryParams}`;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
78
|
export const DepreciationReport = (): ReactElement => {
|
|
93
79
|
const { setFiltersContext } = useContext(FiltersContext);
|
|
94
80
|
const { userContext } = useContext(UserContext);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { useCallback, useState, type ReactElement } from 'react';
|
|
2
2
|
import { CheckIcon } from 'lucide-react';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
|
-
import
|
|
4
|
+
import { ROUTES } from '@/router/routes.js';
|
|
5
5
|
import { useGetBusinesses } from '../../../hooks/use-get-businesses.js';
|
|
6
6
|
import { useUpdateTransaction } from '../../../hooks/use-update-transaction.js';
|
|
7
|
-
import { useUrlQuery } from '../../../hooks/use-url-query.js';
|
|
8
|
-
import { getBusinessTransactionsHref } from '../../business-transactions/index.js';
|
|
9
7
|
import { SelectWithSearch, Tooltip } from '../../common/index.js';
|
|
10
8
|
import { InsertBusiness } from '../../common/modals/insert-business.jsx';
|
|
11
9
|
import { SimilarTransactionsModal } from '../../common/modals/similar-transactions-modal.jsx';
|
|
@@ -18,7 +16,6 @@ type Props = {
|
|
|
18
16
|
};
|
|
19
17
|
|
|
20
18
|
export function Counterparty({ transaction, onChange }: Props): ReactElement {
|
|
21
|
-
const { get } = useUrlQuery();
|
|
22
19
|
const {
|
|
23
20
|
id,
|
|
24
21
|
counterparty,
|
|
@@ -58,24 +55,6 @@ export function Counterparty({ transaction, onChange }: Props): ReactElement {
|
|
|
58
55
|
[updateBusiness, onChange],
|
|
59
56
|
);
|
|
60
57
|
|
|
61
|
-
const encodedFilters = get('chargesFilters');
|
|
62
|
-
|
|
63
|
-
const getHref = useCallback(
|
|
64
|
-
(businessID: string) => {
|
|
65
|
-
const currentFilters = encodedFilters
|
|
66
|
-
? (JSON.parse(decodeURIComponent(encodedFilters as string)) as ChargeFilter)
|
|
67
|
-
: {};
|
|
68
|
-
|
|
69
|
-
return getBusinessTransactionsHref({
|
|
70
|
-
fromDate: currentFilters.fromDate,
|
|
71
|
-
toDate: currentFilters.toDate,
|
|
72
|
-
ownerIds: currentFilters.byOwners,
|
|
73
|
-
businessIDs: [businessID],
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
[encodedFilters],
|
|
77
|
-
);
|
|
78
|
-
|
|
79
58
|
const { selectableBusinesses: selectOptions, fetching: businessesLoading } = useGetBusinesses();
|
|
80
59
|
|
|
81
60
|
const [selectedBusinessId, setSelectedBusinessId] = useState<string | null>(suggestedId ?? null);
|
|
@@ -87,7 +66,7 @@ export function Counterparty({ transaction, onChange }: Props): ReactElement {
|
|
|
87
66
|
<div className="flex flex-wrap flex-col justify-center">
|
|
88
67
|
{counterparty?.id ? (
|
|
89
68
|
<Link
|
|
90
|
-
to={
|
|
69
|
+
to={ROUTES.BUSINESSES.DETAIL(counterparty.id)}
|
|
91
70
|
target="_blank"
|
|
92
71
|
rel="noreferrer"
|
|
93
72
|
onClick={event => event.stopPropagation()}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { useCallback, useState, type ReactElement } from 'react';
|
|
2
2
|
import { CheckIcon } from 'lucide-react';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
type ChargeFilter,
|
|
7
|
-
} from '../../../gql/graphql.js';
|
|
4
|
+
import { ROUTES } from '@/router/routes.js';
|
|
5
|
+
import { TransactionsTableEntityFieldsFragmentDoc } from '../../../gql/graphql.js';
|
|
8
6
|
import { getFragmentData, type FragmentType } from '../../../gql/index.js';
|
|
9
7
|
import { useGetBusinesses } from '../../../hooks/use-get-businesses.js';
|
|
10
8
|
import { useUpdateTransaction } from '../../../hooks/use-update-transaction.js';
|
|
11
|
-
import { useUrlQuery } from '../../../hooks/use-url-query.js';
|
|
12
|
-
import { getBusinessTransactionsHref } from '../../business-transactions/index.js';
|
|
13
9
|
import { SelectWithSearch, Tooltip } from '../../common/index.js';
|
|
14
10
|
import { InsertBusiness } from '../../common/modals/insert-business.js';
|
|
15
11
|
import { SimilarTransactionsModal } from '../../common/modals/similar-transactions-modal.js';
|
|
@@ -40,7 +36,6 @@ type Props = {
|
|
|
40
36
|
};
|
|
41
37
|
|
|
42
38
|
export function Counterparty({ data, onChange, enableEdit }: Props): ReactElement {
|
|
43
|
-
const { get } = useUrlQuery();
|
|
44
39
|
const {
|
|
45
40
|
id,
|
|
46
41
|
counterparty,
|
|
@@ -79,24 +74,6 @@ export function Counterparty({ data, onChange, enableEdit }: Props): ReactElemen
|
|
|
79
74
|
[updateBusiness, onChange],
|
|
80
75
|
);
|
|
81
76
|
|
|
82
|
-
const encodedFilters = get('chargesFilters');
|
|
83
|
-
|
|
84
|
-
const getHref = useCallback(
|
|
85
|
-
(businessID: string) => {
|
|
86
|
-
const currentFilters = encodedFilters
|
|
87
|
-
? (JSON.parse(decodeURIComponent(encodedFilters as string)) as ChargeFilter)
|
|
88
|
-
: {};
|
|
89
|
-
|
|
90
|
-
return getBusinessTransactionsHref({
|
|
91
|
-
fromDate: currentFilters.fromDate,
|
|
92
|
-
toDate: currentFilters.toDate,
|
|
93
|
-
ownerIds: currentFilters.byOwners,
|
|
94
|
-
businessIDs: [businessID],
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
[encodedFilters],
|
|
98
|
-
);
|
|
99
|
-
|
|
100
77
|
const { selectableBusinesses: selectOptions, fetching: businessesLoading } = useGetBusinesses();
|
|
101
78
|
|
|
102
79
|
const [selectedBusinessId, setSelectedBusinessId] = useState<string | null>(suggestedId ?? null);
|
|
@@ -108,7 +85,7 @@ export function Counterparty({ data, onChange, enableEdit }: Props): ReactElemen
|
|
|
108
85
|
<div className="flex flex-wrap gap-1 items-center justify-center">
|
|
109
86
|
{counterparty?.id ? (
|
|
110
87
|
<Link
|
|
111
|
-
to={
|
|
88
|
+
to={ROUTES.BUSINESSES.DETAIL(counterparty.id)}
|
|
112
89
|
target="_blank"
|
|
113
90
|
rel="noreferrer"
|
|
114
91
|
onClick={event => event.stopPropagation()}
|
package/src/gql/gql.ts
CHANGED
|
@@ -26,7 +26,7 @@ type Documents = {
|
|
|
26
26
|
"\n query BusinessChargesSection($page: Int, $limit: Int, $filters: ChargeFilter) {\n allCharges(page: $page, limit: $limit, filters: $filters) {\n nodes {\n id\n ...ChargesTableFields\n }\n pageInfo {\n totalPages\n }\n }\n }\n": typeof types.BusinessChargesSectionDocument,
|
|
27
27
|
"\n fragment BusinessConfigurationSection on Business {\n __typename\n id\n pcn874RecordType\n irsCode\n isActive\n ... on LtdFinancialEntity {\n optionalVAT\n exemptDealer\n isReceiptEnough\n isDocumentsOptional\n sortCode {\n id\n key\n defaultIrsCode\n }\n taxCategory {\n id\n }\n suggestions {\n phrases\n emails\n tags {\n id\n }\n description\n emailListener {\n internalEmailLinks\n emailBody\n attachments\n }\n }\n clientInfo {\n id\n }\n }\n }\n": typeof types.BusinessConfigurationSectionFragmentDoc,
|
|
28
28
|
"\n fragment BusinessContactSection on Business {\n __typename\n id\n ... on LtdFinancialEntity {\n name\n hebrewName\n country\n governmentId\n address\n email\n # localAddress\n phoneNumber\n website\n clientInfo {\n id\n emails\n }\n }\n }\n": typeof types.BusinessContactSectionFragmentDoc,
|
|
29
|
-
"\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrder\n startDate\n endDate\n amount {\n raw\n currency\n }\n billingCycle\n isActive\n product\n documentType\n remarks\n plan\n msCloud\n
|
|
29
|
+
"\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrder\n startDate\n endDate\n amount {\n raw\n currency\n }\n billingCycle\n isActive\n product\n documentType\n remarks\n plan\n msCloud\n }\n }\n": typeof types.ClientContractsSectionDocument,
|
|
30
30
|
"\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n adminInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n ...BusinessAdminSection\n }\n": typeof types.BusinessPageFragmentDoc,
|
|
31
31
|
"\n fragment ClientIntegrationsSection on LtdFinancialEntity {\n id\n clientInfo {\n id\n greenInvoiceId\n hiveId\n }\n }\n": typeof types.ClientIntegrationsSectionFragmentDoc,
|
|
32
32
|
"\n query ClientIntegrationsSectionGreenInvoice($clientId: UUID!) {\n greenInvoiceClient(clientId: $clientId) {\n id\n country\n emails\n name\n phone\n taxId\n address\n city\n zip\n fax\n mobile\n }\n }\n": typeof types.ClientIntegrationsSectionGreenInvoiceDocument,
|
|
@@ -278,7 +278,7 @@ const documents: Documents = {
|
|
|
278
278
|
"\n query BusinessChargesSection($page: Int, $limit: Int, $filters: ChargeFilter) {\n allCharges(page: $page, limit: $limit, filters: $filters) {\n nodes {\n id\n ...ChargesTableFields\n }\n pageInfo {\n totalPages\n }\n }\n }\n": types.BusinessChargesSectionDocument,
|
|
279
279
|
"\n fragment BusinessConfigurationSection on Business {\n __typename\n id\n pcn874RecordType\n irsCode\n isActive\n ... on LtdFinancialEntity {\n optionalVAT\n exemptDealer\n isReceiptEnough\n isDocumentsOptional\n sortCode {\n id\n key\n defaultIrsCode\n }\n taxCategory {\n id\n }\n suggestions {\n phrases\n emails\n tags {\n id\n }\n description\n emailListener {\n internalEmailLinks\n emailBody\n attachments\n }\n }\n clientInfo {\n id\n }\n }\n }\n": types.BusinessConfigurationSectionFragmentDoc,
|
|
280
280
|
"\n fragment BusinessContactSection on Business {\n __typename\n id\n ... on LtdFinancialEntity {\n name\n hebrewName\n country\n governmentId\n address\n email\n # localAddress\n phoneNumber\n website\n clientInfo {\n id\n emails\n }\n }\n }\n": types.BusinessContactSectionFragmentDoc,
|
|
281
|
-
"\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrder\n startDate\n endDate\n amount {\n raw\n currency\n }\n billingCycle\n isActive\n product\n documentType\n remarks\n plan\n msCloud\n
|
|
281
|
+
"\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrder\n startDate\n endDate\n amount {\n raw\n currency\n }\n billingCycle\n isActive\n product\n documentType\n remarks\n plan\n msCloud\n }\n }\n": types.ClientContractsSectionDocument,
|
|
282
282
|
"\n fragment BusinessPage on Business {\n id\n ... on LtdFinancialEntity {\n clientInfo {\n id\n }\n adminInfo {\n id\n }\n }\n ...ClientIntegrationsSection\n ...BusinessHeader\n ...BusinessContactSection\n ...BusinessConfigurationSection\n ...BusinessAdminSection\n }\n": types.BusinessPageFragmentDoc,
|
|
283
283
|
"\n fragment ClientIntegrationsSection on LtdFinancialEntity {\n id\n clientInfo {\n id\n greenInvoiceId\n hiveId\n }\n }\n": types.ClientIntegrationsSectionFragmentDoc,
|
|
284
284
|
"\n query ClientIntegrationsSectionGreenInvoice($clientId: UUID!) {\n greenInvoiceClient(clientId: $clientId) {\n id\n country\n emails\n name\n phone\n taxId\n address\n city\n zip\n fax\n mobile\n }\n }\n": types.ClientIntegrationsSectionGreenInvoiceDocument,
|
|
@@ -583,7 +583,7 @@ export function graphql(source: "\n fragment BusinessContactSection on Business
|
|
|
583
583
|
/**
|
|
584
584
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
585
585
|
*/
|
|
586
|
-
export function graphql(source: "\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrder\n startDate\n endDate\n amount {\n raw\n currency\n }\n billingCycle\n isActive\n product\n documentType\n remarks\n plan\n msCloud\n
|
|
586
|
+
export function graphql(source: "\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrder\n startDate\n endDate\n amount {\n raw\n currency\n }\n billingCycle\n isActive\n product\n documentType\n remarks\n plan\n msCloud\n }\n }\n"): (typeof documents)["\n query ClientContractsSection($clientId: UUID!) {\n contractsByClient(clientId: $clientId) {\n id\n purchaseOrder\n startDate\n endDate\n amount {\n raw\n currency\n }\n billingCycle\n isActive\n product\n documentType\n remarks\n plan\n msCloud\n }\n }\n"];
|
|
587
587
|
/**
|
|
588
588
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
589
589
|
*/
|
package/src/gql/graphql.ts
CHANGED
|
@@ -991,7 +991,6 @@ export type Contract = {
|
|
|
991
991
|
id: Scalars['UUID']['output'];
|
|
992
992
|
isActive: Scalars['Boolean']['output'];
|
|
993
993
|
msCloud?: Maybe<Scalars['URL']['output']>;
|
|
994
|
-
operationsLimit: Scalars['Int']['output'];
|
|
995
994
|
plan?: Maybe<SubscriptionPlan>;
|
|
996
995
|
product?: Maybe<Product>;
|
|
997
996
|
purchaseOrder?: Maybe<Scalars['String']['output']>;
|
|
@@ -1163,7 +1162,6 @@ export type CreateContractInput = {
|
|
|
1163
1162
|
endDate: Scalars['TimelessDate']['input'];
|
|
1164
1163
|
isActive: Scalars['Boolean']['input'];
|
|
1165
1164
|
msCloud?: InputMaybe<Scalars['URL']['input']>;
|
|
1166
|
-
operationsLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
1167
1165
|
plan?: InputMaybe<SubscriptionPlan>;
|
|
1168
1166
|
product?: InputMaybe<Product>;
|
|
1169
1167
|
purchaseOrder?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4714,7 +4712,6 @@ export type UpdateContractInput = {
|
|
|
4714
4712
|
endDate?: InputMaybe<Scalars['TimelessDate']['input']>;
|
|
4715
4713
|
isActive?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4716
4714
|
msCloud?: InputMaybe<Scalars['URL']['input']>;
|
|
4717
|
-
operationsLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
4718
4715
|
plan?: InputMaybe<SubscriptionPlan>;
|
|
4719
4716
|
product?: InputMaybe<Product>;
|
|
4720
4717
|
purchaseOrder?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -5118,7 +5115,7 @@ export type ClientContractsSectionQueryVariables = Exact<{
|
|
|
5118
5115
|
}>;
|
|
5119
5116
|
|
|
5120
5117
|
|
|
5121
|
-
export type ClientContractsSectionQuery = { __typename?: 'Query', contractsByClient: Array<{ __typename?: 'Contract', id: string, purchaseOrder?: string | null, startDate: TimelessDateString, endDate: TimelessDateString, billingCycle: BillingCycle, isActive: boolean, product?: Product | null, documentType: DocumentType, remarks?: string | null, plan?: SubscriptionPlan | null, msCloud?: URL | string | null,
|
|
5118
|
+
export type ClientContractsSectionQuery = { __typename?: 'Query', contractsByClient: Array<{ __typename?: 'Contract', id: string, purchaseOrder?: string | null, startDate: TimelessDateString, endDate: TimelessDateString, billingCycle: BillingCycle, isActive: boolean, product?: Product | null, documentType: DocumentType, remarks?: string | null, plan?: SubscriptionPlan | null, msCloud?: URL | string | null, amount: { __typename?: 'FinancialAmount', raw: number, currency: Currency } }> };
|
|
5122
5119
|
|
|
5123
5120
|
type BusinessPage_LtdFinancialEntity_Fragment = (
|
|
5124
5121
|
{ __typename?: 'LtdFinancialEntity', id: string, clientInfo?: { __typename?: 'Client', id: string } | null, adminInfo?: { __typename?: 'AdminBusiness', id: string } | null }
|
|
@@ -11919,7 +11916,7 @@ export const BusinessTripsRowValidationDocument = {"kind":"Document","definition
|
|
|
11919
11916
|
export const EditableBusinessTripDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EditableBusinessTrip"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportHeaderFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAttendeesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripUncategorizedTransactionsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCarRentalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportOtherFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportSummaryFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uncategorizedTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"class"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}},{"kind":"Field","name":{"kind":"Name","value":"attendeesStay"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAttendeeRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAttendee"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"arrivalDate"}},{"kind":"Field","name":{"kind":"Name","value":"departureDate"}},{"kind":"Field","name":{"kind":"Name","value":"flights"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"accommodations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableEventDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableDebitDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableAccountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableSourceIDFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UncategorizedTransactionsTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UncategorizedTransaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"categorizedAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripTravelAndSubsistenceExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"expenseType"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCarRentalRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCarRentalExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"days"}},{"kind":"Field","name":{"kind":"Name","value":"isFuelExpense"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportOtherRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripOtherExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"deductibleExpense"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportHeaderFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start"}},{"kind":"Field","name":{"kind":"Name","value":"end"}}]}},{"kind":"Field","name":{"kind":"Name","value":"purpose"}},{"kind":"Field","name":{"kind":"Name","value":"destination"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAttendeesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAttendeeRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripUncategorizedTransactionsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"uncategorizedTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableEventDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableDebitDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableAccountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableSourceIDFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableEntityFields"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"UncategorizedTransactionsTableAmountFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flightExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accommodationExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"travelAndSubsistenceExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCarRentalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"carRentalExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCarRentalRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportOtherFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"otherExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportOtherRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportSummaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"summary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessTax"}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"totalForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]}}]} as unknown as DocumentNode<EditableBusinessTripQuery, EditableBusinessTripQueryVariables>;
|
|
11920
11917
|
export const BusinessTripsScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BusinessTripsScreen"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allBusinessTrips"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripsRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}}]} as unknown as DocumentNode<BusinessTripsScreenQuery, BusinessTripsScreenQueryVariables>;
|
|
11921
11918
|
export const BusinessChargesSectionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BusinessChargesSection"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"page"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allCharges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"page"},"value":{"kind":"Variable","name":{"kind":"Name","value":"page"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalPages"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]} as unknown as DocumentNode<BusinessChargesSectionQuery, BusinessChargesSectionQueryVariables>;
|
|
11922
|
-
export const ClientContractsSectionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ClientContractsSection"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contractsByClient"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"clientId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"purchaseOrder"}},{"kind":"Field","name":{"kind":"Name","value":"startDate"}},{"kind":"Field","name":{"kind":"Name","value":"endDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCycle"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"product"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"remarks"}},{"kind":"Field","name":{"kind":"Name","value":"plan"}},{"kind":"Field","name":{"kind":"Name","value":"msCloud"}}
|
|
11919
|
+
export const ClientContractsSectionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ClientContractsSection"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contractsByClient"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"clientId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"purchaseOrder"}},{"kind":"Field","name":{"kind":"Name","value":"startDate"}},{"kind":"Field","name":{"kind":"Name","value":"endDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"billingCycle"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"product"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"remarks"}},{"kind":"Field","name":{"kind":"Name","value":"plan"}},{"kind":"Field","name":{"kind":"Name","value":"msCloud"}}]}}]}}]} as unknown as DocumentNode<ClientContractsSectionQuery, ClientContractsSectionQueryVariables>;
|
|
11923
11920
|
export const ClientIntegrationsSectionGreenInvoiceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ClientIntegrationsSectionGreenInvoice"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"greenInvoiceClient"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"clientId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"taxId"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"zip"}},{"kind":"Field","name":{"kind":"Name","value":"fax"}},{"kind":"Field","name":{"kind":"Name","value":"mobile"}}]}}]}}]} as unknown as DocumentNode<ClientIntegrationsSectionGreenInvoiceQuery, ClientIntegrationsSectionGreenInvoiceQueryVariables>;
|
|
11924
11921
|
export const AllBusinessesForScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllBusinessesForScreen"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"page"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allBusinesses"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"page"},"value":{"kind":"Variable","name":{"kind":"Name","value":"page"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessHeader"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalPages"}},{"kind":"Field","name":{"kind":"Name","value":"totalRecords"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessHeader"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Business"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"governmentId"}},{"kind":"Field","name":{"kind":"Name","value":"adminInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"clientInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode<AllBusinessesForScreenQuery, AllBusinessesForScreenQueryVariables>;
|
|
11925
11922
|
export const ChargesLedgerValidationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ChargesLedgerValidation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargesWithLedgerChanges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"stream"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"progress"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]} as unknown as DocumentNode<ChargesLedgerValidationQuery, ChargesLedgerValidationQueryVariables>;
|