Bug 23450

Summary: Display issue and subscription price for each issue in subscription tab of /catalogue/detail.pl
Product: Koha Reporter: Alex Buckley <alexbuckley>
Component: SerialsAssignee: Alex Buckley <alexbuckley>
Status: Patch doesn't apply --- QA Contact: Kyle M Hall <kyle>
Severity: enhancement    
Priority: P5 - low CC: aleisha, colin.campbell, hayleypelham, jonathan.druart, kyle, samalau
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23435
Change sponsored?: Sponsored Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 23352    
Bug Blocks:    
Attachments: Bug 23450: Display subscription and issue cost in subscription interface of the catalouge/detail.pl
Bug 23450: Display subscription and issue cost in subscription interface of the catalouge/detail.pl
Bug 23450: Display subscription and issue cost in subscription interface of the catalouge/detail.pl
Bug 23450: Display serial and subscription price in biblio detail page
Bug 23450: Display serial and subscription price in biblio detail page
Bug 23450: Display serial and subscription price in biblio detail page

Description Alex Buckley 2019-08-11 23:05:49 UTC

    
Comment 1 Alex Buckley 2019-08-11 23:07:07 UTC Comment hidden (obsolete)
Comment 2 Alex Buckley 2019-08-12 07:25:12 UTC Comment hidden (obsolete)
Comment 3 Aleisha Amohia 2020-03-27 01:08:47 UTC Comment hidden (obsolete)
Comment 4 Alex Buckley 2022-01-07 04:13:55 UTC Comment hidden (obsolete)
Comment 5 Samu Heiskanen 2022-01-15 14:55:55 UTC
Created attachment 129520 [details] [review]
Bug 23450: Display serial and subscription price in biblio detail page

The 'Subscription' tab should display:
- Total subscription price (based on what's set in the linked order)
- Serial price based on what's set in the 952$g (items.price)

Test plan:
1. Create a subscription
- Tick the 'Create an item record when receiving this serial'
radiobutton
2. Create an order, linking it to a subscription, set:
- Quantity: 2
- Vendor price: 3
3. Receive the serial
4. Set the 952$g (normal purchase price) as 5
5. Visit the biblio detail page
6. View the 'Subscription' tab and confirm that:
'Total subscription cost is: 6.00'
'Issue price' in the table is 5.00

Sponsored-By: Brimbank Library, Australia

Signed-off-by: Samu Heiskanen <samu.heiskanen@hypernova.fi>
Comment 6 Jonathan Druart 2022-02-18 11:08:39 UTC
Blocked by bug 23352.
Comment 7 Kyle M Hall 2022-06-10 15:21:53 UTC
A couple points:
A) I'm getting 'Can't call method "unblessed" on an undefined value at /kohadevbox/koha/catalogue/detail.pl line 205' if a subscription has no order related to it
B) There's no need to unbless the order to work with it, just use the object's accessors
Comment 8 Alex Buckley 2023-03-12 22:00:29 UTC
Created attachment 148113 [details] [review]
Bug 23450: Display serial and subscription price in biblio detail page

The 'Subscription' tab should display:
- Total subscription price (based on what's set in the linked order)
- Serial price based on what's set in the 952$g (items.price)

Test plan:
1. Create a subscription
- Tick the 'Create an item record when receiving this serial'
radiobutton
2. Create an order, linking it to a subscription, set:
- Quantity: 2
- Vendor price: 3
3. Receive the serial
4. Set the 952$g (normal purchase price) as 5
5. Visit the biblio detail page
6. View the 'Subscription' tab and confirm that:
- 'Total subscription cost is: 6.00'
- 'Issue price' in the table is 5.00

Sponsored-By: Brimbank Library, Australia
Comment 9 Alex Buckley 2023-03-12 22:00:54 UTC
Ready for testing again.
Comment 10 Sam Lau 2023-05-19 17:33:53 UTC
CONFLICT (content): Merge conflict in C4/Serials.pm