feat: Add additional fields to OrderItem and update cost calculation in ViewOrderCard
This commit is contained in:
@@ -123,7 +123,9 @@ class _ViewOrderCardState extends State<ViewOrderCard> {
|
||||
: 0;
|
||||
|
||||
final double hours = _computeHours(order);
|
||||
final double cost = order.totalCostCents / 100.0;
|
||||
final double cost = order.totalValue > 0
|
||||
? order.totalValue
|
||||
: order.totalCostCents / 100.0;
|
||||
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
|
||||
Reference in New Issue
Block a user