showing better name to shifts in shows orders

This commit is contained in:
José Salazar
2026-01-29 17:17:52 -05:00
parent 02b0790ec3
commit f323f73337
6 changed files with 21017 additions and 21007 deletions

View File

@@ -62,10 +62,13 @@ class ViewOrdersRepositoryImpl implements IViewOrdersRepository {
'end=${shiftRole.endTime?.toJson()} hours=$hours totalValue=$totalValue',
);
final String eventName =
shiftRole.shift.order.eventName ?? shiftRole.shift.title;
return domain.OrderItem(
id: _shiftRoleKey(shiftRole.shiftId, shiftRole.roleId),
orderId: shiftRole.shift.order.id,
title: '${shiftRole.role.name} - ${shiftRole.shift.title}',
title: '${shiftRole.role.name} - $eventName',
clientName: businessName,
status: status,
date: dateStr,