Bugzilla – Attachment 97318 Details for
Bug 17667
Standing orders - cancelling a receipt increase the original quantity
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17667: Add tests
Bug-17667-Add-tests.patch (text/plain), 1.22 KB, created by
ByWater Sandboxes
on 2020-01-13 15:11:43 UTC
(
hide
)
Description:
Bug 17667: Add tests
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-01-13 15:11:43 UTC
Size:
1.22 KB
patch
obsolete
>From 31bd21f87210c282c4951848c88dd856fc4f60c9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 18 Dec 2019 18:10:07 +0100 >Subject: [PATCH] Bug 17667: Add tests > >Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> >--- > t/db_dependent/Acquisition/StandingOrders.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Acquisition/StandingOrders.t b/t/db_dependent/Acquisition/StandingOrders.t >index 1fbe88fb01..d53d13d93d 100644 >--- a/t/db_dependent/Acquisition/StandingOrders.t >+++ b/t/db_dependent/Acquisition/StandingOrders.t >@@ -2,7 +2,7 @@ > > use Modern::Perl; > >-use Test::More tests => 13; >+use Test::More tests => 14; > use C4::Context; > use C4::Acquisition; > use C4::Biblio; >@@ -131,4 +131,9 @@ $search_orders = SearchOrders( { > is( scalar @$search_orders, 1, 'only one pending order after receive' ); > is( $search_orders->[0]->{ordernumber}, $ordernumber, 'original order is only pending order' ); > >+CancelReceipt($new_ordernumber); >+$order = Koha::Acquisition::Orders->find( $ordernumber ); >+is( $order->quantity, 1, 'CancelReceipt should not have increased the quantity if order is standing'); >+ >+ > $schema->storage->txn_rollback(); >-- >2.11.0
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 17667
:
96427
|
96433
|
96663
|
96664
|
97317
|
97318
|
97593
|
97594