add printer checker checks

This commit is contained in:
Efril
2026-05-28 18:11:02 +07:00
parent b9fcd79962
commit 2ab20a1150
13 changed files with 128 additions and 10 deletions
@@ -125,6 +125,7 @@ class Order with _$Order {
createdAt: DateTime.now().subtract(const Duration(hours: 1)),
updatedAt: DateTime.now(),
printerType: 'Barista',
printToChecker: false,
paidQuantity: 2,
categoryId: 'CAT-001',
categoryName: 'Minuman',
@@ -145,6 +146,7 @@ class Order with _$Order {
createdAt: DateTime.now().subtract(const Duration(hours: 1)),
updatedAt: DateTime.now(),
printerType: 'Kitchen',
printToChecker: false,
paidQuantity: 1,
categoryId: 'CAT-002',
categoryName: 'Makanan',
@@ -165,6 +167,7 @@ class Order with _$Order {
createdAt: DateTime.now().subtract(const Duration(hours: 1)),
updatedAt: DateTime.now(),
printerType: 'Kitchen',
printToChecker: false,
paidQuantity: 1,
categoryId: 'CAT-002',
categoryName: 'Makanan',
@@ -230,6 +233,7 @@ class OrderItem with _$OrderItem {
required DateTime createdAt,
required DateTime updatedAt,
required String printerType,
required bool printToChecker,
required int paidQuantity,
required String categoryId,
required String categoryName,
@@ -251,6 +255,7 @@ class OrderItem with _$OrderItem {
createdAt: DateTime(1970),
updatedAt: DateTime(1970),
printerType: '',
printToChecker: false,
paidQuantity: 0,
categoryId: '',
categoryName: '',
@@ -274,6 +279,7 @@ class OrderItem with _$OrderItem {
createdAt: DateTime.now(),
updatedAt: DateTime.now(),
printerType: productQuantity.product.printerType,
printToChecker: productQuantity.product.printToChecker,
paidQuantity: 0,
categoryId: '',
categoryName: '',