@@ -, +, @@
quantity
--------------------
("Copies" in staff interface).
Ensure that AcqCreateItem syspref is set to 'placing an order'.
suggestion. Note the initial Quantity set to the quantity entered
in suggestion. Note increasing this number while you add items
to the order with the 'Add item' button. Save the order, close the
basket.
Receive items you created by 'Add item' until there is nothing more
to receive. Note the number of unreecived items in the order (eqal
to the initial quantity from the suggestion) that cannot be regulary
received (with the items table on the left). This is the *bug*.
[This is due to the ambiguity of $data->{quantity} in the neworderempty.pl
-- it normally comes from the order: GetOrder, but in the case of a yet
empty order created from a suggestion, it comes from the suggestions table:
GetSuggestion].
from quantity 0, and that the suggested quantity is shown in brackets.
regular way (with the items created).
------------------
---
acqui/neworderempty.pl | 3 +++
.../intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 6 ++++++
2 files changed, 9 insertions(+)
--- a/acqui/neworderempty.pl
+++ a/acqui/neworderempty.pl
@@ -206,6 +206,8 @@ if ( not $ordernumber ) { # create order
# otherwise, retrieve suggestion information.
elsif ($suggestionid) {
$data = GetSuggestion($suggestionid);
+ $data->{quantitysugg} = $data->{quantity};
+ undef $data->{quantity};
$budget_id ||= $data->{'budgetid'} // 0;
}
@@ -487,6 +489,7 @@ $template->param(
itemtypeloop => \@itemtypes,
quantity => $quantity,
quantityrec => $quantity,
+ quantitysugg => $data->{quantitysugg},
rrp => $data->{'rrp'},
replacementprice => $data->{'replacementprice'},
gst_values => \@gst_values,
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
@@ -562,12 +562,18 @@
[% ELSE %]
+ [% IF quantitysugg %]
+ (suggested: [% quantitysugg %])
+ [% END %]
[% END %]
[% ELSE %]
[% IF basket.is_standing %]
[% ELSE %]
+ [% IF quantitysugg %]
+ (suggested: [% quantitysugg %])
+ [% END %]
[% END %]
[% END %]
Required
--