https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43948

--- Comment #3 from Lucas Gass (lukeg) <[email protected]> ---
Created attachment 209971
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209971&action=edit
Bug 43948: Add effective_replacement_price method to Koha/Item.pm

to test:
1. APPLY PATCH, restart_all
2. Find or create some items and add a replacementprice value for them. Note
the item type. this is ITEM1
3. Find a a different item, with a different item type, and make sure it does
not have a replacementprice value. this is ITEM2
4. For the 2nd item/itemtype configure a defualt replacement price value in
Item type administration
5. Ensure  useDefaultReplacementCost is set to 'Don't use'
6. Check both items out to a patron ( ITEM1 and ITEM2 )
7. In the ISSSUESLIP, add the follwoing code:
    [% USE Price %]
    [% FOREACH c IN borrower.checkouts %]
        [% c.item.effective_replacement_price | $Price %]
    [% END %]

8. Print the issueslip. For ITEM1 you should see the value set in step 2. For
ITEM2 you should see 0.
9. Set useDefaultReplacementCost to 'Use'
10. Print the issueslip again, For ITEM1 you should see the value set in step
2. For ITEM2 you should see the default item type replacement cost set in step
4.
11. prove t/db_dependent/Koha/Item.t

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to