Discussion:
[Koha-bugs] [Bug 21980] New: Add some new Exceptions for Koha::Account methods
b***@bugs.koha-community.org
2018-12-10 11:51:35 UTC
Permalink
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21980

Bug ID: 21980
Summary: Add some new Exceptions for Koha::Account methods
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-***@lists.koha-community.org
Reporter: ***@ptfs-europe.com
QA Contact: ***@bugs.koha-community.org

We aren't validating as much as we should in the add_credit and upcoming
add_debut and adjust methods in the Koha::Account classes. This bug adds a
couple of new exceptions for such cases.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-***@lists.koha-community.org
http://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/
b***@bugs.koha-community.org
2018-12-10 11:52:01 UTC
Permalink
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21980

Martin Renvoize <***@ptfs-europe.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Blocks| |21002


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21002
[Bug 21002] Add Koha::Account::add_debit
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-***@lists.koha-community.org
http://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/
b***@bugs.koha-community.org
2018-12-10 11:52:24 UTC
Permalink
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21980

Martin Renvoize <***@ptfs-europe.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Blocks| |21727


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21727
[Bug 21727] Add Koha::Account::Line->adjust
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-***@lists.koha-community.org
http://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/
b***@bugs.koha-community.org
2018-12-10 12:05:14 UTC
Permalink
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21980

Martin Renvoize <***@ptfs-europe.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |Needs Signoff
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-***@lists.koha-community.org
http://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/
b***@bugs.koha-community.org
2018-12-10 12:04:55 UTC
Permalink
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21980

--- Comment #1 from Martin Renvoize <***@ptfs-europe.com> ---
Created attachment 83008
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=83008&action=edit
Bug 21980: Add new excpetions for Koha::Account

He add two new exceptions here; One to be thrown when negative 'amount'
is passed into verious account methods that always expect positive
decimals and another to be thrown when a bad 'type' is passed into an
account method.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-***@lists.koha-community.org
http://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/
Loading...