Evergreen tries to inexplicitly strip out dollar signs when adding Total Balance to Current Bills Receipt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
Evergreen version 2.8.1
Scott Thomas posted a question to the general mailing list regarding the display of total owed on the bills_current receipt.
Here is the link to the conversation:
http://
Assuming the library makes use of print_win.js and doesn’t adjust the Library Setting: Printing: Custom Javascript File, the potential workaround would be:
Lineitem:
<dt><b>Bill #%mbts_id%</b></dt>
<dd> <table>
<tr valign=
<tr valign=
<tr><td>
<tr valign=
<tr valign=
<tr valign=
<tr valign=
<tr valign=
</table><br/>
Footer:
</ol>
<b>Total Balance: <span sumout="bal" fixed="
<hr />%SHORTNAME% %TODAY_TRIM%<br/>
<br/>
However, Evergreen is trying to inexplicitly strip out dollar signs. So, it's effectively striping out the first character if that character is not a minus sign or a digit. The end result would be, for a patron who owes you .70 cents; the Total Balance would read $70.00.
The problem exists within this bit of code: newVal = newVal.
Jason Etheridge has created a fix.
tags: | added: printing receipt |
It appears the link to the mailing list discussion is not working. The subject line of the discussion is: Bills Current Receipt Template and Total Owed and was posted by Scott Thomas on 6/10/15, if you would like to search for it.