Installation
Steps to install and configure the Invoice Capture application in OpenKM v7.1:
- Register the English and Spanish translations in OpenKM.
- Stop Tomcat
- Download the application from the OpenKM download center
- Place the invoice.war file into $TOMCAT_HOME/webapps
- Place the invoice-plugins.jar file into $TOMCAT_HOME/plugins
- This application needs to share the database with OpenKM, so you don’t need to create a new one.
- Create the configuration file $TOMCAT_HOME/invoice-capture.properties (this is a sample configuration which needs to be adapted to the target environment)
# Databasespring.datasource.driver-class-name=com.mysql.cj.jdbc.Driverspring.datasource.url=jdbc:mysql://localhost:3306/okmdb?useUnicode=true&characterEncoding=UTF8&serverTimezone=CETspring.datasource.username=openkmspring.datasource.password=openkmspring.jpa.hibernate.ddl-auto=createspring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57InnoDBDialect
# OpenKMopenkm.url=http://localhost:8080/openkmopenkm.url.preview=http://server.ip:8080/openkm
# OpenKM admin useradmin.user=invoiceadmin.password=s3cr3t0
# Previewpreview.download.url=http://server.ip:8080/invoice/download
# OpenKM folderstandard.import.node=bb381ac2-f3f6-42b4-8df6-fbd0e87054ceadvanced.import.node=76d1c3c7-d085-47ec-a153-c146e63ee9d9root.destination.folder.path=/okm:root/invoice
# Available languageslanguages=en-GB,es-ESdefault.language=es-ES
# Logosapp.logo=http://server.ip:8080/openkm/logo/loginapp.logo.login=http://server.ip:8080/openkm/logo/login
# Filter companies list in the search view based in documents of the companies previously uploaded by the userfilter.companies.by.user.upload.documents=falseThe openkm.url configuration property family is also important because Invoice Capture will use this user to interact with your OpenKM instance. So, configure a user with enough permissions. This user should already exist in OpenKM.
The standard.import.node and advanced.import.node properties need to be valid UUIDs of existing folders in your OpenKM. These folders are used to upload the invoice documents.
The folder defined in root.destination.folder is created automatically in the root of your OpenKM taxonomy when the first invoice is catalogued.
- Start Tomcat
- Edit the configuration file $TOMCAT_HOME/invoice-capture.properties and modify the value of this property to “update”; this property should look like this:
spring.jpa.hibernate.ddl-auto=update- Log into OpenKM and follow the user guide for Invoice Capture.
- Once the application is configured you can log to http://server.ip:8080/invoice with the default administrator:
- User: admin
- Password: admin
- Remember to change this default password!