@accounter/client 0.0.8-alpha-20251028120806-2ffeafaf43eece2a7685012216a6fcc962bc1406 → 0.0.8-alpha-20251028122020-22393814f274e46c107aca0d7b3f8acafeabbb81
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 +15 -18
- package/dist/assets/{Checkbox-B3flPa-J.js → Checkbox-D9q62D8v.js} +3 -3
- package/dist/assets/{Progress-C8oF3q5W.js → Progress-DRjeFVVZ.js} +1 -1
- package/dist/assets/{Typography-CYdMLBAy.js → Typography-CbuOxmxV.js} +1 -1
- package/dist/assets/{accordion-D-BLHAB1.js → accordion-pfIKfX4Y.js} +1 -1
- package/dist/assets/{accountant-approvals-DXpMnnLy.js → accountant-approvals-CXholBsN.js} +1 -1
- package/dist/assets/{all-charges-C-gOh0e5.js → all-charges-Cq7JGIw2.js} +1 -1
- package/dist/assets/{arrow-up-down-0SO17vu7.js → arrow-up-down-Dh7BsmBW.js} +2 -2
- package/dist/assets/{building-2-UCsUqLT9.js → building-2-DsBmoiLM.js} +2 -2
- package/dist/assets/business-B0Z0CMjU.js +32 -0
- package/dist/assets/{business-header-DN3_Woio.js → business-header-DDDNCIl7.js} +1 -1
- package/dist/assets/{business-transactions-single-ymtxGGw6.js → business-transactions-single-C8LdMKdp.js} +1 -1
- package/dist/assets/{business-trip-Be37IRkC.js → business-trip-C5sPEx_a.js} +1 -1
- package/dist/assets/{charges-filters-DzuinQ4L.js → charges-filters-CoxkLwLG.js} +1 -1
- package/dist/assets/{charges-ledger-validation-D7JvV6db.js → charges-ledger-validation-ZfrK_Aim.js} +1 -1
- package/dist/assets/{chart-BiIM6DWC.js → chart-DT0S7sTG.js} +1 -1
- package/dist/assets/{data-table-pagination-C_EzPtAd.js → data-table-pagination-BIpu2Fzl.js} +3 -3
- package/dist/assets/{editable-business-trip-Dz-_eywR.js → editable-business-trip-DTNGD1cG.js} +5 -5
- package/dist/assets/{index-Cyhthk3f.js → index-0cS85m-R.js} +1 -1
- package/dist/assets/{index-D3EgDFsb.js → index-2pcc30po.js} +3 -3
- package/dist/assets/{index-oHas_Yts.js → index-3FSzrAcq.js} +1 -1
- package/dist/assets/{index-DtE5Y1ZB.css → index-BU7S_VxQ.css} +1 -1
- package/dist/assets/{index-DeT7-16U.js → index-BbN569Ip.js} +2 -2
- package/dist/assets/index-BxZQN0p6.js +1 -0
- package/dist/assets/{index-6Nuk8w9V.js → index-C82IZR7M.js} +1 -1
- package/dist/assets/{index-fxPSWWbK.js → index-CH7ebmNN.js} +1 -1
- package/dist/assets/{index-BALGUcFk.js → index-CM0HVUR5.js} +1 -1
- package/dist/assets/{index-B6-Dd7fT.js → index-CQqv3cqO.js} +2 -2
- package/dist/assets/{index-DArFiXr9.js → index-CX33776G.js} +1 -1
- package/dist/assets/{index-DPpEG9bb.js → index-CbXs_TpY.js} +348 -353
- package/dist/assets/{index-Dmofir00.js → index-CfBh4W-y.js} +3 -3
- package/dist/assets/{index-DmcLgst1.js → index-CqQ5r7_V.js} +1 -1
- package/dist/assets/{index-ovonWEgv.js → index-Cst4LEdT.js} +7 -7
- package/dist/assets/{index-VP5lfKug.js → index-DA5dVRCr.js} +4 -4
- package/dist/assets/{index-B0mITck_.js → index-DTVw9idN.js} +1 -1
- package/dist/assets/{index-CC0Or6Vc.js → index-DUATm10r.js} +1 -1
- package/dist/assets/{index-DjStozDN.js → index-DqHvHWlp.js} +1 -1
- package/dist/assets/{index-MxAmN534.js → index-DxULggyH.js} +7 -7
- package/dist/assets/{index-6MojwZ8r.js → index-TrMaspii.js} +1 -1
- package/dist/assets/{index-DzlC3eG5.js → index-c5ib3rgl.js} +1 -1
- package/dist/assets/{index-fcGRxy6s.js → index-cLwQhCXe.js} +2 -2
- package/dist/assets/{index-Ck1_vgAE.js → index-tjro57tL.js} +1 -1
- package/dist/assets/{index.es-CflUflSH.js → index.es-BUc4piRK.js} +1 -1
- package/dist/assets/{issue-document-cScH_CFA.js → issue-document-B_RjziMe.js} +1 -1
- package/dist/assets/{login-page-DONx5Mdv.js → login-page-B2shLJFL.js} +1 -1
- package/dist/assets/{missing-info-charges-BrifDJy6.js → missing-info-charges-DNA-ZjLm.js} +1 -1
- package/dist/assets/{page-not-found-_lLiym0-.js → page-not-found-CAQqHYW0.js} +1 -1
- package/dist/assets/{pencil-CUBEsfNn.js → pencil-DZ5pOEVX.js} +2 -2
- package/dist/assets/{report-commentary-row-SS9lG0SF.js → report-commentary-row-BHgKNhnX.js} +1 -1
- package/dist/assets/{save-ZTUk8WJM.js → save-CL8bhoFP.js} +2 -2
- package/dist/assets/{sub-CmPBwyt8.js → sub-C_dogjkK.js} +1 -1
- package/dist/assets/subMonths-adiK1C_h.js +1 -0
- package/dist/index.html +2 -2
- package/package.json +5 -5
- package/src/components/business/admin-business-section.tsx +36 -74
- package/src/components/clients/modify-client-dialog.tsx +9 -27
- package/src/components/common/modals/insert-business.tsx +36 -88
- package/src/components/layout/user-nav.tsx +3 -22
- package/src/gql/gql.ts +3 -3
- package/src/gql/graphql.ts +16 -19
- package/dist/assets/business-c9QmKg9c.js +0 -27
- package/dist/assets/index-DSLXwBq5.js +0 -1
- package/dist/assets/subMonths-B4EBfn4r.js +0 -1
|
@@ -49,10 +49,9 @@ interface Props {
|
|
|
49
49
|
businessId: string;
|
|
50
50
|
client?: ClientFormValues | null;
|
|
51
51
|
onDone?: () => void;
|
|
52
|
-
showTrigger?: boolean;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
export function ModifyClientDialog({ client, businessId, onDone
|
|
54
|
+
export function ModifyClientDialog({ client, businessId, onDone }: Props) {
|
|
56
55
|
const [isDialogOpen, setIsDialogOpen] = useState(false);
|
|
57
56
|
const [editingClient, setEditingClient] = useState<ClientFormValues | null>(null);
|
|
58
57
|
|
|
@@ -139,23 +138,13 @@ export function ModifyClientDialog({ client, businessId, onDone, showTrigger = t
|
|
|
139
138
|
);
|
|
140
139
|
|
|
141
140
|
return (
|
|
142
|
-
<Dialog
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}}
|
|
150
|
-
>
|
|
151
|
-
{showTrigger && (
|
|
152
|
-
<DialogTrigger asChild>
|
|
153
|
-
<Button size="sm" onClick={handleNew}>
|
|
154
|
-
<Plus className="h-4 w-4 mr-2" />
|
|
155
|
-
New Client
|
|
156
|
-
</Button>
|
|
157
|
-
</DialogTrigger>
|
|
158
|
-
)}
|
|
141
|
+
<Dialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>
|
|
142
|
+
<DialogTrigger asChild>
|
|
143
|
+
<Button size="sm" onClick={handleNew}>
|
|
144
|
+
<Plus className="h-4 w-4 mr-2" />
|
|
145
|
+
New Client
|
|
146
|
+
</Button>
|
|
147
|
+
</DialogTrigger>
|
|
159
148
|
<DialogContent className="max-w-2xl max-h-[90vh] overflow-y-auto">
|
|
160
149
|
<DialogHeader>
|
|
161
150
|
<DialogTitle>{editingClient ? 'Edit Client' : 'Create New Client'}</DialogTitle>
|
|
@@ -274,14 +263,7 @@ export function ModifyClientDialog({ client, businessId, onDone, showTrigger = t
|
|
|
274
263
|
</div>
|
|
275
264
|
</div>
|
|
276
265
|
<DialogFooter>
|
|
277
|
-
<Button
|
|
278
|
-
type="button"
|
|
279
|
-
variant="outline"
|
|
280
|
-
onClick={() => {
|
|
281
|
-
setIsDialogOpen(false);
|
|
282
|
-
onDone?.();
|
|
283
|
-
}}
|
|
284
|
-
>
|
|
266
|
+
<Button type="button" variant="outline" onClick={() => setIsDialogOpen(false)}>
|
|
285
267
|
Cancel
|
|
286
268
|
</Button>
|
|
287
269
|
<Button type="submit">{editingClient ? 'Update Client' : 'Create Client'}</Button>
|
|
@@ -2,10 +2,6 @@ import { useCallback, useContext, useState } from 'react';
|
|
|
2
2
|
import { Globe, Mail, MapPin, Phone, Plus, X } from 'lucide-react';
|
|
3
3
|
import { useForm } from 'react-hook-form';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import {
|
|
6
|
-
ModifyClientDialog,
|
|
7
|
-
type ClientFormValues,
|
|
8
|
-
} from '@/components/clients/modify-client-dialog.js';
|
|
9
5
|
import { Badge } from '@/components/ui/badge.js';
|
|
10
6
|
import { Button } from '@/components/ui/button.js';
|
|
11
7
|
import {
|
|
@@ -19,7 +15,6 @@ import {
|
|
|
19
15
|
import {
|
|
20
16
|
Form,
|
|
21
17
|
FormControl,
|
|
22
|
-
FormDescription,
|
|
23
18
|
FormField,
|
|
24
19
|
FormItem,
|
|
25
20
|
FormLabel,
|
|
@@ -33,9 +28,7 @@ import {
|
|
|
33
28
|
SelectTrigger,
|
|
34
29
|
SelectValue,
|
|
35
30
|
} from '@/components/ui/select.js';
|
|
36
|
-
import { Switch } from '@/components/ui/switch.js';
|
|
37
31
|
import { Textarea } from '@/components/ui/textarea.js';
|
|
38
|
-
import { DocumentType } from '@/gql/graphql.js';
|
|
39
32
|
import { pcn874RecordEnum } from '@/helpers/index.js';
|
|
40
33
|
import { useAllCountries } from '@/hooks/use-get-countries.js';
|
|
41
34
|
import { useGetSortCodes } from '@/hooks/use-get-sort-codes.js';
|
|
@@ -55,8 +48,8 @@ const businessFormSchema = z
|
|
|
55
48
|
localName: z.string().optional(),
|
|
56
49
|
govId: z.string().optional(),
|
|
57
50
|
address: z.string().optional(),
|
|
58
|
-
generalContacts: z.array(z.email()),
|
|
59
|
-
website: z.url().optional().or(z.literal('')),
|
|
51
|
+
generalContacts: z.array(z.string().email()),
|
|
52
|
+
website: z.string().url().optional().or(z.literal('')),
|
|
60
53
|
phone: z.string().optional(),
|
|
61
54
|
taxCategory: z.string().optional(),
|
|
62
55
|
sortCode: z.string().optional(),
|
|
@@ -64,9 +57,8 @@ const businessFormSchema = z
|
|
|
64
57
|
irsCode: z.int().optional(),
|
|
65
58
|
defaultDescription: z.string().optional(),
|
|
66
59
|
defaultTags: z.array(z.string()),
|
|
67
|
-
isClient: z.boolean().default(false).optional(),
|
|
68
60
|
transactionPhrases: z.array(z.string()),
|
|
69
|
-
emailAddresses: z.array(z.email()),
|
|
61
|
+
emailAddresses: z.array(z.string().email()),
|
|
70
62
|
})
|
|
71
63
|
.refine(
|
|
72
64
|
data => {
|
|
@@ -125,7 +117,6 @@ export function InsertBusiness({
|
|
|
125
117
|
onAdd?: (businessId: string) => void;
|
|
126
118
|
}) {
|
|
127
119
|
const [isNewBusinessOpen, setIsNewBusinessOpen] = useState(false);
|
|
128
|
-
const [client, setClient] = useState<ClientFormValues | null>(null);
|
|
129
120
|
|
|
130
121
|
const { insertBusiness, fetching: addingInProcess } = useInsertBusiness();
|
|
131
122
|
|
|
@@ -137,7 +128,6 @@ export function InsertBusiness({
|
|
|
137
128
|
defaultTags: [],
|
|
138
129
|
transactionPhrases: description ? [description] : [],
|
|
139
130
|
emailAddresses: [],
|
|
140
|
-
locality: 'GAB', // TODO: set default based on DB
|
|
141
131
|
},
|
|
142
132
|
});
|
|
143
133
|
|
|
@@ -145,69 +135,44 @@ export function InsertBusiness({
|
|
|
145
135
|
const newBusiness = await insertBusiness({
|
|
146
136
|
fields: convertFormDataToInsertNewBusinessInput(data),
|
|
147
137
|
});
|
|
148
|
-
if (data.isClient && newBusiness?.id) {
|
|
149
|
-
setClient({
|
|
150
|
-
businessId: newBusiness.id,
|
|
151
|
-
generatedDocumentType: DocumentType.Proforma,
|
|
152
|
-
emails: [],
|
|
153
|
-
});
|
|
154
|
-
} else {
|
|
155
|
-
onComplete(newBusiness?.id);
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
const onComplete = (businessId: string = '') => {
|
|
160
|
-
setClient(null);
|
|
161
138
|
setIsNewBusinessOpen(false);
|
|
162
139
|
form.reset();
|
|
163
|
-
onAdd?.(
|
|
140
|
+
onAdd?.(newBusiness?.id ?? '');
|
|
164
141
|
};
|
|
165
142
|
|
|
166
143
|
return (
|
|
167
|
-
|
|
168
|
-
<
|
|
169
|
-
<
|
|
170
|
-
<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
<
|
|
176
|
-
<
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
<
|
|
181
|
-
<form
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
<
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
</Dialog>
|
|
200
|
-
{client?.businessId && (
|
|
201
|
-
<ModifyClientDialog
|
|
202
|
-
businessId={client.businessId}
|
|
203
|
-
client={client}
|
|
204
|
-
showTrigger={false}
|
|
205
|
-
onDone={() => {
|
|
206
|
-
onComplete(client.businessId);
|
|
207
|
-
}}
|
|
208
|
-
/>
|
|
209
|
-
)}
|
|
210
|
-
</>
|
|
144
|
+
<Dialog open={isNewBusinessOpen} onOpenChange={setIsNewBusinessOpen}>
|
|
145
|
+
<DialogTrigger asChild>
|
|
146
|
+
<Button>
|
|
147
|
+
<Plus className="size-4 mr-2" />
|
|
148
|
+
New Business
|
|
149
|
+
</Button>
|
|
150
|
+
</DialogTrigger>
|
|
151
|
+
<DialogContent className="max-w-3xl max-h-[90vh] overflow-y-auto">
|
|
152
|
+
<DialogHeader>
|
|
153
|
+
<DialogTitle>Create New Business</DialogTitle>
|
|
154
|
+
<DialogDescription>Add a new business to Accounter.</DialogDescription>
|
|
155
|
+
</DialogHeader>
|
|
156
|
+
<Form {...form}>
|
|
157
|
+
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6">
|
|
158
|
+
<ContactInformationSection form={form} />
|
|
159
|
+
|
|
160
|
+
<DefaultsSection form={form} />
|
|
161
|
+
|
|
162
|
+
<AutoMatchingSection form={form} />
|
|
163
|
+
|
|
164
|
+
<div className="flex justify-end gap-3 pt-4 border-t">
|
|
165
|
+
<Button type="button" variant="outline" onClick={() => setIsNewBusinessOpen(false)}>
|
|
166
|
+
Cancel
|
|
167
|
+
</Button>
|
|
168
|
+
<Button type="submit" disabled={addingInProcess}>
|
|
169
|
+
Create Business
|
|
170
|
+
</Button>
|
|
171
|
+
</div>
|
|
172
|
+
</form>
|
|
173
|
+
</Form>
|
|
174
|
+
</DialogContent>
|
|
175
|
+
</Dialog>
|
|
211
176
|
);
|
|
212
177
|
}
|
|
213
178
|
|
|
@@ -573,29 +538,12 @@ function DefaultsSection({ form }: SectionProps) {
|
|
|
573
538
|
placeholder="Select Default Tags"
|
|
574
539
|
variant="default"
|
|
575
540
|
disabled={fetchingTags}
|
|
576
|
-
asChild
|
|
577
541
|
/>
|
|
578
542
|
</FormControl>
|
|
579
543
|
<FormMessage />
|
|
580
544
|
</FormItem>
|
|
581
545
|
)}
|
|
582
546
|
/>
|
|
583
|
-
|
|
584
|
-
<FormField
|
|
585
|
-
control={form.control}
|
|
586
|
-
name="isClient"
|
|
587
|
-
render={({ field }) => (
|
|
588
|
-
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm">
|
|
589
|
-
<div className="space-y-0.5">
|
|
590
|
-
<FormLabel>Client</FormLabel>
|
|
591
|
-
<FormDescription>Business is a client</FormDescription>
|
|
592
|
-
</div>
|
|
593
|
-
<FormControl>
|
|
594
|
-
<Switch checked={field.value} onCheckedChange={field.onChange} />
|
|
595
|
-
</FormControl>
|
|
596
|
-
</FormItem>
|
|
597
|
-
)}
|
|
598
|
-
/>
|
|
599
547
|
</div>
|
|
600
548
|
</div>
|
|
601
549
|
);
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CircleCheckBig, FileDown,
|
|
3
|
-
import { Link } from 'react-router-dom';
|
|
4
|
-
import { UserContext } from '@/providers/index.js';
|
|
5
|
-
import { ROUTES } from '@/router/routes.js';
|
|
1
|
+
import { useState, type JSX } from 'react';
|
|
2
|
+
import { CircleCheckBig, FileDown, User2Icon } from 'lucide-react';
|
|
6
3
|
import { Tooltip } from '@mantine/core';
|
|
7
4
|
import { useDisclosure } from '@mantine/hooks';
|
|
8
5
|
import { useCornJobs } from '../../hooks/use-corn-jobs.js';
|
|
@@ -20,14 +17,11 @@ import {
|
|
|
20
17
|
} from '../ui/dropdown-menu.js';
|
|
21
18
|
|
|
22
19
|
export function UserNav(): JSX.Element {
|
|
23
|
-
const { userContext } = useContext(UserContext);
|
|
24
20
|
const [pullDocumentsOpened, { close: closePullDocuments, open: openPullDocuments }] =
|
|
25
21
|
useDisclosure(false);
|
|
26
22
|
const [balanceChargeModalOpen, setBalanceChargeModalOpen] = useState(false);
|
|
27
23
|
const { executeJobs } = useCornJobs();
|
|
28
24
|
|
|
29
|
-
const userName = userContext?.username || 'User Name';
|
|
30
|
-
|
|
31
25
|
return (
|
|
32
26
|
<>
|
|
33
27
|
<DropdownMenu>
|
|
@@ -41,24 +35,11 @@ export function UserNav(): JSX.Element {
|
|
|
41
35
|
<DropdownMenuContent className="w-56" align="end" forceMount>
|
|
42
36
|
<DropdownMenuLabel className="font-normal">
|
|
43
37
|
<div className="flex flex-col space-y-1">
|
|
44
|
-
<p className="text-sm font-medium leading-none">
|
|
38
|
+
<p className="text-sm font-medium leading-none">User Name</p>
|
|
45
39
|
<p className="text-xs leading-none text-muted-foreground">Email</p>
|
|
46
40
|
</div>
|
|
47
41
|
</DropdownMenuLabel>
|
|
48
42
|
<DropdownMenuSeparator />
|
|
49
|
-
{userContext?.context.adminBusinessId && (
|
|
50
|
-
<DropdownMenuItem asChild>
|
|
51
|
-
<Link
|
|
52
|
-
to={{
|
|
53
|
-
pathname: ROUTES.BUSINESSES.DETAIL(userContext.context.adminBusinessId),
|
|
54
|
-
search: '?tab=admin',
|
|
55
|
-
}}
|
|
56
|
-
>
|
|
57
|
-
<Shield className="size-4" />
|
|
58
|
-
<span className="hidden sm:inline">Admin Configurations</span>
|
|
59
|
-
</Link>
|
|
60
|
-
</DropdownMenuItem>
|
|
61
|
-
)}
|
|
62
43
|
<DropdownMenuItem>
|
|
63
44
|
<Button variant="ghost" onClick={() => setBalanceChargeModalOpen(true)}>
|
|
64
45
|
Add Balance Charge
|
package/src/gql/gql.ts
CHANGED
|
@@ -21,7 +21,7 @@ type Documents = {
|
|
|
21
21
|
"\n query BusinessTripsRowValidation($id: UUID!) {\n businessTrip(id: $id) {\n id\n uncategorizedTransactions {\n transaction {\n ... on Transaction @defer {\n id\n }\n }\n }\n summary {\n ... on BusinessTripSummary @defer {\n errors\n }\n }\n }\n }\n": typeof types.BusinessTripsRowValidationDocument,
|
|
22
22
|
"\n query EditableBusinessTrip($businessTripId: UUID!) {\n businessTrip(id: $businessTripId) {\n id\n ...BusinessTripReportHeaderFields\n ...BusinessTripReportAttendeesFields\n ...BusinessTripUncategorizedTransactionsFields\n ...BusinessTripReportFlightsFields\n ...BusinessTripReportAccommodationsFields\n ...BusinessTripReportTravelAndSubsistenceFields\n ...BusinessTripReportCarRentalFields\n ...BusinessTripReportOtherFields\n ...BusinessTripReportSummaryFields\n ... on BusinessTrip {\n uncategorizedTransactions {\n transaction {\n id\n }\n }\n }\n }\n }\n": typeof types.EditableBusinessTripDocument,
|
|
23
23
|
"\n query BusinessTripsScreen {\n allBusinessTrips {\n id\n name\n dates {\n start\n }\n ...BusinessTripsRowFields\n }\n }\n": typeof types.BusinessTripsScreenDocument,
|
|
24
|
-
"\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n
|
|
24
|
+
"\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n employerWithholdingTaxAccountNumber\n taxPrepaymentId\n nationalInsuranceEmployerId\n advanceTaxRate\n registrationDate\n }\n }\n }\n": typeof types.BusinessAdminSectionFragmentDoc,
|
|
25
25
|
"\n fragment BusinessHeader on Business {\n __typename\n id\n name\n createdAt\n isActive\n ... on LtdFinancialEntity {\n governmentId\n adminInfo {\n id\n }\n clientInfo {\n id\n }\n }\n }\n": typeof types.BusinessHeaderFragmentDoc,
|
|
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,
|
|
@@ -273,7 +273,7 @@ const documents: Documents = {
|
|
|
273
273
|
"\n query BusinessTripsRowValidation($id: UUID!) {\n businessTrip(id: $id) {\n id\n uncategorizedTransactions {\n transaction {\n ... on Transaction @defer {\n id\n }\n }\n }\n summary {\n ... on BusinessTripSummary @defer {\n errors\n }\n }\n }\n }\n": types.BusinessTripsRowValidationDocument,
|
|
274
274
|
"\n query EditableBusinessTrip($businessTripId: UUID!) {\n businessTrip(id: $businessTripId) {\n id\n ...BusinessTripReportHeaderFields\n ...BusinessTripReportAttendeesFields\n ...BusinessTripUncategorizedTransactionsFields\n ...BusinessTripReportFlightsFields\n ...BusinessTripReportAccommodationsFields\n ...BusinessTripReportTravelAndSubsistenceFields\n ...BusinessTripReportCarRentalFields\n ...BusinessTripReportOtherFields\n ...BusinessTripReportSummaryFields\n ... on BusinessTrip {\n uncategorizedTransactions {\n transaction {\n id\n }\n }\n }\n }\n }\n": types.EditableBusinessTripDocument,
|
|
275
275
|
"\n query BusinessTripsScreen {\n allBusinessTrips {\n id\n name\n dates {\n start\n }\n ...BusinessTripsRowFields\n }\n }\n": types.BusinessTripsScreenDocument,
|
|
276
|
-
"\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n
|
|
276
|
+
"\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n employerWithholdingTaxAccountNumber\n taxPrepaymentId\n nationalInsuranceEmployerId\n advanceTaxRate\n registrationDate\n }\n }\n }\n": types.BusinessAdminSectionFragmentDoc,
|
|
277
277
|
"\n fragment BusinessHeader on Business {\n __typename\n id\n name\n createdAt\n isActive\n ... on LtdFinancialEntity {\n governmentId\n adminInfo {\n id\n }\n clientInfo {\n id\n }\n }\n }\n": types.BusinessHeaderFragmentDoc,
|
|
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,
|
|
@@ -563,7 +563,7 @@ export function graphql(source: "\n query BusinessTripsScreen {\n allBusines
|
|
|
563
563
|
/**
|
|
564
564
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
565
565
|
*/
|
|
566
|
-
export function graphql(source: "\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n
|
|
566
|
+
export function graphql(source: "\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n employerWithholdingTaxAccountNumber\n taxPrepaymentId\n nationalInsuranceEmployerId\n advanceTaxRate\n registrationDate\n }\n }\n }\n"): (typeof documents)["\n fragment BusinessAdminSection on Business {\n id\n ... on LtdFinancialEntity {\n adminInfo {\n id\n employerWithholdingTaxAccountNumber\n taxPrepaymentId\n nationalInsuranceEmployerId\n advanceTaxRate\n registrationDate\n }\n }\n }\n"];
|
|
567
567
|
/**
|
|
568
568
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
569
569
|
*/
|