update report
This commit is contained in:
parent
e3b9444a08
commit
37d747c0ba
@ -43,6 +43,7 @@ class ReportCategorySection extends StatelessWidget {
|
||||
endDate: endDate,
|
||||
startDate: startDate,
|
||||
),
|
||||
SpaceHeight(16),
|
||||
_buildSummary(state),
|
||||
Container(
|
||||
margin: EdgeInsets.only(top: 16),
|
||||
|
||||
@ -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(),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@ -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 ==
|
||||
|
||||
@ -144,7 +144,7 @@ class ReportProfitLossSection extends StatelessWidget {
|
||||
icon: Icons.account_balance_outlined,
|
||||
title: 'Laba Bersih',
|
||||
value: state.profitLossAnalytic.summary.netProfit
|
||||
.toString()
|
||||
.toDouble()
|
||||
.currencyFormatRpV2,
|
||||
),
|
||||
),
|
||||
|
||||
@ -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,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user