Bug 19296: (QA follow-up) Correct comment in populate_orders
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 13 Oct 2017 07:03:25 +0000 (09:03 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 18 Oct 2017 14:21:28 +0000 (11:21 -0300)
Just replacing a wrong - by a correct + sign in the comment. The code
itself is fine.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Acquisition.pm

index 2c48f4e..441afb7 100644 (file)
@@ -2969,7 +2969,7 @@ sub populate_order_with_prices {
             # ecost tax excluded = rrp tax excluded * ( 1 - discount )
             $order->{ecost_tax_excluded} = $order->{rrp_tax_excluded} * ( 1 - $discount );
 
-            # ecost tax included = rrp tax excluded * ( 1 - tax rate ) * ( 1 - discount )
+            # ecost tax included = rrp tax excluded * ( 1 + tax rate ) * ( 1 - discount )
             $order->{ecost_tax_included} =
                 $order->{rrp_tax_excluded} *
                 ( 1 + $order->{tax_rate_on_ordering} ) *