-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WiP] implications #151
base: main
Are you sure you want to change the base?
[WiP] implications #151
Conversation
The whole lookalike-group logic is pretty complex. |
We can call this variable
The implication links it to at least one statement, with relation 'inner', 'outer', 'delivery', 'consumption', 'production'. The statement refers to an entry in the database of a neighbouring system or organisation, as evidenced by appearance in a business document, statement, API request body, API response body, or UI gesture. As such it should have a system identifier and a remote ID that is scoped to that system. It might be good to also store the documents as evidence?
|
So then |
How can the user manage the documents that PreJournal holds? |
After adding a document you could check if the statements table is correct given the current set of documents, or just generate the statements for the currently added document. Both trigger paths should eventually be possible. |
Maybe the statements table should have a freeform JSON attributes column, since there can be so much diversity in that, and you don't want to lose the information either. |
Should we be tracking which document line links to which statement? Then maybe the document should be split into lines while parsing? |
A document is batch of messages.
|
A document like a bank statement or a timesheet is actually not just a batch of entries because it also claims to be exhaustive for the dates it covers. |
Maybe 'interaction' is a better word for when the state of a PreJournal instance changes due to an interaction with another system. And maybe 'line' is a better word for 'message'.
|
The important thing now is that the to and from component are created/chosen correctly and that the attributes go on the statement. |
bank statement parser function produce:
timesheet parser functions produce:
|
We also may want to store the purchase implication rules in the database somehow? There are two parts to that: We should import bank statements, expenses, timesheets, and invoices. It would already be interesting to see all the transactions and their monthly sums, but just show what each entity owes the world, and what their deduplicated transaction log looks like, without separating them out to very specific budgets. Will try to get that working tomorrow! |
I'll refactor the bank statement import so that it gives entries:
And keep:
That leaves it a bit cleaner how you then use the comment for the statement, the otherComponent for a component, etc |
I may still need a better word for statement that makes it clear whether it's a line in a doc, or the underlying belief that may appear in several docs. Maybe statement and object, or statement and notion? |
Ah bummer, feels like this branch has gone stale and I left some work half-done there. |
No description provided.