update success add item user before customer name

This commit is contained in:
Efril
2026-04-29 12:46:52 +07:00
parent e7260ea0e2
commit cdc65f8f8f
4 changed files with 5 additions and 6 deletions
@@ -108,7 +108,7 @@ class SuccessAddItemOrderLeftPanel extends StatelessWidget {
icon: Icons.person,
label: 'Pemesan',
value:
checkoutState.customerName,
checkoutState.orderAdded?.metadata['customer_name'] ?? '-',
),
if (checkoutState.orderAdded?.payments.isNotEmpty ??
false) ...[
@@ -192,9 +192,7 @@ class SuccessAddItemOrderLeftPanel extends StatelessWidget {
context.read<PrintStruckBloc>().add(
PrintStruckEvent.order(
Order.fromLastOrder(
order.copyWith(metadata: {
"customer_name": checkoutState.customerName
}),
order,
checkoutState.items,
),
),