Bug 23682: Add ability to manually import EDI invoices as an alternative to automatic...
commitd8696702cedb46e7667f9398165ee89627219809
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 26 Sep 2019 14:39:36 +0000 (26 10:39 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 3 Sep 2020 13:00:48 +0000 (3 15:00 +0200)
treeeb542f4af6488d1fae162972448b6ea12e1f8f48
parent8cbf2841ad45dbbddda915873a85fb4569b3bb68
Bug 23682: Add ability to manually import EDI invoices as an alternative to automatic importing on download

Some library would like to delay the importing of invoices until
a time of their choosing. The invoices should be imported into
the database as they do now, but the invoice processing should
be skipped. Instead, any invoice file with a status of 'new'
should have an 'Import' button to process the invoice.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Enable the new syspref EdifactInvoiceImport
4) Run the edi cronjob to import a new invoice file
5) View EDI messages table at /acqui/edifactmsgs.pl
6) Note the invoice files is not processes, and retains the status of 'new'
7) Use the 'import' button to process the invoice
8) Note the invoice is now marked 'received' and the 'import' button is gone
9) Verify the invoice was actually processes

Signed-off-by: Debi Stears <DDStears@washoecounty.us>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
acqui/edifactmsgs.pl
installer/data/mysql/atomicupdate/bug_23682.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref
misc/cronjobs/edi_cron.pl