diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index eb76521d90..862c8fdf81 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -1470,7 +1470,7 @@ q{SELECT * FROM aqorders WHERE biblionumber=? AND aqorders.ordernumber=?}, $cost, $rrp, $ecost, - $budget_id, + ( $budget_id ? $budget_id : $order->{budget_id} ), ( defined $order_internalnote ? $order_internalnote : () ), ( defined $order_vendornote ? $order_vendornote : () ), $biblionumber,