you can exclude from the ledger.
This commit is contained in:
@@ -263,6 +263,7 @@
|
||||
(remove-nils {:db/id transaction-id
|
||||
:transaction/vendor vendor-id
|
||||
:transaction/location "A"
|
||||
:transaction/exclude-from-ledger true
|
||||
:transaction/accounts [#:transaction-account {:account (:db/id (accounts/get-account-by-numeric-code-and-sets 2110 ["default"]))
|
||||
:location "A"
|
||||
:amount (Math/abs amount)}]
|
||||
@@ -282,6 +283,12 @@
|
||||
:db/unique :db.unique/identity
|
||||
:db/doc "For externally imported id"}]])
|
||||
|
||||
(def add-exclude-to-transaction
|
||||
[[{:db/ident :transaction/exclude-from-ledger
|
||||
:db/valueType :db.type/boolean
|
||||
:db/cardinality :db.cardinality/one
|
||||
:db/doc "Whether to exclude from the ledger"}]])
|
||||
|
||||
(def add-credit-bank-account
|
||||
[[{:db/ident :bank-account-type/credit}]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user