Skip to content

[W1][MultiObjects] Exposing methods in E-Documents Module #6149

@miljance

Description

@miljance

Describe the issue

I need to call three different methods in order to customize E-Document for Germany (xRechnung and ZUGFeRD). Currently I have copied the functions, but it feels like the functions are rather generic and can be exposed.

  • [6102][E-Doc. Export] - IsDocumentTypeSupportedByService
  • [6135][E-Document WorkFlow Processing - DoesFlowHasEDocService
  • [6108][E-Document Processing] - GetDocSendingProfileForDocRef

Expected behavior

Three mentioned methods should be accessible for ISVs and Partners.

Steps to reproduce

Not applicable

Additional context

    procedure IsDocumentTypeSupportedByService(EDocService: Record "E-Document Service"; var SourceDocumentHeader: RecordRef; ForCheck: Boolean): Boolean
    var
        EDocServiceSupportedType: Record "E-Doc. Service Supported Type";
        SalesHeader: Record "Sales Header";
        ServiceHeader: Record "Service Header";
        PurchHeader: Record "Purchase Header";
        EDocSourceType: Enum "E-Document Type";
        SalesDocumentType: Enum "Sales Document Type";
        ServiceDocumentType: Enum "Service Document Type";
        PurchDocumentType: Enum "Purchase Document Type";
    begin
    procedure DoesFlowHasEDocService(var EDocServices: Record "E-Document Service"; WorkfLowCode: Code[20]): Boolean
    var
        WorkflowStepArgument: Record "Workflow Step Argument";
        WorkflowStep: Record "Workflow Step";
        WorkFlow: Record Workflow;
        Filter: Text;
    begin

    procedure GetDocSendingProfileForDocRef(var RecRef: RecordRef): Record "Document Sending Profile";
    var
        SalesHeader: Record "Sales Header";
        PurchaseHeader: Record "Purchase Header";
        FinChargeMemoHeader: Record "Finance Charge Memo Header";
        TransferHeader: Record "Transfer Header";
    begin

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    ApprovedThe issue is approvedIntegrationGitHub request for Integration area

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions