[Koha-bugs] [Bug 12768] Replacement cost and processing fee management

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 11 19:18:38 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12768

--- Comment #2 from simith.doliveira at inlibro.com ---
To test:

Apply patch and update the database.

Set up :
On the item type administration page, default replacement price and a
processing fee should be set up for on or more item types. When set up to 0, no
processing fee will be charged to patrons for lost items.
The "UseDefaultReplacementCost" system preference can be switched to « Use » or
« Don't use ». If the lost item doesn't have a replacement cost catalogued,
Koha will charge the default replacement cost.
The "ProcessingFeeNote" system preference can be edited with the value to be
used as a note alongside the processing fee when charged to the patron. The
value will be displayed in the patron page fines tab.

These tests apply when :
* an item is manually marked as lost
* an item is marked lost by the longoverdue.pl script

Test scenario 1 : "UseDefaultReplacementCost" is set to « Use » and
items.replacementcost = 0

* the item is manually marked lost

1. Set up the default replacement cost for a specific item type.
2. Set up the processing fee for this item type as well.
3. Search for an item of this item type and with no replacement cost.
4. Checkout the item to a patron.
5. Go to the item page.
6. Mark the item as lost.
7. Go to the patron page and open the fines tab.
Check that :
8. there is a new entry for the item marked as lost.
9. the value match the default replacement cost for this item type.
10. there is another entry for the processing fee.
11. This entry should display the value from the « ProcessingFeeNote » system
preference.
Note : If you set up a processing fee to « 0 », there should be no entry for
the processing fee.

* the item is marked lost by the longoverdue.pl script

1. Set up the default replacement cost for a specific item type.
2. Set up the processing fee for this item type as well.
3. Search for an item of this item type and with no replacement cost.
4. Checkout the item to a patron specifying a 30 days late due date.
5. Run the script longoverdue.pl (/misc/cronjobs/) ./longoverdue.pl --lost 30=2
--charge 2 --confirm (for example)
6. Go to the item page.
Check that :
7. the item is marked as lost.
8. Go to the patron page and open the fine tab.
Check that :
9. there is a new entry for the item marked as lost.
10. the value match the default replacement cost for this item type.
11. there is another entry for the processing fee.
12. This entry should display the value from the « ProcessingFeeNote » system
preference.
Note : If you set up a processing fee to « 0 », there should be no entry for
the processing fee.

Test scenario 2  "UseDefaultReplacementCost" is set to « Use » and
items.replacementcost > 0

* the item is manually marked lost

1. Set up the default replacement cost for a specific item type.
2. Set up the processing fee for this item type as well.
3. Search for an item of this item type and with a replacement cost.
4. Checkout the item to a patron.
5. Go to the item page.
6. Mark the item lost.
7. Go to the patron page and open the fine tab.
Check that :
8. there is a new entry for the item marked as lost.
9. the value match the item replacement cost (it's Koha's default behaviour).
10. there is another entry for the processing fee.. This entry should display
the value from the « ProcessingFeeNote » system preference.
Note : If you set up a processing fee to « 0 », there should be no entry for
the processing fee.

* the item is marked lost by the longoverdue.pl script

1. Set up the default replacement cost for a specific item type.
2. Set up the processing fee for this item type as well.
3. Search for an item of this item type and with a replacement cost.
4. Checkout the item to a patron specifying a 30 days late due date.
5. Run the script longoverdue.pl (/misc/cronjobs/) ./longoverdue.pl --lost 30=2
--charge 2 --confirm (for example)
6. Go to the item page
Check that :
7. the item is marked as lost.
8. Go to the patron page and open the fine tab.
Check that :
9. there is a new entry for the item marked as lost.
10 the value match the item replacement cost (it's Koha's default behaviour).
11. there is another entry for the processing fee. This entry should display
the value from the « ProcessingFeeNote » system preference.
Note : If you set up a processing fee to « 0 », there should be no entry for
the processing fee.

Test scenario 3 :  "UseDefaultReplacementCost" is set to « Don't use »

Koha's default behaviour apply.

It means :

If items.replacementcost = 0 :
The default replacement cost value for the item type will not be used.
The processing fee (if greater than 0) will be charged.

If items.replacement >0.
The item replacement cost will be used.
The processing fee (if greater than 0) will be charged.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list