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

The transaction history should base on the operation logs and not on the loans #1227

Closed
iGormilhit opened this issue Sep 17, 2020 · 5 comments · Fixed by rero/rero-ils-ui#721
Assignees
Labels
bug Breaks something but is not blocking f: circulation Concerns the circulation interface or backend f: professional ui Professional interface f: public ui Public interface, as opposed to the professional interface p-High High priority (to be solved in the 2-3 next months)

Comments

@iGormilhit
Copy link

iGormilhit commented Sep 17, 2020

How it works

In the history tab of the patron profile (public interface) and in the patron account of the professional interface, the loan transaction history has errors:

  1. display of the date at which the item should have been returned, not the actual checkin date. This is the case in the checkin column and in the transaction history itself (see screenshot below).
    patron-history-wrong-checkin-date

  2. sometimes no display of a line (because the item was deleted, or for other reasons)
    Example in production: patron.pid:27115 (vs)
    image

How it should works

All data are recovered from the operation logs:

  1. The checkin date displayed should be the actual checkin date (in my example, it was the 2020-09-17, not the 2020-10-15).
    The checkin date is displayed for each fee in the fee tab.
  2. Loans on deleted items are still displayed

Related issue

@iGormilhit iGormilhit added f: circulation Concerns the circulation interface or backend f: public ui Public interface, as opposed to the professional interface correction labels Sep 17, 2020
@zannkukai
Copy link
Contributor

I don't understand this issue. The main display date is the real checkin date (the date where the book was returned at the library). Do you want to display as main date the "expected checking date" ? (As this book is borrowed the 14/09, the end limit for this loan should be 15/10 ?)

@ManaDeweerdt
Copy link
Contributor

ManaDeweerdt commented Oct 2, 2020

It displays the due date in place of the actual CI date when the item is returned to a library different from the library where the checkout has been done.

@iGormilhit
Copy link
Author

@zannkukai : @ManaDeweerdt explained it perfectly.

@iGormilhit iGormilhit added f: professional ui Professional interface p-Medium Medium priority (to be solved within 1-2 years) labels Nov 26, 2020
@zannkukai
Copy link
Contributor

zannkukai commented Dec 9, 2020

I think we view here the limit of the circulation process. Invenio-circulation doesn't keep operation history. We have 3 potential dates : the start_date the end_date and the transaction_date. These dates can be update during the circulation process (@BadrAly could correct me if I'm wrong).

  • start_date is always the checkout_date (the loan creation date)
  • end_date is either the expected due date (when the item is not yet returned on shelf), or the last operation date (when item is returned on shelf).
  • transaction_date is the last operation date (CI, CO, Transit, Cancelled, ...)

The problem describe here is caused by the fact that item goes IN_TRANSIT_TO_HOUSE state. In this case, the transaction_date is the CI date, but end_date is still the expected date. After a CI operation on the item in the item home library, the transaction_date will be update to this new date, and the end_date will be updated to this new date too ! But this new date isn't the real patron CI operation date ! And (with my knowledge) it's not possible to know when the patron CI operation date was done !

@iGormilhit iGormilhit added needs info p-High High priority (to be solved in the 2-3 next months) and removed p-Medium Medium priority (to be solved within 1-2 years) labels Dec 10, 2020
@iGormilhit
Copy link
Author

iGormilhit commented Jan 13, 2021

Will be possible to fix after the transaction history functionality.
Depends on https://tree.taiga.io/project/rero21-reroils/us/1913

@iGormilhit iGormilhit added bug Breaks something but is not blocking and removed correction labels Jun 15, 2021
@pronguen pronguen changed the title The patron loan transaction history does not display the actual checkin date The transaction history should base on the operation logs and not on the loans Sep 15, 2021
@Garfield-fr Garfield-fr self-assigned this Oct 7, 2021
@iGormilhit iGormilhit added this to the v1.7.0 milestone Oct 12, 2021
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 14, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2139.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 14, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 14, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 20, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 20, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 21, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 21, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 21, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 21, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 21, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 21, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 21, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to Garfield-fr/rero-ils-ui that referenced this issue Oct 21, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Garfield-fr added a commit to rero/rero-ils-ui that referenced this issue Oct 21, 2021
* Fixes count on fees tab and total on header.
* Uses the `operation logs` inex to display the patron history.
* Closes rero/rero-ils#2319.
* Closes rero/rero-ils#1902.
* Closes rero/rero-ils#1227.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks something but is not blocking f: circulation Concerns the circulation interface or backend f: professional ui Professional interface f: public ui Public interface, as opposed to the professional interface p-High High priority (to be solved in the 2-3 next months)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants