8000 26975 - Outputs and email templates for Appoint and Cease Receiver / Receiver Manager filing by ketaki-deodhar · Pull Request #3503 · bcgov/lear · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

26975 - Outputs and email templates for Appoint and Cease Receiver / Receiver Manager filing #3503

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

Merged
merged 26 commits into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fd95a91
26975 - update logic for validations
ketaki-deodhar May 7, 2025
2a74e41
26975 - receiver outputs
ketaki-deodhar May 14, 2025
546ba51
Merge branch 'main' of https://github.com/bcgov/lear into 26975
ketaki-deodhar May 14, 2025
3f013c7
26975 - receiver outputs and email
ketaki-deodhar May 20, 2025
4fc0cd4
26975 - outputs and emails
ketaki-deodhar May 22, 2025
0b29026
Merge branch 'main' of https://github.com/bcgov/lear into 26975
ketaki-deodhar May 22, 2025
0334df6
26975 - fix linting issues
ketaki-deodhar May 22, 2025
44449ec
26975 - email typo fixed
ketaki-deodhar May 22, 2025
da622c3
26975 - add email templates to business emailer and business filer
ketaki-deodhar May 27, 2025
8ed53dc
26975 - update filer logic
ketaki-deodhar May 27, 2025
5f8a190
Merge branch 'main' of https://github.com/ketaki-deodhar/lear into 26975
ketaki-deodhar May 29, 2025
3deb2de
fix lint in business emailer
ketaki-deodhar May 29, 2025
9cbd8ba
fix lint issues in business emailer
ketaki-deodhar May 29, 2025
75ed114
fix lint issues in business emailer
ketaki-deodhar May 29, 2025
aa15a1c
fix lint issues in business filer
ketaki-deodhar May 29, 2025
8000
aa68660
26975 - update import
ketaki-deodhar May 29, 2025
731e8ce
26975 - update import
ketaki-deodhar May 29, 2025
48adcd4
update import
ketaki-deodhar May 29, 2025
818d044
26975 - update import
ketaki-deodhar May 29, 2025
0bab438
26975 - revert import changes
ketaki-deodhar May 29, 2025
0dc5a22
26975 - revert import changes update
ketaki-deodhar May 29, 2025
736196c
Merge branch 'main' of https://github.com/bcgov/lear into 26975
ketaki-deodhar May 30, 2025
6c9d3c6
Merge branch 'main' of https://github.com/ketaki-deodhar/lear into 26975
ketaki-deodhar May 30, 2025
3f8552f
26706 - fix unit test
ketaki-deodhar May 30, 2025
572fee8
26975 - revert import changes
ketaki-deodhar May 30, 2025
b97288b
26975 - fix lint issues
ketaki-deodhar May 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions legal-api/report-templates/appointReceiver.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[[macros.html]]
<!DOCTYPE html>
<html lang="en">
<head>
<title>Appoint Receiver</title>
<meta charset="UTF-8">
<meta name="author" content="BC Registries and Online Services">
[[common/style.html]]
</head>
<body>
<div class="header">
<table class="header-table" role="presentation">
<tr class="no-page-break">
<td>
[[logo.html]]
</td>
<td>
<div class="report-type">
APPOINT RECEIVER/RECEIVER MANAGER
</div>
<div class="report-type-desc">{{ entityDescription }} - {{ entityAct }}</div>
</td>
</tr>
</table>
<div class="business-name-header">
<label class="lbl-business-name">
{{ business.legalName }}
</label>
</div>
</div>
[[common/businessDetails.html]]
[[receivers/receivers.html]]
[[certification.html]]
</body>
</html>
1 change: 1 addition & 0 deletions legal-api/report-templates/businessSummary.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
{% else %}
[[notice-of-articles/directors.html]]
{% endif %}
[[business-summary/receiverInformation.html]]
<div class="container"></div>
</body>
</html>
4 changes: 3 additions & 1 deletion legal-api/report-templates/ceaseReceiver.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</td>
<td>
<div class="report-type">
CEASE RECEIVER
CEASE RECEIVER/RECEIVER MANAGER
</div>
<div class="report-type-desc">{{ entityDescription }} - {{ entityAct }}</div>
</td>
Expand All @@ -29,5 +29,7 @@
</div>
</div>
[[common/businessDetails.html]]
[[receivers/receivers.html]]
[[certification.html]]
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{% if receivers|length > 0 %}
<div class="no-page-break">
<div class="separator mt-4"></div>
<div class="section-title mt-4">Receiver Information</div>
</div>
{% for party in receivers | sort(attribute='officer.lastName') %}
<table class="section-data section-data-table mt-4">
<div class="section-data mt-4">
<div class="title">
<span class="upper-text section-sub-title">{{ party.officer.lastName }}</span>,
<span class="upper-text section-sub-title">{{ party.officer.firstName }}</span>
</div>
</div>
<tr class="no-page-break">
{% if party.mailingAddress is defined %}
<td>
<div class="section-sub-title">Mailing Address</div>
<div class="pt-2">{{ party.mailingAddress.streetAddress }}</div>
<div>{{ party.mailingAddress.streetAddressAdditional }}</div>
<div>
{{ party.mailingAddress.addressCity }}
{{ party.mailingAddress.addressRegion }}
&nbsp;{{ party.mailingAddress.postalCode }}
</div>
<div>{{ party.mailingAddress.addressCountry }}</div>
<div class="delivery-instructions pt-1">{{ party.mailingAddress.deliveryInstructions }}</div>
</td>
{% endif %}
{% if party.deliveryAddress is defined %}
<td>
<div class="section-sub-title">Delivery Address</div>
<div class="pt-2">{{ party.deliveryAddress.streetAddress }}</div>
<div>{{ party.deliveryAddress.streetAddressAdditional }}</div>
<div>
{{ party.deliveryAddress.addressCity }}
{{ party.deliveryAddress.addressRegion }}
&nbsp;{{ party.deliveryAddress.postalCode }}
</div>
<div>{{ party.deliveryAddress.addressCountry }}</div>
<div class="delivery-instructions pt-1">{{ party.deliveryAddress.deliveryInstructions }}</div>
</td>
{% endif %}
<td>
<div class="section-sub-title">Appointed</div>
<div class="pt-2">{{ party.appointmentDate }}</div>
</td>
</tr>
</table>
{% if not loop.first and not loop.last %}
<div class="solid-row-separator mt-4"></div>
{% endif %}
{% endfor %}
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,16 @@
{% endif %}
<div class="pt-2">{{ report_date_time }}</div>
</td>
{% elif header.name == 'ceaseReceiver' %}
{% elif header.name in ['appointReceiver', 'ceaseReceiver'] %}
<td>
<div class="bold">Incorporation Number:</div>
<div class="bold pt-2">Filed Date and Time:</div>
<div class="bold pt-2">Retrieved Date and Time:</div>
</td>
<td>
<div>{{business.identifier}}</div>
<div class="pt-2">{{filing_date_time}}</div>
<div class="pt-2">{{ report_date_time }}</div>
</td>
{% endif %}
{% if reportType != 'summary' %}
Expand Down
170 changes: 170 additions & 0 deletions legal-api/report-templates/template-parts/receivers/receivers.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{% if newReceivers %}
<div class="no-page-break">
<div class="section-title mt-4">
<span>New Receivers Appointed</span>
</div>
{% for receiver in newReceivers %}
<table class="section-data section-data-table mt-4">
<div class="section-data mt-4">
<div class="title">
<span class="upper-text section-sub-title">{{ receiver.officer.lastName }}</span>,
<span class="upper-text section-sub-title">{{ receiver.officer.firstName }}</span>
</div>
</div>
<tr class="no-page-break">
{% if receiver.mailingAddress is defined %}
<td>
<div class="section-sub-title">Mailing Address</div>
<div class="pt-2">{{ receiver.mailingAddress.streetAddress }}</div>
<div>{{ receiver.mailingAddress.streetAddressAdditional }}</div>
<div>
{{ receiver.mailingAddress.addressCity }}
{{ receiver.mailingAddress.addressRegion }}
&nbsp;{{ receiver.mailingAddress.postalCode }}
</div>
<div>{{ receiver.mailingAddress.addressCountry }}</div>
<div class="delivery-instructions pt-1">{{ receiver.mailingAddress.deliveryInstructions }}</div>
</td>
{% endif %}
{% if receiver.deliveryAddress is defined %}
<td>
<div class="section-sub-title">Delivery Address</div>
<div class="pt-2">{{ receiver.deliveryAddress.streetAddress }}</div>
<div>{{ receiver.deliveryAddress.streetAddressAdditional }}</div>
<div>
{{ receiver.deliveryAddress.addressCity }}
{{ receiver.deliveryAddress.addressRegion }}
&nbsp;{{ receiver.deliveryAddress.postalCode }}
</div>
<div>{{ receiver.deliveryAddress.addressCountry }}</div>
<div class="delivery-instructions pt-1">{{ receiver.deliveryAddress.deliveryInstructions }}</div>
</td>
{% endif %}
<td>
<div class="section-sub-title">Appointed</div>
<div class="pt-2">{{ receiver.appointmentDate }}</div>
</td>
</tr>
</table>
{% if not loop.last %}
<div class="solid-row-separator mt-4"></div>
{% endif %}
{% endfor %}
</div>
{% endif %}

{% if ceasedReceivers %}
<div class="no-page-break">
<div class="section-title mt-4">
<span>Ceased Receivers</span>
</div>
{% for receiver in ceasedReceivers %}
<table class="section-data section-data-table mt-4">
<div class="section-data mt-4">
<div class="title">
<span class="upper-text section-sub-title">{{ receiver.officer.lastName }}</span>,
<span class="upper-text section-sub-title">{{ receiver.officer.firstName }}</span>
</div>
</div>
<tr class="no-page-break">
{% if receiver.mailingAddress is defined %}
<td>
<div class="section-sub-title">Mailing Address</div>
<div class="pt-2">{{ receiver.mailingAddress.streetAddress }}</div>
<div>{{ receiver.mailingAddress.streetAddressAdditional }}</div>
<div>
{{ receiver.mailingAddress.addressCity }}
{{ receiver.mailingAddress.addressRegion }}
&nbsp;{{ receiver.mailingAddress.postalCode }}
</div>
<div>{{ receiver.mailingAddress.addressCountry }}</div>
<div class="delivery-instructions pt-1">{{ receiver.mailingAddress.deliveryInstructions }}</div>
</td>
{% endif %}
{% if receiver.deliveryAddress is defined %}
<td>
<div class="section-sub-title">Delivery Address</div>
<div class="pt-2">{{ receiver.deliveryAddress.streetAddress }}</div>
<div>{{ receiver.deliveryAddress.streetAddressAdditional }}</div>
<div>
{{ receiver.deliveryAddress.addressCity }}
{{ receiver.deliveryAddress.addressRegion }}
&nbsp;{{ receiver.deliveryAddress.postalCode }}
</div>
<div>{{ receiver.deliveryAddress.addressCountry }}</div>
<div class="delivery-instructions pt-1">{{ receiver.deliveryAddress.deliveryInstructions }}</div>
</td>
{% endif %}
<td>
<div class="section-sub-title">Ceased</div>
<div class="pt-2">{{ receiver.cessationDate }}</div>
</td>
</tr>
</table>
{% if not loop.last %}
<div class="solid-row-separator mt-4"></div>
{% endif %}
{% endfor %}
</div>
{% endif %}


<div class="no-page-break">
<div class="separator mt-4"></div>
<div class="section-title mt-4">
<span>All Receivers as of {{ effective_date }}</span>
</div>
{% if currentReceivers %}
{% for receiver in currentReceivers %}
<table class="section-data section-data-table mt-4">
<div class="section-data mt-4">
<div class="title">
<span class="upper-text section-sub-title">{{ receiver.officer.lastName }}</span>,
<span class="upper-text section-sub-title">{{ receiver.officer.firstName }}</span>
</div>
</div>
<tr class="no-page-break">
{% if receiver.mailingAddress is defined %}
<td>
<div class="section-sub-title">Mailing Address</div>
<div class="pt-2">{{ receiver.mailingAddress.streetAddress }}</div>
<div>{{ receiver.mailingAddress.streetAddressAdditional }}</div>
<div>
{{ receiver.mailingAddress.addressCity }}
{{ receiver.mailingAddress.addressRegion }}
&nbsp;{{ receiver.mailingAddress.postalCode }}
</div>
<div>{{ receiver.mailingAddress.addressCountry }}</div>
<div class="delivery-instructions pt-1">{{ receiver.mailingAddress.deliveryInstructions }}</div>
</td>
{% endif %}
{% if receiver.deliveryAddress is defined %}
<td>
<div class="section-sub-title">Delivery Address</div>
<div class="pt-2">{{ receiver.deliveryAddress.streetAddress }}</div>
<div>{{ receiver.deliveryAddress.streetAddressAdditional }}</div>
<div>
{{ receiver.deliveryAddress.addressCity }}
{{ receiver.deliveryAddress.addressRegion }}
&nbsp;{{ receiver.deliveryAddress.postalCode }}
</div>
<div>{{ receiver.deliveryAddress.addressCountry }}</div>
<div class="delivery-instructions pt-1">{{ receiver.deliveryAddress.deliveryInstructions }}</div>
</td>
{% endif %}
<td>
<div class="section-sub-title">Appointed</div>
<div class="pt-2">{{ receiver.appointmentDate }}</div>
</td>
</tr>
</table>
{% if not loop.last %}
<div class="solid-row-separator mt-4"></div>
{% endif %}
{% endfor %}
</div>
{% else %}
<div class="section-data mt-4">
<span>No Receivers</span>
</div>
{% endif %}
Loading
Loading
0