Koha/acqui
Katrin Fischer 2d6595a1bf Bug 26190: Allow to close a basket with only cancelled order lines
At the moment there are several cases, when closing a basket is not
possible:
- when there are no order lines in it
- when there are order lines with uncertain prices
- when the basket is marked as a standing order

The first case wasn't checked correctly as only pending/received
orders would be counted, but not cancelled orders.

To test:
- Create a basket
- Create an order line
- Verify the "close this basket" button shows
- Cancel the order line - the button disappears
- Apply the patch
- Verify the button appears and works now
- Create another basket - make sure you cannot close it
  without order lines
- Create an order line with uncertain price checked
  - you cannot close it
- Resolve the uncertain price - you can now close the basket.

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-11-04 12:59:33 +01:00
..
acqui-home.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
add_user_search.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
addorder.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
addorderiso2709.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ajax-getauthvaluedropbox.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
basket.pl Bug 26190: Allow to close a basket with only cancelled order lines 2020-11-04 12:59:33 +01:00
basketgroup.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
basketheader.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
booksellers.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
cancelorder.pl Bug 26577: Make basket.pl and cancelorder.pl use ->cancel 2020-10-15 14:50:07 +02:00
check_budget_total.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
check_uniqueness.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
duplicate_orders.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
edi_ean.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
edifactmsgs.pl Bug 23682: Fix use Koha::Plugins::Handler statements 2020-09-03 15:00:48 +02:00
edimsg.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
finishreceive.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
histsearch.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
invoice-files.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
invoice.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
invoices.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
lateorders-export.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
lateorders.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
modordernotes.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
neworderempty.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
newordersubscription.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
newordersuggestion.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ordered.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
orderreceive.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
parcel.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
parcels.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
showorder.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
spent.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
supplier.pl Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
transferorder.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
uncertainprice.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
updatesupplier.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
z3950_search.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00