[Koha-patches] [PATCH] (bug #3184) show the creator and the budget, received a shipment
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Mon May 4 16:52:22 CEST 2009
this patch just show the creator and the budget id in the orderreceive page.
---
acqui/orderreceive.pl | 5 +++++
.../prog/en/modules/acqui/orderreceive.tmpl | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl
index 02df0d3..4005d60 100755
--- a/acqui/orderreceive.pl
+++ b/acqui/orderreceive.pl
@@ -168,6 +168,9 @@ if ( $count == 1 ) {
$results[0]->{'unitprice'} = '';
}
# $results[0]->{'copyrightdate'} = format_date( $results[0]->{'copyrightdate'} ); # this usu fails.
+ # fill the name of the user who send the order
+ my $member = GetMember($results[0]->{'authorisedby'});
+
$template->param(
branchloop => \@branchloop,
count => 1,
@@ -194,6 +197,8 @@ if ( $count == 1 ) {
rrp => $results[0]->{'rrp'},
ecost => $results[0]->{'ecost'},
unitprice => $results[0]->{'unitprice'},
+ memberfirstname => $member->{firstname},
+ membersurname => $member->{surname},
invoice => $invoice,
datereceived => $datereceived->output(),
datereceived_iso => $datereceived->output('iso'),
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl
index 5247c3e..d8badb8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tmpl
@@ -107,6 +107,8 @@ fieldset.rows .itemblock fieldset.action { padding:.5em; }
<legend>Accounting details</legend>
<ol>
<li><label for="datereceived">Date received: </label><span class="label"> <!-- TMPL_VAR NAME="datereceived" --> </span></li>
+ <li><label for="bookfund">Budget: </label><span class="label"> <!-- TMPL_VAR NAME="bookfund" --> </span></li>
+ <li><label for="creator">Created by: </label><span> <!-- TMPL_VAR NAME="membersurname" --><!-- TMPL_IF NAME="memberfirstname" -->, <!-- TMPL_VAR NAME="memberfirstname" --><!-- .TMPL_IF --> </span></li>
<li><label for="quantity">Quantity ordered: </label><span class="label"> <!-- TMPL_VAR NAME="quantity" --> </span></li>
<li><label for="quantityrec">Quantity received: </label>
<!-- TMPL_IF NAME="quantityreceived" -->
--
1.6.0.4
More information about the Koha-patches
mailing list