feat: add OrderType enum and integrate orderType in OrderItem and ViewOrdersCubit

This commit is contained in:
Achintha Isuru
2026-02-21 20:53:27 -05:00
parent 6e50369e17
commit 6de6661394
5 changed files with 40 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ class ViewOrdersRepositoryImpl implements IViewOrdersRepository {
return domain.OrderItem(
id: _shiftRoleKey(shiftRole.shiftId, shiftRole.roleId),
orderId: shiftRole.shift.order.id,
orderType: domain.OrderType.fromString(shiftRole.shift.order.orderType.stringValue),
title: '${shiftRole.role.name} - $eventName',
clientName: businessName,
status: status,

View File

@@ -178,6 +178,7 @@ class ViewOrdersCubit extends Cubit<ViewOrdersState>
return OrderItem(
id: order.id,
orderId: order.orderId,
orderType: order.orderType,
title: order.title,
clientName: order.clientName,
status: status,