-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation register Securities Act financing statement.
Signed-off-by: Doug Lovett <[email protected]>
- Loading branch information
1 parent
e0abe43
commit 91bb978
Showing
35 changed files
with
1,182 additions
and
104 deletions.
There are no files selected for viewing
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
133 changes: 133 additions & 0 deletions
133
ppr-api/report-templates/template-parts/registration/securitiesActNotice.html
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,133 @@ | ||
<div> | ||
{% if securitiesActNotices is defined and change is not defined %} | ||
<div class="separator mt-5"></div> | ||
{% endif %} | ||
<div class="section-title mt-3">Securities Act Notices</div> | ||
{% if securitiesActNotices is defined and change is not defined %} | ||
{% for notice in securitiesActNotices %} | ||
<table class="no-page-break section-data court-order-table mt-3" role="presentation"> | ||
<tr> | ||
<td class="section-sub-title">Type of Notice:</td> | ||
<td>{{ notice.securitiesActNoticeType|title }}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Effective Date:</td> | ||
<td> | ||
{% if notice.effectiveDateTime is defined and notice.effectiveDateTime != '' %} | ||
{{ notice.effectiveDateTime }} | ||
{% else %} | ||
N/A | ||
{% endif %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Detail Description:</td> | ||
<td> | ||
{% if notice.description is defined and notice.description != '' %} | ||
{{ notice.description }} | ||
{% else %} | ||
N/A | ||
{% endif %} | ||
</td> | ||
</tr> | ||
</table> | ||
{% if notice.securitiesActOrders %} | ||
<div class="section-title mt-1">Notice Court/Commission Order(s)</div> | ||
{% for order in notice.securitiesActOrders %} | ||
<table class="no-page-break section-data court-order-table mt-1" role="presentation"> | ||
<tr> | ||
<td class="section-sub-title">Type of Order:</td> | ||
<td>{% if order.courtOrder %}Court{% else %}Commission{% endif %} Order</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Name of Court:</td> | ||
<td>{% if order.courtName %}{{ order.courtName }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Registry</td> | ||
<td>{% if order.courtRegistry %}{{ order.courtRegistry }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Date of Order:</td> | ||
<td>{% if order.orderDate %}{{ order.orderDate }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">File Number:</td> | ||
<td>{% if order.fileNumber %}{{ order.fileNumber }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Effect of Order:</td> | ||
<td>{% if order.effectOfOrder %}{{ order.effectOfOrder }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
</table> | ||
{% endfor %} | ||
{% endif %} | ||
{% if not loop.last %} | ||
<div class="separator-table-row mt-3 mb-3"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% elif change is defined and change.securitiesActNotices is defined %} | ||
{% for notice in change.securitiesActNotices %} | ||
<table class="no-page-break section-data court-order-table mt-3" role="presentation"> | ||
<tr> | ||
<td class="section-sub-title">Type of Notice:</td> | ||
<td>{{ notice.securitiesActNoticeType|title }}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Effective Date:</td> | ||
<td> | ||
{% if notice.effectiveDateTime is defined and notice.effectiveDateTime != '' %} | ||
{{ notice.effectiveDateTime }} | ||
{% else %} | ||
N/A | ||
{% endif %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Detail Description:</td> | ||
<td> | ||
{% if notice.description is defined and notice.description != '' %} | ||
{{ notice.description }} | ||
{% else %} | ||
N/A | ||
{% endif %} | ||
</td> | ||
</tr> | ||
</table> | ||
{% if notice.securitiesActOrders %} | ||
<div class="section-title mt-1">Notice Court/Commission Order(s)</div> | ||
{% for order in notice.securitiesActOrders %} | ||
<table class="no-page-break section-data court-order-table mt-1" role="presentation"> | ||
<tr> | ||
<td class="section-sub-title">Type of Order:</td> | ||
<td>{% if order.courtOrder %}Court{% else %}Commission{% endif %} Order</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Name of Court:</td> | ||
<td>{% if order.courtName %}{{ order.courtName }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Registry</td> | ||
<td>{% if order.courtRegistry %}{{ order.courtRegistry }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Date of Order:</td> | ||
<td>{% if order.orderDate %}{{ order.orderDate }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">File Number:</td> | ||
<td>{% if order.fileNumber %}{{ order.fileNumber }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
<tr> | ||
<td class="section-sub-title">Effect of Order:</td> | ||
<td>{% if order.effectOfOrder %}{{ order.effectOfOrder }}{% else %}N/A{% endif %}</td> | ||
</tr> | ||
</table> | ||
{% endfor %} | ||
{% endif %} | ||
{% if not loop.last %} | ||
<div class="separator-table-row mt-3 mb-3"></div> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</div> |
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 |
---|---|---|
@@ -1 +1 @@ | ||
git+https://github.com/bcgov/registry-schemas.git@1.7.3#egg=registry_schemas | ||
git+https://github.com/bcgov/registry-schemas.git@1.8.10#egg=registry_schemas |
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,59 @@ | ||
-- 15178 begin release 1.2.5 | ||
INSERT INTO registration_types(registration_type, registration_type_cl, registration_desc, registration_act) VALUES | ||
('SE', 'MISCLIEN', 'SECURITIES ACT NOTICE', 'SECURITIES ACT'); | ||
|
||
ALTER TABLE account_bcol_ids | ||
ADD COLUMN securities_act_ind VARCHAR(1) NULL CHECK (securities_act_ind IN ('Y', 'N')); | ||
|
||
CREATE TYPE public.securities_act_type AS ENUM ('LIEN', 'PRESERVATION', 'PROCEEDINGS'); | ||
CREATE TABLE public.securities_act_types ( | ||
securities_act_type public.securities_act_type PRIMARY KEY, | ||
securities_act_type_desc VARCHAR (100) NOT NULL | ||
); | ||
INSERT INTO securities_act_types(securities_act_type, securities_act_type_desc) VALUES | ||
('LIEN', 'SECURITIES ACT NOTICE OF LIEN'), | ||
('PRESERVATION', 'SECURITIES ACT NOTICE OF PRESERVATION ORDER'), | ||
('PROCEEDINGS', 'SECURITIES ACT NOTICE OF PROCEEDINGS') | ||
; | ||
|
||
CREATE SEQUENCE securities_act_notice_id_seq INCREMENT 1 START 1; | ||
CREATE TABLE public.securities_act_notices ( | ||
id INTEGER PRIMARY KEY, | ||
registration_id INTEGER NOT NULL, | ||
registration_id_end INTEGER NULL, | ||
securities_act_type public.securities_act_type NOT NULL, | ||
effective_ts TIMESTAMP NOT NULL, | ||
detail_description VARCHAR (4000) NULL, | ||
FOREIGN KEY (securities_act_type) | ||
REFERENCES securities_act_types (securities_act_type), | ||
FOREIGN KEY (registration_id) | ||
REFERENCES registrations (id), | ||
FOREIGN KEY (registration_id_end) | ||
REFERENCES registrations (id) | ||
); | ||
CREATE INDEX ix_sec_notices_registration_id ON public.securities_act_notices USING btree (registration_id); | ||
CREATE INDEX ix_sec_notices_change_registration_id ON public.securities_act_notices USING btree (registration_id_end); | ||
|
||
CREATE SEQUENCE securities_act_order_id_seq INCREMENT 1 START 1; | ||
CREATE TABLE public.securities_act_orders ( | ||
id INTEGER PRIMARY KEY, | ||
registration_id INTEGER NOT NULL, | ||
securities_act_notice_id INTEGER NOT NULL, | ||
court_order_ind VARCHAR (1) NOT NULL CHECK (court_order_ind IN ('Y', 'N')), | ||
registration_id_end INTEGER NULL, | ||
order_date TIMESTAMP NOT NULL, | ||
court_name VARCHAR (256) NULL, | ||
court_registry VARCHAR (64) NULL, | ||
file_number VARCHAR (20) NULL, | ||
effect_of_order VARCHAR (512) NULL, | ||
FOREIGN KEY (securities_act_notice_id) | ||
REFERENCES securities_act_notices (id), | ||
FOREIGN KEY (registration_id) | ||
REFERENCES registrations (id), | ||
FOREIGN KEY (registration_id_end) | ||
REFERENCES registrations (id) | ||
); | ||
CREATE INDEX ix_sec_orders_sec_id ON public.securities_act_orders USING btree (securities_act_notice_id); | ||
CREATE INDEX ix_sec_orders_registration_id ON public.securities_act_orders USING btree (registration_id); | ||
CREATE INDEX ix_sec_orders_change_registration_id ON public.securities_act_orders USING btree (registration_id_end); | ||
-- 15178 end release 1.2.5 |
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.