feat: Add additional fields to OrderItem and update cost calculation in ViewOrderCard

This commit is contained in:
Achintha Isuru
2026-03-19 23:55:57 -04:00
parent 4cd83a9281
commit 1e4c8982a5
2 changed files with 73 additions and 1 deletions

View File

@@ -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(