Koha/koha-tmpl/intranet-tmpl/prog/en/modules/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
..
csv Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
tables Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
acqui-home.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
addorder.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
addorderiso2709.tt Bug 19833: Changing the "biblios" acqui 2018-09-19 13:54:46 +00:00
ajax.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
basket.tt Bug 18639: Add replacementprice field to acquisitions workflow 2018-08-31 12:46:28 +00:00
basketgroup.tt 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.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
booksellers.tt Bug 19833: Kill the "biblios" 2018-09-19 13:54:44 +00:00
cancelorder.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
edi_ean.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
edifactmsgs.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
edimsg.tt Bug 20667: Update two-column templates with Bootstrap grid: Acquisitions part 1 2018-07-06 13:19:35 +00:00
histsearch.tt Bug 13618: (follow-up) Add html filters to all the variables 2018-08-17 15:55:15 +00:00
invoice-files.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
invoice.tt Bug 18639: Add replacementprice field to acquisitions workflow 2018-08-31 12:46:28 +00:00
invoices.tt Bug 19833: Kill the "biblios" 2018-09-19 13:54:44 +00:00
lateorders.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
modordernotes.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
neworderbiblio.tt Bug 21341: Style button on acquisitions existing record search with Bootstrap 2018-09-26 19:06:55 +00:00
neworderempty.tt Bug 18639: (QA follow-up) Fix formatting of replacement cost when modifying an order 2018-08-31 12:46:52 +00:00
neworderempty_duplicate.tt Bug 20672: Update two-column templates with Bootstrap grid: Acquisitions part 3 2018-08-31 11:13:52 +00:00
newordersubscription.tt Bug 20672: Update two-column templates with Bootstrap grid: Acquisitions part 3 2018-08-31 11:13:52 +00:00
newordersuggestion.tt Bug 20672: Update two-column templates with Bootstrap grid: Acquisitions part 3 2018-08-31 11:13:52 +00:00
ordered.tt Bug 20672: Update two-column templates with Bootstrap grid: Acquisitions part 3 2018-08-31 11:13:52 +00:00
orderreceive.tt Bug 18639: Add replacementprice field to acquisitions workflow 2018-08-31 12:46:28 +00:00
parcel.tt Bug 21356: Add Missing space in parcel.tt 2018-09-16 00:00:51 +00:00
parcels.tt Bug 20690: Update two-column templates with Bootstrap grid: Acquisitions part 4 2018-08-31 11:19:47 +00:00
showorder.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
spent.tt Bug 20690: Update two-column templates with Bootstrap grid: Acquisitions part 4 2018-08-31 11:19:47 +00:00
supplier.tt Bug 20534: Floating toolbar when editing vendors 2018-09-26 19:08:26 +00:00
transferorder.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
uncertainprice.tt Bug 20690: Update two-column templates with Bootstrap grid: Acquisitions part 4 2018-08-31 11:19:47 +00:00
z3950_search.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00