]> git.koha-community.org Git - koha.git/commit
Bug 13590: Add ability to charge fines at start of charge period
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 16 Jan 2015 14:07:48 +0000 (09:07 -0500)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 22 Oct 2015 17:51:24 +0000 (14:51 -0300)
commitf86816220edb6c28b58772a551b0533c01ecbcad
tree6cf85460891df9e18d50529c5087e24ea7c6d88f
parent17b3e3c9ebb4ce437a56cee817ee1781ebfce697
Bug 13590: Add ability to charge fines at start of charge period

Right now, Koha only charges fines at the end of a given charge period.
For example, let us assume a circulation rule has a charge period of one
week ( 7 days ) and a fine of $5. This means that an item can be overdue
for 6 days without accruing a fine. Koha should allow circulation rules
to be configured to place the charge at the start of the end of the
charge period so the library can decide when the fine should accrue.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) prove t/db_dependent/Circulation_Issuingrule.t
4) prove t/db_dependent/Circulation.t
5) prove t/db_dependent/Fines.t
6) Ensure you can still create/edit circulation rules

Edit: I removed the DBIx changes after a couple minutes fighting with them.
Will regenerate as usual in a RM followup / Tomas

Signed-off-by: Daniel Grobani <dgrobani@samuelmerritt.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Overdues.pm
admin/smart-rules.pl
installer/data/mysql/atomicupdate/bug_13590.sql [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
t/db_dependent/Circulation_Issuingrule.t
t/db_dependent/Fines.t [new file with mode: 0644]