Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Jonathan Druart 2599cd17c7 Bug 12415: Fee receipt: a charges description should be displayed in all cases
Bug 2546 removes the description DB field value in some case (3.15.00.003).
But the receipt generated by scripts members/printfeercpt.pl and
members/printinvoice.pl displays this field.
When the description field is empty, the default value (based on
accountlines.accounttype) should be displayed.

Test plan:
- Generate and pay some different kinds of fees for a patron without
  filling the 'description' field.
- In Fines>Account, click on the 'print' link.
- Before this patch, the "description of charges" values is empty if no
  description was given.
  It is a regression introduced by bug 2546, a default value was
  inserted in the description field depending on the account type
  selected.
- After this patch, the "description of charges" values should be based
  on the account type. The string display on printing receipt should be
  the same as on the account screen (staff and opac).

Note for QA: If removed the "payment" key, it is not used in template
and generated a warning ("odd number of elements...").

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
This fixes the display of payments and other charges on the
fines slip.

Note: This patch fixes a line where the description in the
database was still updated to say "Payment thanks" for partial
payments. It might be worth to do a follow-up correcting the
accountlines table and removing the unwanted comment (see bug 2546).

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-11-21 20:14:02 -03:00
..
tables Bug 4013 [Revised] road type missing on search results 2014-08-05 20:15:02 -03:00
boraccount.tt Bug 12258 [Template follow-up] Datatable in Patrons Account Fines 2014-11-11 15:20:49 -03:00
deletemem.tt Bug 11401: Add support for Norwegian national library card 2014-11-14 09:42:23 -03:00
files.tt
guarantor_search.tt
mancredit.tt Bug 12542: Tabs inconsistency in different circ-menu.inc uses 2014-07-18 10:41:27 -03:00
maninvoice.tt Bug 12542: Tabs inconsistency in different circ-menu.inc uses 2014-07-18 10:41:27 -03:00
member-flags.tt Bug 13139 - Move treeview jQuery plugin outside of language-specific directory 2014-10-27 12:36:53 -03:00
member-password.tt Bug 11888: Random password suggestion does not work twice 2014-07-30 11:56:03 -03:00
member.tt Bug 11401: Add support for Norwegian national library card 2014-11-14 09:42:23 -03:00
memberentrygen.tt Bug 9177 - Duplicate patron: Prepopulated fields ar cleared when setting cursor 2014-11-21 19:48:31 -03:00
members-update.tt Bug 12698 - If user changes home library in Opac change is not visible in staff client 2014-09-08 13:03:30 -03:00
moremember-brief.tt Bug 12407: [QA Follow-up] Rename Other Phone to Mobile in staff 2014-08-05 20:36:43 -03:00
moremember-print.tt Bug 12971: [QA Followup] 2014-11-19 09:49:24 -03:00
moremember-receipt.tt Bug 11014 - Slip Print Problem in Chrome 2014-05-30 16:05:23 -03:00
moremember.tt Bug 11401: Add support for Norwegian national library card 2014-11-14 09:42:23 -03:00
nl-search.tt Bug 11401: Add support for Norwegian national library card 2014-11-14 09:42:23 -03:00
notices.tt
pay.tt Bug 12429 [staff client] patron seeing fines codes 2014-07-07 12:43:25 -03:00
paycollect.tt
printfeercpt.tt Bug 12415: Fee receipt: a charges description should be displayed in all cases 2014-11-21 20:14:02 -03:00
printinvoice.tt Bug 12415: Fee receipt: a charges description should be displayed in all cases 2014-11-21 20:14:02 -03:00
purchase-suggestions.tt
readingrec.tt Bug 10860 [QA Followup] - Rename system preferences 2014-11-03 10:26:41 -03:00
routing-lists.tt
statistics.tt Bug 12693 - colspan calculation done by members/statistics.pl should be moved to template 2014-08-11 15:47:14 -03:00
update-child.tt