@accounter/client 0.0.8-alpha-20251028123001-a8ce4e53bbde9f6eeded7bfeea650700f6a63130 → 0.0.8-alpha-20251028123619-bcce9ab485db2997b6b76ff0df765834d86f30e7
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 +12 -26
- package/dist/assets/{Checkbox-sjgv9dlI.js → Checkbox-BZ680-Kk.js} +2 -2
- package/dist/assets/{Progress-DKypjBbn.js → Progress-DembKoIO.js} +1 -1
- package/dist/assets/{Typography-CJfovWMc.js → Typography-DPXB3hIS.js} +1 -1
- package/dist/assets/{accordion-Cfc9ae4H.js → accordion-UZwiz3fM.js} +1 -1
- package/dist/assets/{accountant-approvals-DhCtddzR.js → accountant-approvals-DDxSuMql.js} +1 -1
- package/dist/assets/{all-charges-H_xH1cUe.js → all-charges-BCP7OG1d.js} +1 -1
- package/dist/assets/{arrow-up-down-DapQ791y.js → arrow-up-down-J9wnXx-h.js} +1 -1
- package/dist/assets/{building-2-B5JpJWrx.js → building-2-1saARtmG.js} +1 -1
- package/dist/assets/business-CBRlGy9p.js +32 -0
- package/dist/assets/{business-header-BK89Rfvy.js → business-header-SAnNK6FP.js} +1 -1
- package/dist/assets/{business-transactions-single-Dv6-AKgI.js → business-transactions-single-DvPZFvmH.js} +1 -1
- package/dist/assets/{business-trip-DIBdq8Jq.js → business-trip-g2hB76cn.js} +1 -1
- package/dist/assets/{charges-filters-CTMCRKNm.js → charges-filters-T9c4RGLH.js} +1 -1
- package/dist/assets/{charges-ledger-validation-c6jklgQz.js → charges-ledger-validation-DaD8DCN4.js} +1 -1
- package/dist/assets/{chart-0bAgDGey.js → chart-Dq5fMHeT.js} +1 -1
- package/dist/assets/{data-table-pagination-BgCuddCb.js → data-table-pagination-4YqSgXqX.js} +1 -1
- package/dist/assets/{editable-business-trip-Cr87pQT-.js → editable-business-trip-B95j7iAh.js} +2 -2
- package/dist/assets/{index-sUDYfUlt.js → index-5Fl36gjg.js} +1 -1
- package/dist/assets/{index-D92U_VYB.js → index-AxUq37Ea.js} +2 -2
- package/dist/assets/{index-Dnafld8G.js → index-B4-_AJ5N.js} +1 -1
- package/dist/assets/{index-Bt7NK9UB.js → index-BDKAR_k1.js} +1 -1
- package/dist/assets/{index-f6-rwrBW.js → index-BKXeyD9a.js} +1 -1
- package/dist/assets/{index-Cyg6_G-8.js → index-BPSZWRv9.js} +2 -2
- package/dist/assets/{index-b4v6_EXH.js → index-BVetJA6_.js} +2 -2
- package/dist/assets/{index-CKfzp5hU.js → index-BXp9NrWt.js} +1 -1
- package/dist/assets/{index-DaSgVGNd.js → index-BYoh_mMo.js} +1 -1
- package/dist/assets/{index-CtfXFlRt.js → index-Br0-IMSG.js} +1 -1
- package/dist/assets/{index-B8QopG0Z.js → index-Bw6OrQ7c.js} +1 -1
- package/dist/assets/{index-CaSs1tPq.js → index-C3bFFbEz.js} +1 -1
- package/dist/assets/{index-BBpGo89I.js → index-CBQNwu37.js} +2 -2
- package/dist/assets/{index-CTzkpoqF.js → index-CDIzaROV.js} +2 -2
- package/dist/assets/{index-CnKUadG6.js → index-CgQ4Qjvh.js} +4 -4
- package/dist/assets/{index-BVZuWqUd.js → index-D4O5HA1y.js} +1 -1
- package/dist/assets/{index-Cgl63fgb.js → index-DAbvR7_s.js} +1 -1
- package/dist/assets/{index-CpqDv0tU.js → index-DkwmPZgt.js} +1 -1
- package/dist/assets/{index-tgi4TEs-.js → index-DpsNoHLd.js} +2 -2
- package/dist/assets/index-DtE5Y1ZB.css +1 -0
- package/dist/assets/{index-CnHbGv9H.js → index-k-cHMsFi.js} +1 -1
- package/dist/assets/{index-DLRffFbF.js → index-sA_45leD.js} +7 -7
- package/dist/assets/{index-ChwFk-6u.js → index-vkYxo-Uq.js} +1 -1
- package/dist/assets/{index-mXqFMX5P.js → index-vstSRm8a.js} +1 -1
- package/dist/assets/{index.es-JpTIgXoh.js → index.es-Dwfw0glc.js} +1 -1
- package/dist/assets/{issue-document-CejQASYM.js → issue-document-umUFIxCu.js} +1 -1
- package/dist/assets/{login-page-ByDrdoxH.js → login-page-Ck61EC35.js} +1 -1
- package/dist/assets/{missing-info-charges-DHt03bdz.js → missing-info-charges-aak-KkPt.js} +1 -1
- package/dist/assets/{page-not-found-Bhi5OU5Q.js → page-not-found-Dzg-czJK.js} +1 -1
- package/dist/assets/{pencil-CEfu8zQ4.js → pencil-CYypGy_s.js} +1 -1
- package/dist/assets/{report-commentary-row-CmDH8P-d.js → report-commentary-row-B479zk-x.js} +1 -1
- package/dist/assets/{save-Drpbh6u3.js → save-BE7zhMeq.js} +1 -1
- package/dist/assets/{sub-DBgZtyi3.js → sub-BxFupCKS.js} +1 -1
- package/dist/assets/subMonths-DskeQPiN.js +1 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/src/components/business/contracts-section.tsx +11 -18
- package/src/components/clients/contracts/modify-contract-dialog.tsx +18 -67
- package/src/gql/gql.ts +6 -6
- package/src/gql/graphql.ts +10 -7
- package/src/hooks/use-get-all-contracts.ts +1 -1
- package/dist/assets/business-BtKmlUZR.js +0 -32
- package/dist/assets/index-CBPTpZHL.css +0 -1
- package/dist/assets/subMonths-J6RX2Vo3.js +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { format } from 'date-fns';
|
|
3
|
-
import { Plus
|
|
3
|
+
import { Plus } from 'lucide-react';
|
|
4
4
|
import { useForm } from 'react-hook-form';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { Badge } from '@/components/ui/badge.js';
|
|
7
6
|
import { Button } from '@/components/ui/button.js';
|
|
8
7
|
import {
|
|
9
8
|
Dialog,
|
|
@@ -49,7 +48,7 @@ const contractFormSchema = z.object({
|
|
|
49
48
|
// operationsLimit: z.number().optional(),
|
|
50
49
|
startDate: z.iso.date('Start date is required'),
|
|
51
50
|
endDate: z.iso.date('End date is required'),
|
|
52
|
-
|
|
51
|
+
po: z.string().optional(),
|
|
53
52
|
paymentAmount: z.number().min(0, 'Payment amount must be non-negative'),
|
|
54
53
|
paymentCurrency: z.enum(Object.values(Currency), 'Currency is required'),
|
|
55
54
|
productType: z.enum(Object.values(Product)).optional(),
|
|
@@ -59,6 +58,7 @@ const contractFormSchema = z.object({
|
|
|
59
58
|
isActive: z.boolean(),
|
|
60
59
|
defaultRemark: z.string().optional(),
|
|
61
60
|
defaultDocumentType: z.enum(Object.values(DocumentType)),
|
|
61
|
+
operationsLimit: z.int().min(0, 'Operations limit must be non-negative'),
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
export type ContractFormValues = z.infer<typeof contractFormSchema>;
|
|
@@ -68,7 +68,7 @@ const newContractDefaultValues: ContractFormValues = {
|
|
|
68
68
|
// operationsLimit: 0,
|
|
69
69
|
startDate: '',
|
|
70
70
|
endDate: '',
|
|
71
|
-
|
|
71
|
+
po: undefined,
|
|
72
72
|
paymentAmount: 0,
|
|
73
73
|
paymentCurrency: Currency.Usd,
|
|
74
74
|
productType: Product.Hive,
|
|
@@ -78,6 +78,7 @@ const newContractDefaultValues: ContractFormValues = {
|
|
|
78
78
|
isActive: true,
|
|
79
79
|
defaultRemark: undefined,
|
|
80
80
|
defaultDocumentType: DocumentType.Proforma,
|
|
81
|
+
operationsLimit: 0,
|
|
81
82
|
};
|
|
82
83
|
|
|
83
84
|
interface Props {
|
|
@@ -89,7 +90,6 @@ interface Props {
|
|
|
89
90
|
export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
|
|
90
91
|
const [isDialogOpen, setIsDialogOpen] = useState(false);
|
|
91
92
|
const [editingContract, setEditingContract] = useState<ContractFormValues | null>(null);
|
|
92
|
-
const [newPO, setNewPO] = useState('');
|
|
93
93
|
|
|
94
94
|
const { updateContract, updating } = useUpdateContract();
|
|
95
95
|
const { createContract, creating } = useCreateContract();
|
|
@@ -99,26 +99,6 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
|
|
|
99
99
|
defaultValues: contract || newContractDefaultValues,
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
const addPO = () => {
|
|
103
|
-
const trimmedPO = newPO.trim();
|
|
104
|
-
if (trimmedPO) {
|
|
105
|
-
const currentLinks = form.getValues('pos');
|
|
106
|
-
if (!currentLinks.includes(trimmedPO)) {
|
|
107
|
-
form.setValue('pos', [...currentLinks, trimmedPO], { shouldDirty: true });
|
|
108
|
-
}
|
|
109
|
-
setNewPO('');
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
const removePO = (index: number) => {
|
|
114
|
-
const currentLinks = form.getValues('pos');
|
|
115
|
-
form.setValue(
|
|
116
|
-
'pos',
|
|
117
|
-
currentLinks.filter((_, i) => i !== index),
|
|
118
|
-
{ shouldDirty: true },
|
|
119
|
-
);
|
|
120
|
-
};
|
|
121
|
-
|
|
122
102
|
useEffect(() => {
|
|
123
103
|
if (contract) {
|
|
124
104
|
setEditingContract(contract);
|
|
@@ -127,7 +107,7 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
|
|
|
127
107
|
// operationsLimit: contract.operationsLimit,
|
|
128
108
|
startDate: contract.startDate,
|
|
129
109
|
endDate: contract.endDate,
|
|
130
|
-
|
|
110
|
+
po: contract.po,
|
|
131
111
|
paymentAmount: contract.paymentAmount,
|
|
132
112
|
paymentCurrency: contract.paymentCurrency,
|
|
133
113
|
productType: contract.productType,
|
|
@@ -137,6 +117,7 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
|
|
|
137
117
|
isActive: contract.isActive,
|
|
138
118
|
defaultRemark: contract.defaultRemark,
|
|
139
119
|
defaultDocumentType: contract.defaultDocumentType,
|
|
120
|
+
operationsLimit: contract.operationsLimit,
|
|
140
121
|
});
|
|
141
122
|
setIsDialogOpen(true);
|
|
142
123
|
}
|
|
@@ -163,9 +144,10 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
|
|
|
163
144
|
msCloud: values.msCloudLink,
|
|
164
145
|
plan: values.subscriptionPlan,
|
|
165
146
|
product: values.productType,
|
|
166
|
-
|
|
147
|
+
purchaseOrder: values.po,
|
|
167
148
|
remarks: values.defaultRemark,
|
|
168
149
|
startDate: format(new Date(values.startDate), 'yyyy-MM-dd') as TimelessDateString,
|
|
150
|
+
operationsLimit: values.operationsLimit,
|
|
169
151
|
},
|
|
170
152
|
});
|
|
171
153
|
} else {
|
|
@@ -185,9 +167,10 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
|
|
|
185
167
|
msCloud: values.msCloudLink,
|
|
186
168
|
plan: values.subscriptionPlan,
|
|
187
169
|
product: values.productType,
|
|
188
|
-
|
|
170
|
+
purchaseOrder: values.po,
|
|
189
171
|
remarks: values.defaultRemark,
|
|
190
172
|
startDate: format(new Date(values.startDate), 'yyyy-MM-dd') as TimelessDateString,
|
|
173
|
+
operationsLimit: values.operationsLimit,
|
|
191
174
|
},
|
|
192
175
|
});
|
|
193
176
|
}
|
|
@@ -219,8 +202,7 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
|
|
|
219
202
|
<form onSubmit={form.handleSubmit(onSubmit)}>
|
|
220
203
|
<div className="grid gap-4 py-4">
|
|
221
204
|
<div className="grid gap-4 md:grid-cols-2">
|
|
222
|
-
|
|
223
|
-
{/* <FormField
|
|
205
|
+
<FormField
|
|
224
206
|
control={form.control}
|
|
225
207
|
name="operationsLimit"
|
|
226
208
|
render={({ field }) => (
|
|
@@ -232,47 +214,16 @@ export function ModifyContractDialog({ clientId, contract, onDone }: Props) {
|
|
|
232
214
|
<FormMessage />
|
|
233
215
|
</FormItem>
|
|
234
216
|
)}
|
|
235
|
-
/>
|
|
236
|
-
|
|
217
|
+
/>
|
|
237
218
|
<FormField
|
|
238
219
|
control={form.control}
|
|
239
|
-
name="
|
|
220
|
+
name="po"
|
|
240
221
|
render={({ field }) => (
|
|
241
222
|
<FormItem>
|
|
242
|
-
<FormLabel>
|
|
243
|
-
<
|
|
244
|
-
<Input
|
|
245
|
-
|
|
246
|
-
value={newPO}
|
|
247
|
-
onChange={e => setNewPO(e.target.value)}
|
|
248
|
-
onKeyDown={e => {
|
|
249
|
-
if (e.key === 'Enter') {
|
|
250
|
-
e.preventDefault();
|
|
251
|
-
addPO();
|
|
252
|
-
}
|
|
253
|
-
}}
|
|
254
|
-
/>
|
|
255
|
-
<Button type="button" size="sm" onClick={addPO}>
|
|
256
|
-
<Plus className="h-4 w-4" />
|
|
257
|
-
</Button>
|
|
258
|
-
</div>
|
|
259
|
-
<div className="flex flex-wrap gap-2 mt-2">
|
|
260
|
-
{field.value?.map((link, index) => (
|
|
261
|
-
<Badge key={link} variant="secondary" className="gap-1 max-w-xs truncate">
|
|
262
|
-
{link}
|
|
263
|
-
{index === field.value.length - 1 && (
|
|
264
|
-
<Button
|
|
265
|
-
variant="ghost"
|
|
266
|
-
size="icon"
|
|
267
|
-
className="p-0 size-3"
|
|
268
|
-
onClick={() => removePO(index)}
|
|
269
|
-
>
|
|
270
|
-
<X className="size-3 cursor-pointer flex-shrink-0" />
|
|
271
|
-
</Button>
|
|
272
|
-
)}
|
|
273
|
-
</Badge>
|
|
274
|
-
))}
|
|
275
|
-
</div>
|
|
223
|
+
<FormLabel>PO Number</FormLabel>
|
|
224
|
+
<FormControl>
|
|
225
|
+
<Input placeholder="PO-2024-001" {...field} />
|
|
226
|
+
</FormControl>
|
|
276
227
|
<FormMessage />
|
|
277
228
|
</FormItem>
|
|
278
229
|
)}
|
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
|
|
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 operationsLimit\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,
|
|
@@ -211,7 +211,7 @@ type Documents = {
|
|
|
211
211
|
"\n mutation DeleteTag($tagId: UUID!) {\n deleteTag(id: $tagId)\n }\n": typeof types.DeleteTagDocument,
|
|
212
212
|
"\n mutation FetchIncomeDocuments($ownerId: UUID!) {\n fetchIncomeDocuments(ownerId: $ownerId) {\n id\n ...NewFetchedDocumentFields\n }\n }\n": typeof types.FetchIncomeDocumentsDocument,
|
|
213
213
|
"\n query AllClients {\n allClients {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n }\n": typeof types.AllClientsDocument,
|
|
214
|
-
"\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n
|
|
214
|
+
"\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrder\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n": typeof types.AllOpenContractsDocument,
|
|
215
215
|
"\n query AllBusinesses {\n allBusinesses {\n nodes {\n id\n name\n }\n }\n }\n": typeof types.AllBusinessesDocument,
|
|
216
216
|
"\n query AllCountries {\n allCountries {\n id\n name\n code\n }\n }\n": typeof types.AllCountriesDocument,
|
|
217
217
|
"\n query AllFinancialEntities {\n allFinancialEntities {\n nodes {\n id\n name\n }\n }\n }\n": typeof types.AllFinancialEntitiesDocument,
|
|
@@ -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
|
|
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 operationsLimit\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,
|
|
@@ -463,7 +463,7 @@ const documents: Documents = {
|
|
|
463
463
|
"\n mutation DeleteTag($tagId: UUID!) {\n deleteTag(id: $tagId)\n }\n": types.DeleteTagDocument,
|
|
464
464
|
"\n mutation FetchIncomeDocuments($ownerId: UUID!) {\n fetchIncomeDocuments(ownerId: $ownerId) {\n id\n ...NewFetchedDocumentFields\n }\n }\n": types.FetchIncomeDocumentsDocument,
|
|
465
465
|
"\n query AllClients {\n allClients {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n }\n": types.AllClientsDocument,
|
|
466
|
-
"\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n
|
|
466
|
+
"\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrder\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n": types.AllOpenContractsDocument,
|
|
467
467
|
"\n query AllBusinesses {\n allBusinesses {\n nodes {\n id\n name\n }\n }\n }\n": types.AllBusinessesDocument,
|
|
468
468
|
"\n query AllCountries {\n allCountries {\n id\n name\n code\n }\n }\n": types.AllCountriesDocument,
|
|
469
469
|
"\n query AllFinancialEntities {\n allFinancialEntities {\n nodes {\n id\n name\n }\n }\n }\n": types.AllFinancialEntitiesDocument,
|
|
@@ -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
|
|
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 operationsLimit\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 operationsLimit\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
|
*/
|
|
@@ -1323,7 +1323,7 @@ export function graphql(source: "\n query AllClients {\n allClients {\n
|
|
|
1323
1323
|
/**
|
|
1324
1324
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
1325
1325
|
*/
|
|
1326
|
-
export function graphql(source: "\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n
|
|
1326
|
+
export function graphql(source: "\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrder\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n"): (typeof documents)["\n query AllOpenContracts {\n allOpenContracts {\n id\n client {\n id\n greenInvoiceId\n emails\n originalBusiness {\n id\n name\n }\n }\n purchaseOrder\n startDate\n endDate\n remarks\n amount {\n raw\n currency\n formatted\n }\n documentType\n billingCycle\n isActive\n product\n plan\n msCloud\n }\n }\n"];
|
|
1327
1327
|
/**
|
|
1328
1328
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
1329
1329
|
*/
|