Bug 21467: Display the quantity and adjust the amounts
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 2 Oct 2018 16:42:58 +0000 (13:42 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 13 Nov 2018 19:31:10 +0000 (19:31 +0000)
On the subscription detail view we should display the amounts depending
on the quantity (can be different than 0 now!)

Sponsored-by: BULAC - http://www.bulac.fr/

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt

index abe2d16..e79648c 100644 (file)
                         <td>
                             [% IF order.datereceived %][%# FIXME Should only be true, right? %]
                                 [%# FIXME What if unitprice has not been filled? %]
-                                [% order.unitprice_tax_excluded | $Price | html %] / [% order.unitprice_tax_included | $Price | html %]
+                                [% order.unitprice_tax_excluded * order.quantity | $Price %] / [% order.unitprice_tax_included * order.quantity | $Price %]
                             [% END %]
                         </td>
                         <td>[% order.order_internalnote | html %]</td>
index 2c68488..6296236 100644 (file)
                         <th>Internal note</th>
                         <th>Vendor note</th>
                         <th>Fund</th>
+                        <th>Quantity</th>
                         <th title="ecost tax exc. / ecost tax inc.">Ordered</th>
                         <th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th>
                     </tr>
                         <td>[% order.order_internalnote | html %]</td>
                         <td>[% order.order_vendornote | html %]</td>
                         <td>[% order.fund.budget_name | html %]</td>
+                        <td>[% order.quantity | html %]</td>
                         <td>
                             [% UNLESS order.datereceived %]
-                                [% order.ecost_tax_excluded | $Price %] / [% order.ecost_tax_included | $Price %]
+                                [% order.ecost_tax_excluded * order.quantity | $Price %] / [% order.ecost_tax_included * order.quantity | $Price %]
                             [% END %]
                         </td>
                         <td>
                             [% IF order.datereceived %]
                                 [%# FIXME What if unitprice has not been filled? %]
-                                [% order.unitprice_tax_excluded | $Price %] / [% order.unitprice_tax_included | $Price %]
+                                [% order.unitprice_tax_excluded * order.quantity | $Price %] / [% order.unitprice_tax_included * order.quantity | $Price %]
                             [% END %]
                         </td>
                     </tr>