Bug 25545: Add adjustments to total tax included
authorNick Clemens <nick@bywatersolutions.com>
Wed, 27 May 2020 10:38:03 +0000 (10:38 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Jun 2020 08:31:36 +0000 (10:31 +0200)
Adjustments are not affected by tax, they are meant as a way to alter invoice
values after receiving (damaged items, refuneds, extra charges, etc)

When adjustments were added the tax included column was missed

To test:
- Add a basket with at least one order
- Close it
- Receive shipment
- Receive the order
- Finish receiving
- Add an adjustment of any amount
- Verify in the invoice details table:
  - Total tax exc. is showing including the adjustmnt
  - Total tax inc. is missing the adjustment
- Apply patch
- Reload
  - Total tax exc. is showing including the adjustmnt
  - Total tax inc. is showing including the adjustment

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt

index 24b4884..ef4f374 100644 (file)
                 <th class="replacementprice"/>
                 <th>[% total_quantity | html %]</th>
                 <th class="tax_excluded">[% total_tax_excluded_shipment + total_adj | $Price %]</th>
-                <th class="tax_included">[% total_tax_included_shipment | $Price %]</th>
+                <th class="tax_included">[% total_tax_included_shipment + total_adj | $Price %]</th>
                 <th>&nbsp;</th>
                 <th>[% total_tax_value | $Price %]</th>
                 <th>&nbsp;</th>