data-to-insight / csc-validator-be-cin

1 stars 1 forks source link

Bug: Rule 8565 - Section47 DateOfInitialCPC #370

Closed SLornieCYC closed 1 year ago

SLornieCYC commented 1 year ago

Describe the bug Rule does not check DateOfInitialCPC in Section47.

To Reproduce Steps to reproduce the problem, e.g.:

Expected behavior Section47 should be flagged as in-error from the later dated DateOfInitialCPC.

Proposed fix (Optional) I think condition1 here should be using DateOfInitialCPC_S47 rather than DateOfInitialCPC.

https://github.com/data-to-insight/CIN-validator/blob/dc4559d2362e0efacfe47ebb9b4b3d538c7d0094/cin_validator/rules/cin2022_23/rule_8565.py#L186