fix: report profit loss
This commit is contained in:
@@ -194,12 +194,12 @@ class _ReportPageState extends State<ReportPage> {
|
||||
isActive: selectedMenu == 4,
|
||||
),
|
||||
ReportMenu(
|
||||
label: 'Laporan untung rugi',
|
||||
label: 'Laporan Untung Rugi',
|
||||
subtitle: 'Laporan untung rugi penjualan.',
|
||||
icon: Icons.trending_down,
|
||||
onPressed: () {
|
||||
selectedMenu = 5;
|
||||
title = 'Laporan untung rugi';
|
||||
title = 'Laporan Untung Rugi';
|
||||
setState(() {});
|
||||
context.read<ProfitLossBloc>().add(
|
||||
ProfitLossEvent.getProfitLoss(
|
||||
|
||||
@@ -873,7 +873,7 @@ class ProfitLossWidget extends StatelessWidget {
|
||||
Expanded(
|
||||
child: _buildMetricCard(
|
||||
'Keuntungan Rata-rata',
|
||||
_formatCurrency(data.summary.averageProfit),
|
||||
"${data.summary.averageProfit.round()}%",
|
||||
'Per pesanan',
|
||||
Icons.trending_up,
|
||||
AppColorProfitLoss.success,
|
||||
|
||||
@@ -16,7 +16,7 @@ class ReportTitle extends StatelessWidget {
|
||||
vertical: 10.0,
|
||||
),
|
||||
width: double.infinity,
|
||||
height: context.deviceHeight * 0.1,
|
||||
height: context.deviceHeight * 0.13,
|
||||
decoration: const BoxDecoration(
|
||||
color: AppColors.white,
|
||||
border: Border(
|
||||
|
||||
Reference in New Issue
Block a user