fix: show bank summary totals
This commit is contained in:
@@ -92,9 +92,31 @@ const BankSummaryView: FC<BankSummaryViewProps> = (props) => {
|
||||
</Title>
|
||||
|
||||
{props.data && (
|
||||
<Text className={classes.total}>
|
||||
{formatMoney(props.data.net, { withZeroCents: true })}
|
||||
</Text>
|
||||
<dl className={classes.totals}>
|
||||
<div>
|
||||
<dt>{t("bank.summary")}</dt>
|
||||
|
||||
<dd>
|
||||
{formatMoney(props.data.expenses, { withZeroCents: true })}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<dt>{t("bank.refunds")}</dt>
|
||||
|
||||
<dd>
|
||||
{formatMoney(props.data.refunds, { withZeroCents: true })}
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<dt>{t("bank.net")}</dt>
|
||||
|
||||
<dd className={classes.total}>
|
||||
{formatMoney(props.data.net, { withZeroCents: true })}
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
)}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user