Bug 6820 - hide receive option if there is nothing to receive
authorSamuel <scrosby000@gmail.com>
Mon, 6 Jan 2014 04:25:37 +0000 (15:25 +1100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 31 Mar 2015 14:42:44 +0000 (11:42 -0300)
commita63249b67f55b3f3028c1d45d8b8cb70ff80681c
treefb260189c72d9c1d8f0bdcb90aeebfe65a451ea2
parente93c3a4b0ace2d2c12dfd690bee95355d8822415
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 <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt