Skip to main content

Full integration capabilities for Pegasus Opera

An overview of the data fields imported from Opera into the CRM as part of the Opera integration.

Written by Jason

Important: This reference is provided as a guide and may not reflect every field imported for your specific configuration. Certain import sections, such as User Defined Fields, Price Lists, and Discount matrices, may not be fully represented here. As the integration is updated over time, this document may become out of date. If you notice any missing fields, inaccuracies, or discrepancies between this document and the data in your system, please raise this with our support team so that we can review and update this article accordingly.

Several numeric fields (prices, quantities, values) in Opera are stored as raw integers. The integration uses companion "decimals" columns and computed fields to convert them to properly scaled decimal values in the CRM.

The Sales Invoice, Sales Credit, and Sales Order imports all write to the same CRM salestrans table, distinguished by the transactiontype column (O, I, C).

Sales Ledger (Customers)

CRM Field (Friendly Name)

Opera Source

Description

Account ID

sname.sn_account

Unique customer identifier to link the CRM record to Opera

Name

sname.sn_name

Company/customer name for display and search

Address Line 1

sname.sn_addr1

Postal address for correspondence and deliveries

Address Line 2

sname.sn_addr2

Postal address (continued)

Address Line 3

sname.sn_addr3

Postal address (continued)

Address Line 4

sname.sn_addr4

Postal address (continued)

Country

(not in source; set on target only)

Geographic location for reporting and VAT

Postcode

sname.sn_pstcode

Postal code for address validation and territory assignment

Telephone

sname.sn_teleno

Primary contact number

Fax

sname.sn_faxno

Fax contact number

Email

sname.sn_email

Electronic contact for communications

Website

sname.sn_wwwpage

Customer website URL

On Stop

sname.sn_stop

Credit-hold flag to prevent new orders

Balance

sname.sn_currbal (computed)

Outstanding account balance for credit control

Last Invoice Date

sname.sn_lastinv

Tracks recency of trading activity

Last Receipt Date

sname.sn_lastrec

Tracks when last payment was received

Currency Code

sprfls.sc_currncy

Default trading currency for the customer

Credit Limit

sname.sn_crlim (computed)

Maximum credit extended to the customer

Price List

sterms.sr_prclist

Assigned price list for quotation/ordering

Discount Group

sterms.sr_discgrp

Discount matrix group for pricing rules

Is Model Account

sname.sn_model

Flags template/model accounts (not real customers)

Tax Code

sprfls.sc_vatcode

Default VAT code for tax calculations

Country Code

sname.sn_ctry

ISO country code for VAT country determination

VAT Reg Code

sname.sn_vrn

Customer VAT registration number for compliance

Default Warehouse

sname.sn_dwar

Preferred warehouse for dispatching goods

Overall Discount

sterms.sr_ovdisc

Blanket discount percentage for the customer

Settlement Discount 1

sterms.sr_set1pct

Early-payment discount tier 1

Settlement Discount 2

sterms.sr_set2pct

Early-payment discount tier 2

Settlement Days 1

sterms.sr_set1day

Days within which tier-1 settlement discount applies

Settlement Days 2

sterms.sr_set2day

Days within which tier-2 settlement discount applies

Compound Overall Discount

(default 1 on target)

Whether the overall discount compounds with line discounts

Closed

sname.sn_dormant

Marks dormant/closed accounts

Invoice To

sname.sn_stmntac

Statement/invoice-to account reference

Delivery Instructions

sname.sn_delinst

Standing delivery instructions for the customer


Purchase Ledger (Suppliers)

CRM Field (Friendly Name)

Opera Source

Description

Account ID

pname.pn_account

Unique supplier identifier

Name

pname.pn_name

Supplier company name

Address Line 1

pname.pn_addr1

Supplier postal address

Address Line 2

pname.pn_addr2

Address (continued)

Address Line 3

pname.pn_addr3

Address (continued)

Address Line 4

pname.pn_addr4

Address (continued)

Country

(target only)

Geographic location

Postcode

pname.pn_pstcode

Postal code

Telephone

pname.pn_teleno

Primary contact number

Fax

pname.pn_faxno

Fax number

Email

pname.pn_email

Email address

Website

pname.pn_wwwpage

Supplier website

Balance

pname.pn_currbal

Outstanding balance owed to supplier

Last Invoice Date

pname.pn_lastinv

Recency of purchase activity

Currency Code

pprfls.pc_currncy

Supplier's trading currency

Is Model Account

pname.pn_model

Template account flag

Closed

pname.pn_dormant

Marks dormant supplier accounts


Product Items

CRM Field (Friendly Name)

Opera Source

Description

Product Reference

cname.cn_ref

Unique stock/product code

Product Description

cname.cn_desc

Name/description of the product

Product Category

cname.cn_catag

Classification for browsing/reporting

Sell Price

cname.cn_sell

Standard selling price

Discount Matrix

cname.cn_discmat

Links to the discount matrix group

Obsolete

cname.cn_dormant

Flags discontinued products

Cost Price

(computed from cn_cost/cn_lcost)

Standard/last cost for margin analysis

Memo (Extended Description)

cname.cn_exten

Detailed product description

Private Memo

cname.cn_memo

Internal notes not shown to customers

Quantity Type

cfact.cf_factdp

Decimal/integer quantity handling mode

Quantity Decimals

cfact.cf_dps

Decimal places for quantity

Quantity Factor

cfact.cf_factor

Pack/unit conversion factor

Allow Split

cfact.cf_split (computed)

Whether partial-quantity orders are allowed

Stocked

cfact.cf_stock

Whether the product is held in stock

Sell Decimals

cfact.cf_selldps

Decimal places for the selling price

Pack

cfact.cf_name

Pack size description

Allow Line Discount

cname.cn_line

Whether line discounts are applicable

Allow Overall Discount

cname.cn_over

Whether overall discounts are applicable

Allow Settlement Discount

cname.cn_sett

Whether settlement discounts apply

Sale Price

cname.cn_ssell

Promotional/sale selling price

Next Price

cname.cn_nsell

Upcoming price change value

Sale From

cname.cn_sdate1

Start date of sale pricing

Sale To

cname.cn_sdate2

End date of sale pricing

Next Price Start

cname.cn_ndate

Effective date for the next price

VAT Code

ssale.ss_vatcode

Tax code for the product

Unit Description

cfact.cf_desc

Description of the unit of measure

Purchase Analysis

cname.cn_panal

Purchase nominal analysis code

Sales Analysis

cname.cn_anal

Sales nominal analysis code

Default Warehouse

cname.cn_defwh

Default warehouse for the product

Unit Weight

cname.cn_unitw (computed)

Weight per unit for shipping

Unit Volume

cname.cn_unitv (computed)

Volume per unit for shipping

Alt Ref 1

cname.cn_cat

Alternative/cross-reference code 1

Alt Ref 2

cname.cn_cat2

Alternative/cross-reference code 2

Barcode

cname.cn_barcode

Product barcode

Purchase Currency

(target only)

Currency used for purchasing

Purchase Cost

(computed)

Cost price in purchase currency

Bin Location

(target only)

Warehouse bin/shelf location

Cost Centre

(target only)

Cost centre for departmental accounting

Department

(target only)

Department code


Product Categories

CRM Field (Friendly Name)

Opera Source

Description

Category Code

ccatg.cg_code

Unique identifier for the product category

Category Description

ccatg.cg_desc

Human-readable name for the category

Parent Category

(target only)

Supports hierarchical category trees

Catalogue Code

(default "SYSTEM")

Identifies the catalogue this category belongs to


Price Lists

CRM Field (Friendly Name)

Opera Source

Description

Price List Type

(computed from source)

Distinguishes standard vs. special price lists

Price List Code

cdetl.cd_code

Unique code for the price list

Currency Code

cdetl.cd_curr

Currency the prices are denominated in

Product Reference

cdetl.cd_ref

Product this price applies to

Price List Description

cdetl.cd_desc

Name/description of the price list

Selling Price

cdetl.cd_sell

Standard list price

Sell Decimals

cfact.cf_selldps (computed)

Decimal precision for the selling price

Allow Line Discount

cdetl.cd_line

Whether line discounts apply on this list

Allow Overall Discount

cdetl.cd_over

Whether overall discounts apply

Allow Settlement Discount

cdetl.cd_sett

Whether settlement discounts apply

Sale Price

cdetl.cd_ssell

Promotional price

Next Price

cdetl.cd_nsell

Upcoming price

Sale From

cdetl.cd_sdate1

Sale period start

Sale To

cdetl.cd_sdate2

Sale period end

Next Price Start

cdetl.cd_ndate

Date the next price takes effect

Quantity Breaks 1-10

cdetl.cd_quan1..cd_quan10

Quantity thresholds for tiered pricing

Qty Prices 1-10

cdetl.cd_sell1..cd_sell10

Prices at each quantity break

Qty Sale Prices 1-10

cdetl.cd_ssell1..cd_ssell10

Sale prices at each quantity break

Qty Next Prices 1-10

cdetl.cd_nsell1..cd_nsell10

Next prices at each quantity break


Discount Matrix

CRM Field (Friendly Name)

Opera Source

Description

Discount Matrix Code

(computed from cdisc.sd_code)

Product-side of the discount intersection

Discount Group

(computed from cdisc.sd_code)

Customer-side of the discount intersection

Discount Type

(computed from cdisc.sd_code)

Whether discount is by percentage or other method

Discount Description

cdisc.sd_desc

Name of the discount rule

Discount %

cdisc.sd_disc

Base discount percentage

Quantity Breaks 1-10

cdisc.sd_quan1..sd_quan10

Quantity thresholds for tiered discounts

Qty Discounts 1-10

cdisc.sd_qdis1..sd_qdis10

Discount % at each quantity break

Chained Discounts 1-3

cdisc.sd_cdis1..sd_cdis3

Additional compounding discount layers


Sales Orders

CRM Field (Friendly Name)

Opera Source

Description

Document Reference

ihead.ih_doc

Internal Opera document ID

Line Number

itran.it_recno

Line position within the order

Order Number

ihead.ih_sorder

Sales order number

Product Reference

itran.it_stock

Product being ordered

Product Description

itran.it_desc

Line-level product description

Extended Description

itran.it_memo

Additional line notes/memo

Unit Price

itran.it_price

Price per unit on the line

Order Quantity

itran.it_quan (computed)

Quantity ordered

Invoice Quantity

itran.it_qtyinv (computed)

Quantity already invoiced

Line Value (Net)

itran.it_exvat (computed)

Net line value ex-VAT

Value Gross

itran.it_lineval (computed)

Gross line value inc-VAT

Due Date

itran.it_due

Requested delivery/due date

Expiry Date

itran.it_exdate

Quote/order expiry date

Contract Reference

itran.it_exref

External/contract reference

Account

ihead.ih_account

Customer account code

Ledger

ihead.ih_postacc

Posting account for invoicing

Currency Code

itran.it_fcurr

Transaction currency

Customer Reference

ihead.ih_custref

Customer's own PO/ref number

Quote Reference

ihead.ih_quotat

Original quotation number

Proforma Reference

ihead.ih_proform

Proforma invoice reference

Delivery Reference

itran.it_numdelv

Delivery note number

Delivery Date

itran.it_dtedelv

Actual delivery date

Analysis Code

itran.it_anal

Sales analysis/departmental code

Qty Delivered

(computed: it_qtydelv + it_qtyinv)

Total quantity dispatched

Quote Date

ihead.ih_quodate

Date the quote was raised

Proforma Date

ihead.ih_prodate

Date proforma was issued

Order Date

ihead.ih_orddate

Date the order was placed

Cost Price

itran.it_cost

Unit cost for margin tracking

Warehouse Code

itran.it_cwcode

Warehouse fulfilling the line

Priority

itran.it_priorty

Order line priority

Base Value / Base Value Gross / Base Curr Decimals

(computed from exchange rate)

Values converted to home currency

Sell Decimals / Curr Decimals / Qty Type / Qty Decimals / Qty Factor

(computed from cfact/zxchg)

Precision metadata for correct display


Sales Invoices

Same CRM entity (salestrans) as Sales Orders, with additional fields.

CRM Field (Friendly Name)

Opera Source

Description

Invoice Number

(from Opera invoice posting)

Unique invoice identifier

Invoice Date

(from Opera)

Date the invoice was raised

Transaction Type

(hardcoded "I")

Distinguishes invoices from orders/credits

(All other fields)

(Same as Sales Orders)

Same line-level detail as orders

The Sales Invoice target includes shuser1..shuser5 (User Defined Fields on the sales header), warehousecode, and transactiontype set to I. d_accimp_opera_salesinvoice_target.txt:7-54


Sales Credits

CRM Field (Friendly Name)

Opera Source

Description

Transaction Type

(hardcoded "C")

Identifies this as a credit note

(All other fields)

(Same structure as Sales Invoice)

Records credit notes issued against invoices

Credits are identified by invoice numbers ending in -. All other fields mirror the Sales Invoice structure. d_accimp_opera_credit_target.txt:7-46


Sales Payments

CRM Field (Friendly Name)

Opera Source

Description

Invoice Number

stran.st_trref (computed)

Links payment status to the invoice

Paid Flag

(computed from st_trbal/st_paid)

Whether the invoice is fully paid

Paid Date

stran.st_payday

Date payment was received

Payment Due Date

stran.st_dueday

When payment is/was due


Purchase Orders (Open)

CRM Field (Friendly Name)

Opera Source

Description

Document Reference

doline.do_dcref

Opera purchase order document ref

Line Number

doline.do_dcline

Line position

Order Number

(computed from do_dcref)

PO number

Supplier Account

doline.do_account

Supplier being ordered from

Supplier Ledger

doline.do_ledger

Posting ledger account

Product Reference

doline.do_cnref

Product being purchased

Product Description

doline.do_desc

Line description

Extended Description

doline.do_extend

Additional notes

Unit Price

doline.do_price

Purchase price per unit

Order Quantity

doline.do_reqqty

Quantity requested

Qty Delivered

doline.do_recqty

Quantity received

Line Value

doline.do_discv

Net line value after discount

Due Date

doline.do_reqdat

Required-by date

Delivery Date

doline.do_recdat

Actual receipt date

Delivery Reference

doline.do_delref

Delivery note reference

Analysis Code

doline.do_suppcde

Supplier's analysis/product code

Currency Code

doline.do_currcy

Purchase currency

Intended Warehouse

doline.do_cwcode

Warehouse the stock is intended for

Order Completed

doline.do_cmpltd

Whether the PO line is fully completed

Sales Order No

doline.do_sorder

Linked sales order (back-to-back)

Sales Order Customer

doline.do_socust

Customer on the linked sales order

Sales Order Doc Ref

doline.do_sodoc

Document ref of the linked sales order

Sales Order Record No

doline.do_sorecno

Record number on the linked sales order

Supplier Stock Ref

doline.do_supref

Supplier's own product reference

Discount Value

(computed)

Discount amount on the line

Base Value / Base Curr Decimals

(computed from exchange rate)

Home-currency equivalents


Purchase Orders (Completed)

Same fields as Open Purchase Orders above, with additional fields below.

CRM Field (Friendly Name)

Opera Source

Description

Invoice Number

(from completed PO processing)

Links to purchase invoice

Invoice Quantity

(target only)

Quantity invoiced

Transaction Type

(hardcoded "P")

Marks completed/invoiced purchase lines


Foreign Currencies

CRM Field (Friendly Name)

Opera Source

Description

Currency Code

zxchg.xc_curr

ISO-style currency identifier

Currency Description

zxchg.xc_desc

Human-readable currency name

Decimal Places

zxchg.xc_dec

Number of decimal places for the currency

Exchange Rate

zxchg.xc_srate * 10000 (computed)

Current exchange rate vs. home currency

Multiplier

zxchg.xc_mult

Multiply/divide flag for rate conversion

Home Currency

(target only)

Flags which currency is the base/home

ISO Code

(target only)

Standard ISO 4217 code

Obsolete

(target only)

Marks retired currencies


VAT Rates

CRM Field (Friendly Name)

Opera Source

Description

Country Type

ztax.tx_ctrytyp

Home/EC/non-EC classification

Transaction Type

ztax.tx_trantyp

Sales/Purchase transaction type

Tax Code

ztax.tx_code

VAT code identifier

Description

ztax.tx_desc

Name of the VAT rate

Rate 1

ztax.tx_rate1

Current tax rate percentage

Rate 1 Date

ztax.tx_rate1dy

Effective date for Rate 1

Rate 2

ztax.tx_rate2

Previous/upcoming tax rate

Rate 2 Date

ztax.tx_rate2dy

Effective date for Rate 2


VAT Countries

CRM Field (Friendly Name)

Opera Source

Description

Country Code

vcntry.vt_country

Two-letter country identifier

Country Name

vcntry.vt_desc

Full country name

VAT Home

vcntry.vt_home

Whether this is the home country

EC Member

vcntry.vt_member

EU/EC membership flag for Intrastat

VAT Registered

vcntry.vt_vatregd

Whether VAT-registered in this country


Warehouses

CRM Field (Friendly Name)

Opera Source

Description

Warehouse Code

cware.cw_code

Unique warehouse identifier

Warehouse Name

cware.cw_desc

Descriptive name of the warehouse

Catalogue Code

(default "SYSTEM")

Catalogue the warehouse belongs to


Stock by Warehouse

CRM Field (Friendly Name)

Opera Source

Description

Stock Reference

cstwh.cs_ref

Product reference

Warehouse Code

cstwh.cs_whar

Warehouse holding the stock

Free Stock

cstwh.cs_freest

Available/unallocated stock quantity

On Order

cstwh.cs_order

Quantity on outstanding purchase orders

Physical Stock

cstwh.cs_instock

Total physical stock count

Sales Orders

cstwh.cs_saleord

Quantity allocated to sales orders

Sell Price

cstwh.cs_sell

Selling price at this warehouse

Cost Price

cstwh.cs_cost

Cost price at this warehouse

Qty Decimals

cfact.cf_dps

Decimal places for stock quantities


Product Item Suppliers

CRM Field (Friendly Name)

Opera Source

Description

Product Reference

dsprod.ds_cnref

Internal product code

Supplier Account

dsprod.ds_account

Supplier account code

Supplier Reference

dsprod.ds_supref (or ds_cnref if blank)

Supplier's own product code

Supplier Description

dsprod.ds_supdesc

Supplier's description of the product

Supplier Cost

dsprod.ds_cost

Purchase cost from this supplier

Cost Decimals

dsprod.ds_fcdec

Decimal places for the cost price

Supplier Lead Time

dsprod.ds_lead

Days lead time for supply

Supplier Rating

dsprod.ds_rating

Quality/reliability rating

Supplier Currency

dsprod.ds_curr

Currency the supplier trades in

Economic Quantity

dsprod.ds_ecqty

Minimum/economic order quantity

Did this answer your question?