Skip to content

Architecture

How a contract moves through the app

A contract starts as a document in CUR Contract Layout Header and CUR Contract Layout Line. The same tables hold the contract draft and the contract acceptance: the field Document Type (enum 6102673 "CUR Contract Document Type") is blank (caption Draft) for a draft and Acceptance for an acceptance. Implementing an acceptance sets its Acceptance Status (enum 6102676) from Open to Implemented. Making the contract creates it in CUR Contract Header and CUR Contract Line. Invoicing writes CUR Contract Entry per invoiced period and CUR Cont. Consumption Entry for consumption.

flowchart TD
    LH["CUR Contract Layout Header / Line<br/>contract draft and acceptance"]
    IMP["CUR Implement Contract Accept<br/>codeunit 6102685"]
    ACC["CURContrAcceptToContract<br/>codeunit 6102677"]
    CH["CUR Contract Header / Line<br/>the contract"]
    INV["CURInvoicePrePaidContracts 6102678<br/>CURInvoiceBackwardContracts 6102680<br/>CUR CreateContOneTimeInvoice 6102687"]
    E["CUR Contract Entry<br/>CUR Cont. Consumption Entry"]
    SI["Sales invoice<br/>(Business Central)"]

    LH -- implement --> IMP
    LH -- make contract --> ACC --> CH
    CH --> INV --> SI
    INV --> E

Tables

ID Table Holds
6102676 CUR Contract Layout Header Contract draft and acceptance, header
6102677 CUR Contract Layout Line Contract draft and acceptance, lines
6102679 CUR Contract Header The contract, header
6102680 CUR Contract Line The contract, lines
6102682 CUR Contract Comment Line Comments
6102684 CUR Contract Invoice Period Invoicing periods
6102685 CUR Contract Entry One entry per invoiced period
6102686 CUR Cont. Consumption Entry Consumption to invoice
6102687 CUR Consumption type Types of consumption
6102683 CUR Contract Type Contract types
6102675 CUR Contract Template Contract templates, header
6102690 CUR Contract Templ. line Contract templates, lines
6102678 CUR Contract Setup Setup
6102681 CUR Trailing Contract Setup Setup of trailing contracts
6102674 CUR Contract TelemetriSetup Telemetry setup
6102688 CUR Contract Cue Role center cues
6102689 CUR Implementation Center Implementation overview
6102691 CUR Signing Case Digital signing cases (see Extending the app)
6102673 CUR Penneo Setup Penneo connection and ids (internal)
6102692 CUR Signing Document Documents of a signing case (temporary)
6102693 CUR Signing Signer Signers of a signing case (temporary)

Object counts

The main app has 21 tables, 15 table extensions, 44 pages (4 of them API pages), 15 page extensions, 40 codeunits, 16 enums, 1 enum extension, 1 interface, 1 query, 1 report, 1 report extension, 1 profile and 3 permission sets.