http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12770

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |Needs Signoff

--- Comment #4 from [email protected] ---
To test:

This patch adds new tags for the notice template tool.
They helps building invoices.

The new tags are :
<itemaccountlines> and <accountlines> to display information from biblio,
biblioitems, items and accountlines table.
<<noticefee>> to display the notice fee (for future use. It's not usable before
bug 12769 is pushed to master)
<<total>> to display the invoice total

The invoice generated with these tags will take the patron item daily fees,
either charged by the fines.pl script or by the librarian directly throught the
fine tab.

To test this :

1. Apply patch and update the database.
2. Add to the ODUE notice template (or any other late notice templates) this
code (it's an example using html.)

<table style="width:70%; border: 1px solid black; border-collapse: collapse">
<tr>
  <th align="center" style="border: 1px solid black; border-collapse:
collapse">TITLE</th>
  <th align="center" style="border: 1px solid black; border-collapse:
collapse">AUTHOR</th>
  <th align="center" style="border: 1px solid black; border-collapse:
collapse">BARCODE</th>
  <th align="center" style="border: 1px solid black; border-collapse:
collapse">ITEMCALLNUMBER</th>
  <th align="center" style="border: 1px solid black; border-collapse:
collapse">FINE</th>
</tr>

<itemaccountlines>
  <tr>
    <td align="center" style="border: 1px solid black; border-collapse:
collapse"><<biblio.title>></td>
    <td align="center" style="border: 1px solid black; border-collapse:
collapse"><<biblio.author>></td>        
    <td align="center" style="border: 1px solid black; border-collapse:
collapse"><<items.barcode>></td>
    <td align="center" style="border: 1px solid black; border-collapse:
collapse"><<items.itemcallnumber>></td>
    <td align="center" style="border: 1px solid black; border-collapse:
collapse">$</td>
  </tr>
   <accountlines>
       <tr>
          <td align="right" colspan=4 style="border: 1px solid black;
border-collapse: collapse"><<accountlines.description>><<accountlines.note>>
+</td>
          <td style="border: 1px solid black; border-collapse:
collapse"><<accountlines.amountoutstanding>></td>
       </tr>
   </accountlines>
</itemaccountlines>

<tr>
  <td align="right" colspan=4 style="border: 1px solid black; border-collapse:
collapse">Notice fee +</td>
  <td style="border: 1px solid black; border-collapse:
collapse"><<noticefee>></td>
<tr>

<tr>
  <td align="right" colspan=4 style="border: 1px solid black; border-collapse:
collapse"><b>TOTAL =</b></td>
  <td style="border: 1px solid black; border-collapse:
collapse"><b><<total>></b></td>
<tr>
</table>

3. Checkout items with a due dates in the past to get the ODUE notice and fines
according to your set up
4. Run fines.pl
5. Run overdue_notices.pl
6. Run process_message_queue.pl

Check that :
7. the overdue notice diplays the fines correctly. If you used the example, it
should be a table with the title, author, barcode, itemcallnumber. For each
late items with fines, you should have the fine descriptions, notes and amounts
to cover. You also should see the total amount to pay.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to