Koha/acqui
Jon Knight 121b8105bc Bug 16739: Show note instead of 500 error for 'Generate EDIFACT' when no EDI account is configured
When a book seller (vendor) does not have EDI account information configured
the basketgroup display still shows a button to generate EDIFACT output which
results in 500 error when clicked.  This patch fixes two aspects of this:

a) it stops the button being displayed in the first place, replacing it with
a message that explains there is not EDIFACT configuration for the vendor.

b) if, somehow, an edifact print operation is passed to the basketgroup
script it detects the lack of an EAN and redirects back to the basket group
display page with a warning message.

To test:
1) Create a vendor with no EDI details.
2) Create a basket with some items in, then close it and add it to a basket
   group for this vendor.
   3) Go to that vendor's basket groups, click on the "Closed" tab and then
      click on the 'generate edifact order' button. You should get a 500 error.
   4) Apply this patch.
   5) Repeat 3, except this time you should find that the 'generate edifact
      order' button has been replaced with a note that there is
      "No EDIFACT configuration for <vendor>".

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-09-28 19:24:49 +00:00
..
pdfformat
acqui-home.pl Bug 19792: Performance boost for GetBudgetHierarchy 2018-05-11 10:52:46 -03:00
add_user_search.pl
addorder.pl
addorderiso2709.pl Bug 18639: Add replacementprice field to acquisitions workflow 2018-08-31 12:46:28 +00:00
ajax-getauthvaluedropbox.pl
basket.pl Bug 21033: Remove few warns in acqui/basket.pl 2018-08-09 11:31:44 +00:00
basketgroup.pl Bug 16739: Show note instead of 500 error for 'Generate EDIFACT' when no EDI account is configured 2018-09-28 19:24:49 +00:00
basketheader.pl Bug 19993: use Modern::Perl in Acquisition perl scripts 2018-02-05 09:45:47 -03:00
booksellers.pl
cancelorder.pl
check_budget_total.pl
check_uniqueness.pl
edi_ean.pl Bug 19993: use Modern::Perl in Acquisition perl scripts 2018-02-05 09:45:47 -03:00
edifactmsgs.pl Bug 20861: Correct EDI permissions on EDI messsages 2018-06-04 13:40:36 -04:00
edimsg.pl Bug 20861: Correct EDI permissions on EDI messsages 2018-06-04 13:40:36 -04:00
finishreceive.pl Bug 18639: Add replacementprice field to acquisitions workflow 2018-08-31 12:46:28 +00:00
histsearch.pl Bug 19993: use Modern::Perl in Acquisition perl scripts 2018-02-05 09:45:47 -03:00
invoice-files.pl
invoice.pl Bug 19166: (follow-up) Adjust table and files and QA issues 2018-07-19 17:28:41 +00:00
invoices.pl Bug 19993: use Modern::Perl in Acquisition perl scripts 2018-02-05 09:45:47 -03:00
lateorders-export.pl
lateorders.pl
modordernotes.pl
neworderbiblio.pl
neworderempty.pl Bug 18639: Add replacementprice field to acquisitions workflow 2018-08-31 12:46:28 +00:00
newordersubscription.pl
newordersuggestion.pl
ordered.pl Bug 19166: (follow-up) Adjust table and files and QA issues 2018-07-19 17:28:41 +00:00
orderreceive.pl Bug 18639: Add replacementprice field to acquisitions workflow 2018-08-31 12:46:28 +00:00
parcel.pl
parcels.pl
showorder.pl Bug 12395: (QA follow-up) Change wording for consistency and fix use CGI; 2018-07-06 14:01:50 +00:00
spent.pl Bug 19166: (follow-up) Adjust table and files and QA issues 2018-07-19 17:28:41 +00:00
supplier.pl
transferorder.pl
uncertainprice.pl
updatesupplier.pl
z3950_search.pl