[Koha-bugs] [Bug 32167] New: When adding an order from a a staged file without item fields we only add price if there is a vendor discount

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 10 16:24:22 CET 2022


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

            Bug ID: 32167
           Summary: When adding an order from a a staged file without item
                    fields we only add price if there is a vendor discount
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Acquisitions
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

In addorderis02907.pl:
                my $c = $c_discount ? $c_discount : $bookseller->discount;
                $orderinfo{discount} = $c;
                if ( $c ) {
                    $orderinfo{ecost} = $c_price * ( 1 - $c / 100 );
                    $orderinfo{rrp}   = $c_price;
                }
                $orderinfo{listprice} = $orderinfo{rrp} /
$active_currency->rate;


IF there is no discount, we don't set the price fields!

This combines with 32166 to end up importing blank order records

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list