+ });
+}
+
+if ($suggestion_id) {
+ my $reason = $input->param("reason") || '';
+ my $other_reason = $input->param("other_reason");
+ $reason = $other_reason if $reason eq 'other';
+ my $suggestion = Koha::Suggestions->find($suggestion_id);
+ $suggestion->update( { reason => $reason } ) if $suggestion;
+}
+
+# Log the receipt
+if (C4::Context->preference("AcquisitionLog")) {
+ my $infos = {
+ quantityrec => $quantityrec,
+ bookfund => $bookfund || 'unchanged',
+ tax_rate => $input->param("tax_rate"),
+ replacementprice => $replacementprice,
+ unitprice => $unitprice
+ };
+
+ logaction(
+ 'ACQUISITIONS',
+ 'RECEIVE_ORDER',
+ $ordernumber,
+ encode_json($infos)
+ );
+}