Bug 21580

Summary: Order creation for EDIFACT vendor fails
Product: Koha Reporter: Colin Campbell <colin.campbell>
Component: AcquisitionsAssignee: Colin Campbell <colin.campbell>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: brendan, hayleypelham, katrin.fischer
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
19.11.00
Attachments: Add a test for message buyer_ean method
pass the buyer_ean to order routine
Bug 21580 Add test for message buyer_ean method
Bug 21580 Pass buyer_ean to create_edi_order
Bug 21580: Pass buyer_ean to create_edi_order
Bug 21580: Add test for message buyer_ean method
Bug 21580: Pass buyer_ean to create_edi_order

Description Colin Campbell 2018-10-16 14:53:16 UTC
The loop generating orders for vendors with auto_orders set fails as only one of the required two parameters is passed to create_edi_order
Comment 1 Colin Campbell 2018-10-16 15:40:24 UTC
Created attachment 80662 [details] [review]
Add a test for message buyer_ean method
Comment 2 Colin Campbell 2018-10-16 15:42:18 UTC
Created attachment 80663 [details] [review]
pass the buyer_ean to order routine

Call of the subroutine now matchs documentation and passes parameter validation
Comment 3 Hayley Pelham 2019-03-08 02:31:50 UTC
(In reply to Colin Campbell from comment #2)
> Created attachment 80663 [details] [review] [review]
> pass the buyer_ean to order routine
> 
> Call of the subroutine now matchs documentation and passes parameter
> validation

Hi, is there a test plan for this?
Comment 4 Brendan Gallagher 2019-10-04 07:57:54 UTC
Created attachment 93674 [details] [review]
Bug 21580 Add test for message buyer_ean method

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Comment 5 Brendan Gallagher 2019-10-04 07:58:05 UTC
Created attachment 93675 [details] [review]
Bug 21580 Pass buyer_ean to create_edi_order

create_edi_order requires two parameters to be passed
but if vendor was set to auto_order the subroutine
was called with basketno only resulting in the error
'no basket or ean passed' - pass the buyer_ean as
passed in the quotes message

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Comment 6 Katrin Fischer 2019-10-10 05:47:18 UTC
Created attachment 93943 [details] [review]
Bug 21580: Pass buyer_ean to create_edi_order

create_edi_order requires two parameters to be passed
but if vendor was set to auto_order the subroutine
was called with basketno only resulting in the error
'no basket or ean passed' - pass the buyer_ean as
passed in the quotes message

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 7 Katrin Fischer 2019-10-10 05:48:08 UTC
Created attachment 93944 [details] [review]
Bug 21580: Add test for message buyer_ean method

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 8 Katrin Fischer 2019-10-10 05:48:12 UTC
Created attachment 93945 [details] [review]
Bug 21580: Pass buyer_ean to create_edi_order

create_edi_order requires two parameters to be passed
but if vendor was set to auto_order the subroutine
was called with basketno only resulting in the error
'no basket or ean passed' - pass the buyer_ean as
passed in the quotes message

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 9 Katrin Fischer 2019-10-10 05:48:58 UTC
Passing QA on this as agreed with RM - both parties heavily using EDIFACT have been involved in the QA process. Tests and QA script pass.
Comment 10 Martin Renvoize 2019-10-10 07:25:05 UTC
Nice work!

Pushed to master for 19.11.00