Bugzilla – Attachment 86966 Details for
Bug 22565
Partially receiving order and adding internal note on invoice updates note on every order on the system
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22565: Add test for ModReceiveOrder regression
Bug-22565-Add-test-for-ModReceiveOrder-regression.patch (text/plain), 1.46 KB, created by
Martin Renvoize (ashimema)
on 2019-03-25 11:06:09 UTC
(
hide
)
Description:
Bug 22565: Add test for ModReceiveOrder regression
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-03-25 11:06:09 UTC
Size:
1.46 KB
patch
obsolete
>From 4b349ec8db51f70c6913791206cc3dbf1b843a6b Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 25 Mar 2019 11:04:37 +0000 >Subject: [PATCH] Bug 22565: Add test for ModReceiveOrder regression > >This test checks that order_internalnote is only updated for the given >orderline in ModReceiveOrder. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/db_dependent/Acquisition.t | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t >index bbc136d5ce..3a07c8b3c8 100755 >--- a/t/db_dependent/Acquisition.t >+++ b/t/db_dependent/Acquisition.t >@@ -415,8 +415,7 @@ $order2->{order_internalnote} = "my notes"; > quantityreceived => 2, > invoice => $invoice, > } >-) >-; >+); > $order2 = GetOrder( $ordernumbers[1] ); > is( $order2->{'quantityreceived'}, > 0, 'Splitting up order did not receive any on original order' ); >@@ -425,6 +424,12 @@ is( $order2->{'budget_id'}, $budgetid, > 'Budget on original order is unchanged' ); > is( $order2->{order_internalnote}, "my notes", > 'ModReceiveOrder and GetOrder deal with internal notes' ); >+my $order1 = GetOrder( $ordernumbers[0] ); >+is( >+ $order1->{order_internalnote}, >+ "internal note", >+ "ModReceiveOrder only changes the supplied orders internal notes" >+); > > $neworder = GetOrder($new_ordernumber); > is( $neworder->{'quantity'}, 2, '2 items on new order' ); >-- >2.20.1
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 22565
:
86965
|
86966
|
86967
|
86968
|
86969
|
86970