@@ -35,6 +35,8 @@ class Invoice extends Equatable {
|
||||
required this.totalAmount,
|
||||
required this.workAmount,
|
||||
required this.addonsAmount,
|
||||
this.invoiceNumber,
|
||||
this.issueDate,
|
||||
});
|
||||
/// Unique identifier.
|
||||
final String id;
|
||||
@@ -57,6 +59,12 @@ class Invoice extends Equatable {
|
||||
/// Total amount for addons/extras.
|
||||
final double addonsAmount;
|
||||
|
||||
/// Human-readable invoice number.
|
||||
final String? invoiceNumber;
|
||||
|
||||
/// Date when the invoice was issued.
|
||||
final DateTime? issueDate;
|
||||
|
||||
@override
|
||||
List<Object?> get props => <Object?>[
|
||||
id,
|
||||
@@ -66,5 +74,7 @@ class Invoice extends Equatable {
|
||||
totalAmount,
|
||||
workAmount,
|
||||
addonsAmount,
|
||||
invoiceNumber,
|
||||
issueDate,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user