sign in with pocketbase working
This commit is contained in:
@@ -212,7 +212,7 @@ class _OverviewScreenState extends State<OverviewScreen> {
|
||||
Map<DateTime, Map<String, double>> labelAmountByPeriod = const {};
|
||||
|
||||
if (_metric == _MetricMode.flow) {
|
||||
monthly = _flowTotals(txs, periods, _period);
|
||||
monthly = _flowTotals(txs, meta, periods, _period);
|
||||
} else {
|
||||
final labels = _labelAggregates(
|
||||
txs,
|
||||
@@ -478,6 +478,7 @@ String _periodAxisLabel(DateTime period, _PeriodMode mode) {
|
||||
|
||||
Map<DateTime, _MonthBucket> _flowTotals(
|
||||
List<BankTransaction> txs,
|
||||
TxMetaController meta,
|
||||
List<DateTime> periods,
|
||||
_PeriodMode mode,
|
||||
) {
|
||||
@@ -486,6 +487,7 @@ Map<DateTime, _MonthBucket> _flowTotals(
|
||||
for (final key in keys) key: (income: 0.0, expense: 0.0),
|
||||
};
|
||||
for (final tx in txs) {
|
||||
if (meta.metaFor(tx).internalTransfer) continue;
|
||||
final date = _txDate(tx);
|
||||
if (date == null) continue;
|
||||
final key = _periodKey(date, mode);
|
||||
@@ -545,6 +547,7 @@ _LabelAggregates _labelAggregates(
|
||||
final filtering = includedLabelIds.isNotEmpty;
|
||||
|
||||
for (final tx in txs) {
|
||||
if (meta.metaFor(tx).internalTransfer) continue;
|
||||
if (!txMatchesFlow(tx, flow)) continue;
|
||||
final date = _txDate(tx);
|
||||
if (date == null) continue;
|
||||
|
||||
Reference in New Issue
Block a user