Summary: | Add totals methods Koha::Account::Lines | ||
---|---|---|---|
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, black23, kyle, testopia, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: |
This enhancement completes the set of summation methods available from a Koha::Account::Lines resultset object, complimenting the existing `total_outstanding` method.
It introduces the following methods:
* `total` - Sum of all `amount` fields in the accountlines set.
* `credits_total` - Sum of all `amount` fields for credits in the accountlines set.
* `debits_total` - Sum of all `amount` fields for debits in the accountlines set.
|
Version(s) released in: |
20.05.00
|
Circulation function: | |||
Bug Depends on: | 24252 | ||
Bug Blocks: | 23442 | ||
Attachments: |
Bug 24255: Add summation methods to Koha::Account::Lines
Bug 24255: Add summation methods to Koha::Account::Lines Bug 24255: Add summation methods to Koha::Account::Lines Bug 24255: Add summation methods to Koha::Account::Lines Bug 24255: Add summation methods to Koha::Account::Lines |
Description
Martin Renvoize (ashimema)
2019-12-17 14:14:40 UTC
Created attachment 96387 [details] [review] Bug 24255: Add summation methods to Koha::Account::Lines This patch adds a number of summation methods to Koha::Account::Lines giving quick access to overall total, total credits and total debits. Test plan 1) Run the included tests Created attachment 96399 [details] [review] Bug 24255: Add summation methods to Koha::Account::Lines This patch adds a number of summation methods to Koha::Account::Lines giving quick access to overall total, total credits and total debits. Test plan 1) Run the included tests Created attachment 96405 [details] [review] Bug 24255: Add summation methods to Koha::Account::Lines This patch adds a number of summation methods to Koha::Account::Lines giving quick access to overall total, total credits and total debits. Test plan 1) Run the included tests Created attachment 96996 [details] [review] Bug 24255: Add summation methods to Koha::Account::Lines This patch adds a number of summation methods to Koha::Account::Lines giving quick access to overall total, total credits and total debits. Test plan 1) Run the included tests Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Created attachment 97006 [details] [review] Bug 24255: Add summation methods to Koha::Account::Lines This patch adds a number of summation methods to Koha::Account::Lines giving quick access to overall total, total credits and total debits. Test plan 1) Run the included tests 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 branch |