summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gmail.com>2023-04-18 20:23:40 -0700
committerTavis Ormandy <taviso@gmail.com>2023-04-18 20:23:40 -0700
commitf58b19d94071daf912ab83479fb411aca8224833 (patch)
treec98ed374254b6cf62ef8f162f37cac6bef25244d /src/item.h
parentbd510c2e5f6269b4112f032d2a9e1d7665e4fd74 (diff)
downloadfork-ledger-f58b19d94071daf912ab83479fb411aca8224833.tar.gz
fork-ledger-f58b19d94071daf912ab83479fb411aca8224833.tar.bz2
fork-ledger-f58b19d94071daf912ab83479fb411aca8224833.zip
fix #2220, bucket transactions ignored with reg --related
This adds a new item flag, `ITEM_INFERRED`, that differentiates generated items from bucket items. This makes them show up as related items in reports.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h
index c21450e8..84f062ab 100644
--- a/src/item.h
+++ b/src/item.h
@@ -86,6 +86,7 @@ public:
#define ITEM_GENERATED 0x01 // posting was not found in a journal
#define ITEM_TEMP 0x02 // posting is a managed temporary
#define ITEM_NOTE_ON_NEXT_LINE 0x04 // did we see a note on the next line?
+#define ITEM_INFERRED 0x08 // bucketed item
enum state_t { UNCLEARED = 0, CLEARED, PENDING };