(cloud) makes ledger running balances fast and smooth

This commit is contained in:
2023-03-23 12:18:35 -07:00
parent cfc5c561c6
commit e810612fbb
12 changed files with 679 additions and 438 deletions

View File

@@ -10,4 +10,11 @@
:db/doc "Whether or not this journal entry line is dirty and needs to recalculate balances",
:db/ident :journal-entry-line/dirty,
}
{:db/valueType :db.type/tuple
:db/tupleTypes [:db.type/ref :db.type/ref :db.type/string :db.type/instant]
:db/cardinality :db.cardinality/one,
:db/ident :journal-entry-line/client+account+location+date
:db/doc "Used to find accounts and locations quickly",
:db/noHistory true
}
]

View File

@@ -1,5 +1,7 @@
{ :allow [iol-ion.tx/upsert-entity
iol-ion.tx/reset-scalars
iol-ion.tx/reset-rels
iol-ion.tx/upsert-ledger
iol-ion.tx/min-by
iol-ion.tx/propose-invoice]
:app-name "iol-cloud"}