Show / Hide Table of Contents

    Create Documents

    Functionality to create sales documents or job planning lines from contracts.

    Object Definition

    Object TypeCodeunit
    Object ID70299081
    Object NameQWEPR Create Documents

    Procedures

    Name Description
    CreateDocuments(Record "QWEPR Contract Header") Create documents for a given Contract.

    Events

    Name Description
    OnAfterCreateDocuments(Record "QWEPR Contract Header") Raised last in the CreateDocuments() function.
    OnAfterCreateSalesDocument(Record "Sales Header"; Record "QWEPR Contract Header") Raised after a Sales Document is created.
    OnAfterInitContractEntry(Record "QWEPR Contract Entry"; Record "QWEPR Contract Header"; Record "QWEPR Contract Line") Raised after the Contract Entry is initialized.
    OnAfterSetContractLineFiltersBeforeCreateSalesLines(Record "QWEPR Contract Line"; Record "QWEPR Contract Header") Raised after an instance of Contract Line is filtered before creating sales lines.
    OnBeforeCreateDocuments(Record "QWEPR Contract Header"; Boolean) Raised first in the CreateDocuments() function.
    OnBeforeCreateSalesDocument(Record "QWEPR Contract Header"; Date; Boolean) Raised before a Sales Document is created.
    OnBeforeCreateSalesDocuments(Record "QWEPR Contract Header") Raised before the creation of Sales Documents is performed.
    OnBeforeCreateSalesHeader(Record "QWEPR Contract Header"; Code[20]; Boolean; Record "Sales Header"; Boolean) Raised before a Sales Header is created when documents are created from ContractHeader.
    OnBeforeInsertDocumentHeaderComment(Record "QWEPR Contract Line"; Record "Sales Line"; Date; Date; Boolean; Boolean) Raised before header comment is inserted as a sales line in a sales document created from a contract.
    OnBeforeInsertJobContractEntry(Record "QWEPR Contract Entry"; Record "Job Planning Line"; Record "QWEPR Contract Header"; Record "QWEPR Contract Line") Raised before a Contract Entry is inserted when a Job Planning Line is created from a Contract.
    OnBeforeInsertSalesContractEntry(Record "QWEPR Contract Entry"; Record "Sales Line"; Record "QWEPR Contract Header"; Record "QWEPR Contract Line") Raised before a Contract Entry is inserted when a Sales Line is created from a Contract.
    OnBeforeInsertSalesHeader(Record "Sales Header"; Record "QWEPR Contract Header") Raised before Sales Header is inserted.
    OnBeforeModifyContractHeader(Record "QWEPR Contract Header") Raised before the Contract is modified, before the documents are being created.
    OnBeforeModifySalesHeader(Record "Sales Header"; Record "QWEPR Contract Header") Raised before Sales Header is modified.
    OnBeforeModifySalesLine(Record "Sales Line"; Record "QWEPR Contract Header"; Record "QWEPR Contract Line") Raised before Sales Line is modified.
    OnBeforeSetPostingDate(Record "Sales Header"; Record "QWEPR Contract Header"; Date; Boolean) Raised before posting date on the Sales Header is updated.
    OnBeforeValidateSalesLineLineDiscPercent(Record "Sales Line"; Record "QWEPR Contract Line"; Decimal; Boolean) Raised before the validation of Line Discount Percent on Sales Line.
    OnBeforeValidateSalesLineUnitPrice(Record "Sales Line"; Record "QWEPR Contract Line"; Decimal; Boolean) Raised before the validation of Unit Price on Sales Line.
    OnCreateDocumentsFromContractOnBeforeLoopContracts(Record "QWEPR Contract Header") Raised before contracts are looped to create documents or planning lines.

    This documentation is generated from Parrot v26.0.233072.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX