@@ -1395,7 +1395,7 @@ def add_filing(cls, con, filing: Filing, lear_identifier: str) -> int:
13951395 new_corp_type = to_type
13961396 Business .update_corp_type (cursor = cursor , corp_num = corp_num , corp_type = new_corp_type )
13971397
1398- ar_text = cls ._process_ar (cursor , filing , corp_num , ar_date , agm_date , filing_source )
1398+ cls ._process_ar (cursor , filing , corp_num , ar_date , filing_source )
13991399 dir_text = cls ._process_directors (cursor , filing , business , corp_num )
14001400 office_text = cls ._process_office (cursor = cursor , filing = filing )
14011401
@@ -1437,7 +1437,7 @@ def add_filing(cls, con, filing: Filing, lear_identifier: str) -> int:
14371437 Business .create_corp_restriction (
14381438 cursor = cursor , event_id = filing .event_id , corp_num = corp_num , provisions = True )
14391439
1440- ledger_text = f'{ ar_text } { dir_text } { office_text } ' .replace (' ' , '' )
1440+ ledger_text = f'{ dir_text } { office_text } ' .replace (' ' , '' )
14411441 if ledger_text != '' :
14421442 cls ._insert_ledger_text (cursor , filing , ledger_text )
14431443
@@ -1792,9 +1792,8 @@ def _process_amalgamation_out(cls, cursor, filing):
17921792
17931793 @classmethod
17941794 # pylint: disable=too-many-arguments;
1795- def _process_ar (cls , cursor , filing : Filing , corp_num : str , ar_date : str , agm_date : str , filing_source : str ) -> str :
1795+ def _process_ar (cls , cursor , filing : Filing , corp_num : str , ar_date : str , filing_source : str ):
17961796 """Process specific to annual report."""
1797- text = ''
17981797 if filing .filing_type == 'annualReport' and filing_source != cls .FilingSource .BAR .value :
17991798 # update corp_state TO ACT (active) if it is in good standing. From CRUD:
18001799 # - the current corp_state != 'ACT' and,
@@ -1805,11 +1804,6 @@ def _process_ar(cls, cursor, filing: Filing, corp_num: str, ar_date: str, agm_da
18051804 if agm_year >= last_year :
18061805 Business .update_corp_state (cursor = cursor , event_id = filing .event_id , corp_num = corp_num )
18071806
1808- # create new ledger text for annual report
1809- ledger_year = agm_date if agm_date else f'NO AGM HELD IN { agm_year } '
1810- text = f'ANNUAL REPORT - { ledger_year } '
1811- return text
1812-
18131807 @classmethod
18141808 def _process_office (cls , cursor , filing : Filing ) -> str :
18151809 """Add offices from the filing."""
0 commit comments