feat: scan book to add to sell
This commit is contained in:
parent
3a013c829f
commit
07c7c98edb
11 changed files with 238 additions and 31 deletions
15
lib/domain/models/book_stack.dart
Normal file
15
lib/domain/models/book_stack.dart
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import 'package:seshat/domain/models/book.dart';
|
||||
import 'package:seshat/domain/models/book_instance.dart';
|
||||
import 'package:seshat/domain/models/owner.dart';
|
||||
|
||||
class BookStack {
|
||||
BookStack(this.book, this.instance, this.owner);
|
||||
|
||||
Book book;
|
||||
BookInstance instance;
|
||||
Owner owner;
|
||||
|
||||
String shortId() {
|
||||
return "${owner.firstName[0].toUpperCase()}${owner.lastName[0].toUpperCase()}${instance.price}";
|
||||
}
|
||||
}
|
||||
Reference in a new issue