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,2397 +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 `InvoiceItem` 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 InvoiceItem
17
- *
18
- */
19
- export type InvoiceItemModel = runtime.Types.Result.DefaultSelection<Prisma.$InvoiceItemPayload>
20
-
21
- export type AggregateInvoiceItem = {
22
- _count: InvoiceItemCountAggregateOutputType | null
23
- _avg: InvoiceItemAvgAggregateOutputType | null
24
- _sum: InvoiceItemSumAggregateOutputType | null
25
- _min: InvoiceItemMinAggregateOutputType | null
26
- _max: InvoiceItemMaxAggregateOutputType | null
27
- }
28
-
29
- export type InvoiceItemAvgAggregateOutputType = {
30
- id: number | null
31
- invoice_id: number | null
32
- purchase_order_item_id: number | null
33
- ordered_quantity: number | null
34
- invoice_quantity: number | null
35
- unit_amount: runtime.Decimal | null
36
- total_amount: runtime.Decimal | null
37
- po_quantity: number | null
38
- grn_quantity: number | null
39
- quality_quantity: number | null
40
- resolved_by: number | null
41
- created_by: number | null
42
- updated_by: number | null
43
- deleted_by: number | null
44
- }
45
-
46
- export type InvoiceItemSumAggregateOutputType = {
47
- id: number | null
48
- invoice_id: number | null
49
- purchase_order_item_id: number | null
50
- ordered_quantity: number | null
51
- invoice_quantity: number | null
52
- unit_amount: runtime.Decimal | null
53
- total_amount: runtime.Decimal | null
54
- po_quantity: number | null
55
- grn_quantity: number | null
56
- quality_quantity: number | null
57
- resolved_by: number | null
58
- created_by: number | null
59
- updated_by: number | null
60
- deleted_by: number | null
61
- }
62
-
63
- export type InvoiceItemMinAggregateOutputType = {
64
- id: number | null
65
- uuid: string | null
66
- invoice_id: number | null
67
- purchase_order_item_id: number | null
68
- ordered_quantity: number | null
69
- invoice_quantity: number | null
70
- uom: string | null
71
- unit_amount: runtime.Decimal | null
72
- total_amount: runtime.Decimal | null
73
- po_quantity: number | null
74
- grn_quantity: number | null
75
- quality_quantity: number | null
76
- matching_status: $Enums.InvoiceMatchingStatus | null
77
- resolution_action: string | null
78
- resolution_remarks: string | null
79
- resolved_at: Date | null
80
- resolved_by: number | null
81
- created_at: Date | null
82
- created_by: number | null
83
- updated_at: Date | null
84
- updated_by: number | null
85
- is_deleted: boolean | null
86
- deleted_at: Date | null
87
- deleted_by: number | null
88
- }
89
-
90
- export type InvoiceItemMaxAggregateOutputType = {
91
- id: number | null
92
- uuid: string | null
93
- invoice_id: number | null
94
- purchase_order_item_id: number | null
95
- ordered_quantity: number | null
96
- invoice_quantity: number | null
97
- uom: string | null
98
- unit_amount: runtime.Decimal | null
99
- total_amount: runtime.Decimal | null
100
- po_quantity: number | null
101
- grn_quantity: number | null
102
- quality_quantity: number | null
103
- matching_status: $Enums.InvoiceMatchingStatus | null
104
- resolution_action: string | null
105
- resolution_remarks: string | null
106
- resolved_at: Date | null
107
- resolved_by: number | null
108
- created_at: Date | null
109
- created_by: number | null
110
- updated_at: Date | null
111
- updated_by: number | null
112
- is_deleted: boolean | null
113
- deleted_at: Date | null
114
- deleted_by: number | null
115
- }
116
-
117
- export type InvoiceItemCountAggregateOutputType = {
118
- id: number
119
- uuid: number
120
- invoice_id: number
121
- purchase_order_item_id: number
122
- ordered_quantity: number
123
- invoice_quantity: number
124
- uom: number
125
- unit_amount: number
126
- total_amount: number
127
- po_quantity: number
128
- grn_quantity: number
129
- quality_quantity: number
130
- matching_status: number
131
- resolution_action: number
132
- resolution_remarks: number
133
- resolved_at: number
134
- resolved_by: number
135
- created_at: number
136
- created_by: number
137
- updated_at: number
138
- updated_by: number
139
- is_deleted: number
140
- deleted_at: number
141
- deleted_by: number
142
- _all: number
143
- }
144
-
145
-
146
- export type InvoiceItemAvgAggregateInputType = {
147
- id?: true
148
- invoice_id?: true
149
- purchase_order_item_id?: true
150
- ordered_quantity?: true
151
- invoice_quantity?: true
152
- unit_amount?: true
153
- total_amount?: true
154
- po_quantity?: true
155
- grn_quantity?: true
156
- quality_quantity?: true
157
- resolved_by?: true
158
- created_by?: true
159
- updated_by?: true
160
- deleted_by?: true
161
- }
162
-
163
- export type InvoiceItemSumAggregateInputType = {
164
- id?: true
165
- invoice_id?: true
166
- purchase_order_item_id?: true
167
- ordered_quantity?: true
168
- invoice_quantity?: true
169
- unit_amount?: true
170
- total_amount?: true
171
- po_quantity?: true
172
- grn_quantity?: true
173
- quality_quantity?: true
174
- resolved_by?: true
175
- created_by?: true
176
- updated_by?: true
177
- deleted_by?: true
178
- }
179
-
180
- export type InvoiceItemMinAggregateInputType = {
181
- id?: true
182
- uuid?: true
183
- invoice_id?: true
184
- purchase_order_item_id?: true
185
- ordered_quantity?: true
186
- invoice_quantity?: true
187
- uom?: true
188
- unit_amount?: true
189
- total_amount?: true
190
- po_quantity?: true
191
- grn_quantity?: true
192
- quality_quantity?: true
193
- matching_status?: true
194
- resolution_action?: true
195
- resolution_remarks?: true
196
- resolved_at?: true
197
- resolved_by?: true
198
- created_at?: true
199
- created_by?: true
200
- updated_at?: true
201
- updated_by?: true
202
- is_deleted?: true
203
- deleted_at?: true
204
- deleted_by?: true
205
- }
206
-
207
- export type InvoiceItemMaxAggregateInputType = {
208
- id?: true
209
- uuid?: true
210
- invoice_id?: true
211
- purchase_order_item_id?: true
212
- ordered_quantity?: true
213
- invoice_quantity?: true
214
- uom?: true
215
- unit_amount?: true
216
- total_amount?: true
217
- po_quantity?: true
218
- grn_quantity?: true
219
- quality_quantity?: true
220
- matching_status?: true
221
- resolution_action?: true
222
- resolution_remarks?: true
223
- resolved_at?: true
224
- resolved_by?: true
225
- created_at?: true
226
- created_by?: true
227
- updated_at?: true
228
- updated_by?: true
229
- is_deleted?: true
230
- deleted_at?: true
231
- deleted_by?: true
232
- }
233
-
234
- export type InvoiceItemCountAggregateInputType = {
235
- id?: true
236
- uuid?: true
237
- invoice_id?: true
238
- purchase_order_item_id?: true
239
- ordered_quantity?: true
240
- invoice_quantity?: true
241
- uom?: true
242
- unit_amount?: true
243
- total_amount?: true
244
- po_quantity?: true
245
- grn_quantity?: true
246
- quality_quantity?: true
247
- matching_status?: true
248
- resolution_action?: true
249
- resolution_remarks?: true
250
- resolved_at?: true
251
- resolved_by?: true
252
- created_at?: true
253
- created_by?: true
254
- updated_at?: true
255
- updated_by?: true
256
- is_deleted?: true
257
- deleted_at?: true
258
- deleted_by?: true
259
- _all?: true
260
- }
261
-
262
- export type InvoiceItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
263
- /**
264
- * Filter which InvoiceItem to aggregate.
265
- */
266
- where?: Prisma.InvoiceItemWhereInput
267
- /**
268
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
269
- *
270
- * Determine the order of InvoiceItems to fetch.
271
- */
272
- orderBy?: Prisma.InvoiceItemOrderByWithRelationInput | Prisma.InvoiceItemOrderByWithRelationInput[]
273
- /**
274
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
275
- *
276
- * Sets the start position
277
- */
278
- cursor?: Prisma.InvoiceItemWhereUniqueInput
279
- /**
280
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
281
- *
282
- * Take `±n` InvoiceItems from the position of the cursor.
283
- */
284
- take?: number
285
- /**
286
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
287
- *
288
- * Skip the first `n` InvoiceItems.
289
- */
290
- skip?: number
291
- /**
292
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
293
- *
294
- * Count returned InvoiceItems
295
- **/
296
- _count?: true | InvoiceItemCountAggregateInputType
297
- /**
298
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
299
- *
300
- * Select which fields to average
301
- **/
302
- _avg?: InvoiceItemAvgAggregateInputType
303
- /**
304
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
305
- *
306
- * Select which fields to sum
307
- **/
308
- _sum?: InvoiceItemSumAggregateInputType
309
- /**
310
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
311
- *
312
- * Select which fields to find the minimum value
313
- **/
314
- _min?: InvoiceItemMinAggregateInputType
315
- /**
316
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
317
- *
318
- * Select which fields to find the maximum value
319
- **/
320
- _max?: InvoiceItemMaxAggregateInputType
321
- }
322
-
323
- export type GetInvoiceItemAggregateType<T extends InvoiceItemAggregateArgs> = {
324
- [P in keyof T & keyof AggregateInvoiceItem]: P extends '_count' | 'count'
325
- ? T[P] extends true
326
- ? number
327
- : Prisma.GetScalarType<T[P], AggregateInvoiceItem[P]>
328
- : Prisma.GetScalarType<T[P], AggregateInvoiceItem[P]>
329
- }
330
-
331
-
332
-
333
-
334
- export type InvoiceItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
335
- where?: Prisma.InvoiceItemWhereInput
336
- orderBy?: Prisma.InvoiceItemOrderByWithAggregationInput | Prisma.InvoiceItemOrderByWithAggregationInput[]
337
- by: Prisma.InvoiceItemScalarFieldEnum[] | Prisma.InvoiceItemScalarFieldEnum
338
- having?: Prisma.InvoiceItemScalarWhereWithAggregatesInput
339
- take?: number
340
- skip?: number
341
- _count?: InvoiceItemCountAggregateInputType | true
342
- _avg?: InvoiceItemAvgAggregateInputType
343
- _sum?: InvoiceItemSumAggregateInputType
344
- _min?: InvoiceItemMinAggregateInputType
345
- _max?: InvoiceItemMaxAggregateInputType
346
- }
347
-
348
- export type InvoiceItemGroupByOutputType = {
349
- id: number
350
- uuid: string
351
- invoice_id: number | null
352
- purchase_order_item_id: number | null
353
- ordered_quantity: number | null
354
- invoice_quantity: number | null
355
- uom: string | null
356
- unit_amount: runtime.Decimal
357
- total_amount: runtime.Decimal
358
- po_quantity: number | null
359
- grn_quantity: number | null
360
- quality_quantity: number | null
361
- matching_status: $Enums.InvoiceMatchingStatus
362
- resolution_action: string | null
363
- resolution_remarks: string | null
364
- resolved_at: Date | null
365
- resolved_by: number | null
366
- created_at: Date
367
- created_by: number | null
368
- updated_at: Date
369
- updated_by: number | null
370
- is_deleted: boolean
371
- deleted_at: Date | null
372
- deleted_by: number | null
373
- _count: InvoiceItemCountAggregateOutputType | null
374
- _avg: InvoiceItemAvgAggregateOutputType | null
375
- _sum: InvoiceItemSumAggregateOutputType | null
376
- _min: InvoiceItemMinAggregateOutputType | null
377
- _max: InvoiceItemMaxAggregateOutputType | null
378
- }
379
-
380
- export type GetInvoiceItemGroupByPayload<T extends InvoiceItemGroupByArgs> = Prisma.PrismaPromise<
381
- Array<
382
- Prisma.PickEnumerable<InvoiceItemGroupByOutputType, T['by']> &
383
- {
384
- [P in ((keyof T) & (keyof InvoiceItemGroupByOutputType))]: P extends '_count'
385
- ? T[P] extends boolean
386
- ? number
387
- : Prisma.GetScalarType<T[P], InvoiceItemGroupByOutputType[P]>
388
- : Prisma.GetScalarType<T[P], InvoiceItemGroupByOutputType[P]>
389
- }
390
- >
391
- >
392
-
393
-
394
-
395
- export type InvoiceItemWhereInput = {
396
- AND?: Prisma.InvoiceItemWhereInput | Prisma.InvoiceItemWhereInput[]
397
- OR?: Prisma.InvoiceItemWhereInput[]
398
- NOT?: Prisma.InvoiceItemWhereInput | Prisma.InvoiceItemWhereInput[]
399
- id?: Prisma.IntFilter<"InvoiceItem"> | number
400
- uuid?: Prisma.StringFilter<"InvoiceItem"> | string
401
- invoice_id?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
402
- purchase_order_item_id?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
403
- ordered_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
404
- invoice_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
405
- uom?: Prisma.StringNullableFilter<"InvoiceItem"> | string | null
406
- unit_amount?: Prisma.DecimalFilter<"InvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
407
- total_amount?: Prisma.DecimalFilter<"InvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
408
- po_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
409
- grn_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
410
- quality_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
411
- matching_status?: Prisma.EnumInvoiceMatchingStatusFilter<"InvoiceItem"> | $Enums.InvoiceMatchingStatus
412
- resolution_action?: Prisma.StringNullableFilter<"InvoiceItem"> | string | null
413
- resolution_remarks?: Prisma.StringNullableFilter<"InvoiceItem"> | string | null
414
- resolved_at?: Prisma.DateTimeNullableFilter<"InvoiceItem"> | Date | string | null
415
- resolved_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
416
- created_at?: Prisma.DateTimeFilter<"InvoiceItem"> | Date | string
417
- created_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
418
- updated_at?: Prisma.DateTimeFilter<"InvoiceItem"> | Date | string
419
- updated_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
420
- is_deleted?: Prisma.BoolFilter<"InvoiceItem"> | boolean
421
- deleted_at?: Prisma.DateTimeNullableFilter<"InvoiceItem"> | Date | string | null
422
- deleted_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
423
- invoice?: Prisma.XOR<Prisma.InvoiceNullableScalarRelationFilter, Prisma.InvoiceWhereInput> | null
424
- purchase_order_item?: Prisma.XOR<Prisma.PurchaseOrderItemNullableScalarRelationFilter, Prisma.PurchaseOrderItemWhereInput> | null
425
- }
426
-
427
- export type InvoiceItemOrderByWithRelationInput = {
428
- id?: Prisma.SortOrder
429
- uuid?: Prisma.SortOrder
430
- invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder
431
- purchase_order_item_id?: Prisma.SortOrderInput | Prisma.SortOrder
432
- ordered_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
433
- invoice_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
434
- uom?: Prisma.SortOrderInput | Prisma.SortOrder
435
- unit_amount?: Prisma.SortOrder
436
- total_amount?: Prisma.SortOrder
437
- po_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
438
- grn_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
439
- quality_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
440
- matching_status?: Prisma.SortOrder
441
- resolution_action?: Prisma.SortOrderInput | Prisma.SortOrder
442
- resolution_remarks?: Prisma.SortOrderInput | Prisma.SortOrder
443
- resolved_at?: Prisma.SortOrderInput | Prisma.SortOrder
444
- resolved_by?: 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
- invoice?: Prisma.InvoiceOrderByWithRelationInput
453
- purchase_order_item?: Prisma.PurchaseOrderItemOrderByWithRelationInput
454
- }
455
-
456
- export type InvoiceItemWhereUniqueInput = Prisma.AtLeast<{
457
- id?: number
458
- uuid?: string
459
- AND?: Prisma.InvoiceItemWhereInput | Prisma.InvoiceItemWhereInput[]
460
- OR?: Prisma.InvoiceItemWhereInput[]
461
- NOT?: Prisma.InvoiceItemWhereInput | Prisma.InvoiceItemWhereInput[]
462
- invoice_id?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
463
- purchase_order_item_id?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
464
- ordered_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
465
- invoice_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
466
- uom?: Prisma.StringNullableFilter<"InvoiceItem"> | string | null
467
- unit_amount?: Prisma.DecimalFilter<"InvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
468
- total_amount?: Prisma.DecimalFilter<"InvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
469
- po_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
470
- grn_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
471
- quality_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
472
- matching_status?: Prisma.EnumInvoiceMatchingStatusFilter<"InvoiceItem"> | $Enums.InvoiceMatchingStatus
473
- resolution_action?: Prisma.StringNullableFilter<"InvoiceItem"> | string | null
474
- resolution_remarks?: Prisma.StringNullableFilter<"InvoiceItem"> | string | null
475
- resolved_at?: Prisma.DateTimeNullableFilter<"InvoiceItem"> | Date | string | null
476
- resolved_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
477
- created_at?: Prisma.DateTimeFilter<"InvoiceItem"> | Date | string
478
- created_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
479
- updated_at?: Prisma.DateTimeFilter<"InvoiceItem"> | Date | string
480
- updated_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
481
- is_deleted?: Prisma.BoolFilter<"InvoiceItem"> | boolean
482
- deleted_at?: Prisma.DateTimeNullableFilter<"InvoiceItem"> | Date | string | null
483
- deleted_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
484
- invoice?: Prisma.XOR<Prisma.InvoiceNullableScalarRelationFilter, Prisma.InvoiceWhereInput> | null
485
- purchase_order_item?: Prisma.XOR<Prisma.PurchaseOrderItemNullableScalarRelationFilter, Prisma.PurchaseOrderItemWhereInput> | null
486
- }, "id" | "uuid">
487
-
488
- export type InvoiceItemOrderByWithAggregationInput = {
489
- id?: Prisma.SortOrder
490
- uuid?: Prisma.SortOrder
491
- invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder
492
- purchase_order_item_id?: Prisma.SortOrderInput | Prisma.SortOrder
493
- ordered_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
494
- invoice_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
495
- uom?: Prisma.SortOrderInput | Prisma.SortOrder
496
- unit_amount?: Prisma.SortOrder
497
- total_amount?: Prisma.SortOrder
498
- po_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
499
- grn_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
500
- quality_quantity?: Prisma.SortOrderInput | Prisma.SortOrder
501
- matching_status?: Prisma.SortOrder
502
- resolution_action?: Prisma.SortOrderInput | Prisma.SortOrder
503
- resolution_remarks?: Prisma.SortOrderInput | Prisma.SortOrder
504
- resolved_at?: Prisma.SortOrderInput | Prisma.SortOrder
505
- resolved_by?: Prisma.SortOrderInput | Prisma.SortOrder
506
- created_at?: Prisma.SortOrder
507
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
508
- updated_at?: Prisma.SortOrder
509
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
510
- is_deleted?: Prisma.SortOrder
511
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
512
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
513
- _count?: Prisma.InvoiceItemCountOrderByAggregateInput
514
- _avg?: Prisma.InvoiceItemAvgOrderByAggregateInput
515
- _max?: Prisma.InvoiceItemMaxOrderByAggregateInput
516
- _min?: Prisma.InvoiceItemMinOrderByAggregateInput
517
- _sum?: Prisma.InvoiceItemSumOrderByAggregateInput
518
- }
519
-
520
- export type InvoiceItemScalarWhereWithAggregatesInput = {
521
- AND?: Prisma.InvoiceItemScalarWhereWithAggregatesInput | Prisma.InvoiceItemScalarWhereWithAggregatesInput[]
522
- OR?: Prisma.InvoiceItemScalarWhereWithAggregatesInput[]
523
- NOT?: Prisma.InvoiceItemScalarWhereWithAggregatesInput | Prisma.InvoiceItemScalarWhereWithAggregatesInput[]
524
- id?: Prisma.IntWithAggregatesFilter<"InvoiceItem"> | number
525
- uuid?: Prisma.StringWithAggregatesFilter<"InvoiceItem"> | string
526
- invoice_id?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
527
- purchase_order_item_id?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
528
- ordered_quantity?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
529
- invoice_quantity?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
530
- uom?: Prisma.StringNullableWithAggregatesFilter<"InvoiceItem"> | string | null
531
- unit_amount?: Prisma.DecimalWithAggregatesFilter<"InvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
532
- total_amount?: Prisma.DecimalWithAggregatesFilter<"InvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
533
- po_quantity?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
534
- grn_quantity?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
535
- quality_quantity?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
536
- matching_status?: Prisma.EnumInvoiceMatchingStatusWithAggregatesFilter<"InvoiceItem"> | $Enums.InvoiceMatchingStatus
537
- resolution_action?: Prisma.StringNullableWithAggregatesFilter<"InvoiceItem"> | string | null
538
- resolution_remarks?: Prisma.StringNullableWithAggregatesFilter<"InvoiceItem"> | string | null
539
- resolved_at?: Prisma.DateTimeNullableWithAggregatesFilter<"InvoiceItem"> | Date | string | null
540
- resolved_by?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
541
- created_at?: Prisma.DateTimeWithAggregatesFilter<"InvoiceItem"> | Date | string
542
- created_by?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
543
- updated_at?: Prisma.DateTimeWithAggregatesFilter<"InvoiceItem"> | Date | string
544
- updated_by?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
545
- is_deleted?: Prisma.BoolWithAggregatesFilter<"InvoiceItem"> | boolean
546
- deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"InvoiceItem"> | Date | string | null
547
- deleted_by?: Prisma.IntNullableWithAggregatesFilter<"InvoiceItem"> | number | null
548
- }
549
-
550
- export type InvoiceItemCreateInput = {
551
- uuid?: string
552
- ordered_quantity?: number | null
553
- invoice_quantity?: number | null
554
- uom?: string | null
555
- unit_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
556
- total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
557
- po_quantity?: number | null
558
- grn_quantity?: number | null
559
- quality_quantity?: number | null
560
- matching_status?: $Enums.InvoiceMatchingStatus
561
- resolution_action?: string | null
562
- resolution_remarks?: string | null
563
- resolved_at?: Date | string | null
564
- resolved_by?: number | null
565
- created_at?: Date | string
566
- created_by?: number | null
567
- updated_at?: Date | string
568
- updated_by?: number | null
569
- is_deleted?: boolean
570
- deleted_at?: Date | string | null
571
- deleted_by?: number | null
572
- invoice?: Prisma.InvoiceCreateNestedOneWithoutInvoice_itemsInput
573
- purchase_order_item?: Prisma.PurchaseOrderItemCreateNestedOneWithoutInvoice_itemsInput
574
- }
575
-
576
- export type InvoiceItemUncheckedCreateInput = {
577
- id?: number
578
- uuid?: string
579
- invoice_id?: number | null
580
- purchase_order_item_id?: number | null
581
- ordered_quantity?: number | null
582
- invoice_quantity?: number | null
583
- uom?: string | null
584
- unit_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
585
- total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
586
- po_quantity?: number | null
587
- grn_quantity?: number | null
588
- quality_quantity?: number | null
589
- matching_status?: $Enums.InvoiceMatchingStatus
590
- resolution_action?: string | null
591
- resolution_remarks?: string | null
592
- resolved_at?: Date | string | null
593
- resolved_by?: number | null
594
- created_at?: Date | string
595
- created_by?: number | null
596
- updated_at?: Date | string
597
- updated_by?: number | null
598
- is_deleted?: boolean
599
- deleted_at?: Date | string | null
600
- deleted_by?: number | null
601
- }
602
-
603
- export type InvoiceItemUpdateInput = {
604
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
605
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
606
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
607
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
608
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
609
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
610
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
611
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
612
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
613
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
614
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
615
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
616
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
617
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
618
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
619
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
620
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
621
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
622
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
623
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
624
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
625
- invoice?: Prisma.InvoiceUpdateOneWithoutInvoice_itemsNestedInput
626
- purchase_order_item?: Prisma.PurchaseOrderItemUpdateOneWithoutInvoice_itemsNestedInput
627
- }
628
-
629
- export type InvoiceItemUncheckedUpdateInput = {
630
- id?: Prisma.IntFieldUpdateOperationsInput | number
631
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
632
- invoice_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
633
- purchase_order_item_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
634
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
635
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
636
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
637
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
638
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
639
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
640
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
641
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
642
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
643
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
644
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
645
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
646
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
647
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
648
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
649
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
650
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
651
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
652
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
653
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
654
- }
655
-
656
- export type InvoiceItemCreateManyInput = {
657
- id?: number
658
- uuid?: string
659
- invoice_id?: number | null
660
- purchase_order_item_id?: number | null
661
- ordered_quantity?: number | null
662
- invoice_quantity?: number | null
663
- uom?: string | null
664
- unit_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
665
- total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
666
- po_quantity?: number | null
667
- grn_quantity?: number | null
668
- quality_quantity?: number | null
669
- matching_status?: $Enums.InvoiceMatchingStatus
670
- resolution_action?: string | null
671
- resolution_remarks?: string | null
672
- resolved_at?: Date | string | null
673
- resolved_by?: number | null
674
- created_at?: Date | string
675
- created_by?: number | null
676
- updated_at?: Date | string
677
- updated_by?: number | null
678
- is_deleted?: boolean
679
- deleted_at?: Date | string | null
680
- deleted_by?: number | null
681
- }
682
-
683
- export type InvoiceItemUpdateManyMutationInput = {
684
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
685
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
686
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
687
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
688
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
689
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
690
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
691
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
692
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
693
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
694
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
695
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
696
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
697
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
698
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
699
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
700
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
701
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
702
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
703
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
704
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
705
- }
706
-
707
- export type InvoiceItemUncheckedUpdateManyInput = {
708
- id?: Prisma.IntFieldUpdateOperationsInput | number
709
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
710
- invoice_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
711
- purchase_order_item_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
712
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
713
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
714
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
715
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
716
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
717
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
718
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
719
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
720
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
721
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
722
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
723
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
724
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
725
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
726
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
727
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
728
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
729
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
730
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
731
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
732
- }
733
-
734
- export type InvoiceItemListRelationFilter = {
735
- every?: Prisma.InvoiceItemWhereInput
736
- some?: Prisma.InvoiceItemWhereInput
737
- none?: Prisma.InvoiceItemWhereInput
738
- }
739
-
740
- export type InvoiceItemOrderByRelationAggregateInput = {
741
- _count?: Prisma.SortOrder
742
- }
743
-
744
- export type InvoiceItemCountOrderByAggregateInput = {
745
- id?: Prisma.SortOrder
746
- uuid?: Prisma.SortOrder
747
- invoice_id?: Prisma.SortOrder
748
- purchase_order_item_id?: Prisma.SortOrder
749
- ordered_quantity?: Prisma.SortOrder
750
- invoice_quantity?: Prisma.SortOrder
751
- uom?: Prisma.SortOrder
752
- unit_amount?: Prisma.SortOrder
753
- total_amount?: Prisma.SortOrder
754
- po_quantity?: Prisma.SortOrder
755
- grn_quantity?: Prisma.SortOrder
756
- quality_quantity?: Prisma.SortOrder
757
- matching_status?: Prisma.SortOrder
758
- resolution_action?: Prisma.SortOrder
759
- resolution_remarks?: Prisma.SortOrder
760
- resolved_at?: Prisma.SortOrder
761
- resolved_by?: Prisma.SortOrder
762
- created_at?: Prisma.SortOrder
763
- created_by?: Prisma.SortOrder
764
- updated_at?: Prisma.SortOrder
765
- updated_by?: Prisma.SortOrder
766
- is_deleted?: Prisma.SortOrder
767
- deleted_at?: Prisma.SortOrder
768
- deleted_by?: Prisma.SortOrder
769
- }
770
-
771
- export type InvoiceItemAvgOrderByAggregateInput = {
772
- id?: Prisma.SortOrder
773
- invoice_id?: Prisma.SortOrder
774
- purchase_order_item_id?: Prisma.SortOrder
775
- ordered_quantity?: Prisma.SortOrder
776
- invoice_quantity?: Prisma.SortOrder
777
- unit_amount?: Prisma.SortOrder
778
- total_amount?: Prisma.SortOrder
779
- po_quantity?: Prisma.SortOrder
780
- grn_quantity?: Prisma.SortOrder
781
- quality_quantity?: Prisma.SortOrder
782
- resolved_by?: Prisma.SortOrder
783
- created_by?: Prisma.SortOrder
784
- updated_by?: Prisma.SortOrder
785
- deleted_by?: Prisma.SortOrder
786
- }
787
-
788
- export type InvoiceItemMaxOrderByAggregateInput = {
789
- id?: Prisma.SortOrder
790
- uuid?: Prisma.SortOrder
791
- invoice_id?: Prisma.SortOrder
792
- purchase_order_item_id?: Prisma.SortOrder
793
- ordered_quantity?: Prisma.SortOrder
794
- invoice_quantity?: Prisma.SortOrder
795
- uom?: Prisma.SortOrder
796
- unit_amount?: Prisma.SortOrder
797
- total_amount?: Prisma.SortOrder
798
- po_quantity?: Prisma.SortOrder
799
- grn_quantity?: Prisma.SortOrder
800
- quality_quantity?: Prisma.SortOrder
801
- matching_status?: Prisma.SortOrder
802
- resolution_action?: Prisma.SortOrder
803
- resolution_remarks?: Prisma.SortOrder
804
- resolved_at?: Prisma.SortOrder
805
- resolved_by?: Prisma.SortOrder
806
- created_at?: Prisma.SortOrder
807
- created_by?: Prisma.SortOrder
808
- updated_at?: Prisma.SortOrder
809
- updated_by?: Prisma.SortOrder
810
- is_deleted?: Prisma.SortOrder
811
- deleted_at?: Prisma.SortOrder
812
- deleted_by?: Prisma.SortOrder
813
- }
814
-
815
- export type InvoiceItemMinOrderByAggregateInput = {
816
- id?: Prisma.SortOrder
817
- uuid?: Prisma.SortOrder
818
- invoice_id?: Prisma.SortOrder
819
- purchase_order_item_id?: Prisma.SortOrder
820
- ordered_quantity?: Prisma.SortOrder
821
- invoice_quantity?: Prisma.SortOrder
822
- uom?: Prisma.SortOrder
823
- unit_amount?: Prisma.SortOrder
824
- total_amount?: Prisma.SortOrder
825
- po_quantity?: Prisma.SortOrder
826
- grn_quantity?: Prisma.SortOrder
827
- quality_quantity?: Prisma.SortOrder
828
- matching_status?: Prisma.SortOrder
829
- resolution_action?: Prisma.SortOrder
830
- resolution_remarks?: Prisma.SortOrder
831
- resolved_at?: Prisma.SortOrder
832
- resolved_by?: Prisma.SortOrder
833
- created_at?: Prisma.SortOrder
834
- created_by?: Prisma.SortOrder
835
- updated_at?: Prisma.SortOrder
836
- updated_by?: Prisma.SortOrder
837
- is_deleted?: Prisma.SortOrder
838
- deleted_at?: Prisma.SortOrder
839
- deleted_by?: Prisma.SortOrder
840
- }
841
-
842
- export type InvoiceItemSumOrderByAggregateInput = {
843
- id?: Prisma.SortOrder
844
- invoice_id?: Prisma.SortOrder
845
- purchase_order_item_id?: Prisma.SortOrder
846
- ordered_quantity?: Prisma.SortOrder
847
- invoice_quantity?: Prisma.SortOrder
848
- unit_amount?: Prisma.SortOrder
849
- total_amount?: Prisma.SortOrder
850
- po_quantity?: Prisma.SortOrder
851
- grn_quantity?: Prisma.SortOrder
852
- quality_quantity?: Prisma.SortOrder
853
- resolved_by?: Prisma.SortOrder
854
- created_by?: Prisma.SortOrder
855
- updated_by?: Prisma.SortOrder
856
- deleted_by?: Prisma.SortOrder
857
- }
858
-
859
- export type InvoiceItemCreateNestedManyWithoutPurchase_order_itemInput = {
860
- create?: Prisma.XOR<Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput, Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput> | Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput[] | Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput[]
861
- connectOrCreate?: Prisma.InvoiceItemCreateOrConnectWithoutPurchase_order_itemInput | Prisma.InvoiceItemCreateOrConnectWithoutPurchase_order_itemInput[]
862
- createMany?: Prisma.InvoiceItemCreateManyPurchase_order_itemInputEnvelope
863
- connect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
864
- }
865
-
866
- export type InvoiceItemUncheckedCreateNestedManyWithoutPurchase_order_itemInput = {
867
- create?: Prisma.XOR<Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput, Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput> | Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput[] | Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput[]
868
- connectOrCreate?: Prisma.InvoiceItemCreateOrConnectWithoutPurchase_order_itemInput | Prisma.InvoiceItemCreateOrConnectWithoutPurchase_order_itemInput[]
869
- createMany?: Prisma.InvoiceItemCreateManyPurchase_order_itemInputEnvelope
870
- connect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
871
- }
872
-
873
- export type InvoiceItemUpdateManyWithoutPurchase_order_itemNestedInput = {
874
- create?: Prisma.XOR<Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput, Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput> | Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput[] | Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput[]
875
- connectOrCreate?: Prisma.InvoiceItemCreateOrConnectWithoutPurchase_order_itemInput | Prisma.InvoiceItemCreateOrConnectWithoutPurchase_order_itemInput[]
876
- upsert?: Prisma.InvoiceItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput | Prisma.InvoiceItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput[]
877
- createMany?: Prisma.InvoiceItemCreateManyPurchase_order_itemInputEnvelope
878
- set?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
879
- disconnect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
880
- delete?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
881
- connect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
882
- update?: Prisma.InvoiceItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput | Prisma.InvoiceItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput[]
883
- updateMany?: Prisma.InvoiceItemUpdateManyWithWhereWithoutPurchase_order_itemInput | Prisma.InvoiceItemUpdateManyWithWhereWithoutPurchase_order_itemInput[]
884
- deleteMany?: Prisma.InvoiceItemScalarWhereInput | Prisma.InvoiceItemScalarWhereInput[]
885
- }
886
-
887
- export type InvoiceItemUncheckedUpdateManyWithoutPurchase_order_itemNestedInput = {
888
- create?: Prisma.XOR<Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput, Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput> | Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput[] | Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput[]
889
- connectOrCreate?: Prisma.InvoiceItemCreateOrConnectWithoutPurchase_order_itemInput | Prisma.InvoiceItemCreateOrConnectWithoutPurchase_order_itemInput[]
890
- upsert?: Prisma.InvoiceItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput | Prisma.InvoiceItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput[]
891
- createMany?: Prisma.InvoiceItemCreateManyPurchase_order_itemInputEnvelope
892
- set?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
893
- disconnect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
894
- delete?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
895
- connect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
896
- update?: Prisma.InvoiceItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput | Prisma.InvoiceItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput[]
897
- updateMany?: Prisma.InvoiceItemUpdateManyWithWhereWithoutPurchase_order_itemInput | Prisma.InvoiceItemUpdateManyWithWhereWithoutPurchase_order_itemInput[]
898
- deleteMany?: Prisma.InvoiceItemScalarWhereInput | Prisma.InvoiceItemScalarWhereInput[]
899
- }
900
-
901
- export type InvoiceItemCreateNestedManyWithoutInvoiceInput = {
902
- create?: Prisma.XOR<Prisma.InvoiceItemCreateWithoutInvoiceInput, Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.InvoiceItemCreateWithoutInvoiceInput[] | Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput[]
903
- connectOrCreate?: Prisma.InvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.InvoiceItemCreateOrConnectWithoutInvoiceInput[]
904
- createMany?: Prisma.InvoiceItemCreateManyInvoiceInputEnvelope
905
- connect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
906
- }
907
-
908
- export type InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput = {
909
- create?: Prisma.XOR<Prisma.InvoiceItemCreateWithoutInvoiceInput, Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.InvoiceItemCreateWithoutInvoiceInput[] | Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput[]
910
- connectOrCreate?: Prisma.InvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.InvoiceItemCreateOrConnectWithoutInvoiceInput[]
911
- createMany?: Prisma.InvoiceItemCreateManyInvoiceInputEnvelope
912
- connect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
913
- }
914
-
915
- export type InvoiceItemUpdateManyWithoutInvoiceNestedInput = {
916
- create?: Prisma.XOR<Prisma.InvoiceItemCreateWithoutInvoiceInput, Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.InvoiceItemCreateWithoutInvoiceInput[] | Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput[]
917
- connectOrCreate?: Prisma.InvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.InvoiceItemCreateOrConnectWithoutInvoiceInput[]
918
- upsert?: Prisma.InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[]
919
- createMany?: Prisma.InvoiceItemCreateManyInvoiceInputEnvelope
920
- set?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
921
- disconnect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
922
- delete?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
923
- connect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
924
- update?: Prisma.InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[]
925
- updateMany?: Prisma.InvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.InvoiceItemUpdateManyWithWhereWithoutInvoiceInput[]
926
- deleteMany?: Prisma.InvoiceItemScalarWhereInput | Prisma.InvoiceItemScalarWhereInput[]
927
- }
928
-
929
- export type InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput = {
930
- create?: Prisma.XOR<Prisma.InvoiceItemCreateWithoutInvoiceInput, Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.InvoiceItemCreateWithoutInvoiceInput[] | Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput[]
931
- connectOrCreate?: Prisma.InvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.InvoiceItemCreateOrConnectWithoutInvoiceInput[]
932
- upsert?: Prisma.InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[]
933
- createMany?: Prisma.InvoiceItemCreateManyInvoiceInputEnvelope
934
- set?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
935
- disconnect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
936
- delete?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
937
- connect?: Prisma.InvoiceItemWhereUniqueInput | Prisma.InvoiceItemWhereUniqueInput[]
938
- update?: Prisma.InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[]
939
- updateMany?: Prisma.InvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.InvoiceItemUpdateManyWithWhereWithoutInvoiceInput[]
940
- deleteMany?: Prisma.InvoiceItemScalarWhereInput | Prisma.InvoiceItemScalarWhereInput[]
941
- }
942
-
943
- export type InvoiceItemCreateWithoutPurchase_order_itemInput = {
944
- uuid?: string
945
- ordered_quantity?: number | null
946
- invoice_quantity?: number | null
947
- uom?: string | null
948
- unit_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
949
- total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
950
- po_quantity?: number | null
951
- grn_quantity?: number | null
952
- quality_quantity?: number | null
953
- matching_status?: $Enums.InvoiceMatchingStatus
954
- resolution_action?: string | null
955
- resolution_remarks?: string | null
956
- resolved_at?: Date | string | null
957
- resolved_by?: number | null
958
- created_at?: Date | string
959
- created_by?: number | null
960
- updated_at?: Date | string
961
- updated_by?: number | null
962
- is_deleted?: boolean
963
- deleted_at?: Date | string | null
964
- deleted_by?: number | null
965
- invoice?: Prisma.InvoiceCreateNestedOneWithoutInvoice_itemsInput
966
- }
967
-
968
- export type InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput = {
969
- id?: number
970
- uuid?: string
971
- invoice_id?: number | null
972
- ordered_quantity?: number | null
973
- invoice_quantity?: number | null
974
- uom?: string | null
975
- unit_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
976
- total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
977
- po_quantity?: number | null
978
- grn_quantity?: number | null
979
- quality_quantity?: number | null
980
- matching_status?: $Enums.InvoiceMatchingStatus
981
- resolution_action?: string | null
982
- resolution_remarks?: string | null
983
- resolved_at?: Date | string | null
984
- resolved_by?: number | null
985
- created_at?: Date | string
986
- created_by?: number | null
987
- updated_at?: Date | string
988
- updated_by?: number | null
989
- is_deleted?: boolean
990
- deleted_at?: Date | string | null
991
- deleted_by?: number | null
992
- }
993
-
994
- export type InvoiceItemCreateOrConnectWithoutPurchase_order_itemInput = {
995
- where: Prisma.InvoiceItemWhereUniqueInput
996
- create: Prisma.XOR<Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput, Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput>
997
- }
998
-
999
- export type InvoiceItemCreateManyPurchase_order_itemInputEnvelope = {
1000
- data: Prisma.InvoiceItemCreateManyPurchase_order_itemInput | Prisma.InvoiceItemCreateManyPurchase_order_itemInput[]
1001
- skipDuplicates?: boolean
1002
- }
1003
-
1004
- export type InvoiceItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput = {
1005
- where: Prisma.InvoiceItemWhereUniqueInput
1006
- update: Prisma.XOR<Prisma.InvoiceItemUpdateWithoutPurchase_order_itemInput, Prisma.InvoiceItemUncheckedUpdateWithoutPurchase_order_itemInput>
1007
- create: Prisma.XOR<Prisma.InvoiceItemCreateWithoutPurchase_order_itemInput, Prisma.InvoiceItemUncheckedCreateWithoutPurchase_order_itemInput>
1008
- }
1009
-
1010
- export type InvoiceItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput = {
1011
- where: Prisma.InvoiceItemWhereUniqueInput
1012
- data: Prisma.XOR<Prisma.InvoiceItemUpdateWithoutPurchase_order_itemInput, Prisma.InvoiceItemUncheckedUpdateWithoutPurchase_order_itemInput>
1013
- }
1014
-
1015
- export type InvoiceItemUpdateManyWithWhereWithoutPurchase_order_itemInput = {
1016
- where: Prisma.InvoiceItemScalarWhereInput
1017
- data: Prisma.XOR<Prisma.InvoiceItemUpdateManyMutationInput, Prisma.InvoiceItemUncheckedUpdateManyWithoutPurchase_order_itemInput>
1018
- }
1019
-
1020
- export type InvoiceItemScalarWhereInput = {
1021
- AND?: Prisma.InvoiceItemScalarWhereInput | Prisma.InvoiceItemScalarWhereInput[]
1022
- OR?: Prisma.InvoiceItemScalarWhereInput[]
1023
- NOT?: Prisma.InvoiceItemScalarWhereInput | Prisma.InvoiceItemScalarWhereInput[]
1024
- id?: Prisma.IntFilter<"InvoiceItem"> | number
1025
- uuid?: Prisma.StringFilter<"InvoiceItem"> | string
1026
- invoice_id?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1027
- purchase_order_item_id?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1028
- ordered_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1029
- invoice_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1030
- uom?: Prisma.StringNullableFilter<"InvoiceItem"> | string | null
1031
- unit_amount?: Prisma.DecimalFilter<"InvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
1032
- total_amount?: Prisma.DecimalFilter<"InvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
1033
- po_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1034
- grn_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1035
- quality_quantity?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1036
- matching_status?: Prisma.EnumInvoiceMatchingStatusFilter<"InvoiceItem"> | $Enums.InvoiceMatchingStatus
1037
- resolution_action?: Prisma.StringNullableFilter<"InvoiceItem"> | string | null
1038
- resolution_remarks?: Prisma.StringNullableFilter<"InvoiceItem"> | string | null
1039
- resolved_at?: Prisma.DateTimeNullableFilter<"InvoiceItem"> | Date | string | null
1040
- resolved_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1041
- created_at?: Prisma.DateTimeFilter<"InvoiceItem"> | Date | string
1042
- created_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1043
- updated_at?: Prisma.DateTimeFilter<"InvoiceItem"> | Date | string
1044
- updated_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1045
- is_deleted?: Prisma.BoolFilter<"InvoiceItem"> | boolean
1046
- deleted_at?: Prisma.DateTimeNullableFilter<"InvoiceItem"> | Date | string | null
1047
- deleted_by?: Prisma.IntNullableFilter<"InvoiceItem"> | number | null
1048
- }
1049
-
1050
- export type InvoiceItemCreateWithoutInvoiceInput = {
1051
- uuid?: string
1052
- ordered_quantity?: number | null
1053
- invoice_quantity?: number | null
1054
- uom?: string | null
1055
- unit_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
1056
- total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
1057
- po_quantity?: number | null
1058
- grn_quantity?: number | null
1059
- quality_quantity?: number | null
1060
- matching_status?: $Enums.InvoiceMatchingStatus
1061
- resolution_action?: string | null
1062
- resolution_remarks?: string | null
1063
- resolved_at?: Date | string | null
1064
- resolved_by?: number | null
1065
- created_at?: Date | string
1066
- created_by?: number | null
1067
- updated_at?: Date | string
1068
- updated_by?: number | null
1069
- is_deleted?: boolean
1070
- deleted_at?: Date | string | null
1071
- deleted_by?: number | null
1072
- purchase_order_item?: Prisma.PurchaseOrderItemCreateNestedOneWithoutInvoice_itemsInput
1073
- }
1074
-
1075
- export type InvoiceItemUncheckedCreateWithoutInvoiceInput = {
1076
- id?: number
1077
- uuid?: string
1078
- purchase_order_item_id?: number | null
1079
- ordered_quantity?: number | null
1080
- invoice_quantity?: number | null
1081
- uom?: string | null
1082
- unit_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
1083
- total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
1084
- po_quantity?: number | null
1085
- grn_quantity?: number | null
1086
- quality_quantity?: number | null
1087
- matching_status?: $Enums.InvoiceMatchingStatus
1088
- resolution_action?: string | null
1089
- resolution_remarks?: string | null
1090
- resolved_at?: Date | string | null
1091
- resolved_by?: number | null
1092
- created_at?: Date | string
1093
- created_by?: number | null
1094
- updated_at?: Date | string
1095
- updated_by?: number | null
1096
- is_deleted?: boolean
1097
- deleted_at?: Date | string | null
1098
- deleted_by?: number | null
1099
- }
1100
-
1101
- export type InvoiceItemCreateOrConnectWithoutInvoiceInput = {
1102
- where: Prisma.InvoiceItemWhereUniqueInput
1103
- create: Prisma.XOR<Prisma.InvoiceItemCreateWithoutInvoiceInput, Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput>
1104
- }
1105
-
1106
- export type InvoiceItemCreateManyInvoiceInputEnvelope = {
1107
- data: Prisma.InvoiceItemCreateManyInvoiceInput | Prisma.InvoiceItemCreateManyInvoiceInput[]
1108
- skipDuplicates?: boolean
1109
- }
1110
-
1111
- export type InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput = {
1112
- where: Prisma.InvoiceItemWhereUniqueInput
1113
- update: Prisma.XOR<Prisma.InvoiceItemUpdateWithoutInvoiceInput, Prisma.InvoiceItemUncheckedUpdateWithoutInvoiceInput>
1114
- create: Prisma.XOR<Prisma.InvoiceItemCreateWithoutInvoiceInput, Prisma.InvoiceItemUncheckedCreateWithoutInvoiceInput>
1115
- }
1116
-
1117
- export type InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput = {
1118
- where: Prisma.InvoiceItemWhereUniqueInput
1119
- data: Prisma.XOR<Prisma.InvoiceItemUpdateWithoutInvoiceInput, Prisma.InvoiceItemUncheckedUpdateWithoutInvoiceInput>
1120
- }
1121
-
1122
- export type InvoiceItemUpdateManyWithWhereWithoutInvoiceInput = {
1123
- where: Prisma.InvoiceItemScalarWhereInput
1124
- data: Prisma.XOR<Prisma.InvoiceItemUpdateManyMutationInput, Prisma.InvoiceItemUncheckedUpdateManyWithoutInvoiceInput>
1125
- }
1126
-
1127
- export type InvoiceItemCreateManyPurchase_order_itemInput = {
1128
- id?: number
1129
- uuid?: string
1130
- invoice_id?: number | null
1131
- ordered_quantity?: number | null
1132
- invoice_quantity?: number | null
1133
- uom?: string | null
1134
- unit_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
1135
- total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
1136
- po_quantity?: number | null
1137
- grn_quantity?: number | null
1138
- quality_quantity?: number | null
1139
- matching_status?: $Enums.InvoiceMatchingStatus
1140
- resolution_action?: string | null
1141
- resolution_remarks?: string | null
1142
- resolved_at?: Date | string | null
1143
- resolved_by?: number | null
1144
- created_at?: Date | string
1145
- created_by?: number | null
1146
- updated_at?: Date | string
1147
- updated_by?: number | null
1148
- is_deleted?: boolean
1149
- deleted_at?: Date | string | null
1150
- deleted_by?: number | null
1151
- }
1152
-
1153
- export type InvoiceItemUpdateWithoutPurchase_order_itemInput = {
1154
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1155
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1156
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1157
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1158
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1159
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1160
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1161
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1162
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1163
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1164
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1165
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1166
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1167
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1168
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1169
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1170
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1171
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1172
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1173
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1174
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1175
- invoice?: Prisma.InvoiceUpdateOneWithoutInvoice_itemsNestedInput
1176
- }
1177
-
1178
- export type InvoiceItemUncheckedUpdateWithoutPurchase_order_itemInput = {
1179
- id?: Prisma.IntFieldUpdateOperationsInput | number
1180
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1181
- invoice_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1182
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1183
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1184
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1185
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1186
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1187
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1188
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1189
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1190
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1191
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1192
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1193
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1194
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1195
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1196
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1197
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1198
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1199
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1200
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1201
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1202
- }
1203
-
1204
- export type InvoiceItemUncheckedUpdateManyWithoutPurchase_order_itemInput = {
1205
- id?: Prisma.IntFieldUpdateOperationsInput | number
1206
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1207
- invoice_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1208
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1209
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1210
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1211
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1212
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1213
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1214
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1215
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1216
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1217
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1218
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1219
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1220
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1221
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1222
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1223
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1224
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1225
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1226
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1227
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1228
- }
1229
-
1230
- export type InvoiceItemCreateManyInvoiceInput = {
1231
- id?: number
1232
- uuid?: string
1233
- purchase_order_item_id?: number | null
1234
- ordered_quantity?: number | null
1235
- invoice_quantity?: number | null
1236
- uom?: string | null
1237
- unit_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
1238
- total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
1239
- po_quantity?: number | null
1240
- grn_quantity?: number | null
1241
- quality_quantity?: number | null
1242
- matching_status?: $Enums.InvoiceMatchingStatus
1243
- resolution_action?: string | null
1244
- resolution_remarks?: string | null
1245
- resolved_at?: Date | string | null
1246
- resolved_by?: number | null
1247
- created_at?: Date | string
1248
- created_by?: number | null
1249
- updated_at?: Date | string
1250
- updated_by?: number | null
1251
- is_deleted?: boolean
1252
- deleted_at?: Date | string | null
1253
- deleted_by?: number | null
1254
- }
1255
-
1256
- export type InvoiceItemUpdateWithoutInvoiceInput = {
1257
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1258
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1259
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1260
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1261
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1262
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1263
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1264
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1265
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1266
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1267
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1268
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1269
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1270
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1271
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1272
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1273
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1274
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1275
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1276
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1277
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1278
- purchase_order_item?: Prisma.PurchaseOrderItemUpdateOneWithoutInvoice_itemsNestedInput
1279
- }
1280
-
1281
- export type InvoiceItemUncheckedUpdateWithoutInvoiceInput = {
1282
- id?: Prisma.IntFieldUpdateOperationsInput | number
1283
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1284
- purchase_order_item_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1285
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1286
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1287
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1288
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1289
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1290
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1291
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1292
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1293
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1294
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1295
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1296
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1297
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1298
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1299
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1300
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1301
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1302
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1303
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1304
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1305
- }
1306
-
1307
- export type InvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
1308
- id?: Prisma.IntFieldUpdateOperationsInput | number
1309
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1310
- purchase_order_item_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1311
- ordered_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1312
- invoice_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1313
- uom?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1314
- unit_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1315
- total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
1316
- po_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1317
- grn_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1318
- quality_quantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1319
- matching_status?: Prisma.EnumInvoiceMatchingStatusFieldUpdateOperationsInput | $Enums.InvoiceMatchingStatus
1320
- resolution_action?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1321
- resolution_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1322
- resolved_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1323
- resolved_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1324
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1325
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1326
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1327
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1328
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1329
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1330
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1331
- }
1332
-
1333
-
1334
-
1335
- export type InvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1336
- id?: boolean
1337
- uuid?: boolean
1338
- invoice_id?: boolean
1339
- purchase_order_item_id?: boolean
1340
- ordered_quantity?: boolean
1341
- invoice_quantity?: boolean
1342
- uom?: boolean
1343
- unit_amount?: boolean
1344
- total_amount?: boolean
1345
- po_quantity?: boolean
1346
- grn_quantity?: boolean
1347
- quality_quantity?: boolean
1348
- matching_status?: boolean
1349
- resolution_action?: boolean
1350
- resolution_remarks?: boolean
1351
- resolved_at?: boolean
1352
- resolved_by?: boolean
1353
- created_at?: boolean
1354
- created_by?: boolean
1355
- updated_at?: boolean
1356
- updated_by?: boolean
1357
- is_deleted?: boolean
1358
- deleted_at?: boolean
1359
- deleted_by?: boolean
1360
- invoice?: boolean | Prisma.InvoiceItem$invoiceArgs<ExtArgs>
1361
- purchase_order_item?: boolean | Prisma.InvoiceItem$purchase_order_itemArgs<ExtArgs>
1362
- }, ExtArgs["result"]["invoiceItem"]>
1363
-
1364
- export type InvoiceItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1365
- id?: boolean
1366
- uuid?: boolean
1367
- invoice_id?: boolean
1368
- purchase_order_item_id?: boolean
1369
- ordered_quantity?: boolean
1370
- invoice_quantity?: boolean
1371
- uom?: boolean
1372
- unit_amount?: boolean
1373
- total_amount?: boolean
1374
- po_quantity?: boolean
1375
- grn_quantity?: boolean
1376
- quality_quantity?: boolean
1377
- matching_status?: boolean
1378
- resolution_action?: boolean
1379
- resolution_remarks?: boolean
1380
- resolved_at?: boolean
1381
- resolved_by?: boolean
1382
- created_at?: boolean
1383
- created_by?: boolean
1384
- updated_at?: boolean
1385
- updated_by?: boolean
1386
- is_deleted?: boolean
1387
- deleted_at?: boolean
1388
- deleted_by?: boolean
1389
- invoice?: boolean | Prisma.InvoiceItem$invoiceArgs<ExtArgs>
1390
- purchase_order_item?: boolean | Prisma.InvoiceItem$purchase_order_itemArgs<ExtArgs>
1391
- }, ExtArgs["result"]["invoiceItem"]>
1392
-
1393
- export type InvoiceItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1394
- id?: boolean
1395
- uuid?: boolean
1396
- invoice_id?: boolean
1397
- purchase_order_item_id?: boolean
1398
- ordered_quantity?: boolean
1399
- invoice_quantity?: boolean
1400
- uom?: boolean
1401
- unit_amount?: boolean
1402
- total_amount?: boolean
1403
- po_quantity?: boolean
1404
- grn_quantity?: boolean
1405
- quality_quantity?: boolean
1406
- matching_status?: boolean
1407
- resolution_action?: boolean
1408
- resolution_remarks?: boolean
1409
- resolved_at?: boolean
1410
- resolved_by?: boolean
1411
- created_at?: boolean
1412
- created_by?: boolean
1413
- updated_at?: boolean
1414
- updated_by?: boolean
1415
- is_deleted?: boolean
1416
- deleted_at?: boolean
1417
- deleted_by?: boolean
1418
- invoice?: boolean | Prisma.InvoiceItem$invoiceArgs<ExtArgs>
1419
- purchase_order_item?: boolean | Prisma.InvoiceItem$purchase_order_itemArgs<ExtArgs>
1420
- }, ExtArgs["result"]["invoiceItem"]>
1421
-
1422
- export type InvoiceItemSelectScalar = {
1423
- id?: boolean
1424
- uuid?: boolean
1425
- invoice_id?: boolean
1426
- purchase_order_item_id?: boolean
1427
- ordered_quantity?: boolean
1428
- invoice_quantity?: boolean
1429
- uom?: boolean
1430
- unit_amount?: boolean
1431
- total_amount?: boolean
1432
- po_quantity?: boolean
1433
- grn_quantity?: boolean
1434
- quality_quantity?: boolean
1435
- matching_status?: boolean
1436
- resolution_action?: boolean
1437
- resolution_remarks?: boolean
1438
- resolved_at?: boolean
1439
- resolved_by?: boolean
1440
- created_at?: boolean
1441
- created_by?: boolean
1442
- updated_at?: boolean
1443
- updated_by?: boolean
1444
- is_deleted?: boolean
1445
- deleted_at?: boolean
1446
- deleted_by?: boolean
1447
- }
1448
-
1449
- export type InvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "invoice_id" | "purchase_order_item_id" | "ordered_quantity" | "invoice_quantity" | "uom" | "unit_amount" | "total_amount" | "po_quantity" | "grn_quantity" | "quality_quantity" | "matching_status" | "resolution_action" | "resolution_remarks" | "resolved_at" | "resolved_by" | "created_at" | "created_by" | "updated_at" | "updated_by" | "is_deleted" | "deleted_at" | "deleted_by", ExtArgs["result"]["invoiceItem"]>
1450
- export type InvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1451
- invoice?: boolean | Prisma.InvoiceItem$invoiceArgs<ExtArgs>
1452
- purchase_order_item?: boolean | Prisma.InvoiceItem$purchase_order_itemArgs<ExtArgs>
1453
- }
1454
- export type InvoiceItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1455
- invoice?: boolean | Prisma.InvoiceItem$invoiceArgs<ExtArgs>
1456
- purchase_order_item?: boolean | Prisma.InvoiceItem$purchase_order_itemArgs<ExtArgs>
1457
- }
1458
- export type InvoiceItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1459
- invoice?: boolean | Prisma.InvoiceItem$invoiceArgs<ExtArgs>
1460
- purchase_order_item?: boolean | Prisma.InvoiceItem$purchase_order_itemArgs<ExtArgs>
1461
- }
1462
-
1463
- export type $InvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1464
- name: "InvoiceItem"
1465
- objects: {
1466
- invoice: Prisma.$InvoicePayload<ExtArgs> | null
1467
- purchase_order_item: Prisma.$PurchaseOrderItemPayload<ExtArgs> | null
1468
- }
1469
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1470
- id: number
1471
- uuid: string
1472
- invoice_id: number | null
1473
- purchase_order_item_id: number | null
1474
- ordered_quantity: number | null
1475
- invoice_quantity: number | null
1476
- uom: string | null
1477
- unit_amount: runtime.Decimal
1478
- total_amount: runtime.Decimal
1479
- po_quantity: number | null
1480
- grn_quantity: number | null
1481
- quality_quantity: number | null
1482
- matching_status: $Enums.InvoiceMatchingStatus
1483
- resolution_action: string | null
1484
- resolution_remarks: string | null
1485
- resolved_at: Date | null
1486
- resolved_by: number | null
1487
- created_at: Date
1488
- created_by: number | null
1489
- updated_at: Date
1490
- updated_by: number | null
1491
- is_deleted: boolean
1492
- deleted_at: Date | null
1493
- deleted_by: number | null
1494
- }, ExtArgs["result"]["invoiceItem"]>
1495
- composites: {}
1496
- }
1497
-
1498
- export type InvoiceItemGetPayload<S extends boolean | null | undefined | InvoiceItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload, S>
1499
-
1500
- export type InvoiceItemCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1501
- Omit<InvoiceItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1502
- select?: InvoiceItemCountAggregateInputType | true
1503
- }
1504
-
1505
- export interface InvoiceItemDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1506
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['InvoiceItem'], meta: { name: 'InvoiceItem' } }
1507
- /**
1508
- * Find zero or one InvoiceItem that matches the filter.
1509
- * @param {InvoiceItemFindUniqueArgs} args - Arguments to find a InvoiceItem
1510
- * @example
1511
- * // Get one InvoiceItem
1512
- * const invoiceItem = await prisma.invoiceItem.findUnique({
1513
- * where: {
1514
- * // ... provide filter here
1515
- * }
1516
- * })
1517
- */
1518
- findUnique<T extends InvoiceItemFindUniqueArgs>(args: Prisma.SelectSubset<T, InvoiceItemFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1519
-
1520
- /**
1521
- * Find one InvoiceItem that matches the filter or throw an error with `error.code='P2025'`
1522
- * if no matches were found.
1523
- * @param {InvoiceItemFindUniqueOrThrowArgs} args - Arguments to find a InvoiceItem
1524
- * @example
1525
- * // Get one InvoiceItem
1526
- * const invoiceItem = await prisma.invoiceItem.findUniqueOrThrow({
1527
- * where: {
1528
- * // ... provide filter here
1529
- * }
1530
- * })
1531
- */
1532
- findUniqueOrThrow<T extends InvoiceItemFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InvoiceItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1533
-
1534
- /**
1535
- * Find the first InvoiceItem that matches the filter.
1536
- * Note, that providing `undefined` is treated as the value not being there.
1537
- * Read more here: https://pris.ly/d/null-undefined
1538
- * @param {InvoiceItemFindFirstArgs} args - Arguments to find a InvoiceItem
1539
- * @example
1540
- * // Get one InvoiceItem
1541
- * const invoiceItem = await prisma.invoiceItem.findFirst({
1542
- * where: {
1543
- * // ... provide filter here
1544
- * }
1545
- * })
1546
- */
1547
- findFirst<T extends InvoiceItemFindFirstArgs>(args?: Prisma.SelectSubset<T, InvoiceItemFindFirstArgs<ExtArgs>>): Prisma.Prisma__InvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1548
-
1549
- /**
1550
- * Find the first InvoiceItem that matches the filter or
1551
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1552
- * Note, that providing `undefined` is treated as the value not being there.
1553
- * Read more here: https://pris.ly/d/null-undefined
1554
- * @param {InvoiceItemFindFirstOrThrowArgs} args - Arguments to find a InvoiceItem
1555
- * @example
1556
- * // Get one InvoiceItem
1557
- * const invoiceItem = await prisma.invoiceItem.findFirstOrThrow({
1558
- * where: {
1559
- * // ... provide filter here
1560
- * }
1561
- * })
1562
- */
1563
- findFirstOrThrow<T extends InvoiceItemFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InvoiceItemFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1564
-
1565
- /**
1566
- * Find zero or more InvoiceItems that matches the filter.
1567
- * Note, that providing `undefined` is treated as the value not being there.
1568
- * Read more here: https://pris.ly/d/null-undefined
1569
- * @param {InvoiceItemFindManyArgs} args - Arguments to filter and select certain fields only.
1570
- * @example
1571
- * // Get all InvoiceItems
1572
- * const invoiceItems = await prisma.invoiceItem.findMany()
1573
- *
1574
- * // Get first 10 InvoiceItems
1575
- * const invoiceItems = await prisma.invoiceItem.findMany({ take: 10 })
1576
- *
1577
- * // Only select the `id`
1578
- * const invoiceItemWithIdOnly = await prisma.invoiceItem.findMany({ select: { id: true } })
1579
- *
1580
- */
1581
- findMany<T extends InvoiceItemFindManyArgs>(args?: Prisma.SelectSubset<T, InvoiceItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1582
-
1583
- /**
1584
- * Create a InvoiceItem.
1585
- * @param {InvoiceItemCreateArgs} args - Arguments to create a InvoiceItem.
1586
- * @example
1587
- * // Create one InvoiceItem
1588
- * const InvoiceItem = await prisma.invoiceItem.create({
1589
- * data: {
1590
- * // ... data to create a InvoiceItem
1591
- * }
1592
- * })
1593
- *
1594
- */
1595
- create<T extends InvoiceItemCreateArgs>(args: Prisma.SelectSubset<T, InvoiceItemCreateArgs<ExtArgs>>): Prisma.Prisma__InvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1596
-
1597
- /**
1598
- * Create many InvoiceItems.
1599
- * @param {InvoiceItemCreateManyArgs} args - Arguments to create many InvoiceItems.
1600
- * @example
1601
- * // Create many InvoiceItems
1602
- * const invoiceItem = await prisma.invoiceItem.createMany({
1603
- * data: [
1604
- * // ... provide data here
1605
- * ]
1606
- * })
1607
- *
1608
- */
1609
- createMany<T extends InvoiceItemCreateManyArgs>(args?: Prisma.SelectSubset<T, InvoiceItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1610
-
1611
- /**
1612
- * Create many InvoiceItems and returns the data saved in the database.
1613
- * @param {InvoiceItemCreateManyAndReturnArgs} args - Arguments to create many InvoiceItems.
1614
- * @example
1615
- * // Create many InvoiceItems
1616
- * const invoiceItem = await prisma.invoiceItem.createManyAndReturn({
1617
- * data: [
1618
- * // ... provide data here
1619
- * ]
1620
- * })
1621
- *
1622
- * // Create many InvoiceItems and only return the `id`
1623
- * const invoiceItemWithIdOnly = await prisma.invoiceItem.createManyAndReturn({
1624
- * select: { id: true },
1625
- * data: [
1626
- * // ... provide data here
1627
- * ]
1628
- * })
1629
- * Note, that providing `undefined` is treated as the value not being there.
1630
- * Read more here: https://pris.ly/d/null-undefined
1631
- *
1632
- */
1633
- createManyAndReturn<T extends InvoiceItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InvoiceItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1634
-
1635
- /**
1636
- * Delete a InvoiceItem.
1637
- * @param {InvoiceItemDeleteArgs} args - Arguments to delete one InvoiceItem.
1638
- * @example
1639
- * // Delete one InvoiceItem
1640
- * const InvoiceItem = await prisma.invoiceItem.delete({
1641
- * where: {
1642
- * // ... filter to delete one InvoiceItem
1643
- * }
1644
- * })
1645
- *
1646
- */
1647
- delete<T extends InvoiceItemDeleteArgs>(args: Prisma.SelectSubset<T, InvoiceItemDeleteArgs<ExtArgs>>): Prisma.Prisma__InvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1648
-
1649
- /**
1650
- * Update one InvoiceItem.
1651
- * @param {InvoiceItemUpdateArgs} args - Arguments to update one InvoiceItem.
1652
- * @example
1653
- * // Update one InvoiceItem
1654
- * const invoiceItem = await prisma.invoiceItem.update({
1655
- * where: {
1656
- * // ... provide filter here
1657
- * },
1658
- * data: {
1659
- * // ... provide data here
1660
- * }
1661
- * })
1662
- *
1663
- */
1664
- update<T extends InvoiceItemUpdateArgs>(args: Prisma.SelectSubset<T, InvoiceItemUpdateArgs<ExtArgs>>): Prisma.Prisma__InvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1665
-
1666
- /**
1667
- * Delete zero or more InvoiceItems.
1668
- * @param {InvoiceItemDeleteManyArgs} args - Arguments to filter InvoiceItems to delete.
1669
- * @example
1670
- * // Delete a few InvoiceItems
1671
- * const { count } = await prisma.invoiceItem.deleteMany({
1672
- * where: {
1673
- * // ... provide filter here
1674
- * }
1675
- * })
1676
- *
1677
- */
1678
- deleteMany<T extends InvoiceItemDeleteManyArgs>(args?: Prisma.SelectSubset<T, InvoiceItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1679
-
1680
- /**
1681
- * Update zero or more InvoiceItems.
1682
- * Note, that providing `undefined` is treated as the value not being there.
1683
- * Read more here: https://pris.ly/d/null-undefined
1684
- * @param {InvoiceItemUpdateManyArgs} args - Arguments to update one or more rows.
1685
- * @example
1686
- * // Update many InvoiceItems
1687
- * const invoiceItem = await prisma.invoiceItem.updateMany({
1688
- * where: {
1689
- * // ... provide filter here
1690
- * },
1691
- * data: {
1692
- * // ... provide data here
1693
- * }
1694
- * })
1695
- *
1696
- */
1697
- updateMany<T extends InvoiceItemUpdateManyArgs>(args: Prisma.SelectSubset<T, InvoiceItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1698
-
1699
- /**
1700
- * Update zero or more InvoiceItems and returns the data updated in the database.
1701
- * @param {InvoiceItemUpdateManyAndReturnArgs} args - Arguments to update many InvoiceItems.
1702
- * @example
1703
- * // Update many InvoiceItems
1704
- * const invoiceItem = await prisma.invoiceItem.updateManyAndReturn({
1705
- * where: {
1706
- * // ... provide filter here
1707
- * },
1708
- * data: [
1709
- * // ... provide data here
1710
- * ]
1711
- * })
1712
- *
1713
- * // Update zero or more InvoiceItems and only return the `id`
1714
- * const invoiceItemWithIdOnly = await prisma.invoiceItem.updateManyAndReturn({
1715
- * select: { id: true },
1716
- * where: {
1717
- * // ... provide filter here
1718
- * },
1719
- * data: [
1720
- * // ... provide data here
1721
- * ]
1722
- * })
1723
- * Note, that providing `undefined` is treated as the value not being there.
1724
- * Read more here: https://pris.ly/d/null-undefined
1725
- *
1726
- */
1727
- updateManyAndReturn<T extends InvoiceItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InvoiceItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1728
-
1729
- /**
1730
- * Create or update one InvoiceItem.
1731
- * @param {InvoiceItemUpsertArgs} args - Arguments to update or create a InvoiceItem.
1732
- * @example
1733
- * // Update or create a InvoiceItem
1734
- * const invoiceItem = await prisma.invoiceItem.upsert({
1735
- * create: {
1736
- * // ... data to create a InvoiceItem
1737
- * },
1738
- * update: {
1739
- * // ... in case it already exists, update
1740
- * },
1741
- * where: {
1742
- * // ... the filter for the InvoiceItem we want to update
1743
- * }
1744
- * })
1745
- */
1746
- upsert<T extends InvoiceItemUpsertArgs>(args: Prisma.SelectSubset<T, InvoiceItemUpsertArgs<ExtArgs>>): Prisma.Prisma__InvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$InvoiceItemPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1747
-
1748
-
1749
- /**
1750
- * Count the number of InvoiceItems.
1751
- * Note, that providing `undefined` is treated as the value not being there.
1752
- * Read more here: https://pris.ly/d/null-undefined
1753
- * @param {InvoiceItemCountArgs} args - Arguments to filter InvoiceItems to count.
1754
- * @example
1755
- * // Count the number of InvoiceItems
1756
- * const count = await prisma.invoiceItem.count({
1757
- * where: {
1758
- * // ... the filter for the InvoiceItems we want to count
1759
- * }
1760
- * })
1761
- **/
1762
- count<T extends InvoiceItemCountArgs>(
1763
- args?: Prisma.Subset<T, InvoiceItemCountArgs>,
1764
- ): Prisma.PrismaPromise<
1765
- T extends runtime.Types.Utils.Record<'select', any>
1766
- ? T['select'] extends true
1767
- ? number
1768
- : Prisma.GetScalarType<T['select'], InvoiceItemCountAggregateOutputType>
1769
- : number
1770
- >
1771
-
1772
- /**
1773
- * Allows you to perform aggregations operations on a InvoiceItem.
1774
- * Note, that providing `undefined` is treated as the value not being there.
1775
- * Read more here: https://pris.ly/d/null-undefined
1776
- * @param {InvoiceItemAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1777
- * @example
1778
- * // Ordered by age ascending
1779
- * // Where email contains prisma.io
1780
- * // Limited to the 10 users
1781
- * const aggregations = await prisma.user.aggregate({
1782
- * _avg: {
1783
- * age: true,
1784
- * },
1785
- * where: {
1786
- * email: {
1787
- * contains: "prisma.io",
1788
- * },
1789
- * },
1790
- * orderBy: {
1791
- * age: "asc",
1792
- * },
1793
- * take: 10,
1794
- * })
1795
- **/
1796
- aggregate<T extends InvoiceItemAggregateArgs>(args: Prisma.Subset<T, InvoiceItemAggregateArgs>): Prisma.PrismaPromise<GetInvoiceItemAggregateType<T>>
1797
-
1798
- /**
1799
- * Group by InvoiceItem.
1800
- * Note, that providing `undefined` is treated as the value not being there.
1801
- * Read more here: https://pris.ly/d/null-undefined
1802
- * @param {InvoiceItemGroupByArgs} args - Group by arguments.
1803
- * @example
1804
- * // Group by city, order by createdAt, get count
1805
- * const result = await prisma.user.groupBy({
1806
- * by: ['city', 'createdAt'],
1807
- * orderBy: {
1808
- * createdAt: true
1809
- * },
1810
- * _count: {
1811
- * _all: true
1812
- * },
1813
- * })
1814
- *
1815
- **/
1816
- groupBy<
1817
- T extends InvoiceItemGroupByArgs,
1818
- HasSelectOrTake extends Prisma.Or<
1819
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1820
- Prisma.Extends<'take', Prisma.Keys<T>>
1821
- >,
1822
- OrderByArg extends Prisma.True extends HasSelectOrTake
1823
- ? { orderBy: InvoiceItemGroupByArgs['orderBy'] }
1824
- : { orderBy?: InvoiceItemGroupByArgs['orderBy'] },
1825
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1826
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1827
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1828
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1829
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1830
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1831
- InputErrors extends ByEmpty extends Prisma.True
1832
- ? `Error: "by" must not be empty.`
1833
- : HavingValid extends Prisma.False
1834
- ? {
1835
- [P in HavingFields]: P extends ByFields
1836
- ? never
1837
- : P extends string
1838
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1839
- : [
1840
- Error,
1841
- 'Field ',
1842
- P,
1843
- ` in "having" needs to be provided in "by"`,
1844
- ]
1845
- }[HavingFields]
1846
- : 'take' extends Prisma.Keys<T>
1847
- ? 'orderBy' extends Prisma.Keys<T>
1848
- ? ByValid extends Prisma.True
1849
- ? {}
1850
- : {
1851
- [P in OrderFields]: P extends ByFields
1852
- ? never
1853
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1854
- }[OrderFields]
1855
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1856
- : 'skip' extends Prisma.Keys<T>
1857
- ? 'orderBy' extends Prisma.Keys<T>
1858
- ? ByValid extends Prisma.True
1859
- ? {}
1860
- : {
1861
- [P in OrderFields]: P extends ByFields
1862
- ? never
1863
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1864
- }[OrderFields]
1865
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1866
- : ByValid extends Prisma.True
1867
- ? {}
1868
- : {
1869
- [P in OrderFields]: P extends ByFields
1870
- ? never
1871
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1872
- }[OrderFields]
1873
- >(args: Prisma.SubsetIntersection<T, InvoiceItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvoiceItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1874
- /**
1875
- * Fields of the InvoiceItem model
1876
- */
1877
- readonly fields: InvoiceItemFieldRefs;
1878
- }
1879
-
1880
- /**
1881
- * The delegate class that acts as a "Promise-like" for InvoiceItem.
1882
- * Why is this prefixed with `Prisma__`?
1883
- * Because we want to prevent naming conflicts as mentioned in
1884
- * https://github.com/prisma/prisma-client-js/issues/707
1885
- */
1886
- export interface Prisma__InvoiceItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1887
- readonly [Symbol.toStringTag]: "PrismaPromise"
1888
- invoice<T extends Prisma.InvoiceItem$invoiceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InvoiceItem$invoiceArgs<ExtArgs>>): Prisma.Prisma__InvoiceClient<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1889
- purchase_order_item<T extends Prisma.InvoiceItem$purchase_order_itemArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InvoiceItem$purchase_order_itemArgs<ExtArgs>>): Prisma.Prisma__PurchaseOrderItemClient<runtime.Types.Result.GetResult<Prisma.$PurchaseOrderItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1890
- /**
1891
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1892
- * @param onfulfilled The callback to execute when the Promise is resolved.
1893
- * @param onrejected The callback to execute when the Promise is rejected.
1894
- * @returns A Promise for the completion of which ever callback is executed.
1895
- */
1896
- 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>
1897
- /**
1898
- * Attaches a callback for only the rejection of the Promise.
1899
- * @param onrejected The callback to execute when the Promise is rejected.
1900
- * @returns A Promise for the completion of the callback.
1901
- */
1902
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1903
- /**
1904
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1905
- * resolved value cannot be modified from the callback.
1906
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1907
- * @returns A Promise for the completion of the callback.
1908
- */
1909
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1910
- }
1911
-
1912
-
1913
-
1914
-
1915
- /**
1916
- * Fields of the InvoiceItem model
1917
- */
1918
- export interface InvoiceItemFieldRefs {
1919
- readonly id: Prisma.FieldRef<"InvoiceItem", 'Int'>
1920
- readonly uuid: Prisma.FieldRef<"InvoiceItem", 'String'>
1921
- readonly invoice_id: Prisma.FieldRef<"InvoiceItem", 'Int'>
1922
- readonly purchase_order_item_id: Prisma.FieldRef<"InvoiceItem", 'Int'>
1923
- readonly ordered_quantity: Prisma.FieldRef<"InvoiceItem", 'Int'>
1924
- readonly invoice_quantity: Prisma.FieldRef<"InvoiceItem", 'Int'>
1925
- readonly uom: Prisma.FieldRef<"InvoiceItem", 'String'>
1926
- readonly unit_amount: Prisma.FieldRef<"InvoiceItem", 'Decimal'>
1927
- readonly total_amount: Prisma.FieldRef<"InvoiceItem", 'Decimal'>
1928
- readonly po_quantity: Prisma.FieldRef<"InvoiceItem", 'Int'>
1929
- readonly grn_quantity: Prisma.FieldRef<"InvoiceItem", 'Int'>
1930
- readonly quality_quantity: Prisma.FieldRef<"InvoiceItem", 'Int'>
1931
- readonly matching_status: Prisma.FieldRef<"InvoiceItem", 'InvoiceMatchingStatus'>
1932
- readonly resolution_action: Prisma.FieldRef<"InvoiceItem", 'String'>
1933
- readonly resolution_remarks: Prisma.FieldRef<"InvoiceItem", 'String'>
1934
- readonly resolved_at: Prisma.FieldRef<"InvoiceItem", 'DateTime'>
1935
- readonly resolved_by: Prisma.FieldRef<"InvoiceItem", 'Int'>
1936
- readonly created_at: Prisma.FieldRef<"InvoiceItem", 'DateTime'>
1937
- readonly created_by: Prisma.FieldRef<"InvoiceItem", 'Int'>
1938
- readonly updated_at: Prisma.FieldRef<"InvoiceItem", 'DateTime'>
1939
- readonly updated_by: Prisma.FieldRef<"InvoiceItem", 'Int'>
1940
- readonly is_deleted: Prisma.FieldRef<"InvoiceItem", 'Boolean'>
1941
- readonly deleted_at: Prisma.FieldRef<"InvoiceItem", 'DateTime'>
1942
- readonly deleted_by: Prisma.FieldRef<"InvoiceItem", 'Int'>
1943
- }
1944
-
1945
-
1946
- // Custom InputTypes
1947
- /**
1948
- * InvoiceItem findUnique
1949
- */
1950
- export type InvoiceItemFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1951
- /**
1952
- * Select specific fields to fetch from the InvoiceItem
1953
- */
1954
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
1955
- /**
1956
- * Omit specific fields from the InvoiceItem
1957
- */
1958
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
1959
- /**
1960
- * Choose, which related nodes to fetch as well
1961
- */
1962
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
1963
- /**
1964
- * Filter, which InvoiceItem to fetch.
1965
- */
1966
- where: Prisma.InvoiceItemWhereUniqueInput
1967
- }
1968
-
1969
- /**
1970
- * InvoiceItem findUniqueOrThrow
1971
- */
1972
- export type InvoiceItemFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1973
- /**
1974
- * Select specific fields to fetch from the InvoiceItem
1975
- */
1976
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
1977
- /**
1978
- * Omit specific fields from the InvoiceItem
1979
- */
1980
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
1981
- /**
1982
- * Choose, which related nodes to fetch as well
1983
- */
1984
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
1985
- /**
1986
- * Filter, which InvoiceItem to fetch.
1987
- */
1988
- where: Prisma.InvoiceItemWhereUniqueInput
1989
- }
1990
-
1991
- /**
1992
- * InvoiceItem findFirst
1993
- */
1994
- export type InvoiceItemFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1995
- /**
1996
- * Select specific fields to fetch from the InvoiceItem
1997
- */
1998
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
1999
- /**
2000
- * Omit specific fields from the InvoiceItem
2001
- */
2002
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2003
- /**
2004
- * Choose, which related nodes to fetch as well
2005
- */
2006
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
2007
- /**
2008
- * Filter, which InvoiceItem to fetch.
2009
- */
2010
- where?: Prisma.InvoiceItemWhereInput
2011
- /**
2012
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2013
- *
2014
- * Determine the order of InvoiceItems to fetch.
2015
- */
2016
- orderBy?: Prisma.InvoiceItemOrderByWithRelationInput | Prisma.InvoiceItemOrderByWithRelationInput[]
2017
- /**
2018
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2019
- *
2020
- * Sets the position for searching for InvoiceItems.
2021
- */
2022
- cursor?: Prisma.InvoiceItemWhereUniqueInput
2023
- /**
2024
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2025
- *
2026
- * Take `±n` InvoiceItems from the position of the cursor.
2027
- */
2028
- take?: number
2029
- /**
2030
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2031
- *
2032
- * Skip the first `n` InvoiceItems.
2033
- */
2034
- skip?: number
2035
- /**
2036
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2037
- *
2038
- * Filter by unique combinations of InvoiceItems.
2039
- */
2040
- distinct?: Prisma.InvoiceItemScalarFieldEnum | Prisma.InvoiceItemScalarFieldEnum[]
2041
- }
2042
-
2043
- /**
2044
- * InvoiceItem findFirstOrThrow
2045
- */
2046
- export type InvoiceItemFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2047
- /**
2048
- * Select specific fields to fetch from the InvoiceItem
2049
- */
2050
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
2051
- /**
2052
- * Omit specific fields from the InvoiceItem
2053
- */
2054
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2055
- /**
2056
- * Choose, which related nodes to fetch as well
2057
- */
2058
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
2059
- /**
2060
- * Filter, which InvoiceItem to fetch.
2061
- */
2062
- where?: Prisma.InvoiceItemWhereInput
2063
- /**
2064
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2065
- *
2066
- * Determine the order of InvoiceItems to fetch.
2067
- */
2068
- orderBy?: Prisma.InvoiceItemOrderByWithRelationInput | Prisma.InvoiceItemOrderByWithRelationInput[]
2069
- /**
2070
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2071
- *
2072
- * Sets the position for searching for InvoiceItems.
2073
- */
2074
- cursor?: Prisma.InvoiceItemWhereUniqueInput
2075
- /**
2076
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2077
- *
2078
- * Take `±n` InvoiceItems from the position of the cursor.
2079
- */
2080
- take?: number
2081
- /**
2082
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2083
- *
2084
- * Skip the first `n` InvoiceItems.
2085
- */
2086
- skip?: number
2087
- /**
2088
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2089
- *
2090
- * Filter by unique combinations of InvoiceItems.
2091
- */
2092
- distinct?: Prisma.InvoiceItemScalarFieldEnum | Prisma.InvoiceItemScalarFieldEnum[]
2093
- }
2094
-
2095
- /**
2096
- * InvoiceItem findMany
2097
- */
2098
- export type InvoiceItemFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2099
- /**
2100
- * Select specific fields to fetch from the InvoiceItem
2101
- */
2102
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
2103
- /**
2104
- * Omit specific fields from the InvoiceItem
2105
- */
2106
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2107
- /**
2108
- * Choose, which related nodes to fetch as well
2109
- */
2110
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
2111
- /**
2112
- * Filter, which InvoiceItems to fetch.
2113
- */
2114
- where?: Prisma.InvoiceItemWhereInput
2115
- /**
2116
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2117
- *
2118
- * Determine the order of InvoiceItems to fetch.
2119
- */
2120
- orderBy?: Prisma.InvoiceItemOrderByWithRelationInput | Prisma.InvoiceItemOrderByWithRelationInput[]
2121
- /**
2122
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2123
- *
2124
- * Sets the position for listing InvoiceItems.
2125
- */
2126
- cursor?: Prisma.InvoiceItemWhereUniqueInput
2127
- /**
2128
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2129
- *
2130
- * Take `±n` InvoiceItems from the position of the cursor.
2131
- */
2132
- take?: number
2133
- /**
2134
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2135
- *
2136
- * Skip the first `n` InvoiceItems.
2137
- */
2138
- skip?: number
2139
- /**
2140
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2141
- *
2142
- * Filter by unique combinations of InvoiceItems.
2143
- */
2144
- distinct?: Prisma.InvoiceItemScalarFieldEnum | Prisma.InvoiceItemScalarFieldEnum[]
2145
- }
2146
-
2147
- /**
2148
- * InvoiceItem create
2149
- */
2150
- export type InvoiceItemCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2151
- /**
2152
- * Select specific fields to fetch from the InvoiceItem
2153
- */
2154
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
2155
- /**
2156
- * Omit specific fields from the InvoiceItem
2157
- */
2158
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2159
- /**
2160
- * Choose, which related nodes to fetch as well
2161
- */
2162
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
2163
- /**
2164
- * The data needed to create a InvoiceItem.
2165
- */
2166
- data: Prisma.XOR<Prisma.InvoiceItemCreateInput, Prisma.InvoiceItemUncheckedCreateInput>
2167
- }
2168
-
2169
- /**
2170
- * InvoiceItem createMany
2171
- */
2172
- export type InvoiceItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2173
- /**
2174
- * The data used to create many InvoiceItems.
2175
- */
2176
- data: Prisma.InvoiceItemCreateManyInput | Prisma.InvoiceItemCreateManyInput[]
2177
- skipDuplicates?: boolean
2178
- }
2179
-
2180
- /**
2181
- * InvoiceItem createManyAndReturn
2182
- */
2183
- export type InvoiceItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2184
- /**
2185
- * Select specific fields to fetch from the InvoiceItem
2186
- */
2187
- select?: Prisma.InvoiceItemSelectCreateManyAndReturn<ExtArgs> | null
2188
- /**
2189
- * Omit specific fields from the InvoiceItem
2190
- */
2191
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2192
- /**
2193
- * The data used to create many InvoiceItems.
2194
- */
2195
- data: Prisma.InvoiceItemCreateManyInput | Prisma.InvoiceItemCreateManyInput[]
2196
- skipDuplicates?: boolean
2197
- /**
2198
- * Choose, which related nodes to fetch as well
2199
- */
2200
- include?: Prisma.InvoiceItemIncludeCreateManyAndReturn<ExtArgs> | null
2201
- }
2202
-
2203
- /**
2204
- * InvoiceItem update
2205
- */
2206
- export type InvoiceItemUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2207
- /**
2208
- * Select specific fields to fetch from the InvoiceItem
2209
- */
2210
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
2211
- /**
2212
- * Omit specific fields from the InvoiceItem
2213
- */
2214
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2215
- /**
2216
- * Choose, which related nodes to fetch as well
2217
- */
2218
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
2219
- /**
2220
- * The data needed to update a InvoiceItem.
2221
- */
2222
- data: Prisma.XOR<Prisma.InvoiceItemUpdateInput, Prisma.InvoiceItemUncheckedUpdateInput>
2223
- /**
2224
- * Choose, which InvoiceItem to update.
2225
- */
2226
- where: Prisma.InvoiceItemWhereUniqueInput
2227
- }
2228
-
2229
- /**
2230
- * InvoiceItem updateMany
2231
- */
2232
- export type InvoiceItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2233
- /**
2234
- * The data used to update InvoiceItems.
2235
- */
2236
- data: Prisma.XOR<Prisma.InvoiceItemUpdateManyMutationInput, Prisma.InvoiceItemUncheckedUpdateManyInput>
2237
- /**
2238
- * Filter which InvoiceItems to update
2239
- */
2240
- where?: Prisma.InvoiceItemWhereInput
2241
- /**
2242
- * Limit how many InvoiceItems to update.
2243
- */
2244
- limit?: number
2245
- }
2246
-
2247
- /**
2248
- * InvoiceItem updateManyAndReturn
2249
- */
2250
- export type InvoiceItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2251
- /**
2252
- * Select specific fields to fetch from the InvoiceItem
2253
- */
2254
- select?: Prisma.InvoiceItemSelectUpdateManyAndReturn<ExtArgs> | null
2255
- /**
2256
- * Omit specific fields from the InvoiceItem
2257
- */
2258
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2259
- /**
2260
- * The data used to update InvoiceItems.
2261
- */
2262
- data: Prisma.XOR<Prisma.InvoiceItemUpdateManyMutationInput, Prisma.InvoiceItemUncheckedUpdateManyInput>
2263
- /**
2264
- * Filter which InvoiceItems to update
2265
- */
2266
- where?: Prisma.InvoiceItemWhereInput
2267
- /**
2268
- * Limit how many InvoiceItems to update.
2269
- */
2270
- limit?: number
2271
- /**
2272
- * Choose, which related nodes to fetch as well
2273
- */
2274
- include?: Prisma.InvoiceItemIncludeUpdateManyAndReturn<ExtArgs> | null
2275
- }
2276
-
2277
- /**
2278
- * InvoiceItem upsert
2279
- */
2280
- export type InvoiceItemUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2281
- /**
2282
- * Select specific fields to fetch from the InvoiceItem
2283
- */
2284
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
2285
- /**
2286
- * Omit specific fields from the InvoiceItem
2287
- */
2288
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2289
- /**
2290
- * Choose, which related nodes to fetch as well
2291
- */
2292
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
2293
- /**
2294
- * The filter to search for the InvoiceItem to update in case it exists.
2295
- */
2296
- where: Prisma.InvoiceItemWhereUniqueInput
2297
- /**
2298
- * In case the InvoiceItem found by the `where` argument doesn't exist, create a new InvoiceItem with this data.
2299
- */
2300
- create: Prisma.XOR<Prisma.InvoiceItemCreateInput, Prisma.InvoiceItemUncheckedCreateInput>
2301
- /**
2302
- * In case the InvoiceItem was found with the provided `where` argument, update it with this data.
2303
- */
2304
- update: Prisma.XOR<Prisma.InvoiceItemUpdateInput, Prisma.InvoiceItemUncheckedUpdateInput>
2305
- }
2306
-
2307
- /**
2308
- * InvoiceItem delete
2309
- */
2310
- export type InvoiceItemDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2311
- /**
2312
- * Select specific fields to fetch from the InvoiceItem
2313
- */
2314
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
2315
- /**
2316
- * Omit specific fields from the InvoiceItem
2317
- */
2318
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2319
- /**
2320
- * Choose, which related nodes to fetch as well
2321
- */
2322
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
2323
- /**
2324
- * Filter which InvoiceItem to delete.
2325
- */
2326
- where: Prisma.InvoiceItemWhereUniqueInput
2327
- }
2328
-
2329
- /**
2330
- * InvoiceItem deleteMany
2331
- */
2332
- export type InvoiceItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2333
- /**
2334
- * Filter which InvoiceItems to delete
2335
- */
2336
- where?: Prisma.InvoiceItemWhereInput
2337
- /**
2338
- * Limit how many InvoiceItems to delete.
2339
- */
2340
- limit?: number
2341
- }
2342
-
2343
- /**
2344
- * InvoiceItem.invoice
2345
- */
2346
- export type InvoiceItem$invoiceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2347
- /**
2348
- * Select specific fields to fetch from the Invoice
2349
- */
2350
- select?: Prisma.InvoiceSelect<ExtArgs> | null
2351
- /**
2352
- * Omit specific fields from the Invoice
2353
- */
2354
- omit?: Prisma.InvoiceOmit<ExtArgs> | null
2355
- /**
2356
- * Choose, which related nodes to fetch as well
2357
- */
2358
- include?: Prisma.InvoiceInclude<ExtArgs> | null
2359
- where?: Prisma.InvoiceWhereInput
2360
- }
2361
-
2362
- /**
2363
- * InvoiceItem.purchase_order_item
2364
- */
2365
- export type InvoiceItem$purchase_order_itemArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2366
- /**
2367
- * Select specific fields to fetch from the PurchaseOrderItem
2368
- */
2369
- select?: Prisma.PurchaseOrderItemSelect<ExtArgs> | null
2370
- /**
2371
- * Omit specific fields from the PurchaseOrderItem
2372
- */
2373
- omit?: Prisma.PurchaseOrderItemOmit<ExtArgs> | null
2374
- /**
2375
- * Choose, which related nodes to fetch as well
2376
- */
2377
- include?: Prisma.PurchaseOrderItemInclude<ExtArgs> | null
2378
- where?: Prisma.PurchaseOrderItemWhereInput
2379
- }
2380
-
2381
- /**
2382
- * InvoiceItem without action
2383
- */
2384
- export type InvoiceItemDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2385
- /**
2386
- * Select specific fields to fetch from the InvoiceItem
2387
- */
2388
- select?: Prisma.InvoiceItemSelect<ExtArgs> | null
2389
- /**
2390
- * Omit specific fields from the InvoiceItem
2391
- */
2392
- omit?: Prisma.InvoiceItemOmit<ExtArgs> | null
2393
- /**
2394
- * Choose, which related nodes to fetch as well
2395
- */
2396
- include?: Prisma.InvoiceItemInclude<ExtArgs> | null
2397
- }