https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41385
Bug ID: 41385
Summary: Exception and error thrown from add_credit method is
wrong
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Fines and fees
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
If credit amount passed to the Koha::Account->add_credit is not negative, Koha
throws exception called Koha::Exceptions::Account::AmountNotPositive with error
message "Debit amount passed is not positive". This is same error thrown with
method add_debit.
We should at least change error message as e.g. "Credit amount passed is not
negative" and probably create a new exception called
Koha::Exceptions::Account::AmountNotNegative to avoid confusion.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/