Summary: | Add credits, debits, credit_offsets and debit_offsets relationships to Koha::Account::Line | ||
---|---|---|---|
Product: | Koha | Reporter: | Martin Renvoize (ashimema) <martin.renvoize> |
Component: | Architecture, internals, and plumbing | Assignee: | Martin Renvoize (ashimema) <martin.renvoize> |
Status: | CLOSED FIXED | QA Contact: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | 1joynelson, kyle, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: |
This enhancement allows for fetching related credits, debits and offsets directly from an existing Koha::Account::Line object and includes compatibility for prefetching of relations for performance.
|
Version(s) released in: |
20.05.00
|
Circulation function: | |||
Bug Depends on: | 24080 | ||
Bug Blocks: | 8338, 24255 | ||
Attachments: |
Bug 24252: Add relations to Koha::Account::Line
Bug 24252: Add relations to Koha::Account::Line Bug 24252: Add relations to Koha::Account::Line Bug 24252: Add relations to Koha::Account::Line Bug 24252: [19.11] Add relations to Koha::Account::Line |
Description
Martin Renvoize (ashimema)
2019-12-17 09:49:51 UTC
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> |