Add the Koha::Objects expansion of the credit and debit offset relationships to the Koha::Account::Line class.
Created attachment 96363 [details] [review] 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.
Created attachment 96371 [details] [review] 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.
Created attachment 96518 [details] [review] 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>
Created attachment 96995 [details] [review] 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>
Nice work everyone! Pushed to master for 20.05
Enhancement not backported to 19.11.x
Created attachment 110639 [details] [review] Bug 24252: [19.11] 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>