Bugzilla – Attachment 11749 Details for
Bug 8667
Add budget and branch columns in histsearch.pl results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8667: Add budget and branch columns in histsearch.pl results
0001-Bug-8667-Add-budget-and-branch-columns-in-histsearch.patch (text/plain), 2.61 KB, created by
Julian Maurice
on 2012-08-22 14:10:49 UTC
(
hide
)
Description:
Bug 8667: Add budget and branch columns in histsearch.pl results
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2012-08-22 14:10:49 UTC
Size:
2.61 KB
patch
obsolete
>From b5717c13f955d01311fd9ab95b789cb96d22228a Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 22 Aug 2012 16:09:20 +0200 >Subject: [PATCH] Bug 8667: Add budget and branch columns in histsearch.pl > results > >--- > C4/Acquisition.pm | 5 +++++ > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt | 4 ++++ > 2 files changed, 9 insertions(+) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 9678ffc..934c6a5 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -1781,6 +1781,8 @@ sub GetHistory { > aqorders.ordernumber, > aqorders.booksellerinvoicenumber as invoicenumber, > aqbooksellers.id as id, >+ aqorders.branch, >+ aqorders.budget_id, > aqorders.biblionumber > FROM aqorders > LEFT JOIN aqbasket ON aqorders.basketno=aqbasket.basketno >@@ -1863,6 +1865,9 @@ sub GetHistory { > $total_qty += $line->{'quantity'}; > $total_qtyreceived += $line->{'quantityreceived'}; > $total_price += $line->{'quantity'} * $line->{'ecost'}; >+ my $budget = C4::Budgets::GetBudget($line->{budget_id}); >+ $line->{budget_name} = $budget->{budget_name} if $budget; >+ $line->{branchname} = C4::Branch::GetBranchName($line->{branch}); > } > return \@order_loop, $total_qty, $total_price, $total_qtyreceived; > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >index b6875be..76141b6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt >@@ -66,6 +66,8 @@ > <th>Order number</th> > <th>Summary</th> > <th>Vendor</th> >+ <th>Fund</th> >+ <th>Branch</th> > <th>Placed on</th> > <th>Received on</th> > <th>Quantity ordered</th> >@@ -93,6 +95,8 @@ > <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% suggestions_loo.biblionumber %]">[% suggestions_loo.title |html %]</a> > <br />[% suggestions_loo.author %] <br /> [% suggestions_loo.isbn %]</td> > <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% suggestions_loo.id %]">[% suggestions_loo.name %]</a></td> >+ <td>[% suggestions_loo.budget_name %]</td> >+ <td>[% suggestions_loo.branchname %]</td> > <td>[% suggestions_loo.creationdate | $KohaDates %]</td> > <td>[% suggestions_loo.datereceived | $KohaDates %]</td> > <td>[% suggestions_loo.quantity %]</td> >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8667
:
11749
|
14519