Bugzilla – Attachment 37318 Details for
Bug 6820
hide receive option if there is nothing to receive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[Signed-off] Bug 6820 - hide receive option if there is nothing to receive
Signed-off-Bug-6820---hide-receive-option-if-there.patch (text/plain), 1.81 KB, created by
Marc Véron
on 2015-03-27 14:05:10 UTC
(
hide
)
Description:
[Signed-off] Bug 6820 - hide receive option if there is nothing to receive
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-03-27 14:05:10 UTC
Size:
1.81 KB
patch
obsolete
>From b473662d688a36c4b7a89844553295457f0034f5 Mon Sep 17 00:00:00 2001 >From: Samuel <scrosby000@gmail.com> >Date: Mon, 6 Jan 2014 15:25:37 +1100 >Subject: [PATCH] [Signed-off] Bug 6820 - hide receive option if there is > nothing to receive >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >The "receive shipment" button appears even if there are no orders to receive. >This patch hides the button if there are no orders. > >To test the patch: >1. Go to "aquisitions" >2. Create a vendor >3. As the newly created vendor has no orders, there will now be no "receive shipment" button >4. Create a basket >5. Go back to the vendor search >6. The button should now appear for that vendor > >I've also tested it with a mix of vendors with and without baskets in the same search. > >Followed test plan, works as expected. >Signed-off-by: Marc Véron <veron@veron.ch> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >index 3db9188..31918fd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >@@ -87,7 +87,9 @@ $(document).ready(function() { > (inactive) > [% END %] > [% END %] >+ [% IF ( supplier.loop_basket.size ) %] > <a class="btn btn-small" href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% supplier.booksellerid %]"><i class="icon-inbox"></i> Receive shipment</a> >+ [% END %] > </span> > <div class="baskets"> > [% IF ( supplier.loop_basket.size ) %] >-- >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 6820
:
5227
|
23920
|
37296
|
37318
|
37339