]> git.koha-community.org Git - koha.git/commit
Bug 24252: Add relations to Koha::Account::Line
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 13 Sep 2019 13:03:11 +0000 (14:03 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 8 Jan 2020 14:48:33 +0000 (14:48 +0000)
commit9bcf22b0d57fce9d0c38006cd204e3a1cba5b361
treecf92f9de9e9646c7059d491d2bebc39c88751b18
parent16413c24ca514205aaa5c5a9c93aaa68345cffee
Bug 24252: Add relations to Koha::Account::Line

This patch adds two new relationships to the Koha::Account::Line object.

* credit_offsets - returns all credit type Koha::Account::Offsets
  related to this Koha::Account::Line.
* debit_offsets - returns all debit type Koha::Account::Offsets related
  to this Koha::Account::Line.
* credits - returns all credits related to this Koha::Account::Line.
* debits - returns all debits related to this Koha::Account::Line.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Account/Line.pm
t/db_dependent/Koha/Account/Lines.t