fix success add item order

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