update report

This commit is contained in:
efrilm 2025-11-13 17:47:00 +07:00
parent e3b9444a08
commit 37d747c0ba
5 changed files with 11 additions and 14 deletions

View File

@ -43,6 +43,7 @@ class ReportCategorySection extends StatelessWidget {
endDate: endDate,
startDate: startDate,
),
SpaceHeight(16),
_buildSummary(state),
Container(
margin: EdgeInsets.only(top: 16),

View File

@ -136,7 +136,7 @@ class ReportPaymentMethodSection extends StatelessWidget {
),
),
Text(
"${item.percentage}%",
"${item.percentage.round()}%",
style: AppStyle.md.copyWith(
fontWeight: FontWeight.bold,
color: AppColor.primary,
@ -221,11 +221,8 @@ class ReportPaymentMethodSection extends StatelessWidget {
color: AppColor.info,
icon: Icons.shopping_cart_outlined,
title: 'Jumlah Pesanan',
value: state
.paymentMethodAnalytic
.summary
.totalOrders
.currencyFormatRpV2,
value: state.paymentMethodAnalytic.summary.totalOrders
.toString(),
),
),
],
@ -251,11 +248,8 @@ class ReportPaymentMethodSection extends StatelessWidget {
color: AppColor.info,
icon: Icons.wallet_outlined,
title: 'Jumlah Pembayaran',
value: state
.paymentMethodAnalytic
.summary
.totalPayments
.currencyFormatRpV2,
value: state.paymentMethodAnalytic.summary.totalPayments
.toString(),
),
),
],

View File

@ -64,7 +64,7 @@ class ReportProductSection extends StatelessWidget {
final category =
state.productAnalytic.categories[index];
return Container(
width: 200,
width: 220,
padding: EdgeInsets.only(
right:
index ==

View File

@ -144,7 +144,7 @@ class ReportProfitLossSection extends StatelessWidget {
icon: Icons.account_balance_outlined,
title: 'Laba Bersih',
value: state.profitLossAnalytic.summary.netProfit
.toString()
.toDouble()
.currencyFormatRpV2,
),
),

View File

@ -281,7 +281,9 @@ class ReportSalesSection extends StatelessWidget {
color: AppColor.primary,
icon: Icons.attach_money_outlined,
title: "Nilai Pesanan Rata-rata",
value: state.salesAnalytic.summary.averageOrderValue.toString(),
value: state.salesAnalytic.summary.averageOrderValue
.round()
.currencyFormatRpV2,
),
],
),