Skip to content
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

TFRS - Credit transfer incorrectly categorized in TFRS #2916

Closed
Grulin opened this issue Oct 23, 2024 · 2 comments
Closed

TFRS - Credit transfer incorrectly categorized in TFRS #2916

Grulin opened this issue Oct 23, 2024 · 2 comments
Assignees
Labels
Bug Something isn't working High High priority ticket but not critical at this time Tested :) Passed testing

Comments

@Grulin
Copy link
Collaborator

Grulin commented Oct 23, 2024

Describe the Bug
Credit Transfer ID #2704 in TFRS is incorrectly categorized as a Category A transfer. The agreement date is February 20th, 2024, and the recorded date is September 3rd, 2024. According to the transfer categorization rules, this should be a Category B transfer, as the agreement was reached more than six months but less than one year prior to the transfer. However, it has been incorrectly labeled as Category A.

Expected Behaviour
The transfer should be categorized based on the time between the agreement date and the recorded date:

  • Category A: The agreement to transfer credits was reached within six months of the credit transfer.
  • Category B: The agreement to transfer credits was reached between six months to one year prior to the credit transfer.
  • Category C: The agreement to transfer credits was reached more than one year prior to the credit transfer.
  • Category D: Transfers reported with zero or near-zero price.

In this case, with an agreement date of February 20th, 2024 and a recorded date of September 3rd, 2024, the transfer should be categorized as Category B.

Actual Behaviour
Credit Transfer ID #2704 is incorrectly categorized as a Category A transfer, despite the time between the agreement and recorded dates falling into the Category B range.

Implications

  • Incorrect categorization may impact the reporting and tracking of credit transfers, leading to potential misreporting in compliance or review processes.

Steps To Reproduce
Steps to reproduce the behaviour:
User/Role: IDIR

  1. Navigate to Credit Transfer ID TFRS - revert org status label changes on Edit organization page in main release #2704 in TFRS.
  2. Review the agreement date (February 20th, 2024) and the recorded date (September 3rd, 2024).
  3. Observe that the transfer is categorized as Category A when it should be Category B.
@Grulin Grulin added Bug Something isn't working High High priority ticket but not critical at this time labels Oct 23, 2024
@hamed-valiollahi hamed-valiollahi added Added Banana 4 Scale For tickets added mid-sprint and removed Added Banana 4 Scale For tickets added mid-sprint labels Oct 24, 2024
@prv-proton prv-proton self-assigned this Oct 31, 2024
AlexZorkin pushed a commit that referenced this issue Nov 12, 2024
* TFRS - Credit transfer incorrectly categorized in TFRS #2916

* .

---------

Co-authored-by: prv-proton <[email protected]>
@Grulin
Copy link
Collaborator Author

Grulin commented Nov 21, 2024

@prv-proton Yay! Thank you for this. Do you know what caused it?

@prv-proton
Copy link
Collaborator

@prv-proton Yay! Thank you for this. Do you know what caused it?

Yes @Grulin, code wasn't considering the edge case scenario where the difference is exactly 6 months, but ignoring any extra days.

@Grulin Grulin closed this as completed Nov 21, 2024
@Grulin Grulin added the Tested :) Passed testing label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working High High priority ticket but not critical at this time Tested :) Passed testing
Projects
None yet
Development

No branches or pull requests

3 participants