Skip to content

Business objects and documents

Everything OnERP stores is a business object: a customer, a product, sales order SO-1042, a goods movement. Each is of one kind, such as Sales Order or Product. The kind sets which fields it has, which values OnERP fills in, which checks it must pass and which actions it offers.

Business objects fall into two groups.

Master data describes who and what you do business with: business partners, products, sales prices, locations and lots, and the settings under Configuration, such as payment terms and number series. Master data changes over time. A customer or product no longer in use is archived rather than deleted, so every document that names it stays intact.

Documents record something that happened: sales orders, sales invoices, fulfillment orders, goods movements and reservation movements. Once in use, a document is never archived or deleted. A mistake is corrected with a further document, such as a cancellation invoice or an opposite movement, so the trail of what happened stays complete. See Lifecycle.

Stock itself is not a business object anyone edits. The quantities on hand are what the goods movements add up to. See Stock and the ledger.

A field that points to another business object is a reference: the customer on a sales order, the product on a line, the parent of a location. A reference field offers the business objects of its kind to choose from, and on a form it opens the one it points to in a new browser tab.

References hold the business objects together:

  • A reference always points to a business object in use. Drafts and archived ones are not offered.
  • A business object that others refer to cannot be deleted. The message names what refers to it.
  • Some facts are copied, others stay linked. A document copies the customer’s address when it is made, and keeps a link to the customer itself. See What a document freezes.

Some values come from fixed lists that OnERP provides rather than business objects you create: countries, currencies and units. Each entry is an international code, such as DE, EUR or KGM, with a name in your language. Because the codes are standard, a document means the same thing to whoever receives it, including in an e-invoice.

Units also group into dimensions, such as mass or length, which decide what a quantity can convert into. See Units and quantities.

Data model in the settings lists every kind of business object in your workspace, its fields and what each means, the values filled in for it, its checks, its actions and every other kind that refers to it. See The data model.