From 44574cd2ea61f5f670572084aceb723f79909084 Mon Sep 17 00:00:00 2001 From: Samuel Date: Mon, 6 Jan 2014 15:25:37 +1100 Subject: [PATCH] [PASSED QA] Bug 6820 - hide receive option if there is nothing to receive 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 Veron Signed-off-by: Kyle M Hall --- .../prog/en/modules/acqui/booksellers.tt | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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 ) %] Receive shipment + [% END %]
[% IF ( supplier.loop_basket.size ) %] -- 1.7.2.5