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

            Bug ID: 14680
           Summary: when doing acquisitions, MarcFieldsToOrder-syspref
                    discounts are instead added.
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P5 - low
         Component: Acquisitions
          Assignee: koha-bugs@lists.koha-community.org
          Reporter: olli-antti.kivila...@jns.fi
        QA Contact: testo...@bugs.koha-community.org

Using the syspref 'MarcFieldsToOrder', getting the discount directly from the
MARC causes the price to actually increase by the discount percentage, not
decrease, if the Vendor/Bookseller is configured to include the VAT/GST in the
list price.

REPLICATE ISSUE:

-1. Define 'MarcFieldsToOrder'-syspref to match the discount and price columns
of your staged MARC Records.
0. Stage a MARC batch.
1. Make and acquisition from the staged file using
       /acqui/addorderiso2709.pl (Save the big staging list, don't click
                                  "Add order" on an individual Biblio.)
2. Observe that the Replacement price (rrp) is actually the (price + discount)
   instead of (price - discount).
   And the estimated cost is just the price in the MARC Record without any
   discount.

AFTER THIS PATCH:

Replay step 1.
2. rrp is now the price in the MARC Record incl. VAT/GST.
   ecost is now the VAT/GST included discounted price.

NOTE!

Because the subroutine I modified doesn't make much sense, it is presumed that
there can be regression in other parts for other kinds of vendor
configurations.
Because the acquisitions module is in urgent need of complete back-end
refactoring + PageObject/Cucumber regression test coverage, no further
investigation is made to resolve those.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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