Skip to content

Commit 6d1f514

Browse files
committed
Tests Update
PO Configure Bugfix Roadmap Update
1 parent a951978 commit 6d1f514

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ More details available in the [Django Ledger v0.5 Page](https://www.arrobalytics
8989
* Hierarchical Account Model Management.
9090
* Generate all Django Ledger Model documentation.
9191
* ~~__0.5.3__~~: High Level EntityModel API.
92-
* __0.5.4__: Balance Sheet Statement, Income Statement & Cash Flow Statement API & PDF report export.
92+
* ~~__0.5.4__~~: Balance Sheet Statement, Income Statement & Cash Flow Statement API & PDF report export.
9393
* __0.5.5__: Closing entries and snapshots.
9494
* __0.5.6__: Chart of Accounts Import.
9595
* __0.5.7__: Trial Balance Import.
9696
* __0.5.8__: GraphQL API.
9797

9898
### Version 0.6
9999

100-
* IO Digest Context Manager
100+
101101
* Credit Line Models.
102102
* Time tracking.
103103
* Transaction tagging.
@@ -119,7 +119,7 @@ More details available in the [Django Ledger v0.5 Page](https://www.arrobalytics
119119

120120
### Version 0.9
121121

122-
* Enable Hierarchical Entity structures via TreeBeard.
122+
* Enable Hierarchical Entity Structures.
123123
* Consolidated financial statements.
124124
* InterCompany transactions.
125125
* Update package and code documentation.

django_ledger/io/io_digest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class IODigestValidationError(ValidationError):
1111
pass
1212

1313

14-
class IODigest:
14+
class IODigestContextManager:
1515

1616
def __init__(self, io_data: defaultdict):
1717
self.IO_DATA: defaultdict = io_data

django_ledger/io/io_mixin.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from django_ledger.io.io_context import (RoleContextManager, GroupContextManager, ActivityContextManager,
2727
BalanceSheetStatementContextManager, IncomeStatementContextManager,
2828
CashFlowStatementContextManager)
29-
from django_ledger.io.io_digest import IODigest
29+
from django_ledger.io.io_digest import IODigestContextManager
3030
from django_ledger.io.ratios import FinancialRatioManager
3131
from django_ledger.models.utils import lazy_loader
3232
from django_ledger.settings import (DJANGO_LEDGER_TRANSACTION_MAX_TOLERANCE,
@@ -169,7 +169,7 @@ def digest_balance_sheet(self,
169169
to_date: Union[date, datetime],
170170
user_model: UserModel,
171171
txs_queryset: Optional[QuerySet] = None,
172-
**kwargs: Dict) -> Union[IODigest, Tuple[QuerySet, Dict]]:
172+
**kwargs: Dict) -> Union[IODigestContextManager, Tuple[QuerySet, Dict]]:
173173
return self.digest(
174174
user_model=user_model,
175175
to_date=to_date,
@@ -217,7 +217,7 @@ def digest_income_statement(self,
217217
to_date: Union[date, datetime],
218218
user_model: Optional[UserModel] = None,
219219
txs_queryset: Optional[QuerySet] = None,
220-
**kwargs) -> Union[IODigest, Tuple[QuerySet, Dict]]:
220+
**kwargs) -> Union[IODigestContextManager, Tuple[QuerySet, Dict]]:
221221
return self.digest(
222222
user_model=user_model,
223223
from_date=from_date,
@@ -267,7 +267,7 @@ def digest_cash_flow_statement(self,
267267
to_date: Union[date, datetime],
268268
user_model: UserModel,
269269
txs_queryset: Optional[QuerySet] = None,
270-
**kwargs) -> Union[IODigest, Tuple[QuerySet, Dict]]:
270+
**kwargs) -> Union[IODigestContextManager, Tuple[QuerySet, Dict]]:
271271
return self.digest(
272272
user_model=user_model,
273273
from_date=from_date,
@@ -611,7 +611,7 @@ def digest(self,
611611
balance_sheet_statement: bool = False,
612612
income_statement: bool = False,
613613
cash_flow_statement: bool = False,
614-
) -> Union[Tuple, IODigest]:
614+
) -> Union[Tuple, IODigestContextManager]:
615615

616616
if balance_sheet_statement:
617617
from_date = None
@@ -704,7 +704,7 @@ def digest(self,
704704
io_data = cfs.digest()
705705

706706
if as_io_digest:
707-
return IODigest(io_data=io_data)
707+
return IODigestContextManager(io_data=io_data)
708708

709709
if not digest_name:
710710
digest_name = 'tx_digest'

django_ledger/report/balance_sheet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
from django.urls import reverse
44

5-
from django_ledger.io import IODigest
5+
from django_ledger.io import IODigestContextManager
66
from django_ledger.report.core import BaseReportSupport, PDFReportValidationError
77
from django_ledger.settings import DJANGO_LEDGER_CURRENCY_SYMBOL
88
from django_ledger.templatetags.django_ledger import currency_symbol, currency_format
99

1010

1111
class BalanceSheetReport(BaseReportSupport):
1212

13-
def __init__(self, *args, io_digest: IODigest, report_subtitle: Optional[str] = None, **kwargs):
13+
def __init__(self, *args, io_digest: IODigestContextManager, report_subtitle: Optional[str] = None, **kwargs):
1414

1515
if not io_digest.has_balance_sheet():
1616
raise PDFReportValidationError('IO Digest does not have balance sheet information.')

django_ledger/report/cash_flow_statement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from typing import Optional, Dict
22

3-
from django_ledger.io import IODigest
3+
from django_ledger.io import IODigestContextManager
44
from django_ledger.report.core import BaseReportSupport, PDFReportValidationError
55
from django_ledger.settings import DJANGO_LEDGER_CURRENCY_SYMBOL
66
from django_ledger.templatetags.django_ledger import currency_format
77

88

99
class CashFlowStatementReport(BaseReportSupport):
1010

11-
def __init__(self, *args, io_digest: IODigest, report_subtitle: Optional[str] = None, **kwargs):
11+
def __init__(self, *args, io_digest: IODigestContextManager, report_subtitle: Optional[str] = None, **kwargs):
1212

1313
if not io_digest.has_cash_flow_statement():
1414
raise PDFReportValidationError('IO Digest does not have income statement information.')

django_ledger/report/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from django.contrib.staticfiles import finders
44
from django.core.exceptions import ValidationError
55

6-
from django_ledger.io import IODigest
6+
from django_ledger.io import IODigestContextManager
77
from django_ledger.models import LedgerModel, EntityUnitModel
88
from django_ledger.settings import DJANGO_LEDGER_PDF_SUPPORT_ENABLED
99
from django_ledger.templatetags.django_ledger import currency_symbol, currency_format
@@ -28,7 +28,7 @@ class BaseReportSupport(*load_support()):
2828

2929
def __init__(self,
3030
*args,
31-
io_digest: IODigest,
31+
io_digest: IODigestContextManager,
3232
report_subtitle: Optional[str] = None,
3333
**kwargs):
3434

@@ -41,7 +41,7 @@ def __init__(self,
4141
self.FONT_SIZE: int = 9
4242
self.FONT_FAMILY: str = 'helvetica'
4343
self.PAGE_WIDTH = 210
44-
self.IO_DIGEST: IODigest = io_digest
44+
self.IO_DIGEST: IODigestContextManager = io_digest
4545
self.CURRENCY_SYMBOL = currency_symbol()
4646
self.set_default_font()
4747
self.alias_nb_pages()

django_ledger/report/income_statement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from typing import Optional, Dict
22

3-
from django_ledger.io import IODigest
3+
from django_ledger.io import IODigestContextManager
44
from django_ledger.report.core import BaseReportSupport, PDFReportValidationError
55
from django_ledger.settings import DJANGO_LEDGER_CURRENCY_SYMBOL
66
from django_ledger.templatetags.django_ledger import currency_symbol, currency_format
77

88

99
class IncomeStatementReport(BaseReportSupport):
1010

11-
def __init__(self, *args, io_digest: IODigest, report_subtitle: Optional[str] = None, **kwargs):
11+
def __init__(self, *args, io_digest: IODigestContextManager, report_subtitle: Optional[str] = None, **kwargs):
1212

1313
if not io_digest.has_income_statement():
1414
raise PDFReportValidationError('IO Digest does not have income statement information.')

0 commit comments

Comments
 (0)