-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests, etc: refactor in light of addition of Journal model (#19)
Now that we have a `Journal` model (which "owns" `Account` models) we should update our testing helpers to account for the journal instances more explicitly. This PR does just that. Also we add the notion of a 'current period' to `Journal` and remove the notion of a globally configured "accounting period": a `Journal` now controls what is the current accounting period in any given context for objects which descend from it (accounts, line items, etc.). Later work can further modify existing scopes to require that journal object to use as a fallback when a more specific period is not needed (and to ensure all e.g. ledger line items are always scoped to a specific journal). Related to #16. Closes #19. ----- Automated Test Results: OK (191 tests, 319 assertions)
- Loading branch information
1 parent
7754505
commit 849823d
Showing
22 changed files
with
669 additions
and
775 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
factories / seeders - create more than one journal | ||
|
||
journal helper instance method for getting line items | ||
all line items within journal's current period by default | ||
optionally constrained to specific period | ||
optionally constrained to specific account | ||
|
||
update account scopes - require journal | ||
|
||
denormalize line-item model (journal_id & date) | ||
update factories, seeders, & tests | ||
simplify existing scopes' implementations | ||
|
||
denormalize source-document model (journal_id) | ||
update factories, seeders, & tests | ||
|
||
denormalize transaction model (journal_id) | ||
update factories, seeders, & tests | ||
|
||
update line item scopes - require journal | ||
|
||
----- | ||
|
||
line item & account: current journal global scope (opt-in) | ||
|
||
report helpers | ||
trial balance | ||
other reports / custom report definitions? | ||
|
||
default accounts (used automatically for new journals) | ||
|
||
helpers/support for multi-db (journals grouped into sets, one db per set)? | ||
|
||
documentation, doc rendering (phpdocs?) | ||
|
||
code coverage | ||
|
||
----- | ||
|
||
prepare for & release 1.0 | ||
|
||
----- | ||
|
||
headless livewire components? | ||
|
||
filament package? | ||
|
||
tease out "core" from laravel-specific bits? | ||
look at money pattern & libs? | ||
cli demo app? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.