Define a macro for grand total of all bills listed

Bug #821640 reported by Steven Chan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Status tracked in Main
Main
Fix Released
Undecided
Unassigned

Bug Description

The Sitka Evergreen consortium is suggesting the following feature not yet available in version 2 staff clients:

In the staff client, the bills page of the patron record includes a button in the bottom left to 'print bills'. The receipt can be formatted under Admin -> Local Administration -> Receipt Template Editor by selecting the 'bills_current' template.

In the default receipt, individual bills are listed separately and there is no grand total. There is no macro to include a total in the receipt footer. The %total_owed% macro is the total charged for a single bill, and 'balance_owed% is the remaining balance for a single bill. It would be helpful to have a macro for 'outstanding total' of all bills combined.

Analysis of the source code shows that the attached patch file will implement three new macros in xul/staff_client/server/patron/bill2.js, called 'grand_total_owed', 'grand_total_billed', and 'grand_total_paid', and make these three values, already available in the billings interface, available for use in bills receipt templates. The macros could be used anywhere in the template, including the header, the listing, or the footer (most typical scenario).

The new macros also need to be made available in the receipt template editor, but that is yet to be done.

Revision history for this message
Steven Chan (schan2) wrote :
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Branchified

git://git.evergreen-ils.org/working/Evergreen.git

collab/dyrcona/lp821640

For future reference, please provide patches in univeral diff format. You can usually get this by doing diff -u.

tags: added: pullrequest
Revision history for this message
Thomas Berezansky (tsbere) wrote :

Pushed to master. Thanks!

no longer affects: evergreen/2.2
Revision history for this message
tji@sitka.bclibraries.ca (tji) wrote :

It would be good if these 3 macros can be added to the Macro list on the Template Editor. (They are not there on 2.4) Tina/Sitka

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.