https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37551

            Bug ID: 37551
           Summary: MarcFieldsToOrder price is overriding
                    MarcItemFieldsToOrderPrice
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Acquisitions
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

In the code:

# Price is handled as "itemprice" in the UI form to distinguish from
MarcFieldsToOrder
$iteminfos->{itemprice}  = delete $iteminfos->{price}  if $iteminfos->{price};

and later

$iteminfos->{price} ||= $price;    # Fallback to order price if no item price
was defined

Well, this means we will always fallback, because we deleted it.

itemprice is the variable name when processing the form, but for populating we
use 'price'

I touched all of these lines, so I am blamed, but seems a clear mistake

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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