This is an old revision of the document!


These tables and fields must be created before you can use the ERP Connector. The fields can be created by running the SQL-scripts in the installation-folder, but if you already have a hosted Lime CRM application, you need to create them manually.

On the company card you MUST have the field “Customer number ERP” and “Company name”. The fields “Turnover this year ERP” and “Turnover last year ERP” are also mandatory. All other fields are optional and can be configured to be sent to the ERP system. (See configuration)

The following company fields are used:

Table name: company

Field name Field Type Field label Required Length Description
name text field Name True 200 The name of the company
erpid text field key False 16 The integration key, Set label key to avoid duplicates
erp_turnover_yearnow decimal N/A False N/A Populated by the integration
erp_turnover_lastyear decimal N/A False N/A Populated by the integration
erpconnector_graph html (tab) N/A N/A N/A HTML tab for showing the graph for paid invoices the last 5 years
invoice relation (tab) N/A N/A N/A Populated by the integration

Invoices are connected to the company on “Customer number ERP” when generated in Lime CRM from the ERP-system.

Table name: invoice

Field name Field Type Field label Required Length Description
invoice_number text field N/A False 64 Unique invoice number
company relation (field) N/A False 256 Relation to company
customerid text field N/A False 128 Customer ID for matching to company
customer_reference text field N/A False N/A Customer reference from ERP
coworker relation (field) N/A False N/A Company reference (Our reference)
invoice_type text field N/A False 64 Invoice type
invoice_date time (date) N/A False N/A When invoice is booked
invoice_expires time (date) N/A False N/A When invoice expires
invoice_sum decimal N/A False N/A Sum ex VAT (moms)
invoice_vat decimal N/A False N/A VAT (moms)
invoice_total_sum decimal N/A False N/A Sum incl VAT
currency text field N/A False 32 Currency
invoice_balance decimal N/A False N/A Invoice balance (saldo)
paid Yes/no N/A False N/A Yes if it is paid
paid_date time (date) N/A False N/A The date when payment is registered
invoice shredded Yes/no N/A False N/A Yes if the payment is shredded (makulerad)

Invoice rows are connected to a invoice on invoice number in the python import.

Table name: invoicerow

Field name Field Type Field label Required Length Description
invoice relation (field) N/A Yes N/A Relation to invoice
item text field N/A Yes 128 Item
description text field N/A Yes 128 Description of Items
units decimal N/A Yes N/A Number of items
row_margin decimal N/A Yes N/A Contribution margin
row_value decimal N/A Yes N/A Sum of row
rowid text field N/A Yes 32 Used to make a row unique (hidden)

Download the Lime CRM Bootstrap app from the Lime CRM Bootstrap app store and follow the instructions for installing found there.

The link to the app on Lime CRM Boostrap app store is: http://www.lime-bootstrap.com/appstore/#erpconnector

Lastly, the service on the ERP-system server is installed and configured. Follow the instructions found in the Installation folder on how to complete the installation.

  • Last modified: 7 years ago
  • (external edit)