Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
collection_entity.dart
Go to the documentation of this file.
1// // import 'package:equatable/equatable.dart';
2
3// // class CollectionEntity extends Equatable {
4// // String? collectionRequest;
5// // CompanyEntity? company;
6// // DateTime? createDate;
7// // CurrencyEntity? currency;
8// // DateTime? dateOrder;
9// // num? id;
10// // String? name;
11// // List<OrderLineEntity>? orderLines;
12// // PartnerEntity? partner;
13// // num? pickingTypeId;
14// // num? priority;
15// // CompanyEntity? proposedTime;
16// // String? state;
17// // String? status;
18// // String? supplierProcess;
19// // UserEnntity? user;
20// // DateTime? writeDate;
21
22// // const CollectionEntity({
23// // required this.collectionRequest,
24// // required this.company,
25// // required this.createDate,
26// // required this.currency,
27// // required this.dateOrder,
28// // required this.id,
29// // required this.name,
30// // required this.orderLines,
31// // required this.partner,
32// // required this.pickingTypeId,
33// // required this.priority,
34// // required this.proposedTime,
35// // required this.state,
36// // required this.status,
37// // required this.supplierProcess,
38// // required this.user,
39// // required this.writeDate,
40// // });
41
42// // @override
43// // List<Object?> get props => [
44// // collectionRequest,
45// // company,
46// // createDate,
47// // currency,
48// // dateOrder,
49// // id,
50// // name,
51// // orderLines,
52// // partner,
53// // pickingTypeId,
54// // priority,
55// // proposedTime,
56// // state,
57// // status,
58// // supplierProcess,
59// // user,
60// // writeDate,
61// // ];
62// // }
63
64// // class CompanyEntity extends Equatable {
65// // num? id;
66// // String? name;
67
68// // const CompanyEntity({
69// // required this.id,
70// // required this.name,
71// // });
72
73// // @override
74// // List<Object?> get props => [id, name];
75// // }
76
77// // class CurrencyEntity extends Equatable {
78// // String? fullName;
79// // num? id;
80// // String? name;
81// // String? symbol;
82
83// // const CurrencyEntity({
84// // required this.fullName,
85// // required this.id,
86// // required this.name,
87// // required this.symbol,
88// // });
89
90// // @override
91// // List<Object?> get props => [fullName, id, name, symbol];
92// // }
93
94// // class OrderLineEntity extends Equatable {
95// // CompanyEntity? company;
96// // DateTime? datePlanned;
97// // num? id;
98// // String? name;
99// // num? priceUnit;
100// // num? productId;
101// // num? productQty;
102// // CompanyEntity? productUom;
103
104// // const OrderLineEntity({
105// // required this.company,
106// // required this.datePlanned,
107// // required this.id,
108// // required this.name,
109// // required this.priceUnit,
110// // required this.productId,
111// // required this.productQty,
112// // required this.productUom,
113// // });
114
115// // @override
116// // List<Object?> get props => [
117// // company,
118// // datePlanned,
119// // id,
120// // name,
121// // priceUnit,
122// // productId,
123// // productQty,
124// // productUom,
125// // ];
126// // }
127
128// // class PartnerEntity extends Equatable {
129// // num? id;
130// // num? monthlyCapacity;
131// // String? name;
132// // String? neighborhood;
133// // num? parentId;
134// // num? tokenTotalValue;
135
136// // const PartnerEntity({
137// // required this.id,
138// // required this.monthlyCapacity,
139// // required this.name,
140// // required this.neighborhood,
141// // required this.parentId,
142// // required this.tokenTotalValue,
143// // });
144
145// // @override
146// // List<Object?> get props => [
147// // id,
148// // monthlyCapacity,
149// // name,
150// // neighborhood,
151// // parentId,
152// // tokenTotalValue,
153// // ];
154// // }
155
156// // class UserEnntity extends Equatable {
157// // CompanyEntity? company;
158// // num? id;
159// // num? partnerId;
160
161// // const UserEnntity({
162// // required this.company,
163// // required this.id,
164// // required this.partnerId,
165// // });
166
167// // @override
168// // List<Object?> get props => [company, id, partnerId];
169// // }
170
171// class Currency {
172// String? fullName;
173// num? id;
174// String? name;
175// String? symbol;
176
177// Currency({
178// this.fullName,
179// this.id,
180// this.name,
181// this.symbol,
182// });
183// }
184
185// class Company {
186// Currency? currency;
187// num? id;
188// String? name;
189
190// Company({
191// this.currency,
192// this.id,
193// this.name,
194// });
195// }
196
197// class FiscalPosition {
198// num? id;
199// String? name;
200
201// FiscalPosition({
202// this.id,
203// this.name,
204// });
205// }
206
207// class ProductUom {
208// num? id;
209// String? name;
210
211// ProductUom({
212// this.id,
213// this.name,
214// });
215// }
216
217// class ResCountryState {
218// String? code;
219// num? countryId;
220// num? id;
221// String? name;
222
223// ResCountryState({
224// this.code,
225// this.countryId,
226// this.id,
227// this.name,
228// });
229// }
230
231// class Partner {
232// num? id;
233// bool? isCompany;
234// num? monthlyCapacity;
235// String? name;
236// String? neighborhood;
237// num? parentId;
238// ResCountryState? resCountryState;
239// num? tokenTotalValue;
240
241// Partner({
242// this.id,
243// this.isCompany,
244// this.monthlyCapacity,
245// this.name,
246// this.neighborhood,
247// this.parentId,
248// this.resCountryState,
249// this.tokenTotalValue,
250// });
251// }
252
253// class ProposedTime {
254// num? id;
255// String? name;
256
257// ProposedTime({
258// this.id,
259// this.name,
260// });
261
262// @override
263// bool operator ==(Object other) {
264// if (identical(this, other)) return true;
265// return other is ProposedTime && other.id == id;
266// }
267
268// @override
269// num get hashCode => id.hashCode;
270// }
271
272// class User {
273// Company? company;
274// num? id;
275// num? partnerId;
276
277// User({
278// this.company,
279// this.id,
280// this.partnerId,
281// });
282// }
283
284// class OrderLine {
285// Company? company;
286// num? createUid;
287// Currency? currency;
288// DateTime? datePlanned;
289// num? id;
290// String? name;
291// num? partnerId;
292// num? priceSubtotal;
293// num? priceTax;
294// num? priceTotal;
295// num? priceUnit;
296// num? productId;
297// num? productPackagingQty;
298// num? productQty;
299// ProductUom? productUom;
300// num? productUomQty;
301// num? qtyInvoiced;
302// num? qtyReceived;
303// num? qtyReceivedManual;
304// String? qtyReceivedMethod;
305// num? qtyToInvoice;
306// num? sequence;
307// num? writeUid;
308
309// OrderLine({
310// this.company,
311// this.createUid,
312// this.currency,
313// this.datePlanned,
314// this.id,
315// this.name,
316// this.partnerId,
317// this.priceSubtotal,
318// this.priceTax,
319// this.priceTotal,
320// this.priceUnit,
321// this.productId,
322// this.productPackagingQty,
323// this.productQty,
324// this.productUom,
325// this.productUomQty,
326// this.qtyInvoiced,
327// this.qtyReceived,
328// this.qtyReceivedManual,
329// this.qtyReceivedMethod,
330// this.qtyToInvoice,
331// this.sequence,
332// this.writeUid,
333// });
334// }
335
336// class CollectionEntity {
337// String? collectionRequest;
338// Company? company;
339// DateTime? createDate;
340// num? createUid;
341// Currency? currency;
342// DateTime? dateApprove;
343// DateTime? dateOrder;
344// FiscalPosition? fiscalPosition;
345// num? id;
346// num? invoiceCount;
347// String? invoiceStatus;
348// String? name;
349// List<OrderLine>? orderLines;
350// Partner? partner;
351// num? pickingTypeId;
352// num? priority;
353// ProposedTime? proposedTime;
354// String? state;
355// String? status;
356// String? supplierProcess;
357// User? user;
358// num? warehouseId;
359// DateTime? writeDate;
360// num? writeUid;
361
362// CollectionEntity({
363// this.collectionRequest,
364// this.company,
365// this.createDate,
366// this.createUid,
367// this.currency,
368// this.dateApprove,
369// this.dateOrder,
370// this.fiscalPosition,
371// this.id,
372// this.invoiceCount,
373// this.invoiceStatus,
374// this.name,
375// this.orderLines,
376// this.partner,
377// this.pickingTypeId,
378// this.priority,
379// this.proposedTime,
380// this.state,
381// this.status,
382// this.supplierProcess,
383// this.user,
384// this.warehouseId,
385// this.writeDate,
386// this.writeUid,
387// });
388// }
389
390class CurrencyEntity {
391 final String? fullName;
392 final num? id;
393 final String? name;
394 final String? symbol;
395
397 required this.fullName,
398 required this.id,
399 required this.name,
400 required this.symbol,
401 });
402}
403
405 final num? id;
406 final String? name;
407
409 required this.id,
410 required this.name,
411 });
412}
413
414class CompanyEntity {
416 final num? id;
417 final String? name;
418
420 required this.currency,
421 required this.id,
422 required this.name,
423 });
424}
425
426class ProposedTimeEntity {
427 final num? id;
428 final String? name;
429
431 required this.id,
432 required this.name,
433 });
434
435 Map<String, dynamic> toJson() {
436 return {
437 'id': id,
438 'name': name,
439 };
440 }
441}
442
443class WarehouseEntity {
444 final num? id;
445 final String? name;
446
448 required this.id,
449 required this.name,
450 });
451}
452
453class ProductUomEntity {
454 final num? id;
455 final String? name;
456
458 required this.id,
459 required this.name,
460 });
461}
462
463class PartnerEntity {
464 final String? city;
466 final num? id;
467 final bool? isCompany;
468 final num? monthlyCapacity;
469 final String? name;
470 final String? processType;
472 final String? street;
473 final String? street2;
474 final num? tokenTotalValue;
475 final String? typeOfSupplier;
476
478 required this.city,
479 required this.district,
480 required this.id,
481 required this.isCompany,
482 required this.monthlyCapacity,
483 required this.name,
484 required this.processType,
485 required this.resCountryState,
486 required this.street,
487 required this.street2,
488 required this.tokenTotalValue,
489 required this.typeOfSupplier,
490 });
491}
492
493class DistrictEntity {
494 final num? id;
495 final String? name;
496
498 required this.id,
499 required this.name,
500 });
501}
502
504 final String? code;
505 final num? countryId;
506 final num? id;
507 final String? name;
508
510 required this.code,
511 required this.countryId,
512 required this.id,
513 required this.name,
514 });
515}
516
517class OrderLineEntity {
519 final num? createUid;
521 final DateTime? datePlanned;
522 final num? id;
523 final String? name;
524 final num? partnerId;
525 final num? priceSubtotal;
526 final num? priceTax;
527 final num? priceTotal;
528 final num? priceUnit;
529 final num? productId;
531 final num? productQty;
533 final num? productUomQty;
534 final num? qtyInvoiced;
535 final num? qtyReceived;
537 final String? qtyReceivedMethod;
538 final num? qtyToInvoice;
539 final num? sequence;
540 final num? writeUid;
541
543 required this.company,
544 required this.createUid,
545 required this.currency,
546 required this.datePlanned,
547 required this.id,
548 required this.name,
549 required this.partnerId,
550 required this.priceSubtotal,
551 required this.priceTax,
552 required this.priceTotal,
553 required this.priceUnit,
554 required this.productId,
555 required this.productPackagingQty,
556 required this.productQty,
557 required this.productUom,
558 required this.productUomQty,
559 required this.qtyInvoiced,
560 required this.qtyReceived,
561 required this.qtyReceivedManual,
562 required this.qtyReceivedMethod,
563 required this.qtyToInvoice,
564 required this.sequence,
565 required this.writeUid,
566 });
567}
568
569class CollectionEntity {
570 final String? collectionRequest;
571 final DateTime? createDate;
572 final num? createUid;
573 final DateTime? dateOrder;
574 final String? instruction;
575 final num? id;
576 final num? invoiceCount;
577 final String? invoiceStatus;
578 final String? name;
579 final num? pickingTypeId;
580 final String? priority;
581 final String? state;
582 final String? status;
583 final String? supplierProcess;
584 final DateTime? writeDate;
585 final num? writeUid;
589 final List<OrderLineEntity>? orderLines;
593
595 required this.collectionRequest,
596 required this.createDate,
597 required this.instruction,
598 required this.createUid,
599 required this.dateOrder,
600 required this.id,
601 required this.invoiceCount,
602 required this.invoiceStatus,
603 required this.name,
604 required this.pickingTypeId,
605 required this.priority,
606 required this.state,
607 required this.status,
608 required this.supplierProcess,
609 required this.writeDate,
610 required this.writeUid,
611 required this.company,
612 required this.currency,
613 required this.fiscalPosition,
614 required this.orderLines,
615 required this.partner,
616 required this.proposedTime,
617 required this.warehouse,
618 });
619}
final List< OrderLineEntity > orderLines
final PartnerEntity partner
final DateTime createDate
final WarehouseEntity warehouse
final CurrencyEntity currency
CollectionEntity({ required this.collectionRequest, required this.createDate, required this.instruction, required this.createUid, required this.dateOrder, required this.id, required this.invoiceCount, required this.invoiceStatus, required this.name, required this.pickingTypeId, required this.priority, required this.state, required this.status, required this.supplierProcess, required this.writeDate, required this.writeUid, required this.company, required this.currency, required this.fiscalPosition, required this.orderLines, required this.partner, required this.proposedTime, required this.warehouse, })
final String collectionRequest
final CompanyEntity company
final FiscalPositionEntity fiscalPosition
final ProposedTimeEntity proposedTime
CompanyEntity({ required this.currency, required this.id, required this.name, })
final CurrencyEntity currency
CurrencyEntity({ required this.fullName, required this.id, required this.name, required this.symbol, })
final DistrictEntity district
PartnerEntity({ required this.city, required this.district, required this.id, required this.isCompany, required this.monthlyCapacity, required this.name, required this.processType, required this.resCountryState, required this.street, required this.street2, required this.tokenTotalValue, required this.typeOfSupplier, })
final ResCountryStateEntity resCountryState
final String typeOfSupplier
final String processType
ResCountryStateEntity({ required this.code, required this.countryId, required this.id, required this.name, })
WarehouseEntity({ required this.id, required this.name, })
final num priceTotal
final num qtyReceived
final num productPackagingQty
final String qtyReceivedMethod
final num productQty
final num createUid
ProposedTimeEntity({ required this.id, required this.name, })
final DateTime datePlanned
final num productUomQty
final num qtyToInvoice
final ProductUomEntity productUom
final num writeUid
FiscalPositionEntity({ required this.id, required this.name, })
ProductUomEntity({ required this.id, required this.name, })
final num partnerId
final CurrencyEntity currency
class CurrencyEntity id
final num qtyInvoiced
final num priceUnit
class ResCountryStateEntity company
final num qtyReceivedManual
final num priceTax
final num priceSubtotal
final num productId
DistrictEntity({ required this.id, required this.name, })
OrderLineEntity({ required this.company, required this.createUid, required this.currency, required this.datePlanned, required this.id, required this.name, required this.partnerId, required this.priceSubtotal, required this.priceTax, required this.priceTotal, required this.priceUnit, required this.productId, required this.productPackagingQty, required this.productQty, required this.productUom, required this.productUomQty, required this.qtyInvoiced, required this.qtyReceived, required this.qtyReceivedManual, required this.qtyReceivedMethod, required this.qtyToInvoice, required this.sequence, required this.writeUid, })
final num sequence
final String name
Map< String, dynamic > toJson()