update. save => print

This commit is contained in:
Phuoc Nguyen
2025-11-04 09:29:35 +07:00
parent ff25363a19
commit 1cfdd2c0c6
2 changed files with 6 additions and 4 deletions

View File

@@ -418,7 +418,7 @@ class _ProductDetailPageState extends ConsumerState<ProductDetailPage> {
),
const SizedBox(height: 16),
Text(
'Error',
'Lỗi',
style: theme.textTheme.titleLarge?.copyWith(
color: theme.colorScheme.error,
),
@@ -788,8 +788,7 @@ class _ProductDetailPageState extends ConsumerState<ProductDetailPage> {
return;
}
// Print before saving to API
await _printQuantities(stage);
// Show loading dialog
showDialog(
@@ -863,6 +862,9 @@ class _ProductDetailPageState extends ConsumerState<ProductDetailPage> {
),
);
// Print before saving to API
await _printQuantities(stage);
// Refresh the product detail to show updated quantities
await ref.read(productDetailProvider(_providerKey).notifier).refreshProductDetail(
widget.warehouseId,