procbay-schema 1.0.171 → 1.0.175

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.
Files changed (150) hide show
  1. package/package.json +13 -22
  2. package/prisma/migrations/20260518124524_added_new_template_builder_changes/migration.sql +26 -0
  3. package/prisma/schema.prisma +17 -7
  4. package/scripts/sync-schemas.js +1 -5
  5. package/src/create-prisma-client.js +9 -49
  6. package/src/prisma/client.d.ts +1 -0
  7. package/src/prisma/client.js +4 -0
  8. package/src/prisma/default.d.ts +1 -0
  9. package/src/prisma/default.js +4 -0
  10. package/src/prisma/edge.d.ts +1 -0
  11. package/src/prisma/edge.js +2911 -0
  12. package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +991 -739
  13. package/src/prisma/index.d.ts +286785 -0
  14. package/src/prisma/index.js +2940 -2
  15. package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
  16. package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  17. package/src/prisma/package.json +140 -0
  18. package/src/prisma/query_engine-windows.dll.node +0 -0
  19. package/src/prisma/runtime/edge-esm.js +34 -0
  20. package/src/prisma/runtime/edge.js +34 -0
  21. package/src/prisma/runtime/index-browser.d.ts +370 -0
  22. package/src/prisma/runtime/index-browser.js +16 -0
  23. package/src/prisma/runtime/library.d.ts +3647 -0
  24. package/src/prisma/runtime/library.js +146 -0
  25. package/src/prisma/runtime/react-native.js +83 -0
  26. package/src/prisma/runtime/wasm.js +35 -0
  27. package/src/prisma/schema.prisma +3831 -0
  28. package/src/prisma/wasm.d.ts +1 -0
  29. package/src/prisma/wasm.js +2873 -0
  30. package/prisma/migrations/20260515130204_updated_user_approval_management_schema/migration.sql +0 -55
  31. package/prisma.config.js +0 -19
  32. package/src/generated/prisma/browser.ts +0 -574
  33. package/src/generated/prisma/client.bundle.mjs +0 -6733
  34. package/src/generated/prisma/client.ts +0 -598
  35. package/src/generated/prisma/commonInputTypes.ts +0 -2911
  36. package/src/generated/prisma/enums.ts +0 -730
  37. package/src/generated/prisma/internal/class.ts +0 -1304
  38. package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
  39. package/src/generated/prisma/models/ActivityLog.ts +0 -1590
  40. package/src/generated/prisma/models/AdminAlert.ts +0 -1547
  41. package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
  42. package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
  43. package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
  44. package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
  45. package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
  46. package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
  47. package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
  48. package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
  49. package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
  50. package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
  51. package/src/generated/prisma/models/Attribute.ts +0 -2075
  52. package/src/generated/prisma/models/AttributeValue.ts +0 -1882
  53. package/src/generated/prisma/models/Bid.ts +0 -2719
  54. package/src/generated/prisma/models/BidLog.ts +0 -3560
  55. package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
  56. package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
  57. package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
  58. package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
  59. package/src/generated/prisma/models/Budget.ts +0 -1954
  60. package/src/generated/prisma/models/BudgetHold.ts +0 -1904
  61. package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
  62. package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
  63. package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
  64. package/src/generated/prisma/models/Catalogue.ts +0 -2081
  65. package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
  66. package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
  67. package/src/generated/prisma/models/Category.ts +0 -3091
  68. package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
  69. package/src/generated/prisma/models/City.ts +0 -2180
  70. package/src/generated/prisma/models/Cms.ts +0 -1492
  71. package/src/generated/prisma/models/ContactUs.ts +0 -1654
  72. package/src/generated/prisma/models/Conversation.ts +0 -2389
  73. package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
  74. package/src/generated/prisma/models/CounterOffer.ts +0 -2156
  75. package/src/generated/prisma/models/Country.ts +0 -3394
  76. package/src/generated/prisma/models/Currency.ts +0 -1642
  77. package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
  78. package/src/generated/prisma/models/Department.ts +0 -2372
  79. package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
  80. package/src/generated/prisma/models/DynamicForm.ts +0 -2021
  81. package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
  82. package/src/generated/prisma/models/Event.ts +0 -6819
  83. package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
  84. package/src/generated/prisma/models/EventCriteria.ts +0 -2134
  85. package/src/generated/prisma/models/EventItems.ts +0 -2821
  86. package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
  87. package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
  88. package/src/generated/prisma/models/EventStrategies.ts +0 -1857
  89. package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
  90. package/src/generated/prisma/models/EventVendors.ts +0 -3446
  91. package/src/generated/prisma/models/Expense.ts +0 -1625
  92. package/src/generated/prisma/models/ExportLog.ts +0 -1822
  93. package/src/generated/prisma/models/Faq.ts +0 -1753
  94. package/src/generated/prisma/models/FaqCategory.ts +0 -1610
  95. package/src/generated/prisma/models/FiscalYear.ts +0 -1460
  96. package/src/generated/prisma/models/FormMaster.ts +0 -1831
  97. package/src/generated/prisma/models/GRN.ts +0 -3354
  98. package/src/generated/prisma/models/GRNItem.ts +0 -2119
  99. package/src/generated/prisma/models/Industry.ts +0 -1642
  100. package/src/generated/prisma/models/Invoice.ts +0 -2949
  101. package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
  102. package/src/generated/prisma/models/Item.ts +0 -10644
  103. package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
  104. package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
  105. package/src/generated/prisma/models/ItemDocument.ts +0 -1590
  106. package/src/generated/prisma/models/Location.ts +0 -2711
  107. package/src/generated/prisma/models/Message.ts +0 -2744
  108. package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
  109. package/src/generated/prisma/models/Module.ts +0 -1630
  110. package/src/generated/prisma/models/Permission.ts +0 -1640
  111. package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
  112. package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
  113. package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
  114. package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
  115. package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
  116. package/src/generated/prisma/models/Quotation.ts +0 -3207
  117. package/src/generated/prisma/models/QuotationLog.ts +0 -3239
  118. package/src/generated/prisma/models/Region.ts +0 -1746
  119. package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
  120. package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
  121. package/src/generated/prisma/models/Role.ts +0 -1907
  122. package/src/generated/prisma/models/RolePermission.ts +0 -1737
  123. package/src/generated/prisma/models/SendBack.ts +0 -1830
  124. package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
  125. package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
  126. package/src/generated/prisma/models/State.ts +0 -2174
  127. package/src/generated/prisma/models/Strategies.ts +0 -1791
  128. package/src/generated/prisma/models/SubModule.ts +0 -1450
  129. package/src/generated/prisma/models/Subregion.ts +0 -1870
  130. package/src/generated/prisma/models/SupportCategory.ts +0 -1712
  131. package/src/generated/prisma/models/SupportTicket.ts +0 -2478
  132. package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
  133. package/src/generated/prisma/models/Template.ts +0 -2429
  134. package/src/generated/prisma/models/TemplateField.ts +0 -1916
  135. package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
  136. package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
  137. package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
  138. package/src/generated/prisma/models/TicketHistory.ts +0 -1789
  139. package/src/generated/prisma/models/TicketReply.ts +0 -1640
  140. package/src/generated/prisma/models/Uom.ts +0 -1752
  141. package/src/generated/prisma/models/UomCategory.ts +0 -1558
  142. package/src/generated/prisma/models/UploadLog.ts +0 -1731
  143. package/src/generated/prisma/models/User.ts +0 -19397
  144. package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
  145. package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
  146. package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
  147. package/src/generated/prisma/models/UserRole.ts +0 -1696
  148. package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
  149. package/src/generated/prisma/models/VendorReference.ts +0 -1707
  150. package/src/generated/prisma/models.ts +0 -122
@@ -1,2949 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports the `Invoice` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model Invoice
17
- *
18
- */
19
- export type InvoiceModel = runtime.Types.Result.DefaultSelection<Prisma.$InvoicePayload>
20
-
21
- export type AggregateInvoice = {
22
- _count: InvoiceCountAggregateOutputType | null
23
- _avg: InvoiceAvgAggregateOutputType | null
24
- _sum: InvoiceSumAggregateOutputType | null
25
- _min: InvoiceMinAggregateOutputType | null
26
- _max: InvoiceMaxAggregateOutputType | null
27
- }
28
-
29
- export type InvoiceAvgAggregateOutputType = {
30
- id: number | null
31
- purchase_order_id: number | null
32
- grn_id: number | null
33
- vendor_id: number | null
34
- quantity_fulfilled: number | null
35
- total_po_releases: number | null
36
- business_entity_id: number | null
37
- created_by: number | null
38
- updated_by: number | null
39
- deleted_by: number | null
40
- }
41
-
42
- export type InvoiceSumAggregateOutputType = {
43
- id: number | null
44
- purchase_order_id: number | null
45
- grn_id: number | null
46
- vendor_id: number | null
47
- quantity_fulfilled: number | null
48
- total_po_releases: number | null
49
- business_entity_id: number | null
50
- created_by: number | null
51
- updated_by: number | null
52
- deleted_by: number | null
53
- }
54
-
55
- export type InvoiceMinAggregateOutputType = {
56
- id: number | null
57
- uuid: string | null
58
- invoice_number: string | null
59
- purchase_order_id: number | null
60
- grn_id: number | null
61
- vendor_id: number | null
62
- invoice_date: Date | null
63
- invoice_due_date: Date | null
64
- delivery_note_number: string | null
65
- quantity_fulfilled: number | null
66
- total_po_releases: number | null
67
- billing_address: string | null
68
- status: $Enums.InvoiceStatus | null
69
- matching_status: $Enums.InvoiceMatchingStatus | null
70
- notes: string | null
71
- business_entity_id: number | null
72
- terms_and_conditions: string | null
73
- e_way_bill_number: string | null
74
- created_at: Date | null
75
- created_by: number | null
76
- updated_at: Date | null
77
- updated_by: number | null
78
- is_deleted: boolean | null
79
- deleted_at: Date | null
80
- deleted_by: number | null
81
- }
82
-
83
- export type InvoiceMaxAggregateOutputType = {
84
- id: number | null
85
- uuid: string | null
86
- invoice_number: string | null
87
- purchase_order_id: number | null
88
- grn_id: number | null
89
- vendor_id: number | null
90
- invoice_date: Date | null
91
- invoice_due_date: Date | null
92
- delivery_note_number: string | null
93
- quantity_fulfilled: number | null
94
- total_po_releases: number | null
95
- billing_address: string | null
96
- status: $Enums.InvoiceStatus | null
97
- matching_status: $Enums.InvoiceMatchingStatus | null
98
- notes: string | null
99
- business_entity_id: number | null
100
- terms_and_conditions: string | null
101
- e_way_bill_number: string | null
102
- created_at: Date | null
103
- created_by: number | null
104
- updated_at: Date | null
105
- updated_by: number | null
106
- is_deleted: boolean | null
107
- deleted_at: Date | null
108
- deleted_by: number | null
109
- }
110
-
111
- export type InvoiceCountAggregateOutputType = {
112
- id: number
113
- uuid: number
114
- invoice_number: number
115
- purchase_order_id: number
116
- grn_id: number
117
- vendor_id: number
118
- invoice_date: number
119
- invoice_due_date: number
120
- delivery_note_number: number
121
- quantity_fulfilled: number
122
- total_po_releases: number
123
- billing_address: number
124
- status: number
125
- matching_status: number
126
- invoice_documents: number
127
- notes: number
128
- business_entity_id: number
129
- terms_and_conditions: number
130
- e_way_bill_number: number
131
- created_at: number
132
- created_by: number
133
- updated_at: number
134
- updated_by: number
135
- is_deleted: number
136
- deleted_at: number
137
- deleted_by: number
138
- _all: number
139
- }
140
-
141
-
142
- export type InvoiceAvgAggregateInputType = {
143
- id?: true
144
- purchase_order_id?: true
145
- grn_id?: true
146
- vendor_id?: true
147
- quantity_fulfilled?: true
148
- total_po_releases?: true
149
- business_entity_id?: true
150
- created_by?: true
151
- updated_by?: true
152
- deleted_by?: true
153
- }
154
-
155
- export type InvoiceSumAggregateInputType = {
156
- id?: true
157
- purchase_order_id?: true
158
- grn_id?: true
159
- vendor_id?: true
160
- quantity_fulfilled?: true
161
- total_po_releases?: true
162
- business_entity_id?: true
163
- created_by?: true
164
- updated_by?: true
165
- deleted_by?: true
166
- }
167
-
168
- export type InvoiceMinAggregateInputType = {
169
- id?: true
170
- uuid?: true
171
- invoice_number?: true
172
- purchase_order_id?: true
173
- grn_id?: true
174
- vendor_id?: true
175
- invoice_date?: true
176
- invoice_due_date?: true
177
- delivery_note_number?: true
178
- quantity_fulfilled?: true
179
- total_po_releases?: true
180
- billing_address?: true
181
- status?: true
182
- matching_status?: true
183
- notes?: true
184
- business_entity_id?: true
185
- terms_and_conditions?: true
186
- e_way_bill_number?: true
187
- created_at?: true
188
- created_by?: true
189
- updated_at?: true
190
- updated_by?: true
191
- is_deleted?: true
192
- deleted_at?: true
193
- deleted_by?: true
194
- }
195
-
196
- export type InvoiceMaxAggregateInputType = {
197
- id?: true
198
- uuid?: true
199
- invoice_number?: true
200
- purchase_order_id?: true
201
- grn_id?: true
202
- vendor_id?: true
203
- invoice_date?: true
204
- invoice_due_date?: true
205
- delivery_note_number?: true
206
- quantity_fulfilled?: true
207
- total_po_releases?: true
208
- billing_address?: true
209
- status?: true
210
- matching_status?: true
211
- notes?: true
212
- business_entity_id?: true
213
- terms_and_conditions?: true
214
- e_way_bill_number?: true
215
- created_at?: true
216
- created_by?: true
217
- updated_at?: true
218
- updated_by?: true
219
- is_deleted?: true
220
- deleted_at?: true
221
- deleted_by?: true
222
- }
223
-
224
- export type InvoiceCountAggregateInputType = {
225
- id?: true
226
- uuid?: true
227
- invoice_number?: true
228
- purchase_order_id?: true
229
- grn_id?: true
230
- vendor_id?: true
231
- invoice_date?: true
232
- invoice_due_date?: true
233
- delivery_note_number?: true
234
- quantity_fulfilled?: true
235
- total_po_releases?: true
236
- billing_address?: true
237
- status?: true
238
- matching_status?: true
239
- invoice_documents?: true
240
- notes?: true
241
- business_entity_id?: true
242
- terms_and_conditions?: true
243
- e_way_bill_number?: true
244
- created_at?: true
245
- created_by?: true
246
- updated_at?: true
247
- updated_by?: true
248
- is_deleted?: true
249
- deleted_at?: true
250
- deleted_by?: true
251
- _all?: true
252
- }
253
-
254
- export type InvoiceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
255
- /**
256
- * Filter which Invoice to aggregate.
257
- */
258
- where?: Prisma.InvoiceWhereInput
259
- /**
260
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
261
- *
262
- * Determine the order of Invoices to fetch.
263
- */
264
- orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
265
- /**
266
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
267
- *
268
- * Sets the start position
269
- */
270
- cursor?: Prisma.InvoiceWhereUniqueInput
271
- /**
272
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
273
- *
274
- * Take `±n` Invoices from the position of the cursor.
275
- */
276
- take?: number
277
- /**
278
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
279
- *
280
- * Skip the first `n` Invoices.
281
- */
282
- skip?: number
283
- /**
284
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
285
- *
286
- * Count returned Invoices
287
- **/
288
- _count?: true | InvoiceCountAggregateInputType
289
- /**
290
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
291
- *
292
- * Select which fields to average
293
- **/
294
- _avg?: InvoiceAvgAggregateInputType
295
- /**
296
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
297
- *
298
- * Select which fields to sum
299
- **/
300
- _sum?: InvoiceSumAggregateInputType
301
- /**
302
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
303
- *
304
- * Select which fields to find the minimum value
305
- **/
306
- _min?: InvoiceMinAggregateInputType
307
- /**
308
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
309
- *
310
- * Select which fields to find the maximum value
311
- **/
312
- _max?: InvoiceMaxAggregateInputType
313
- }
314
-
315
- export type GetInvoiceAggregateType<T extends InvoiceAggregateArgs> = {
316
- [P in keyof T & keyof AggregateInvoice]: P extends '_count' | 'count'
317
- ? T[P] extends true
318
- ? number
319
- : Prisma.GetScalarType<T[P], AggregateInvoice[P]>
320
- : Prisma.GetScalarType<T[P], AggregateInvoice[P]>
321
- }
322
-
323
-
324
-
325
-
326
- export type InvoiceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
327
- where?: Prisma.InvoiceWhereInput
328
- orderBy?: Prisma.InvoiceOrderByWithAggregationInput | Prisma.InvoiceOrderByWithAggregationInput[]
329
- by: Prisma.InvoiceScalarFieldEnum[] | Prisma.InvoiceScalarFieldEnum
330
- having?: Prisma.InvoiceScalarWhereWithAggregatesInput
331
- take?: number
332
- skip?: number
333
- _count?: InvoiceCountAggregateInputType | true
334
- _avg?: InvoiceAvgAggregateInputType
335
- _sum?: InvoiceSumAggregateInputType
336
- _min?: InvoiceMinAggregateInputType
337
- _max?: InvoiceMaxAggregateInputType
338
- }
339
-
340
- export type InvoiceGroupByOutputType = {
341
- id: number
342
- uuid: string
343
- invoice_number: string | null
344
- purchase_order_id: number | null
345
- grn_id: number | null
346
- vendor_id: number | null
347
- invoice_date: Date | null
348
- invoice_due_date: Date | null
349
- delivery_note_number: string | null
350
- quantity_fulfilled: number | null
351
- total_po_releases: number | null
352
- billing_address: string | null
353
- status: $Enums.InvoiceStatus
354
- matching_status: $Enums.InvoiceMatchingStatus
355
- invoice_documents: runtime.JsonValue | null
356
- notes: string | null
357
- business_entity_id: number | null
358
- terms_and_conditions: string | null
359
- e_way_bill_number: string | null
360
- created_at: Date
361
- created_by: number | null
362
- updated_at: Date
363
- updated_by: number | null
364
- is_deleted: boolean
365
- deleted_at: Date | null
366
- deleted_by: number | null
367
- _count: InvoiceCountAggregateOutputType | null
368
- _avg: InvoiceAvgAggregateOutputType | null
369
- _sum: InvoiceSumAggregateOutputType | null
370
- _min: InvoiceMinAggregateOutputType | null
371
- _max: InvoiceMaxAggregateOutputType | null
372
- }
373
-
374
- export type GetInvoiceGroupByPayload<T extends InvoiceGroupByArgs> = Prisma.PrismaPromise<
375
- Array<
376
- Prisma.PickEnumerable<InvoiceGroupByOutputType, T['by']> &
377
- {
378
- [P in ((keyof T) & (keyof InvoiceGroupByOutputType))]: P extends '_count'
379
- ? T[P] extends boolean
380
- ? number
381
- : Prisma.GetScalarType<T[P], InvoiceGroupByOutputType[P]>
382
- : Prisma.GetScalarType<T[P], InvoiceGroupByOutputType[P]>
383
- }
384
- >
385
- >
386
-
387
-
388
-
389
- export type InvoiceWhereInput = {
390
- AND?: Prisma.InvoiceWhereInput | Prisma.InvoiceWhereInput[]
391
- OR?: Prisma.InvoiceWhereInput[]
392
- NOT?: Prisma.InvoiceWhereInput | Prisma.InvoiceWhereInput[]
393
- id?: Prisma.IntFilter<"Invoice"> | number
394
- uuid?: Prisma.StringFilter<"Invoice"> | string
395
- invoice_number?: Prisma.StringNullableFilter<"Invoice"> | string | null
396
- purchase_order_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
397
- grn_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
398
- vendor_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
399
- invoice_date?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
400
- invoice_due_date?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
401
- delivery_note_number?: Prisma.StringNullableFilter<"Invoice"> | string | null
402
- quantity_fulfilled?: Prisma.IntNullableFilter<"Invoice"> | number | null
403
- total_po_releases?: Prisma.IntNullableFilter<"Invoice"> | number | null
404
- billing_address?: Prisma.StringNullableFilter<"Invoice"> | string | null
405
- status?: Prisma.EnumInvoiceStatusFilter<"Invoice"> | $Enums.InvoiceStatus
406
- matching_status?: Prisma.EnumInvoiceMatchingStatusFilter<"Invoice"> | $Enums.InvoiceMatchingStatus
407
- invoice_documents?: Prisma.JsonNullableFilter<"Invoice">
408
- notes?: Prisma.StringNullableFilter<"Invoice"> | string | null
409
- business_entity_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
410
- terms_and_conditions?: Prisma.StringNullableFilter<"Invoice"> | string | null
411
- e_way_bill_number?: Prisma.StringNullableFilter<"Invoice"> | string | null
412
- created_at?: Prisma.DateTimeFilter<"Invoice"> | Date | string
413
- created_by?: Prisma.IntNullableFilter<"Invoice"> | number | null
414
- updated_at?: Prisma.DateTimeFilter<"Invoice"> | Date | string
415
- updated_by?: Prisma.IntNullableFilter<"Invoice"> | number | null
416
- is_deleted?: Prisma.BoolFilter<"Invoice"> | boolean
417
- deleted_at?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
418
- deleted_by?: Prisma.IntNullableFilter<"Invoice"> | number | null
419
- purchase_order?: Prisma.XOR<Prisma.PurchaseOrderNullableScalarRelationFilter, Prisma.PurchaseOrderWhereInput> | null
420
- grn?: Prisma.XOR<Prisma.GRNNullableScalarRelationFilter, Prisma.GRNWhereInput> | null
421
- business_entity?: Prisma.XOR<Prisma.BusinessEntityNullableScalarRelationFilter, Prisma.BusinessEntityWhereInput> | null
422
- invoice_items?: Prisma.InvoiceItemListRelationFilter
423
- }
424
-
425
- export type InvoiceOrderByWithRelationInput = {
426
- id?: Prisma.SortOrder
427
- uuid?: Prisma.SortOrder
428
- invoice_number?: Prisma.SortOrderInput | Prisma.SortOrder
429
- purchase_order_id?: Prisma.SortOrderInput | Prisma.SortOrder
430
- grn_id?: Prisma.SortOrderInput | Prisma.SortOrder
431
- vendor_id?: Prisma.SortOrderInput | Prisma.SortOrder
432
- invoice_date?: Prisma.SortOrderInput | Prisma.SortOrder
433
- invoice_due_date?: Prisma.SortOrderInput | Prisma.SortOrder
434
- delivery_note_number?: Prisma.SortOrderInput | Prisma.SortOrder
435
- quantity_fulfilled?: Prisma.SortOrderInput | Prisma.SortOrder
436
- total_po_releases?: Prisma.SortOrderInput | Prisma.SortOrder
437
- billing_address?: Prisma.SortOrderInput | Prisma.SortOrder
438
- status?: Prisma.SortOrder
439
- matching_status?: Prisma.SortOrder
440
- invoice_documents?: Prisma.SortOrderInput | Prisma.SortOrder
441
- notes?: Prisma.SortOrderInput | Prisma.SortOrder
442
- business_entity_id?: Prisma.SortOrderInput | Prisma.SortOrder
443
- terms_and_conditions?: Prisma.SortOrderInput | Prisma.SortOrder
444
- e_way_bill_number?: Prisma.SortOrderInput | Prisma.SortOrder
445
- created_at?: Prisma.SortOrder
446
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
447
- updated_at?: Prisma.SortOrder
448
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
449
- is_deleted?: Prisma.SortOrder
450
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
451
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
452
- purchase_order?: Prisma.PurchaseOrderOrderByWithRelationInput
453
- grn?: Prisma.GRNOrderByWithRelationInput
454
- business_entity?: Prisma.BusinessEntityOrderByWithRelationInput
455
- invoice_items?: Prisma.InvoiceItemOrderByRelationAggregateInput
456
- }
457
-
458
- export type InvoiceWhereUniqueInput = Prisma.AtLeast<{
459
- id?: number
460
- uuid?: string
461
- invoice_number?: string
462
- AND?: Prisma.InvoiceWhereInput | Prisma.InvoiceWhereInput[]
463
- OR?: Prisma.InvoiceWhereInput[]
464
- NOT?: Prisma.InvoiceWhereInput | Prisma.InvoiceWhereInput[]
465
- purchase_order_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
466
- grn_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
467
- vendor_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
468
- invoice_date?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
469
- invoice_due_date?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
470
- delivery_note_number?: Prisma.StringNullableFilter<"Invoice"> | string | null
471
- quantity_fulfilled?: Prisma.IntNullableFilter<"Invoice"> | number | null
472
- total_po_releases?: Prisma.IntNullableFilter<"Invoice"> | number | null
473
- billing_address?: Prisma.StringNullableFilter<"Invoice"> | string | null
474
- status?: Prisma.EnumInvoiceStatusFilter<"Invoice"> | $Enums.InvoiceStatus
475
- matching_status?: Prisma.EnumInvoiceMatchingStatusFilter<"Invoice"> | $Enums.InvoiceMatchingStatus
476
- invoice_documents?: Prisma.JsonNullableFilter<"Invoice">
477
- notes?: Prisma.StringNullableFilter<"Invoice"> | string | null
478
- business_entity_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
479
- terms_and_conditions?: Prisma.StringNullableFilter<"Invoice"> | string | null
480
- e_way_bill_number?: Prisma.StringNullableFilter<"Invoice"> | string | null
481
- created_at?: Prisma.DateTimeFilter<"Invoice"> | Date | string
482
- created_by?: Prisma.IntNullableFilter<"Invoice"> | number | null
483
- updated_at?: Prisma.DateTimeFilter<"Invoice"> | Date | string
484
- updated_by?: Prisma.IntNullableFilter<"Invoice"> | number | null
485
- is_deleted?: Prisma.BoolFilter<"Invoice"> | boolean
486
- deleted_at?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
487
- deleted_by?: Prisma.IntNullableFilter<"Invoice"> | number | null
488
- purchase_order?: Prisma.XOR<Prisma.PurchaseOrderNullableScalarRelationFilter, Prisma.PurchaseOrderWhereInput> | null
489
- grn?: Prisma.XOR<Prisma.GRNNullableScalarRelationFilter, Prisma.GRNWhereInput> | null
490
- business_entity?: Prisma.XOR<Prisma.BusinessEntityNullableScalarRelationFilter, Prisma.BusinessEntityWhereInput> | null
491
- invoice_items?: Prisma.InvoiceItemListRelationFilter
492
- }, "id" | "uuid" | "invoice_number">
493
-
494
- export type InvoiceOrderByWithAggregationInput = {
495
- id?: Prisma.SortOrder
496
- uuid?: Prisma.SortOrder
497
- invoice_number?: Prisma.SortOrderInput | Prisma.SortOrder
498
- purchase_order_id?: Prisma.SortOrderInput | Prisma.SortOrder
499
- grn_id?: Prisma.SortOrderInput | Prisma.SortOrder
500
- vendor_id?: Prisma.SortOrderInput | Prisma.SortOrder
501
- invoice_date?: Prisma.SortOrderInput | Prisma.SortOrder
502
- invoice_due_date?: Prisma.SortOrderInput | Prisma.SortOrder
503
- delivery_note_number?: Prisma.SortOrderInput | Prisma.SortOrder
504
- quantity_fulfilled?: Prisma.SortOrderInput | Prisma.SortOrder
505
- total_po_releases?: Prisma.SortOrderInput | Prisma.SortOrder
506
- billing_address?: Prisma.SortOrderInput | Prisma.SortOrder
507
- status?: Prisma.SortOrder
508
- matching_status?: Prisma.SortOrder
509
- invoice_documents?: Prisma.SortOrderInput | Prisma.SortOrder
510
- notes?: Prisma.SortOrderInput | Prisma.SortOrder
511
- business_entity_id?: Prisma.SortOrderInput | Prisma.SortOrder
512
- terms_and_conditions?: Prisma.SortOrderInput | Prisma.SortOrder
513
- e_way_bill_number?: Prisma.SortOrderInput | Prisma.SortOrder
514
- created_at?: Prisma.SortOrder
515
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
516
- updated_at?: Prisma.SortOrder
517
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
518
- is_deleted?: Prisma.SortOrder
519
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
520
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
521
- _count?: Prisma.InvoiceCountOrderByAggregateInput
522
- _avg?: Prisma.InvoiceAvgOrderByAggregateInput
523
- _max?: Prisma.InvoiceMaxOrderByAggregateInput
524
- _min?: Prisma.InvoiceMinOrderByAggregateInput
525
- _sum?: Prisma.InvoiceSumOrderByAggregateInput
526
- }
527
-
528
- export type InvoiceScalarWhereWithAggregatesInput = {
529
- AND?: Prisma.InvoiceScalarWhereWithAggregatesInput | Prisma.InvoiceScalarWhereWithAggregatesInput[]
530
- OR?: Prisma.InvoiceScalarWhereWithAggregatesInput[]
531
- NOT?: Prisma.InvoiceScalarWhereWithAggregatesInput | Prisma.InvoiceScalarWhereWithAggregatesInput[]
532
- id?: Prisma.IntWithAggregatesFilter<"Invoice"> | number
533
- uuid?: Prisma.StringWithAggregatesFilter<"Invoice"> | string
534
- invoice_number?: Prisma.StringNullableWithAggregatesFilter<"Invoice"> | string | null
535
- purchase_order_id?: Prisma.IntNullableWithAggregatesFilter<"Invoice"> | number | null
536
- grn_id?: Prisma.IntNullableWithAggregatesFilter<"Invoice"> | number | null
537
- vendor_id?: Prisma.IntNullableWithAggregatesFilter<"Invoice"> | number | null
538
- invoice_date?: Prisma.DateTimeNullableWithAggregatesFilter<"Invoice"> | Date | string | null
539
- invoice_due_date?: Prisma.DateTimeNullableWithAggregatesFilter<"Invoice"> | Date | string | null
540
- delivery_note_number?: Prisma.StringNullableWithAggregatesFilter<"Invoice"> | string | null
541
- quantity_fulfilled?: Prisma.IntNullableWithAggregatesFilter<"Invoice"> | number | null
542
- total_po_releases?: Prisma.IntNullableWithAggregatesFilter<"Invoice"> | number | null
543
- billing_address?: Prisma.StringNullableWithAggregatesFilter<"Invoice"> | string | null
544
- status?: Prisma.EnumInvoiceStatusWithAggregatesFilter<"Invoice"> | $Enums.InvoiceStatus
545
- matching_status?: Prisma.EnumInvoiceMatchingStatusWithAggregatesFilter<"Invoice"> | $Enums.InvoiceMatchingStatus
546
- invoice_documents?: Prisma.JsonNullableWithAggregatesFilter<"Invoice">
547
- notes?: Prisma.StringNullableWithAggregatesFilter<"Invoice"> | string | null
548
- business_entity_id?: Prisma.IntNullableWithAggregatesFilter<"Invoice"> | number | null
549
- terms_and_conditions?: Prisma.StringNullableWithAggregatesFilter<"Invoice"> | string | null
550
- e_way_bill_number?: Prisma.StringNullableWithAggregatesFilter<"Invoice"> | string | null
551
- created_at?: Prisma.DateTimeWithAggregatesFilter<"Invoice"> | Date | string
552
- created_by?: Prisma.IntNullableWithAggregatesFilter<"Invoice"> | number | null
553
- updated_at?: Prisma.DateTimeWithAggregatesFilter<"Invoice"> | Date | string
554
- updated_by?: Prisma.IntNullableWithAggregatesFilter<"Invoice"> | number | null
555
- is_deleted?: Prisma.BoolWithAggregatesFilter<"Invoice"> | boolean
556
- deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Invoice"> | Date | string | null
557
- deleted_by?: Prisma.IntNullableWithAggregatesFilter<"Invoice"> | number | null
558
- }
559
-
560
- export type InvoiceCreateInput = {
561
- uuid?: string
562
- invoice_number?: string | null
563
- vendor_id?: number | null
564
- invoice_date?: Date | string | null
565
- invoice_due_date?: Date | string | null
566
- delivery_note_number?: string | null
567
- quantity_fulfilled?: number | null
568
- total_po_releases?: number | null
569
- billing_address?: string | null
570
- status?: $Enums.InvoiceStatus
571
- matching_status?: $Enums.InvoiceMatchingStatus
572
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
573
- notes?: string | null
574
- terms_and_conditions?: string | null
575
- e_way_bill_number?: string | null
576
- created_at?: Date | string
577
- created_by?: number | null
578
- updated_at?: Date | string
579
- updated_by?: number | null
580
- is_deleted?: boolean
581
- deleted_at?: Date | string | null
582
- deleted_by?: number | null
583
- purchase_order?: Prisma.PurchaseOrderCreateNestedOneWithoutInvoicesInput
584
- grn?: Prisma.GRNCreateNestedOneWithoutInvoicesInput
585
- business_entity?: Prisma.BusinessEntityCreateNestedOneWithoutInvoicesInput
586
- invoice_items?: Prisma.InvoiceItemCreateNestedManyWithoutInvoiceInput
587
- }
588
-
589
- export type InvoiceUncheckedCreateInput = {
590
- id?: number
591
- uuid?: string
592
- invoice_number?: string | null
593
- purchase_order_id?: number | null
594
- grn_id?: number | null
595
- vendor_id?: number | null
596
- invoice_date?: Date | string | null
597
- invoice_due_date?: Date | string | null
598
- delivery_note_number?: string | null
599
- quantity_fulfilled?: number | null
600
- total_po_releases?: number | null
601
- billing_address?: string | null
602
- status?: $Enums.InvoiceStatus
603
- matching_status?: $Enums.InvoiceMatchingStatus
604
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
605
- notes?: string | null
606
- business_entity_id?: number | null
607
- terms_and_conditions?: string | null
608
- e_way_bill_number?: string | null
609
- created_at?: Date | string
610
- created_by?: number | null
611
- updated_at?: Date | string
612
- updated_by?: number | null
613
- is_deleted?: boolean
614
- deleted_at?: Date | string | null
615
- deleted_by?: number | null
616
- invoice_items?: Prisma.InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
617
- }
618
-
619
- export type InvoiceUpdateInput = {
620
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
621
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
622
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
623
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
624
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
625
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
626
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
627
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
628
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
629
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
630
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
631
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
632
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
633
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
634
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
635
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
636
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
637
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
638
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
639
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
640
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
641
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
642
- purchase_order?: Prisma.PurchaseOrderUpdateOneWithoutInvoicesNestedInput
643
- grn?: Prisma.GRNUpdateOneWithoutInvoicesNestedInput
644
- business_entity?: Prisma.BusinessEntityUpdateOneWithoutInvoicesNestedInput
645
- invoice_items?: Prisma.InvoiceItemUpdateManyWithoutInvoiceNestedInput
646
- }
647
-
648
- export type InvoiceUncheckedUpdateInput = {
649
- id?: Prisma.IntFieldUpdateOperationsInput | number
650
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
651
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
652
- purchase_order_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
653
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
654
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
655
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
656
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
657
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
658
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
659
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
660
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
661
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
662
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
663
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
664
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
665
- business_entity_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
666
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
667
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
668
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
669
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
670
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
671
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
672
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
673
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
674
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
675
- invoice_items?: Prisma.InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
676
- }
677
-
678
- export type InvoiceCreateManyInput = {
679
- id?: number
680
- uuid?: string
681
- invoice_number?: string | null
682
- purchase_order_id?: number | null
683
- grn_id?: number | null
684
- vendor_id?: number | null
685
- invoice_date?: Date | string | null
686
- invoice_due_date?: Date | string | null
687
- delivery_note_number?: string | null
688
- quantity_fulfilled?: number | null
689
- total_po_releases?: number | null
690
- billing_address?: string | null
691
- status?: $Enums.InvoiceStatus
692
- matching_status?: $Enums.InvoiceMatchingStatus
693
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
694
- notes?: string | null
695
- business_entity_id?: number | null
696
- terms_and_conditions?: string | null
697
- e_way_bill_number?: string | null
698
- created_at?: Date | string
699
- created_by?: number | null
700
- updated_at?: Date | string
701
- updated_by?: number | null
702
- is_deleted?: boolean
703
- deleted_at?: Date | string | null
704
- deleted_by?: number | null
705
- }
706
-
707
- export type InvoiceUpdateManyMutationInput = {
708
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
709
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
710
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
711
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
712
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
713
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
714
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
715
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
716
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
717
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
718
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
719
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
720
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
721
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
722
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
723
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
724
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
725
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
726
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
727
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
728
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
729
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
730
- }
731
-
732
- export type InvoiceUncheckedUpdateManyInput = {
733
- id?: Prisma.IntFieldUpdateOperationsInput | number
734
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
735
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
736
- purchase_order_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
737
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
738
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
739
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
740
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
741
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
742
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
743
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
744
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
745
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
746
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
747
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
748
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
749
- business_entity_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
750
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
751
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
752
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
753
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
754
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
755
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
756
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
757
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
758
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
759
- }
760
-
761
- export type InvoiceListRelationFilter = {
762
- every?: Prisma.InvoiceWhereInput
763
- some?: Prisma.InvoiceWhereInput
764
- none?: Prisma.InvoiceWhereInput
765
- }
766
-
767
- export type InvoiceOrderByRelationAggregateInput = {
768
- _count?: Prisma.SortOrder
769
- }
770
-
771
- export type InvoiceCountOrderByAggregateInput = {
772
- id?: Prisma.SortOrder
773
- uuid?: Prisma.SortOrder
774
- invoice_number?: Prisma.SortOrder
775
- purchase_order_id?: Prisma.SortOrder
776
- grn_id?: Prisma.SortOrder
777
- vendor_id?: Prisma.SortOrder
778
- invoice_date?: Prisma.SortOrder
779
- invoice_due_date?: Prisma.SortOrder
780
- delivery_note_number?: Prisma.SortOrder
781
- quantity_fulfilled?: Prisma.SortOrder
782
- total_po_releases?: Prisma.SortOrder
783
- billing_address?: Prisma.SortOrder
784
- status?: Prisma.SortOrder
785
- matching_status?: Prisma.SortOrder
786
- invoice_documents?: Prisma.SortOrder
787
- notes?: Prisma.SortOrder
788
- business_entity_id?: Prisma.SortOrder
789
- terms_and_conditions?: Prisma.SortOrder
790
- e_way_bill_number?: Prisma.SortOrder
791
- created_at?: Prisma.SortOrder
792
- created_by?: Prisma.SortOrder
793
- updated_at?: Prisma.SortOrder
794
- updated_by?: Prisma.SortOrder
795
- is_deleted?: Prisma.SortOrder
796
- deleted_at?: Prisma.SortOrder
797
- deleted_by?: Prisma.SortOrder
798
- }
799
-
800
- export type InvoiceAvgOrderByAggregateInput = {
801
- id?: Prisma.SortOrder
802
- purchase_order_id?: Prisma.SortOrder
803
- grn_id?: Prisma.SortOrder
804
- vendor_id?: Prisma.SortOrder
805
- quantity_fulfilled?: Prisma.SortOrder
806
- total_po_releases?: Prisma.SortOrder
807
- business_entity_id?: Prisma.SortOrder
808
- created_by?: Prisma.SortOrder
809
- updated_by?: Prisma.SortOrder
810
- deleted_by?: Prisma.SortOrder
811
- }
812
-
813
- export type InvoiceMaxOrderByAggregateInput = {
814
- id?: Prisma.SortOrder
815
- uuid?: Prisma.SortOrder
816
- invoice_number?: Prisma.SortOrder
817
- purchase_order_id?: Prisma.SortOrder
818
- grn_id?: Prisma.SortOrder
819
- vendor_id?: Prisma.SortOrder
820
- invoice_date?: Prisma.SortOrder
821
- invoice_due_date?: Prisma.SortOrder
822
- delivery_note_number?: Prisma.SortOrder
823
- quantity_fulfilled?: Prisma.SortOrder
824
- total_po_releases?: Prisma.SortOrder
825
- billing_address?: Prisma.SortOrder
826
- status?: Prisma.SortOrder
827
- matching_status?: Prisma.SortOrder
828
- notes?: Prisma.SortOrder
829
- business_entity_id?: Prisma.SortOrder
830
- terms_and_conditions?: Prisma.SortOrder
831
- e_way_bill_number?: Prisma.SortOrder
832
- created_at?: Prisma.SortOrder
833
- created_by?: Prisma.SortOrder
834
- updated_at?: Prisma.SortOrder
835
- updated_by?: Prisma.SortOrder
836
- is_deleted?: Prisma.SortOrder
837
- deleted_at?: Prisma.SortOrder
838
- deleted_by?: Prisma.SortOrder
839
- }
840
-
841
- export type InvoiceMinOrderByAggregateInput = {
842
- id?: Prisma.SortOrder
843
- uuid?: Prisma.SortOrder
844
- invoice_number?: Prisma.SortOrder
845
- purchase_order_id?: Prisma.SortOrder
846
- grn_id?: Prisma.SortOrder
847
- vendor_id?: Prisma.SortOrder
848
- invoice_date?: Prisma.SortOrder
849
- invoice_due_date?: Prisma.SortOrder
850
- delivery_note_number?: Prisma.SortOrder
851
- quantity_fulfilled?: Prisma.SortOrder
852
- total_po_releases?: Prisma.SortOrder
853
- billing_address?: Prisma.SortOrder
854
- status?: Prisma.SortOrder
855
- matching_status?: Prisma.SortOrder
856
- notes?: Prisma.SortOrder
857
- business_entity_id?: Prisma.SortOrder
858
- terms_and_conditions?: Prisma.SortOrder
859
- e_way_bill_number?: Prisma.SortOrder
860
- created_at?: Prisma.SortOrder
861
- created_by?: Prisma.SortOrder
862
- updated_at?: Prisma.SortOrder
863
- updated_by?: Prisma.SortOrder
864
- is_deleted?: Prisma.SortOrder
865
- deleted_at?: Prisma.SortOrder
866
- deleted_by?: Prisma.SortOrder
867
- }
868
-
869
- export type InvoiceSumOrderByAggregateInput = {
870
- id?: Prisma.SortOrder
871
- purchase_order_id?: Prisma.SortOrder
872
- grn_id?: Prisma.SortOrder
873
- vendor_id?: Prisma.SortOrder
874
- quantity_fulfilled?: Prisma.SortOrder
875
- total_po_releases?: Prisma.SortOrder
876
- business_entity_id?: Prisma.SortOrder
877
- created_by?: Prisma.SortOrder
878
- updated_by?: Prisma.SortOrder
879
- deleted_by?: Prisma.SortOrder
880
- }
881
-
882
- export type InvoiceNullableScalarRelationFilter = {
883
- is?: Prisma.InvoiceWhereInput | null
884
- isNot?: Prisma.InvoiceWhereInput | null
885
- }
886
-
887
- export type InvoiceCreateNestedManyWithoutPurchase_orderInput = {
888
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutPurchase_orderInput, Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput> | Prisma.InvoiceCreateWithoutPurchase_orderInput[] | Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput[]
889
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutPurchase_orderInput | Prisma.InvoiceCreateOrConnectWithoutPurchase_orderInput[]
890
- createMany?: Prisma.InvoiceCreateManyPurchase_orderInputEnvelope
891
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
892
- }
893
-
894
- export type InvoiceUncheckedCreateNestedManyWithoutPurchase_orderInput = {
895
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutPurchase_orderInput, Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput> | Prisma.InvoiceCreateWithoutPurchase_orderInput[] | Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput[]
896
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutPurchase_orderInput | Prisma.InvoiceCreateOrConnectWithoutPurchase_orderInput[]
897
- createMany?: Prisma.InvoiceCreateManyPurchase_orderInputEnvelope
898
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
899
- }
900
-
901
- export type InvoiceUpdateManyWithoutPurchase_orderNestedInput = {
902
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutPurchase_orderInput, Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput> | Prisma.InvoiceCreateWithoutPurchase_orderInput[] | Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput[]
903
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutPurchase_orderInput | Prisma.InvoiceCreateOrConnectWithoutPurchase_orderInput[]
904
- upsert?: Prisma.InvoiceUpsertWithWhereUniqueWithoutPurchase_orderInput | Prisma.InvoiceUpsertWithWhereUniqueWithoutPurchase_orderInput[]
905
- createMany?: Prisma.InvoiceCreateManyPurchase_orderInputEnvelope
906
- set?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
907
- disconnect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
908
- delete?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
909
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
910
- update?: Prisma.InvoiceUpdateWithWhereUniqueWithoutPurchase_orderInput | Prisma.InvoiceUpdateWithWhereUniqueWithoutPurchase_orderInput[]
911
- updateMany?: Prisma.InvoiceUpdateManyWithWhereWithoutPurchase_orderInput | Prisma.InvoiceUpdateManyWithWhereWithoutPurchase_orderInput[]
912
- deleteMany?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
913
- }
914
-
915
- export type InvoiceUncheckedUpdateManyWithoutPurchase_orderNestedInput = {
916
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutPurchase_orderInput, Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput> | Prisma.InvoiceCreateWithoutPurchase_orderInput[] | Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput[]
917
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutPurchase_orderInput | Prisma.InvoiceCreateOrConnectWithoutPurchase_orderInput[]
918
- upsert?: Prisma.InvoiceUpsertWithWhereUniqueWithoutPurchase_orderInput | Prisma.InvoiceUpsertWithWhereUniqueWithoutPurchase_orderInput[]
919
- createMany?: Prisma.InvoiceCreateManyPurchase_orderInputEnvelope
920
- set?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
921
- disconnect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
922
- delete?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
923
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
924
- update?: Prisma.InvoiceUpdateWithWhereUniqueWithoutPurchase_orderInput | Prisma.InvoiceUpdateWithWhereUniqueWithoutPurchase_orderInput[]
925
- updateMany?: Prisma.InvoiceUpdateManyWithWhereWithoutPurchase_orderInput | Prisma.InvoiceUpdateManyWithWhereWithoutPurchase_orderInput[]
926
- deleteMany?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
927
- }
928
-
929
- export type InvoiceCreateNestedManyWithoutGrnInput = {
930
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutGrnInput, Prisma.InvoiceUncheckedCreateWithoutGrnInput> | Prisma.InvoiceCreateWithoutGrnInput[] | Prisma.InvoiceUncheckedCreateWithoutGrnInput[]
931
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutGrnInput | Prisma.InvoiceCreateOrConnectWithoutGrnInput[]
932
- createMany?: Prisma.InvoiceCreateManyGrnInputEnvelope
933
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
934
- }
935
-
936
- export type InvoiceUncheckedCreateNestedManyWithoutGrnInput = {
937
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutGrnInput, Prisma.InvoiceUncheckedCreateWithoutGrnInput> | Prisma.InvoiceCreateWithoutGrnInput[] | Prisma.InvoiceUncheckedCreateWithoutGrnInput[]
938
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutGrnInput | Prisma.InvoiceCreateOrConnectWithoutGrnInput[]
939
- createMany?: Prisma.InvoiceCreateManyGrnInputEnvelope
940
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
941
- }
942
-
943
- export type InvoiceUpdateManyWithoutGrnNestedInput = {
944
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutGrnInput, Prisma.InvoiceUncheckedCreateWithoutGrnInput> | Prisma.InvoiceCreateWithoutGrnInput[] | Prisma.InvoiceUncheckedCreateWithoutGrnInput[]
945
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutGrnInput | Prisma.InvoiceCreateOrConnectWithoutGrnInput[]
946
- upsert?: Prisma.InvoiceUpsertWithWhereUniqueWithoutGrnInput | Prisma.InvoiceUpsertWithWhereUniqueWithoutGrnInput[]
947
- createMany?: Prisma.InvoiceCreateManyGrnInputEnvelope
948
- set?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
949
- disconnect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
950
- delete?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
951
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
952
- update?: Prisma.InvoiceUpdateWithWhereUniqueWithoutGrnInput | Prisma.InvoiceUpdateWithWhereUniqueWithoutGrnInput[]
953
- updateMany?: Prisma.InvoiceUpdateManyWithWhereWithoutGrnInput | Prisma.InvoiceUpdateManyWithWhereWithoutGrnInput[]
954
- deleteMany?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
955
- }
956
-
957
- export type InvoiceUncheckedUpdateManyWithoutGrnNestedInput = {
958
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutGrnInput, Prisma.InvoiceUncheckedCreateWithoutGrnInput> | Prisma.InvoiceCreateWithoutGrnInput[] | Prisma.InvoiceUncheckedCreateWithoutGrnInput[]
959
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutGrnInput | Prisma.InvoiceCreateOrConnectWithoutGrnInput[]
960
- upsert?: Prisma.InvoiceUpsertWithWhereUniqueWithoutGrnInput | Prisma.InvoiceUpsertWithWhereUniqueWithoutGrnInput[]
961
- createMany?: Prisma.InvoiceCreateManyGrnInputEnvelope
962
- set?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
963
- disconnect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
964
- delete?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
965
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
966
- update?: Prisma.InvoiceUpdateWithWhereUniqueWithoutGrnInput | Prisma.InvoiceUpdateWithWhereUniqueWithoutGrnInput[]
967
- updateMany?: Prisma.InvoiceUpdateManyWithWhereWithoutGrnInput | Prisma.InvoiceUpdateManyWithWhereWithoutGrnInput[]
968
- deleteMany?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
969
- }
970
-
971
- export type InvoiceCreateNestedManyWithoutBusiness_entityInput = {
972
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutBusiness_entityInput, Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput> | Prisma.InvoiceCreateWithoutBusiness_entityInput[] | Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput[]
973
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutBusiness_entityInput | Prisma.InvoiceCreateOrConnectWithoutBusiness_entityInput[]
974
- createMany?: Prisma.InvoiceCreateManyBusiness_entityInputEnvelope
975
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
976
- }
977
-
978
- export type InvoiceUncheckedCreateNestedManyWithoutBusiness_entityInput = {
979
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutBusiness_entityInput, Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput> | Prisma.InvoiceCreateWithoutBusiness_entityInput[] | Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput[]
980
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutBusiness_entityInput | Prisma.InvoiceCreateOrConnectWithoutBusiness_entityInput[]
981
- createMany?: Prisma.InvoiceCreateManyBusiness_entityInputEnvelope
982
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
983
- }
984
-
985
- export type InvoiceUpdateManyWithoutBusiness_entityNestedInput = {
986
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutBusiness_entityInput, Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput> | Prisma.InvoiceCreateWithoutBusiness_entityInput[] | Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput[]
987
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutBusiness_entityInput | Prisma.InvoiceCreateOrConnectWithoutBusiness_entityInput[]
988
- upsert?: Prisma.InvoiceUpsertWithWhereUniqueWithoutBusiness_entityInput | Prisma.InvoiceUpsertWithWhereUniqueWithoutBusiness_entityInput[]
989
- createMany?: Prisma.InvoiceCreateManyBusiness_entityInputEnvelope
990
- set?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
991
- disconnect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
992
- delete?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
993
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
994
- update?: Prisma.InvoiceUpdateWithWhereUniqueWithoutBusiness_entityInput | Prisma.InvoiceUpdateWithWhereUniqueWithoutBusiness_entityInput[]
995
- updateMany?: Prisma.InvoiceUpdateManyWithWhereWithoutBusiness_entityInput | Prisma.InvoiceUpdateManyWithWhereWithoutBusiness_entityInput[]
996
- deleteMany?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
997
- }
998
-
999
- export type InvoiceUncheckedUpdateManyWithoutBusiness_entityNestedInput = {
1000
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutBusiness_entityInput, Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput> | Prisma.InvoiceCreateWithoutBusiness_entityInput[] | Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput[]
1001
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutBusiness_entityInput | Prisma.InvoiceCreateOrConnectWithoutBusiness_entityInput[]
1002
- upsert?: Prisma.InvoiceUpsertWithWhereUniqueWithoutBusiness_entityInput | Prisma.InvoiceUpsertWithWhereUniqueWithoutBusiness_entityInput[]
1003
- createMany?: Prisma.InvoiceCreateManyBusiness_entityInputEnvelope
1004
- set?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
1005
- disconnect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
1006
- delete?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
1007
- connect?: Prisma.InvoiceWhereUniqueInput | Prisma.InvoiceWhereUniqueInput[]
1008
- update?: Prisma.InvoiceUpdateWithWhereUniqueWithoutBusiness_entityInput | Prisma.InvoiceUpdateWithWhereUniqueWithoutBusiness_entityInput[]
1009
- updateMany?: Prisma.InvoiceUpdateManyWithWhereWithoutBusiness_entityInput | Prisma.InvoiceUpdateManyWithWhereWithoutBusiness_entityInput[]
1010
- deleteMany?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
1011
- }
1012
-
1013
- export type EnumInvoiceStatusFieldUpdateOperationsInput = {
1014
- set?: $Enums.InvoiceStatus
1015
- }
1016
-
1017
- export type EnumInvoiceMatchingStatusFieldUpdateOperationsInput = {
1018
- set?: $Enums.InvoiceMatchingStatus
1019
- }
1020
-
1021
- export type InvoiceCreateNestedOneWithoutInvoice_itemsInput = {
1022
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutInvoice_itemsInput, Prisma.InvoiceUncheckedCreateWithoutInvoice_itemsInput>
1023
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutInvoice_itemsInput
1024
- connect?: Prisma.InvoiceWhereUniqueInput
1025
- }
1026
-
1027
- export type InvoiceUpdateOneWithoutInvoice_itemsNestedInput = {
1028
- create?: Prisma.XOR<Prisma.InvoiceCreateWithoutInvoice_itemsInput, Prisma.InvoiceUncheckedCreateWithoutInvoice_itemsInput>
1029
- connectOrCreate?: Prisma.InvoiceCreateOrConnectWithoutInvoice_itemsInput
1030
- upsert?: Prisma.InvoiceUpsertWithoutInvoice_itemsInput
1031
- disconnect?: Prisma.InvoiceWhereInput | boolean
1032
- delete?: Prisma.InvoiceWhereInput | boolean
1033
- connect?: Prisma.InvoiceWhereUniqueInput
1034
- update?: Prisma.XOR<Prisma.XOR<Prisma.InvoiceUpdateToOneWithWhereWithoutInvoice_itemsInput, Prisma.InvoiceUpdateWithoutInvoice_itemsInput>, Prisma.InvoiceUncheckedUpdateWithoutInvoice_itemsInput>
1035
- }
1036
-
1037
- export type InvoiceCreateWithoutPurchase_orderInput = {
1038
- uuid?: string
1039
- invoice_number?: string | null
1040
- vendor_id?: number | null
1041
- invoice_date?: Date | string | null
1042
- invoice_due_date?: Date | string | null
1043
- delivery_note_number?: string | null
1044
- quantity_fulfilled?: number | null
1045
- total_po_releases?: number | null
1046
- billing_address?: string | null
1047
- status?: $Enums.InvoiceStatus
1048
- matching_status?: $Enums.InvoiceMatchingStatus
1049
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1050
- notes?: string | null
1051
- terms_and_conditions?: string | null
1052
- e_way_bill_number?: string | null
1053
- created_at?: Date | string
1054
- created_by?: number | null
1055
- updated_at?: Date | string
1056
- updated_by?: number | null
1057
- is_deleted?: boolean
1058
- deleted_at?: Date | string | null
1059
- deleted_by?: number | null
1060
- grn?: Prisma.GRNCreateNestedOneWithoutInvoicesInput
1061
- business_entity?: Prisma.BusinessEntityCreateNestedOneWithoutInvoicesInput
1062
- invoice_items?: Prisma.InvoiceItemCreateNestedManyWithoutInvoiceInput
1063
- }
1064
-
1065
- export type InvoiceUncheckedCreateWithoutPurchase_orderInput = {
1066
- id?: number
1067
- uuid?: string
1068
- invoice_number?: string | null
1069
- grn_id?: number | null
1070
- vendor_id?: number | null
1071
- invoice_date?: Date | string | null
1072
- invoice_due_date?: Date | string | null
1073
- delivery_note_number?: string | null
1074
- quantity_fulfilled?: number | null
1075
- total_po_releases?: number | null
1076
- billing_address?: string | null
1077
- status?: $Enums.InvoiceStatus
1078
- matching_status?: $Enums.InvoiceMatchingStatus
1079
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1080
- notes?: string | null
1081
- business_entity_id?: number | null
1082
- terms_and_conditions?: string | null
1083
- e_way_bill_number?: string | null
1084
- created_at?: Date | string
1085
- created_by?: number | null
1086
- updated_at?: Date | string
1087
- updated_by?: number | null
1088
- is_deleted?: boolean
1089
- deleted_at?: Date | string | null
1090
- deleted_by?: number | null
1091
- invoice_items?: Prisma.InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
1092
- }
1093
-
1094
- export type InvoiceCreateOrConnectWithoutPurchase_orderInput = {
1095
- where: Prisma.InvoiceWhereUniqueInput
1096
- create: Prisma.XOR<Prisma.InvoiceCreateWithoutPurchase_orderInput, Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput>
1097
- }
1098
-
1099
- export type InvoiceCreateManyPurchase_orderInputEnvelope = {
1100
- data: Prisma.InvoiceCreateManyPurchase_orderInput | Prisma.InvoiceCreateManyPurchase_orderInput[]
1101
- skipDuplicates?: boolean
1102
- }
1103
-
1104
- export type InvoiceUpsertWithWhereUniqueWithoutPurchase_orderInput = {
1105
- where: Prisma.InvoiceWhereUniqueInput
1106
- update: Prisma.XOR<Prisma.InvoiceUpdateWithoutPurchase_orderInput, Prisma.InvoiceUncheckedUpdateWithoutPurchase_orderInput>
1107
- create: Prisma.XOR<Prisma.InvoiceCreateWithoutPurchase_orderInput, Prisma.InvoiceUncheckedCreateWithoutPurchase_orderInput>
1108
- }
1109
-
1110
- export type InvoiceUpdateWithWhereUniqueWithoutPurchase_orderInput = {
1111
- where: Prisma.InvoiceWhereUniqueInput
1112
- data: Prisma.XOR<Prisma.InvoiceUpdateWithoutPurchase_orderInput, Prisma.InvoiceUncheckedUpdateWithoutPurchase_orderInput>
1113
- }
1114
-
1115
- export type InvoiceUpdateManyWithWhereWithoutPurchase_orderInput = {
1116
- where: Prisma.InvoiceScalarWhereInput
1117
- data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyWithoutPurchase_orderInput>
1118
- }
1119
-
1120
- export type InvoiceScalarWhereInput = {
1121
- AND?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
1122
- OR?: Prisma.InvoiceScalarWhereInput[]
1123
- NOT?: Prisma.InvoiceScalarWhereInput | Prisma.InvoiceScalarWhereInput[]
1124
- id?: Prisma.IntFilter<"Invoice"> | number
1125
- uuid?: Prisma.StringFilter<"Invoice"> | string
1126
- invoice_number?: Prisma.StringNullableFilter<"Invoice"> | string | null
1127
- purchase_order_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
1128
- grn_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
1129
- vendor_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
1130
- invoice_date?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
1131
- invoice_due_date?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
1132
- delivery_note_number?: Prisma.StringNullableFilter<"Invoice"> | string | null
1133
- quantity_fulfilled?: Prisma.IntNullableFilter<"Invoice"> | number | null
1134
- total_po_releases?: Prisma.IntNullableFilter<"Invoice"> | number | null
1135
- billing_address?: Prisma.StringNullableFilter<"Invoice"> | string | null
1136
- status?: Prisma.EnumInvoiceStatusFilter<"Invoice"> | $Enums.InvoiceStatus
1137
- matching_status?: Prisma.EnumInvoiceMatchingStatusFilter<"Invoice"> | $Enums.InvoiceMatchingStatus
1138
- invoice_documents?: Prisma.JsonNullableFilter<"Invoice">
1139
- notes?: Prisma.StringNullableFilter<"Invoice"> | string | null
1140
- business_entity_id?: Prisma.IntNullableFilter<"Invoice"> | number | null
1141
- terms_and_conditions?: Prisma.StringNullableFilter<"Invoice"> | string | null
1142
- e_way_bill_number?: Prisma.StringNullableFilter<"Invoice"> | string | null
1143
- created_at?: Prisma.DateTimeFilter<"Invoice"> | Date | string
1144
- created_by?: Prisma.IntNullableFilter<"Invoice"> | number | null
1145
- updated_at?: Prisma.DateTimeFilter<"Invoice"> | Date | string
1146
- updated_by?: Prisma.IntNullableFilter<"Invoice"> | number | null
1147
- is_deleted?: Prisma.BoolFilter<"Invoice"> | boolean
1148
- deleted_at?: Prisma.DateTimeNullableFilter<"Invoice"> | Date | string | null
1149
- deleted_by?: Prisma.IntNullableFilter<"Invoice"> | number | null
1150
- }
1151
-
1152
- export type InvoiceCreateWithoutGrnInput = {
1153
- uuid?: string
1154
- invoice_number?: string | null
1155
- vendor_id?: number | null
1156
- invoice_date?: Date | string | null
1157
- invoice_due_date?: Date | string | null
1158
- delivery_note_number?: string | null
1159
- quantity_fulfilled?: number | null
1160
- total_po_releases?: number | null
1161
- billing_address?: string | null
1162
- status?: $Enums.InvoiceStatus
1163
- matching_status?: $Enums.InvoiceMatchingStatus
1164
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1165
- notes?: string | null
1166
- terms_and_conditions?: string | null
1167
- e_way_bill_number?: string | null
1168
- created_at?: Date | string
1169
- created_by?: number | null
1170
- updated_at?: Date | string
1171
- updated_by?: number | null
1172
- is_deleted?: boolean
1173
- deleted_at?: Date | string | null
1174
- deleted_by?: number | null
1175
- purchase_order?: Prisma.PurchaseOrderCreateNestedOneWithoutInvoicesInput
1176
- business_entity?: Prisma.BusinessEntityCreateNestedOneWithoutInvoicesInput
1177
- invoice_items?: Prisma.InvoiceItemCreateNestedManyWithoutInvoiceInput
1178
- }
1179
-
1180
- export type InvoiceUncheckedCreateWithoutGrnInput = {
1181
- id?: number
1182
- uuid?: string
1183
- invoice_number?: string | null
1184
- purchase_order_id?: number | null
1185
- vendor_id?: number | null
1186
- invoice_date?: Date | string | null
1187
- invoice_due_date?: Date | string | null
1188
- delivery_note_number?: string | null
1189
- quantity_fulfilled?: number | null
1190
- total_po_releases?: number | null
1191
- billing_address?: string | null
1192
- status?: $Enums.InvoiceStatus
1193
- matching_status?: $Enums.InvoiceMatchingStatus
1194
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1195
- notes?: string | null
1196
- business_entity_id?: number | null
1197
- terms_and_conditions?: string | null
1198
- e_way_bill_number?: string | null
1199
- created_at?: Date | string
1200
- created_by?: number | null
1201
- updated_at?: Date | string
1202
- updated_by?: number | null
1203
- is_deleted?: boolean
1204
- deleted_at?: Date | string | null
1205
- deleted_by?: number | null
1206
- invoice_items?: Prisma.InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
1207
- }
1208
-
1209
- export type InvoiceCreateOrConnectWithoutGrnInput = {
1210
- where: Prisma.InvoiceWhereUniqueInput
1211
- create: Prisma.XOR<Prisma.InvoiceCreateWithoutGrnInput, Prisma.InvoiceUncheckedCreateWithoutGrnInput>
1212
- }
1213
-
1214
- export type InvoiceCreateManyGrnInputEnvelope = {
1215
- data: Prisma.InvoiceCreateManyGrnInput | Prisma.InvoiceCreateManyGrnInput[]
1216
- skipDuplicates?: boolean
1217
- }
1218
-
1219
- export type InvoiceUpsertWithWhereUniqueWithoutGrnInput = {
1220
- where: Prisma.InvoiceWhereUniqueInput
1221
- update: Prisma.XOR<Prisma.InvoiceUpdateWithoutGrnInput, Prisma.InvoiceUncheckedUpdateWithoutGrnInput>
1222
- create: Prisma.XOR<Prisma.InvoiceCreateWithoutGrnInput, Prisma.InvoiceUncheckedCreateWithoutGrnInput>
1223
- }
1224
-
1225
- export type InvoiceUpdateWithWhereUniqueWithoutGrnInput = {
1226
- where: Prisma.InvoiceWhereUniqueInput
1227
- data: Prisma.XOR<Prisma.InvoiceUpdateWithoutGrnInput, Prisma.InvoiceUncheckedUpdateWithoutGrnInput>
1228
- }
1229
-
1230
- export type InvoiceUpdateManyWithWhereWithoutGrnInput = {
1231
- where: Prisma.InvoiceScalarWhereInput
1232
- data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyWithoutGrnInput>
1233
- }
1234
-
1235
- export type InvoiceCreateWithoutBusiness_entityInput = {
1236
- uuid?: string
1237
- invoice_number?: string | null
1238
- vendor_id?: number | null
1239
- invoice_date?: Date | string | null
1240
- invoice_due_date?: Date | string | null
1241
- delivery_note_number?: string | null
1242
- quantity_fulfilled?: number | null
1243
- total_po_releases?: number | null
1244
- billing_address?: string | null
1245
- status?: $Enums.InvoiceStatus
1246
- matching_status?: $Enums.InvoiceMatchingStatus
1247
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1248
- notes?: string | null
1249
- terms_and_conditions?: string | null
1250
- e_way_bill_number?: string | null
1251
- created_at?: Date | string
1252
- created_by?: number | null
1253
- updated_at?: Date | string
1254
- updated_by?: number | null
1255
- is_deleted?: boolean
1256
- deleted_at?: Date | string | null
1257
- deleted_by?: number | null
1258
- purchase_order?: Prisma.PurchaseOrderCreateNestedOneWithoutInvoicesInput
1259
- grn?: Prisma.GRNCreateNestedOneWithoutInvoicesInput
1260
- invoice_items?: Prisma.InvoiceItemCreateNestedManyWithoutInvoiceInput
1261
- }
1262
-
1263
- export type InvoiceUncheckedCreateWithoutBusiness_entityInput = {
1264
- id?: number
1265
- uuid?: string
1266
- invoice_number?: string | null
1267
- purchase_order_id?: number | null
1268
- grn_id?: number | null
1269
- vendor_id?: number | null
1270
- invoice_date?: Date | string | null
1271
- invoice_due_date?: Date | string | null
1272
- delivery_note_number?: string | null
1273
- quantity_fulfilled?: number | null
1274
- total_po_releases?: number | null
1275
- billing_address?: string | null
1276
- status?: $Enums.InvoiceStatus
1277
- matching_status?: $Enums.InvoiceMatchingStatus
1278
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1279
- notes?: string | null
1280
- terms_and_conditions?: string | null
1281
- e_way_bill_number?: string | null
1282
- created_at?: Date | string
1283
- created_by?: number | null
1284
- updated_at?: Date | string
1285
- updated_by?: number | null
1286
- is_deleted?: boolean
1287
- deleted_at?: Date | string | null
1288
- deleted_by?: number | null
1289
- invoice_items?: Prisma.InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
1290
- }
1291
-
1292
- export type InvoiceCreateOrConnectWithoutBusiness_entityInput = {
1293
- where: Prisma.InvoiceWhereUniqueInput
1294
- create: Prisma.XOR<Prisma.InvoiceCreateWithoutBusiness_entityInput, Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput>
1295
- }
1296
-
1297
- export type InvoiceCreateManyBusiness_entityInputEnvelope = {
1298
- data: Prisma.InvoiceCreateManyBusiness_entityInput | Prisma.InvoiceCreateManyBusiness_entityInput[]
1299
- skipDuplicates?: boolean
1300
- }
1301
-
1302
- export type InvoiceUpsertWithWhereUniqueWithoutBusiness_entityInput = {
1303
- where: Prisma.InvoiceWhereUniqueInput
1304
- update: Prisma.XOR<Prisma.InvoiceUpdateWithoutBusiness_entityInput, Prisma.InvoiceUncheckedUpdateWithoutBusiness_entityInput>
1305
- create: Prisma.XOR<Prisma.InvoiceCreateWithoutBusiness_entityInput, Prisma.InvoiceUncheckedCreateWithoutBusiness_entityInput>
1306
- }
1307
-
1308
- export type InvoiceUpdateWithWhereUniqueWithoutBusiness_entityInput = {
1309
- where: Prisma.InvoiceWhereUniqueInput
1310
- data: Prisma.XOR<Prisma.InvoiceUpdateWithoutBusiness_entityInput, Prisma.InvoiceUncheckedUpdateWithoutBusiness_entityInput>
1311
- }
1312
-
1313
- export type InvoiceUpdateManyWithWhereWithoutBusiness_entityInput = {
1314
- where: Prisma.InvoiceScalarWhereInput
1315
- data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyWithoutBusiness_entityInput>
1316
- }
1317
-
1318
- export type InvoiceCreateWithoutInvoice_itemsInput = {
1319
- uuid?: string
1320
- invoice_number?: string | null
1321
- vendor_id?: number | null
1322
- invoice_date?: Date | string | null
1323
- invoice_due_date?: Date | string | null
1324
- delivery_note_number?: string | null
1325
- quantity_fulfilled?: number | null
1326
- total_po_releases?: number | null
1327
- billing_address?: string | null
1328
- status?: $Enums.InvoiceStatus
1329
- matching_status?: $Enums.InvoiceMatchingStatus
1330
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1331
- notes?: string | null
1332
- terms_and_conditions?: string | null
1333
- e_way_bill_number?: string | null
1334
- created_at?: Date | string
1335
- created_by?: number | null
1336
- updated_at?: Date | string
1337
- updated_by?: number | null
1338
- is_deleted?: boolean
1339
- deleted_at?: Date | string | null
1340
- deleted_by?: number | null
1341
- purchase_order?: Prisma.PurchaseOrderCreateNestedOneWithoutInvoicesInput
1342
- grn?: Prisma.GRNCreateNestedOneWithoutInvoicesInput
1343
- business_entity?: Prisma.BusinessEntityCreateNestedOneWithoutInvoicesInput
1344
- }
1345
-
1346
- export type InvoiceUncheckedCreateWithoutInvoice_itemsInput = {
1347
- id?: number
1348
- uuid?: string
1349
- invoice_number?: string | null
1350
- purchase_order_id?: number | null
1351
- grn_id?: number | null
1352
- vendor_id?: number | null
1353
- invoice_date?: Date | string | null
1354
- invoice_due_date?: Date | string | null
1355
- delivery_note_number?: string | null
1356
- quantity_fulfilled?: number | null
1357
- total_po_releases?: number | null
1358
- billing_address?: string | null
1359
- status?: $Enums.InvoiceStatus
1360
- matching_status?: $Enums.InvoiceMatchingStatus
1361
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1362
- notes?: string | null
1363
- business_entity_id?: number | null
1364
- terms_and_conditions?: string | null
1365
- e_way_bill_number?: string | null
1366
- created_at?: Date | string
1367
- created_by?: number | null
1368
- updated_at?: Date | string
1369
- updated_by?: number | null
1370
- is_deleted?: boolean
1371
- deleted_at?: Date | string | null
1372
- deleted_by?: number | null
1373
- }
1374
-
1375
- export type InvoiceCreateOrConnectWithoutInvoice_itemsInput = {
1376
- where: Prisma.InvoiceWhereUniqueInput
1377
- create: Prisma.XOR<Prisma.InvoiceCreateWithoutInvoice_itemsInput, Prisma.InvoiceUncheckedCreateWithoutInvoice_itemsInput>
1378
- }
1379
-
1380
- export type InvoiceUpsertWithoutInvoice_itemsInput = {
1381
- update: Prisma.XOR<Prisma.InvoiceUpdateWithoutInvoice_itemsInput, Prisma.InvoiceUncheckedUpdateWithoutInvoice_itemsInput>
1382
- create: Prisma.XOR<Prisma.InvoiceCreateWithoutInvoice_itemsInput, Prisma.InvoiceUncheckedCreateWithoutInvoice_itemsInput>
1383
- where?: Prisma.InvoiceWhereInput
1384
- }
1385
-
1386
- export type InvoiceUpdateToOneWithWhereWithoutInvoice_itemsInput = {
1387
- where?: Prisma.InvoiceWhereInput
1388
- data: Prisma.XOR<Prisma.InvoiceUpdateWithoutInvoice_itemsInput, Prisma.InvoiceUncheckedUpdateWithoutInvoice_itemsInput>
1389
- }
1390
-
1391
- export type InvoiceUpdateWithoutInvoice_itemsInput = {
1392
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1393
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1394
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1395
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1396
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1397
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1398
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1399
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1400
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1401
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1402
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1403
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1404
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1405
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1406
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1407
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1408
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1409
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1410
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1411
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1412
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1413
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1414
- purchase_order?: Prisma.PurchaseOrderUpdateOneWithoutInvoicesNestedInput
1415
- grn?: Prisma.GRNUpdateOneWithoutInvoicesNestedInput
1416
- business_entity?: Prisma.BusinessEntityUpdateOneWithoutInvoicesNestedInput
1417
- }
1418
-
1419
- export type InvoiceUncheckedUpdateWithoutInvoice_itemsInput = {
1420
- id?: Prisma.IntFieldUpdateOperationsInput | number
1421
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1422
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1423
- purchase_order_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1424
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1425
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1426
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1427
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1428
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1429
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1430
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1431
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1432
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1433
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1434
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1435
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1436
- business_entity_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1437
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1438
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1439
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1440
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1441
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1442
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1443
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1444
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1445
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1446
- }
1447
-
1448
- export type InvoiceCreateManyPurchase_orderInput = {
1449
- id?: number
1450
- uuid?: string
1451
- invoice_number?: string | null
1452
- grn_id?: number | null
1453
- vendor_id?: number | null
1454
- invoice_date?: Date | string | null
1455
- invoice_due_date?: Date | string | null
1456
- delivery_note_number?: string | null
1457
- quantity_fulfilled?: number | null
1458
- total_po_releases?: number | null
1459
- billing_address?: string | null
1460
- status?: $Enums.InvoiceStatus
1461
- matching_status?: $Enums.InvoiceMatchingStatus
1462
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1463
- notes?: string | null
1464
- business_entity_id?: number | null
1465
- terms_and_conditions?: string | null
1466
- e_way_bill_number?: string | null
1467
- created_at?: Date | string
1468
- created_by?: number | null
1469
- updated_at?: Date | string
1470
- updated_by?: number | null
1471
- is_deleted?: boolean
1472
- deleted_at?: Date | string | null
1473
- deleted_by?: number | null
1474
- }
1475
-
1476
- export type InvoiceUpdateWithoutPurchase_orderInput = {
1477
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1478
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1479
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1480
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1481
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1482
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1483
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1484
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1485
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1486
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1487
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1488
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1489
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1490
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1491
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1492
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1493
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1494
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1495
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1496
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1497
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1498
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1499
- grn?: Prisma.GRNUpdateOneWithoutInvoicesNestedInput
1500
- business_entity?: Prisma.BusinessEntityUpdateOneWithoutInvoicesNestedInput
1501
- invoice_items?: Prisma.InvoiceItemUpdateManyWithoutInvoiceNestedInput
1502
- }
1503
-
1504
- export type InvoiceUncheckedUpdateWithoutPurchase_orderInput = {
1505
- id?: Prisma.IntFieldUpdateOperationsInput | number
1506
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1507
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1508
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1509
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1510
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1511
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1512
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1513
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1514
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1515
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1516
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1517
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1518
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1519
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1520
- business_entity_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1521
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1522
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1523
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1524
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1525
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1526
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1527
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1528
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1529
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1530
- invoice_items?: Prisma.InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
1531
- }
1532
-
1533
- export type InvoiceUncheckedUpdateManyWithoutPurchase_orderInput = {
1534
- id?: Prisma.IntFieldUpdateOperationsInput | number
1535
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1536
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1537
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1538
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1539
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1540
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1541
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1542
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1543
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1544
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1545
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1546
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1547
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1548
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1549
- business_entity_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1550
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1551
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1552
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1553
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1554
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1555
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1556
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1557
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1558
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1559
- }
1560
-
1561
- export type InvoiceCreateManyGrnInput = {
1562
- id?: number
1563
- uuid?: string
1564
- invoice_number?: string | null
1565
- purchase_order_id?: number | null
1566
- vendor_id?: number | null
1567
- invoice_date?: Date | string | null
1568
- invoice_due_date?: Date | string | null
1569
- delivery_note_number?: string | null
1570
- quantity_fulfilled?: number | null
1571
- total_po_releases?: number | null
1572
- billing_address?: string | null
1573
- status?: $Enums.InvoiceStatus
1574
- matching_status?: $Enums.InvoiceMatchingStatus
1575
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1576
- notes?: string | null
1577
- business_entity_id?: number | null
1578
- terms_and_conditions?: string | null
1579
- e_way_bill_number?: string | null
1580
- created_at?: Date | string
1581
- created_by?: number | null
1582
- updated_at?: Date | string
1583
- updated_by?: number | null
1584
- is_deleted?: boolean
1585
- deleted_at?: Date | string | null
1586
- deleted_by?: number | null
1587
- }
1588
-
1589
- export type InvoiceUpdateWithoutGrnInput = {
1590
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1591
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1592
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1593
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1594
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1595
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1596
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1597
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1598
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1599
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1600
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1601
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1602
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1603
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1604
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1605
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1606
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1607
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1608
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1609
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1610
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1611
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1612
- purchase_order?: Prisma.PurchaseOrderUpdateOneWithoutInvoicesNestedInput
1613
- business_entity?: Prisma.BusinessEntityUpdateOneWithoutInvoicesNestedInput
1614
- invoice_items?: Prisma.InvoiceItemUpdateManyWithoutInvoiceNestedInput
1615
- }
1616
-
1617
- export type InvoiceUncheckedUpdateWithoutGrnInput = {
1618
- id?: Prisma.IntFieldUpdateOperationsInput | number
1619
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1620
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1621
- purchase_order_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1622
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1623
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1624
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1625
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1626
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1627
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1628
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1629
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1630
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1631
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1632
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1633
- business_entity_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1634
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1635
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1636
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1637
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1638
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1639
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1640
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1641
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1642
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1643
- invoice_items?: Prisma.InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
1644
- }
1645
-
1646
- export type InvoiceUncheckedUpdateManyWithoutGrnInput = {
1647
- id?: Prisma.IntFieldUpdateOperationsInput | number
1648
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1649
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1650
- purchase_order_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1651
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1652
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1653
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1654
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1655
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1656
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1657
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1658
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1659
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1660
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1661
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1662
- business_entity_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1663
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1664
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1665
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1666
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1667
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1668
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1669
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1670
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1671
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1672
- }
1673
-
1674
- export type InvoiceCreateManyBusiness_entityInput = {
1675
- id?: number
1676
- uuid?: string
1677
- invoice_number?: string | null
1678
- purchase_order_id?: number | null
1679
- grn_id?: number | null
1680
- vendor_id?: number | null
1681
- invoice_date?: Date | string | null
1682
- invoice_due_date?: Date | string | null
1683
- delivery_note_number?: string | null
1684
- quantity_fulfilled?: number | null
1685
- total_po_releases?: number | null
1686
- billing_address?: string | null
1687
- status?: $Enums.InvoiceStatus
1688
- matching_status?: $Enums.InvoiceMatchingStatus
1689
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1690
- notes?: string | null
1691
- terms_and_conditions?: string | null
1692
- e_way_bill_number?: string | null
1693
- created_at?: Date | string
1694
- created_by?: number | null
1695
- updated_at?: Date | string
1696
- updated_by?: number | null
1697
- is_deleted?: boolean
1698
- deleted_at?: Date | string | null
1699
- deleted_by?: number | null
1700
- }
1701
-
1702
- export type InvoiceUpdateWithoutBusiness_entityInput = {
1703
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1704
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1705
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1706
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1707
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1708
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1709
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1710
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1711
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1712
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1713
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1714
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1715
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1716
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1717
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1718
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1719
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1720
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1721
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1722
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1723
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1724
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1725
- purchase_order?: Prisma.PurchaseOrderUpdateOneWithoutInvoicesNestedInput
1726
- grn?: Prisma.GRNUpdateOneWithoutInvoicesNestedInput
1727
- invoice_items?: Prisma.InvoiceItemUpdateManyWithoutInvoiceNestedInput
1728
- }
1729
-
1730
- export type InvoiceUncheckedUpdateWithoutBusiness_entityInput = {
1731
- id?: Prisma.IntFieldUpdateOperationsInput | number
1732
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1733
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1734
- purchase_order_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1735
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1736
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1737
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1738
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1739
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1740
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1741
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1742
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1743
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1744
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1745
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1746
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1747
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1748
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1749
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1750
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1751
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1752
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1753
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1754
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1755
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1756
- invoice_items?: Prisma.InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
1757
- }
1758
-
1759
- export type InvoiceUncheckedUpdateManyWithoutBusiness_entityInput = {
1760
- id?: Prisma.IntFieldUpdateOperationsInput | number
1761
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1762
- invoice_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1763
- purchase_order_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1764
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1765
- vendor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1766
- invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1767
- invoice_due_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1768
- delivery_note_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1769
- quantity_fulfilled?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1770
- total_po_releases?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1771
- billing_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1772
- status?: Prisma.EnumInvoiceStatusFieldUpdateOperationsInput | $Enums.InvoiceStatus
1773
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1774
- invoice_documents?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1775
- notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1776
- terms_and_conditions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1777
- e_way_bill_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1778
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1779
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1780
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1781
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1782
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1783
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1784
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1785
- }
1786
-
1787
-
1788
- /**
1789
- * Count Type InvoiceCountOutputType
1790
- */
1791
-
1792
- export type InvoiceCountOutputType = {
1793
- invoice_items: number
1794
- }
1795
-
1796
- export type InvoiceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1797
- invoice_items?: boolean | InvoiceCountOutputTypeCountInvoice_itemsArgs
1798
- }
1799
-
1800
- /**
1801
- * InvoiceCountOutputType without action
1802
- */
1803
- export type InvoiceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1804
- /**
1805
- * Select specific fields to fetch from the InvoiceCountOutputType
1806
- */
1807
- select?: Prisma.InvoiceCountOutputTypeSelect<ExtArgs> | null
1808
- }
1809
-
1810
- /**
1811
- * InvoiceCountOutputType without action
1812
- */
1813
- export type InvoiceCountOutputTypeCountInvoice_itemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1814
- where?: Prisma.InvoiceItemWhereInput
1815
- }
1816
-
1817
-
1818
- export type InvoiceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1819
- id?: boolean
1820
- uuid?: boolean
1821
- invoice_number?: boolean
1822
- purchase_order_id?: boolean
1823
- grn_id?: boolean
1824
- vendor_id?: boolean
1825
- invoice_date?: boolean
1826
- invoice_due_date?: boolean
1827
- delivery_note_number?: boolean
1828
- quantity_fulfilled?: boolean
1829
- total_po_releases?: boolean
1830
- billing_address?: boolean
1831
- status?: boolean
1832
- matching_status?: boolean
1833
- invoice_documents?: boolean
1834
- notes?: boolean
1835
- business_entity_id?: boolean
1836
- terms_and_conditions?: boolean
1837
- e_way_bill_number?: boolean
1838
- created_at?: boolean
1839
- created_by?: boolean
1840
- updated_at?: boolean
1841
- updated_by?: boolean
1842
- is_deleted?: boolean
1843
- deleted_at?: boolean
1844
- deleted_by?: boolean
1845
- purchase_order?: boolean | Prisma.Invoice$purchase_orderArgs<ExtArgs>
1846
- grn?: boolean | Prisma.Invoice$grnArgs<ExtArgs>
1847
- business_entity?: boolean | Prisma.Invoice$business_entityArgs<ExtArgs>
1848
- invoice_items?: boolean | Prisma.Invoice$invoice_itemsArgs<ExtArgs>
1849
- _count?: boolean | Prisma.InvoiceCountOutputTypeDefaultArgs<ExtArgs>
1850
- }, ExtArgs["result"]["invoice"]>
1851
-
1852
- export type InvoiceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1853
- id?: boolean
1854
- uuid?: boolean
1855
- invoice_number?: boolean
1856
- purchase_order_id?: boolean
1857
- grn_id?: boolean
1858
- vendor_id?: boolean
1859
- invoice_date?: boolean
1860
- invoice_due_date?: boolean
1861
- delivery_note_number?: boolean
1862
- quantity_fulfilled?: boolean
1863
- total_po_releases?: boolean
1864
- billing_address?: boolean
1865
- status?: boolean
1866
- matching_status?: boolean
1867
- invoice_documents?: boolean
1868
- notes?: boolean
1869
- business_entity_id?: boolean
1870
- terms_and_conditions?: boolean
1871
- e_way_bill_number?: boolean
1872
- created_at?: boolean
1873
- created_by?: boolean
1874
- updated_at?: boolean
1875
- updated_by?: boolean
1876
- is_deleted?: boolean
1877
- deleted_at?: boolean
1878
- deleted_by?: boolean
1879
- purchase_order?: boolean | Prisma.Invoice$purchase_orderArgs<ExtArgs>
1880
- grn?: boolean | Prisma.Invoice$grnArgs<ExtArgs>
1881
- business_entity?: boolean | Prisma.Invoice$business_entityArgs<ExtArgs>
1882
- }, ExtArgs["result"]["invoice"]>
1883
-
1884
- export type InvoiceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1885
- id?: boolean
1886
- uuid?: boolean
1887
- invoice_number?: boolean
1888
- purchase_order_id?: boolean
1889
- grn_id?: boolean
1890
- vendor_id?: boolean
1891
- invoice_date?: boolean
1892
- invoice_due_date?: boolean
1893
- delivery_note_number?: boolean
1894
- quantity_fulfilled?: boolean
1895
- total_po_releases?: boolean
1896
- billing_address?: boolean
1897
- status?: boolean
1898
- matching_status?: boolean
1899
- invoice_documents?: boolean
1900
- notes?: boolean
1901
- business_entity_id?: boolean
1902
- terms_and_conditions?: boolean
1903
- e_way_bill_number?: boolean
1904
- created_at?: boolean
1905
- created_by?: boolean
1906
- updated_at?: boolean
1907
- updated_by?: boolean
1908
- is_deleted?: boolean
1909
- deleted_at?: boolean
1910
- deleted_by?: boolean
1911
- purchase_order?: boolean | Prisma.Invoice$purchase_orderArgs<ExtArgs>
1912
- grn?: boolean | Prisma.Invoice$grnArgs<ExtArgs>
1913
- business_entity?: boolean | Prisma.Invoice$business_entityArgs<ExtArgs>
1914
- }, ExtArgs["result"]["invoice"]>
1915
-
1916
- export type InvoiceSelectScalar = {
1917
- id?: boolean
1918
- uuid?: boolean
1919
- invoice_number?: boolean
1920
- purchase_order_id?: boolean
1921
- grn_id?: boolean
1922
- vendor_id?: boolean
1923
- invoice_date?: boolean
1924
- invoice_due_date?: boolean
1925
- delivery_note_number?: boolean
1926
- quantity_fulfilled?: boolean
1927
- total_po_releases?: boolean
1928
- billing_address?: boolean
1929
- status?: boolean
1930
- matching_status?: boolean
1931
- invoice_documents?: boolean
1932
- notes?: boolean
1933
- business_entity_id?: boolean
1934
- terms_and_conditions?: boolean
1935
- e_way_bill_number?: boolean
1936
- created_at?: boolean
1937
- created_by?: boolean
1938
- updated_at?: boolean
1939
- updated_by?: boolean
1940
- is_deleted?: boolean
1941
- deleted_at?: boolean
1942
- deleted_by?: boolean
1943
- }
1944
-
1945
- export type InvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "invoice_number" | "purchase_order_id" | "grn_id" | "vendor_id" | "invoice_date" | "invoice_due_date" | "delivery_note_number" | "quantity_fulfilled" | "total_po_releases" | "billing_address" | "status" | "matching_status" | "invoice_documents" | "notes" | "business_entity_id" | "terms_and_conditions" | "e_way_bill_number" | "created_at" | "created_by" | "updated_at" | "updated_by" | "is_deleted" | "deleted_at" | "deleted_by", ExtArgs["result"]["invoice"]>
1946
- export type InvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1947
- purchase_order?: boolean | Prisma.Invoice$purchase_orderArgs<ExtArgs>
1948
- grn?: boolean | Prisma.Invoice$grnArgs<ExtArgs>
1949
- business_entity?: boolean | Prisma.Invoice$business_entityArgs<ExtArgs>
1950
- invoice_items?: boolean | Prisma.Invoice$invoice_itemsArgs<ExtArgs>
1951
- _count?: boolean | Prisma.InvoiceCountOutputTypeDefaultArgs<ExtArgs>
1952
- }
1953
- export type InvoiceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1954
- purchase_order?: boolean | Prisma.Invoice$purchase_orderArgs<ExtArgs>
1955
- grn?: boolean | Prisma.Invoice$grnArgs<ExtArgs>
1956
- business_entity?: boolean | Prisma.Invoice$business_entityArgs<ExtArgs>
1957
- }
1958
- export type InvoiceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1959
- purchase_order?: boolean | Prisma.Invoice$purchase_orderArgs<ExtArgs>
1960
- grn?: boolean | Prisma.Invoice$grnArgs<ExtArgs>
1961
- business_entity?: boolean | Prisma.Invoice$business_entityArgs<ExtArgs>
1962
- }
1963
-
1964
- export type $InvoicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1965
- name: "Invoice"
1966
- objects: {
1967
- purchase_order: Prisma.$PurchaseOrderPayload<ExtArgs> | null
1968
- grn: Prisma.$GRNPayload<ExtArgs> | null
1969
- business_entity: Prisma.$BusinessEntityPayload<ExtArgs> | null
1970
- invoice_items: Prisma.$InvoiceItemPayload<ExtArgs>[]
1971
- }
1972
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1973
- id: number
1974
- uuid: string
1975
- invoice_number: string | null
1976
- purchase_order_id: number | null
1977
- grn_id: number | null
1978
- vendor_id: number | null
1979
- invoice_date: Date | null
1980
- invoice_due_date: Date | null
1981
- delivery_note_number: string | null
1982
- quantity_fulfilled: number | null
1983
- total_po_releases: number | null
1984
- billing_address: string | null
1985
- status: $Enums.InvoiceStatus
1986
- matching_status: $Enums.InvoiceMatchingStatus
1987
- invoice_documents: runtime.JsonValue | null
1988
- notes: string | null
1989
- business_entity_id: number | null
1990
- terms_and_conditions: string | null
1991
- e_way_bill_number: string | null
1992
- created_at: Date
1993
- created_by: number | null
1994
- updated_at: Date
1995
- updated_by: number | null
1996
- is_deleted: boolean
1997
- deleted_at: Date | null
1998
- deleted_by: number | null
1999
- }, ExtArgs["result"]["invoice"]>
2000
- composites: {}
2001
- }
2002
-
2003
- export type InvoiceGetPayload<S extends boolean | null | undefined | InvoiceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InvoicePayload, S>
2004
-
2005
- export type InvoiceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
2006
- Omit<InvoiceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
2007
- select?: InvoiceCountAggregateInputType | true
2008
- }
2009
-
2010
- export interface InvoiceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
2011
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Invoice'], meta: { name: 'Invoice' } }
2012
- /**
2013
- * Find zero or one Invoice that matches the filter.
2014
- * @param {InvoiceFindUniqueArgs} args - Arguments to find a Invoice
2015
- * @example
2016
- * // Get one Invoice
2017
- * const invoice = await prisma.invoice.findUnique({
2018
- * where: {
2019
- * // ... provide filter here
2020
- * }
2021
- * })
2022
- */
2023
- findUnique<T extends InvoiceFindUniqueArgs>(args: Prisma.SelectSubset<T, InvoiceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2024
-
2025
- /**
2026
- * Find one Invoice that matches the filter or throw an error with `error.code='P2025'`
2027
- * if no matches were found.
2028
- * @param {InvoiceFindUniqueOrThrowArgs} args - Arguments to find a Invoice
2029
- * @example
2030
- * // Get one Invoice
2031
- * const invoice = await prisma.invoice.findUniqueOrThrow({
2032
- * where: {
2033
- * // ... provide filter here
2034
- * }
2035
- * })
2036
- */
2037
- findUniqueOrThrow<T extends InvoiceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InvoiceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
2038
-
2039
- /**
2040
- * Find the first Invoice that matches the filter.
2041
- * Note, that providing `undefined` is treated as the value not being there.
2042
- * Read more here: https://pris.ly/d/null-undefined
2043
- * @param {InvoiceFindFirstArgs} args - Arguments to find a Invoice
2044
- * @example
2045
- * // Get one Invoice
2046
- * const invoice = await prisma.invoice.findFirst({
2047
- * where: {
2048
- * // ... provide filter here
2049
- * }
2050
- * })
2051
- */
2052
- findFirst<T extends InvoiceFindFirstArgs>(args?: Prisma.SelectSubset<T, InvoiceFindFirstArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2053
-
2054
- /**
2055
- * Find the first Invoice that matches the filter or
2056
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
2057
- * Note, that providing `undefined` is treated as the value not being there.
2058
- * Read more here: https://pris.ly/d/null-undefined
2059
- * @param {InvoiceFindFirstOrThrowArgs} args - Arguments to find a Invoice
2060
- * @example
2061
- * // Get one Invoice
2062
- * const invoice = await prisma.invoice.findFirstOrThrow({
2063
- * where: {
2064
- * // ... provide filter here
2065
- * }
2066
- * })
2067
- */
2068
- findFirstOrThrow<T extends InvoiceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InvoiceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
2069
-
2070
- /**
2071
- * Find zero or more Invoices that matches the filter.
2072
- * Note, that providing `undefined` is treated as the value not being there.
2073
- * Read more here: https://pris.ly/d/null-undefined
2074
- * @param {InvoiceFindManyArgs} args - Arguments to filter and select certain fields only.
2075
- * @example
2076
- * // Get all Invoices
2077
- * const invoices = await prisma.invoice.findMany()
2078
- *
2079
- * // Get first 10 Invoices
2080
- * const invoices = await prisma.invoice.findMany({ take: 10 })
2081
- *
2082
- * // Only select the `id`
2083
- * const invoiceWithIdOnly = await prisma.invoice.findMany({ select: { id: true } })
2084
- *
2085
- */
2086
- findMany<T extends InvoiceFindManyArgs>(args?: Prisma.SelectSubset<T, InvoiceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
2087
-
2088
- /**
2089
- * Create a Invoice.
2090
- * @param {InvoiceCreateArgs} args - Arguments to create a Invoice.
2091
- * @example
2092
- * // Create one Invoice
2093
- * const Invoice = await prisma.invoice.create({
2094
- * data: {
2095
- * // ... data to create a Invoice
2096
- * }
2097
- * })
2098
- *
2099
- */
2100
- create<T extends InvoiceCreateArgs>(args: Prisma.SelectSubset<T, InvoiceCreateArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
2101
-
2102
- /**
2103
- * Create many Invoices.
2104
- * @param {InvoiceCreateManyArgs} args - Arguments to create many Invoices.
2105
- * @example
2106
- * // Create many Invoices
2107
- * const invoice = await prisma.invoice.createMany({
2108
- * data: [
2109
- * // ... provide data here
2110
- * ]
2111
- * })
2112
- *
2113
- */
2114
- createMany<T extends InvoiceCreateManyArgs>(args?: Prisma.SelectSubset<T, InvoiceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
2115
-
2116
- /**
2117
- * Create many Invoices and returns the data saved in the database.
2118
- * @param {InvoiceCreateManyAndReturnArgs} args - Arguments to create many Invoices.
2119
- * @example
2120
- * // Create many Invoices
2121
- * const invoice = await prisma.invoice.createManyAndReturn({
2122
- * data: [
2123
- * // ... provide data here
2124
- * ]
2125
- * })
2126
- *
2127
- * // Create many Invoices and only return the `id`
2128
- * const invoiceWithIdOnly = await prisma.invoice.createManyAndReturn({
2129
- * select: { id: true },
2130
- * data: [
2131
- * // ... provide data here
2132
- * ]
2133
- * })
2134
- * Note, that providing `undefined` is treated as the value not being there.
2135
- * Read more here: https://pris.ly/d/null-undefined
2136
- *
2137
- */
2138
- createManyAndReturn<T extends InvoiceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InvoiceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
2139
-
2140
- /**
2141
- * Delete a Invoice.
2142
- * @param {InvoiceDeleteArgs} args - Arguments to delete one Invoice.
2143
- * @example
2144
- * // Delete one Invoice
2145
- * const Invoice = await prisma.invoice.delete({
2146
- * where: {
2147
- * // ... filter to delete one Invoice
2148
- * }
2149
- * })
2150
- *
2151
- */
2152
- delete<T extends InvoiceDeleteArgs>(args: Prisma.SelectSubset<T, InvoiceDeleteArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
2153
-
2154
- /**
2155
- * Update one Invoice.
2156
- * @param {InvoiceUpdateArgs} args - Arguments to update one Invoice.
2157
- * @example
2158
- * // Update one Invoice
2159
- * const invoice = await prisma.invoice.update({
2160
- * where: {
2161
- * // ... provide filter here
2162
- * },
2163
- * data: {
2164
- * // ... provide data here
2165
- * }
2166
- * })
2167
- *
2168
- */
2169
- update<T extends InvoiceUpdateArgs>(args: Prisma.SelectSubset<T, InvoiceUpdateArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
2170
-
2171
- /**
2172
- * Delete zero or more Invoices.
2173
- * @param {InvoiceDeleteManyArgs} args - Arguments to filter Invoices to delete.
2174
- * @example
2175
- * // Delete a few Invoices
2176
- * const { count } = await prisma.invoice.deleteMany({
2177
- * where: {
2178
- * // ... provide filter here
2179
- * }
2180
- * })
2181
- *
2182
- */
2183
- deleteMany<T extends InvoiceDeleteManyArgs>(args?: Prisma.SelectSubset<T, InvoiceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
2184
-
2185
- /**
2186
- * Update zero or more Invoices.
2187
- * Note, that providing `undefined` is treated as the value not being there.
2188
- * Read more here: https://pris.ly/d/null-undefined
2189
- * @param {InvoiceUpdateManyArgs} args - Arguments to update one or more rows.
2190
- * @example
2191
- * // Update many Invoices
2192
- * const invoice = await prisma.invoice.updateMany({
2193
- * where: {
2194
- * // ... provide filter here
2195
- * },
2196
- * data: {
2197
- * // ... provide data here
2198
- * }
2199
- * })
2200
- *
2201
- */
2202
- updateMany<T extends InvoiceUpdateManyArgs>(args: Prisma.SelectSubset<T, InvoiceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
2203
-
2204
- /**
2205
- * Update zero or more Invoices and returns the data updated in the database.
2206
- * @param {InvoiceUpdateManyAndReturnArgs} args - Arguments to update many Invoices.
2207
- * @example
2208
- * // Update many Invoices
2209
- * const invoice = await prisma.invoice.updateManyAndReturn({
2210
- * where: {
2211
- * // ... provide filter here
2212
- * },
2213
- * data: [
2214
- * // ... provide data here
2215
- * ]
2216
- * })
2217
- *
2218
- * // Update zero or more Invoices and only return the `id`
2219
- * const invoiceWithIdOnly = await prisma.invoice.updateManyAndReturn({
2220
- * select: { id: true },
2221
- * where: {
2222
- * // ... provide filter here
2223
- * },
2224
- * data: [
2225
- * // ... provide data here
2226
- * ]
2227
- * })
2228
- * Note, that providing `undefined` is treated as the value not being there.
2229
- * Read more here: https://pris.ly/d/null-undefined
2230
- *
2231
- */
2232
- updateManyAndReturn<T extends InvoiceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InvoiceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
2233
-
2234
- /**
2235
- * Create or update one Invoice.
2236
- * @param {InvoiceUpsertArgs} args - Arguments to update or create a Invoice.
2237
- * @example
2238
- * // Update or create a Invoice
2239
- * const invoice = await prisma.invoice.upsert({
2240
- * create: {
2241
- * // ... data to create a Invoice
2242
- * },
2243
- * update: {
2244
- * // ... in case it already exists, update
2245
- * },
2246
- * where: {
2247
- * // ... the filter for the Invoice we want to update
2248
- * }
2249
- * })
2250
- */
2251
- upsert<T extends InvoiceUpsertArgs>(args: Prisma.SelectSubset<T, InvoiceUpsertArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
2252
-
2253
-
2254
- /**
2255
- * Count the number of Invoices.
2256
- * Note, that providing `undefined` is treated as the value not being there.
2257
- * Read more here: https://pris.ly/d/null-undefined
2258
- * @param {InvoiceCountArgs} args - Arguments to filter Invoices to count.
2259
- * @example
2260
- * // Count the number of Invoices
2261
- * const count = await prisma.invoice.count({
2262
- * where: {
2263
- * // ... the filter for the Invoices we want to count
2264
- * }
2265
- * })
2266
- **/
2267
- count<T extends InvoiceCountArgs>(
2268
- args?: Prisma.Subset<T, InvoiceCountArgs>,
2269
- ): Prisma.PrismaPromise<
2270
- T extends runtime.Types.Utils.Record<'select', any>
2271
- ? T['select'] extends true
2272
- ? number
2273
- : Prisma.GetScalarType<T['select'], InvoiceCountAggregateOutputType>
2274
- : number
2275
- >
2276
-
2277
- /**
2278
- * Allows you to perform aggregations operations on a Invoice.
2279
- * Note, that providing `undefined` is treated as the value not being there.
2280
- * Read more here: https://pris.ly/d/null-undefined
2281
- * @param {InvoiceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2282
- * @example
2283
- * // Ordered by age ascending
2284
- * // Where email contains prisma.io
2285
- * // Limited to the 10 users
2286
- * const aggregations = await prisma.user.aggregate({
2287
- * _avg: {
2288
- * age: true,
2289
- * },
2290
- * where: {
2291
- * email: {
2292
- * contains: "prisma.io",
2293
- * },
2294
- * },
2295
- * orderBy: {
2296
- * age: "asc",
2297
- * },
2298
- * take: 10,
2299
- * })
2300
- **/
2301
- aggregate<T extends InvoiceAggregateArgs>(args: Prisma.Subset<T, InvoiceAggregateArgs>): Prisma.PrismaPromise<GetInvoiceAggregateType<T>>
2302
-
2303
- /**
2304
- * Group by Invoice.
2305
- * Note, that providing `undefined` is treated as the value not being there.
2306
- * Read more here: https://pris.ly/d/null-undefined
2307
- * @param {InvoiceGroupByArgs} args - Group by arguments.
2308
- * @example
2309
- * // Group by city, order by createdAt, get count
2310
- * const result = await prisma.user.groupBy({
2311
- * by: ['city', 'createdAt'],
2312
- * orderBy: {
2313
- * createdAt: true
2314
- * },
2315
- * _count: {
2316
- * _all: true
2317
- * },
2318
- * })
2319
- *
2320
- **/
2321
- groupBy<
2322
- T extends InvoiceGroupByArgs,
2323
- HasSelectOrTake extends Prisma.Or<
2324
- Prisma.Extends<'skip', Prisma.Keys<T>>,
2325
- Prisma.Extends<'take', Prisma.Keys<T>>
2326
- >,
2327
- OrderByArg extends Prisma.True extends HasSelectOrTake
2328
- ? { orderBy: InvoiceGroupByArgs['orderBy'] }
2329
- : { orderBy?: InvoiceGroupByArgs['orderBy'] },
2330
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
2331
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
2332
- ByValid extends Prisma.Has<ByFields, OrderFields>,
2333
- HavingFields extends Prisma.GetHavingFields<T['having']>,
2334
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
2335
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
2336
- InputErrors extends ByEmpty extends Prisma.True
2337
- ? `Error: "by" must not be empty.`
2338
- : HavingValid extends Prisma.False
2339
- ? {
2340
- [P in HavingFields]: P extends ByFields
2341
- ? never
2342
- : P extends string
2343
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
2344
- : [
2345
- Error,
2346
- 'Field ',
2347
- P,
2348
- ` in "having" needs to be provided in "by"`,
2349
- ]
2350
- }[HavingFields]
2351
- : 'take' extends Prisma.Keys<T>
2352
- ? 'orderBy' extends Prisma.Keys<T>
2353
- ? ByValid extends Prisma.True
2354
- ? {}
2355
- : {
2356
- [P in OrderFields]: P extends ByFields
2357
- ? never
2358
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2359
- }[OrderFields]
2360
- : 'Error: If you provide "take", you also need to provide "orderBy"'
2361
- : 'skip' extends Prisma.Keys<T>
2362
- ? 'orderBy' extends Prisma.Keys<T>
2363
- ? ByValid extends Prisma.True
2364
- ? {}
2365
- : {
2366
- [P in OrderFields]: P extends ByFields
2367
- ? never
2368
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2369
- }[OrderFields]
2370
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
2371
- : ByValid extends Prisma.True
2372
- ? {}
2373
- : {
2374
- [P in OrderFields]: P extends ByFields
2375
- ? never
2376
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2377
- }[OrderFields]
2378
- >(args: Prisma.SubsetIntersection<T, InvoiceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvoiceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
2379
- /**
2380
- * Fields of the Invoice model
2381
- */
2382
- readonly fields: InvoiceFieldRefs;
2383
- }
2384
-
2385
- /**
2386
- * The delegate class that acts as a "Promise-like" for Invoice.
2387
- * Why is this prefixed with `Prisma__`?
2388
- * Because we want to prevent naming conflicts as mentioned in
2389
- * https://github.com/prisma/prisma-client-js/issues/707
2390
- */
2391
- export interface Prisma__InvoiceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2392
- readonly [Symbol.toStringTag]: "PrismaPromise"
2393
- purchase_order<T extends Prisma.Invoice$purchase_orderArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Invoice$purchase_orderArgs<ExtArgs>>): Prisma.Prisma__PurchaseOrderClient<runtime.Types.Result.GetResult<Prisma.$PurchaseOrderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2394
- grn<T extends Prisma.Invoice$grnArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Invoice$grnArgs<ExtArgs>>): Prisma.Prisma__GRNClient<runtime.Types.Result.GetResult<Prisma.$GRNPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2395
- business_entity<T extends Prisma.Invoice$business_entityArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Invoice$business_entityArgs<ExtArgs>>): Prisma.Prisma__BusinessEntityClient<runtime.Types.Result.GetResult<Prisma.$BusinessEntityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
2396
- invoice_items<T extends Prisma.Invoice$invoice_itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Invoice$invoice_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2397
- /**
2398
- * Attaches callbacks for the resolution and/or rejection of the Promise.
2399
- * @param onfulfilled The callback to execute when the Promise is resolved.
2400
- * @param onrejected The callback to execute when the Promise is rejected.
2401
- * @returns A Promise for the completion of which ever callback is executed.
2402
- */
2403
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
2404
- /**
2405
- * Attaches a callback for only the rejection of the Promise.
2406
- * @param onrejected The callback to execute when the Promise is rejected.
2407
- * @returns A Promise for the completion of the callback.
2408
- */
2409
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
2410
- /**
2411
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2412
- * resolved value cannot be modified from the callback.
2413
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2414
- * @returns A Promise for the completion of the callback.
2415
- */
2416
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
2417
- }
2418
-
2419
-
2420
-
2421
-
2422
- /**
2423
- * Fields of the Invoice model
2424
- */
2425
- export interface InvoiceFieldRefs {
2426
- readonly id: Prisma.FieldRef<"Invoice", 'Int'>
2427
- readonly uuid: Prisma.FieldRef<"Invoice", 'String'>
2428
- readonly invoice_number: Prisma.FieldRef<"Invoice", 'String'>
2429
- readonly purchase_order_id: Prisma.FieldRef<"Invoice", 'Int'>
2430
- readonly grn_id: Prisma.FieldRef<"Invoice", 'Int'>
2431
- readonly vendor_id: Prisma.FieldRef<"Invoice", 'Int'>
2432
- readonly invoice_date: Prisma.FieldRef<"Invoice", 'DateTime'>
2433
- readonly invoice_due_date: Prisma.FieldRef<"Invoice", 'DateTime'>
2434
- readonly delivery_note_number: Prisma.FieldRef<"Invoice", 'String'>
2435
- readonly quantity_fulfilled: Prisma.FieldRef<"Invoice", 'Int'>
2436
- readonly total_po_releases: Prisma.FieldRef<"Invoice", 'Int'>
2437
- readonly billing_address: Prisma.FieldRef<"Invoice", 'String'>
2438
- readonly status: Prisma.FieldRef<"Invoice", 'InvoiceStatus'>
2439
- readonly matching_status: Prisma.FieldRef<"Invoice", 'InvoiceMatchingStatus'>
2440
- readonly invoice_documents: Prisma.FieldRef<"Invoice", 'Json'>
2441
- readonly notes: Prisma.FieldRef<"Invoice", 'String'>
2442
- readonly business_entity_id: Prisma.FieldRef<"Invoice", 'Int'>
2443
- readonly terms_and_conditions: Prisma.FieldRef<"Invoice", 'String'>
2444
- readonly e_way_bill_number: Prisma.FieldRef<"Invoice", 'String'>
2445
- readonly created_at: Prisma.FieldRef<"Invoice", 'DateTime'>
2446
- readonly created_by: Prisma.FieldRef<"Invoice", 'Int'>
2447
- readonly updated_at: Prisma.FieldRef<"Invoice", 'DateTime'>
2448
- readonly updated_by: Prisma.FieldRef<"Invoice", 'Int'>
2449
- readonly is_deleted: Prisma.FieldRef<"Invoice", 'Boolean'>
2450
- readonly deleted_at: Prisma.FieldRef<"Invoice", 'DateTime'>
2451
- readonly deleted_by: Prisma.FieldRef<"Invoice", 'Int'>
2452
- }
2453
-
2454
-
2455
- // Custom InputTypes
2456
- /**
2457
- * Invoice findUnique
2458
- */
2459
- export type InvoiceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2460
- /**
2461
- * Select specific fields to fetch from the Invoice
2462
- */
2463
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2464
- /**
2465
- * Omit specific fields from the Invoice
2466
- */
2467
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2468
- /**
2469
- * Choose, which related nodes to fetch as well
2470
- */
2471
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2472
- /**
2473
- * Filter, which Invoice to fetch.
2474
- */
2475
- where: Prisma.InvoiceWhereUniqueInput
2476
- }
2477
-
2478
- /**
2479
- * Invoice findUniqueOrThrow
2480
- */
2481
- export type InvoiceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2482
- /**
2483
- * Select specific fields to fetch from the Invoice
2484
- */
2485
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2486
- /**
2487
- * Omit specific fields from the Invoice
2488
- */
2489
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2490
- /**
2491
- * Choose, which related nodes to fetch as well
2492
- */
2493
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2494
- /**
2495
- * Filter, which Invoice to fetch.
2496
- */
2497
- where: Prisma.InvoiceWhereUniqueInput
2498
- }
2499
-
2500
- /**
2501
- * Invoice findFirst
2502
- */
2503
- export type InvoiceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2504
- /**
2505
- * Select specific fields to fetch from the Invoice
2506
- */
2507
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2508
- /**
2509
- * Omit specific fields from the Invoice
2510
- */
2511
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2512
- /**
2513
- * Choose, which related nodes to fetch as well
2514
- */
2515
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2516
- /**
2517
- * Filter, which Invoice to fetch.
2518
- */
2519
- where?: Prisma.InvoiceWhereInput
2520
- /**
2521
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2522
- *
2523
- * Determine the order of Invoices to fetch.
2524
- */
2525
- orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
2526
- /**
2527
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2528
- *
2529
- * Sets the position for searching for Invoices.
2530
- */
2531
- cursor?: Prisma.InvoiceWhereUniqueInput
2532
- /**
2533
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2534
- *
2535
- * Take `±n` Invoices from the position of the cursor.
2536
- */
2537
- take?: number
2538
- /**
2539
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2540
- *
2541
- * Skip the first `n` Invoices.
2542
- */
2543
- skip?: number
2544
- /**
2545
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2546
- *
2547
- * Filter by unique combinations of Invoices.
2548
- */
2549
- distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
2550
- }
2551
-
2552
- /**
2553
- * Invoice findFirstOrThrow
2554
- */
2555
- export type InvoiceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2556
- /**
2557
- * Select specific fields to fetch from the Invoice
2558
- */
2559
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2560
- /**
2561
- * Omit specific fields from the Invoice
2562
- */
2563
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2564
- /**
2565
- * Choose, which related nodes to fetch as well
2566
- */
2567
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2568
- /**
2569
- * Filter, which Invoice to fetch.
2570
- */
2571
- where?: Prisma.InvoiceWhereInput
2572
- /**
2573
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2574
- *
2575
- * Determine the order of Invoices to fetch.
2576
- */
2577
- orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
2578
- /**
2579
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2580
- *
2581
- * Sets the position for searching for Invoices.
2582
- */
2583
- cursor?: Prisma.InvoiceWhereUniqueInput
2584
- /**
2585
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2586
- *
2587
- * Take `±n` Invoices from the position of the cursor.
2588
- */
2589
- take?: number
2590
- /**
2591
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2592
- *
2593
- * Skip the first `n` Invoices.
2594
- */
2595
- skip?: number
2596
- /**
2597
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2598
- *
2599
- * Filter by unique combinations of Invoices.
2600
- */
2601
- distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
2602
- }
2603
-
2604
- /**
2605
- * Invoice findMany
2606
- */
2607
- export type InvoiceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2608
- /**
2609
- * Select specific fields to fetch from the Invoice
2610
- */
2611
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2612
- /**
2613
- * Omit specific fields from the Invoice
2614
- */
2615
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2616
- /**
2617
- * Choose, which related nodes to fetch as well
2618
- */
2619
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2620
- /**
2621
- * Filter, which Invoices to fetch.
2622
- */
2623
- where?: Prisma.InvoiceWhereInput
2624
- /**
2625
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2626
- *
2627
- * Determine the order of Invoices to fetch.
2628
- */
2629
- orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
2630
- /**
2631
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2632
- *
2633
- * Sets the position for listing Invoices.
2634
- */
2635
- cursor?: Prisma.InvoiceWhereUniqueInput
2636
- /**
2637
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2638
- *
2639
- * Take `±n` Invoices from the position of the cursor.
2640
- */
2641
- take?: number
2642
- /**
2643
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2644
- *
2645
- * Skip the first `n` Invoices.
2646
- */
2647
- skip?: number
2648
- /**
2649
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2650
- *
2651
- * Filter by unique combinations of Invoices.
2652
- */
2653
- distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
2654
- }
2655
-
2656
- /**
2657
- * Invoice create
2658
- */
2659
- export type InvoiceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2660
- /**
2661
- * Select specific fields to fetch from the Invoice
2662
- */
2663
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2664
- /**
2665
- * Omit specific fields from the Invoice
2666
- */
2667
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2668
- /**
2669
- * Choose, which related nodes to fetch as well
2670
- */
2671
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2672
- /**
2673
- * The data needed to create a Invoice.
2674
- */
2675
- data: Prisma.XOR<Prisma.InvoiceCreateInput, Prisma.InvoiceUncheckedCreateInput>
2676
- }
2677
-
2678
- /**
2679
- * Invoice createMany
2680
- */
2681
- export type InvoiceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2682
- /**
2683
- * The data used to create many Invoices.
2684
- */
2685
- data: Prisma.InvoiceCreateManyInput | Prisma.InvoiceCreateManyInput[]
2686
- skipDuplicates?: boolean
2687
- }
2688
-
2689
- /**
2690
- * Invoice createManyAndReturn
2691
- */
2692
- export type InvoiceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2693
- /**
2694
- * Select specific fields to fetch from the Invoice
2695
- */
2696
- select?: Prisma.InvoiceSelectCreateManyAndReturn<ExtArgs> | null
2697
- /**
2698
- * Omit specific fields from the Invoice
2699
- */
2700
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2701
- /**
2702
- * The data used to create many Invoices.
2703
- */
2704
- data: Prisma.InvoiceCreateManyInput | Prisma.InvoiceCreateManyInput[]
2705
- skipDuplicates?: boolean
2706
- /**
2707
- * Choose, which related nodes to fetch as well
2708
- */
2709
- include?: Prisma.InvoiceIncludeCreateManyAndReturn<ExtArgs> | null
2710
- }
2711
-
2712
- /**
2713
- * Invoice update
2714
- */
2715
- export type InvoiceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2716
- /**
2717
- * Select specific fields to fetch from the Invoice
2718
- */
2719
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2720
- /**
2721
- * Omit specific fields from the Invoice
2722
- */
2723
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2724
- /**
2725
- * Choose, which related nodes to fetch as well
2726
- */
2727
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2728
- /**
2729
- * The data needed to update a Invoice.
2730
- */
2731
- data: Prisma.XOR<Prisma.InvoiceUpdateInput, Prisma.InvoiceUncheckedUpdateInput>
2732
- /**
2733
- * Choose, which Invoice to update.
2734
- */
2735
- where: Prisma.InvoiceWhereUniqueInput
2736
- }
2737
-
2738
- /**
2739
- * Invoice updateMany
2740
- */
2741
- export type InvoiceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2742
- /**
2743
- * The data used to update Invoices.
2744
- */
2745
- data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyInput>
2746
- /**
2747
- * Filter which Invoices to update
2748
- */
2749
- where?: Prisma.InvoiceWhereInput
2750
- /**
2751
- * Limit how many Invoices to update.
2752
- */
2753
- limit?: number
2754
- }
2755
-
2756
- /**
2757
- * Invoice updateManyAndReturn
2758
- */
2759
- export type InvoiceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2760
- /**
2761
- * Select specific fields to fetch from the Invoice
2762
- */
2763
- select?: Prisma.InvoiceSelectUpdateManyAndReturn<ExtArgs> | null
2764
- /**
2765
- * Omit specific fields from the Invoice
2766
- */
2767
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2768
- /**
2769
- * The data used to update Invoices.
2770
- */
2771
- data: Prisma.XOR<Prisma.InvoiceUpdateManyMutationInput, Prisma.InvoiceUncheckedUpdateManyInput>
2772
- /**
2773
- * Filter which Invoices to update
2774
- */
2775
- where?: Prisma.InvoiceWhereInput
2776
- /**
2777
- * Limit how many Invoices to update.
2778
- */
2779
- limit?: number
2780
- /**
2781
- * Choose, which related nodes to fetch as well
2782
- */
2783
- include?: Prisma.InvoiceIncludeUpdateManyAndReturn<ExtArgs> | null
2784
- }
2785
-
2786
- /**
2787
- * Invoice upsert
2788
- */
2789
- export type InvoiceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2790
- /**
2791
- * Select specific fields to fetch from the Invoice
2792
- */
2793
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2794
- /**
2795
- * Omit specific fields from the Invoice
2796
- */
2797
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2798
- /**
2799
- * Choose, which related nodes to fetch as well
2800
- */
2801
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2802
- /**
2803
- * The filter to search for the Invoice to update in case it exists.
2804
- */
2805
- where: Prisma.InvoiceWhereUniqueInput
2806
- /**
2807
- * In case the Invoice found by the `where` argument doesn't exist, create a new Invoice with this data.
2808
- */
2809
- create: Prisma.XOR<Prisma.InvoiceCreateInput, Prisma.InvoiceUncheckedCreateInput>
2810
- /**
2811
- * In case the Invoice was found with the provided `where` argument, update it with this data.
2812
- */
2813
- update: Prisma.XOR<Prisma.InvoiceUpdateInput, Prisma.InvoiceUncheckedUpdateInput>
2814
- }
2815
-
2816
- /**
2817
- * Invoice delete
2818
- */
2819
- export type InvoiceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2820
- /**
2821
- * Select specific fields to fetch from the Invoice
2822
- */
2823
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2824
- /**
2825
- * Omit specific fields from the Invoice
2826
- */
2827
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2828
- /**
2829
- * Choose, which related nodes to fetch as well
2830
- */
2831
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2832
- /**
2833
- * Filter which Invoice to delete.
2834
- */
2835
- where: Prisma.InvoiceWhereUniqueInput
2836
- }
2837
-
2838
- /**
2839
- * Invoice deleteMany
2840
- */
2841
- export type InvoiceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2842
- /**
2843
- * Filter which Invoices to delete
2844
- */
2845
- where?: Prisma.InvoiceWhereInput
2846
- /**
2847
- * Limit how many Invoices to delete.
2848
- */
2849
- limit?: number
2850
- }
2851
-
2852
- /**
2853
- * Invoice.purchase_order
2854
- */
2855
- export type Invoice$purchase_orderArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2856
- /**
2857
- * Select specific fields to fetch from the PurchaseOrder
2858
- */
2859
- select?: Prisma.PurchaseOrderSelect<ExtArgs> | null
2860
- /**
2861
- * Omit specific fields from the PurchaseOrder
2862
- */
2863
- omit?: Prisma.PurchaseOrderOmit<ExtArgs> | null
2864
- /**
2865
- * Choose, which related nodes to fetch as well
2866
- */
2867
- include?: Prisma.PurchaseOrderInclude<ExtArgs> | null
2868
- where?: Prisma.PurchaseOrderWhereInput
2869
- }
2870
-
2871
- /**
2872
- * Invoice.grn
2873
- */
2874
- export type Invoice$grnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2875
- /**
2876
- * Select specific fields to fetch from the GRN
2877
- */
2878
- select?: Prisma.GRNSelect<ExtArgs> | null
2879
- /**
2880
- * Omit specific fields from the GRN
2881
- */
2882
- omit?: Prisma.GRNOmit<ExtArgs> | null
2883
- /**
2884
- * Choose, which related nodes to fetch as well
2885
- */
2886
- include?: Prisma.GRNInclude<ExtArgs> | null
2887
- where?: Prisma.GRNWhereInput
2888
- }
2889
-
2890
- /**
2891
- * Invoice.business_entity
2892
- */
2893
- export type Invoice$business_entityArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2894
- /**
2895
- * Select specific fields to fetch from the BusinessEntity
2896
- */
2897
- select?: Prisma.BusinessEntitySelect<ExtArgs> | null
2898
- /**
2899
- * Omit specific fields from the BusinessEntity
2900
- */
2901
- omit?: Prisma.BusinessEntityOmit<ExtArgs> | null
2902
- /**
2903
- * Choose, which related nodes to fetch as well
2904
- */
2905
- include?: Prisma.BusinessEntityInclude<ExtArgs> | null
2906
- where?: Prisma.BusinessEntityWhereInput
2907
- }
2908
-
2909
- /**
2910
- * Invoice.invoice_items
2911
- */
2912
- export type Invoice$invoice_itemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2913
- /**
2914
- * Select specific fields to fetch from the InvoiceItem
2915
- */
2916
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
2917
- /**
2918
- * Omit specific fields from the InvoiceItem
2919
- */
2920
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2921
- /**
2922
- * Choose, which related nodes to fetch as well
2923
- */
2924
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
2925
- where?: Prisma.InvoiceItemWhereInput
2926
- orderBy?: Prisma.InvoiceItemOrderByWithRelationInput | Prisma.InvoiceItemOrderByWithRelationInput[]
2927
- cursor?: Prisma.InvoiceItemWhereUniqueInput
2928
- take?: number
2929
- skip?: number
2930
- distinct?: Prisma.InvoiceItemScalarFieldEnum | Prisma.InvoiceItemScalarFieldEnum[]
2931
- }
2932
-
2933
- /**
2934
- * Invoice without action
2935
- */
2936
- export type InvoiceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2937
- /**
2938
- * Select specific fields to fetch from the Invoice
2939
- */
2940
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2941
- /**
2942
- * Omit specific fields from the Invoice
2943
- */
2944
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2945
- /**
2946
- * Choose, which related nodes to fetch as well
2947
- */
2948
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2949
- }