Fixed compilation

This commit is contained in:
Stephan D
2026-01-22 14:15:14 +01:00
parent 8456263dd8
commit 32e8376700
41 changed files with 549 additions and 190 deletions

View File

@@ -1,4 +1,5 @@
import 'package:pshared/models/describable.dart';
import 'package:pshared/models/ledger/balance.dart';
class LedgerAccount implements Describable {
@@ -15,6 +16,7 @@ class LedgerAccount implements Describable {
final DateTime? createdAt;
final DateTime? updatedAt;
final Describable describable;
final LedgerBalance? balance;
@override
String get name => describable.name;
@@ -36,6 +38,7 @@ class LedgerAccount implements Describable {
this.createdAt,
this.updatedAt,
required this.describable,
this.balance,
});
LedgerAccount copyWith({
@@ -54,5 +57,6 @@ class LedgerAccount implements Describable {
createdAt: createdAt,
updatedAt: updatedAt,
describable: describable ?? this.describable,
balance: balance,
);
}

View File

@@ -0,0 +1,16 @@
import 'package:pshared/models/money.dart';
class LedgerBalance {
final String ledgerAccountRef;
final Money? balance;
final int version;
final DateTime? lastUpdated;
const LedgerBalance({
required this.ledgerAccountRef,
this.balance,
required this.version,
this.lastUpdated,
});
}