Bug 20772: Display and edit of price_paid
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Mon, 21 May 2018 09:40:59 +0000 (10:40 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Sat, 13 Oct 2018 11:34:33 +0000 (08:34 -0300)
Signed-off-by: Barry Cannon <bc@interleaf.ie>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

ill/ill-requests.pl
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt

index 48190b6..877db4d 100755 (executable)
@@ -128,6 +128,7 @@ if ( $backends_available ) {
             $request->borrowernumber($params->{borrowernumber});
             $request->biblio_id($params->{biblio_id});
             $request->branchcode($params->{branchcode});
+            $request->price_paid($params->{price_paid});
             $request->notesopac($params->{notesopac});
             $request->notesstaff($params->{notesstaff});
             $request->store;
index 41a7962..6db8717 100644 (file)
                                     <label class="cost">Cost:</label>
                                     [% request.cost || 'N/A' | html %]
                                 </li>
+                                <li class="price_paid">
+                                    <label class="price_paid">Price paid:</label>
+                                    <input name="price_paid" id="price_paid" type="text" value="[% request.price_paid %]">
+                                </li>
                                 <li class="req_id">
                                     <label class="req_id">Request number:</label>
                                     [% request.id_prefix _ request.illrequest_id | html %]
                                     <span class="label cost">Cost:</span>
                                     [% request.cost || "N/A" | html %]
                                 </div>
+                                <div class="price_paid">
+                                    <span class="label price_paid">Price paid:</span>
+                                    [% request.price_paid || "N/A" %]
+                                </div>
                                 <div class="req_id">
                                     <span class="label req_id">Request number:</span>
                                     [% request.id_prefix _ request.illrequest_id | html %]