마스터 고객/제품/창고 테스트 및 UI 구현
This commit is contained in:
43
lib/features/masters/uom/domain/entities/uom.dart
Normal file
43
lib/features/masters/uom/domain/entities/uom.dart
Normal file
@@ -0,0 +1,43 @@
|
||||
class Uom {
|
||||
Uom({
|
||||
this.id,
|
||||
required this.uomName,
|
||||
this.isDefault = false,
|
||||
this.isActive = true,
|
||||
this.isDeleted = false,
|
||||
this.note,
|
||||
this.createdAt,
|
||||
this.updatedAt,
|
||||
});
|
||||
|
||||
final int? id;
|
||||
final String uomName;
|
||||
final bool isDefault;
|
||||
final bool isActive;
|
||||
final bool isDeleted;
|
||||
final String? note;
|
||||
final DateTime? createdAt;
|
||||
final DateTime? updatedAt;
|
||||
|
||||
Uom copyWith({
|
||||
int? id,
|
||||
String? uomName,
|
||||
bool? isDefault,
|
||||
bool? isActive,
|
||||
bool? isDeleted,
|
||||
String? note,
|
||||
DateTime? createdAt,
|
||||
DateTime? updatedAt,
|
||||
}) {
|
||||
return Uom(
|
||||
id: id ?? this.id,
|
||||
uomName: uomName ?? this.uomName,
|
||||
isDefault: isDefault ?? this.isDefault,
|
||||
isActive: isActive ?? this.isActive,
|
||||
isDeleted: isDeleted ?? this.isDeleted,
|
||||
note: note ?? this.note,
|
||||
createdAt: createdAt ?? this.createdAt,
|
||||
updatedAt: updatedAt ?? this.updatedAt,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user