Skip to content

Commit

Permalink
fix: reorder cashier product list price
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 committed Feb 27, 2023
1 parent aa58005 commit 12c12fc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/ui/order/cashier/order_cashier_product_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ class OrderCashierProductList extends StatelessWidget {
final priceWidget = ExpansionTile(
title: Text(S.orderCashierTotalPrice(totalPrice)),
children: <Widget>[
if (paid != null)
ListTile(
title: Text(S.orderCashierPaidLabel),
trailing: Text(paid!.toCurrency()),
),
ListTile(
title: Text(S.orderCashierProductTotalPriceLabel),
trailing: Text(productsPrice.toCurrency()),
),
ListTile(
title: Text(S.orderCashierAttributeTotalPrice),
trailing: Text(attributePrice.toCurrency()),
),
if (productCost != null)
ListTile(
title: Text(S.orderCashierProductTotalCostLabel),
Expand All @@ -59,10 +58,11 @@ class OrderCashierProductList extends StatelessWidget {
title: Text(S.orderCashierIncomeLabel),
trailing: Text(income!.toCurrency()),
),
ListTile(
title: Text(S.orderCashierAttributeTotalPrice),
trailing: Text(attributePrice.toCurrency()),
),
if (paid != null)
ListTile(
title: Text(S.orderCashierPaidLabel),
trailing: Text(paid!.toCurrency()),
),
],
);

Expand Down

0 comments on commit 12c12fc

Please sign in to comment.