Codeunit 18091200 EOS IPL Management

Codeunit 18091200 EOS IPL Management

Methods

GetInvoicePlanDefault

procedure GetInvoicePlanDefault(var GenJournalLine: Record "Gen. Journal Line")

Parameters / Return Value

  • GenJournalLine Record "Gen. Journal Line"

CopyInvPlanTmpTextsToInvPlanTexts

procedure CopyInvPlanTmpTextsToInvPlanTexts(IPLTemplateLine: Record "EOS IPL Template Line"; IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line")

Parameters / Return Value

  • IPLTemplateLine Record "EOS IPL Template Line"

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"


GetInvoicePlanSalesHeader

procedure GetInvoicePlanSalesHeader(var SalesHeader: Record "Sales Header")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

OpenSalesHeaderInvoicePlan

procedure OpenSalesHeaderInvoicePlan(var SalesHeader: Record "Sales Header"): Boolean

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • Returns Boolean


CreateInvoicePlanFromSalesHeader

procedure CreateInvoicePlanFromSalesHeader(var SalesHeader: Record "Sales Header"): Code[20]

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • Returns Code[20]


AddSalesInvoiceToPartialClosingDeduction

procedure AddSalesInvoiceToPartialClosingDeduction(var SalesHeaderInvoice: Record "Sales Header";var SalesHeaderCreditMemo: Record "Sales Header";var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line";SalesLineStartLine: Integer;SalesLineEndLine: Integer;SplitByVAT: Boolean) TotalAmount2Revert: Decimal

Parameters / Return Value

  • SalesHeaderInvoice Record "Sales Header"

  • SalesHeaderCreditMemo Record "Sales Header"

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

  • SalesLineStartLine Integer

  • SalesLineEndLine Integer

  • SplitByVAT Boolean

  • Returns Decimal


AddSalesInvoiceToClosing

procedure AddSalesInvoiceToClosing(var SalesHeaderInvoice: Record "Sales Header";var SalesHeaderCreditMemo: Record "Sales Header";var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line";SalesLineStartLine: Integer;SalesLineEndLine: Integer;SplitByVAT: Boolean): Decimal

Parameters / Return Value

  • SalesHeaderInvoice Record "Sales Header"

  • SalesHeaderCreditMemo Record "Sales Header"

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

  • SalesLineStartLine Integer

  • SalesLineEndLine Integer

  • SplitByVAT Boolean

  • Returns Decimal


CheckSalesInvoicing

procedure CheckSalesInvoicing(var SalesHeaderInvoice: Record "Sales Header";var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line";SalesLineStartLine: Integer;SalesLineEndLine: Integer;AmountReverted: Decimal)

Parameters / Return Value

  • SalesHeaderInvoice Record "Sales Header"

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

  • SalesLineStartLine Integer

  • SalesLineEndLine Integer

  • AmountReverted Decimal


OpenServiceHeaderInvoicePlan

procedure OpenServiceHeaderInvoicePlan(var ServiceHeader: Record "Service Header"): Boolean

Parameters / Return Value

  • ServiceHeader Record "Service Header"

  • Returns Boolean


CreateInvoicePlanFromServiceHeader

procedure CreateInvoicePlanFromServiceHeader(var ServiceHeader: Record "Service Header"): Code[20]

Parameters / Return Value

  • ServiceHeader Record "Service Header"

  • Returns Code[20]


Events

OnBeforeGenerateSalesLineSplitByVAT

local procedure OnBeforeGenerateSalesLineSplitByVAT(var SalesHeader: Record "Sales Header"; IPLInvoicePlanHeader: Record "EOS IPL Invoice Plan Header"; var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line"; SourceDocSalesLines: Record "Sales Line"; var GLAccount: Code[20]; RevertedLineNo: Integer; Amount: Decimal; var Description: Text; var Description2: Text)

Raised before generating Sales Line when SplitByVAT is enabled, allows to add custom lines before the Sales Line insertion or Descriptions and GL Account modifications

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales Header being of the invoice being created

  • IPLInvoicePlanHeader Record "EOS IPL Invoice Plan Header"

    Invoice Plan Header being processed

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

    Invoice Plan Line being processed

  • SourceDocSalesLines Record "Sales Line"

    Source Order Sales Lines used to process Splitting by VAT

  • GLAccount Code[20]

    GL Account for the Sales Line, set to var to allow customizations

  • RevertedLineNo Integer

    Reverted Line No

  • Amount Decimal

    Amount

  • Description Text[]

    Description for the Sales Line, set to var to allow customizations

  • Description2 Text[]

    Description2 for the Sales Line, set to var to allow customizations


OnAfterGenerateSalesLineSplitByVAT

local procedure OnAfterGenerateSalesLineSplitByVAT(var SalesHeader: Record "Sales Header"; IPLInvoicePlanHeader: Record "EOS IPL Invoice Plan Header"; var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line"; SourceDocSalesLines: Record "Sales Line"; var GLAccount: Code[20]; RevertedLineNo: Integer; Amount: Decimal; var Description: Text; var Description2: Text)

Raised after generating Sales Line when SplitByVAT is enabled, allows to add custom lines after the Sales Line insertion or Descriptions and GL Account modifications

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales Header being of the invoice being created

  • IPLInvoicePlanHeader Record "EOS IPL Invoice Plan Header"

    Invoice Plan Header being processed

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

    Invoice Plan Line being processed

  • SourceDocSalesLines Record "Sales Line"

    Source Order Sales Lines used to process Splitting by VAT

  • GLAccount Code[20]

    GL Account for the Sales Line, set to var to allow customizations

  • RevertedLineNo Integer

    Reverted Line No

  • Amount Decimal

    Amount

  • Description Text[]

    Description for the Sales Line, set to var to allow customizations

  • Description2 Text[]

    Description2 for the Sales Line, set to var to allow customizations


OnBeforeGenerateSalesLine

local procedure OnBeforeGenerateSalesLine(var SalesHeader: Record "Sales Header"; IPLInvoicePlanHeader: Record "EOS IPL Invoice Plan Header"; var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line"; var GLAccount: Code[20]; RevertedLineNo: Integer; Amount: Decimal; var Description: Text; var Description2: Text)

Raised before generating Sales Line, allows to add custom lines before the Sales Line insertion or Descriptions and GL Account modifications

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales Header being of the invoice being created

  • IPLInvoicePlanHeader Record "EOS IPL Invoice Plan Header"

    Invoice Plan Header being processed

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

    Invoice Plan Line being processed

  • GLAccount Code[20]

    GL Account for the Sales Line, set to var to allow customizations

  • RevertedLineNo Integer

    Reverted Line No

  • Amount Decimal

    Amount

  • Description Text[]

    Description for the Sales Line, set to var to allow customizations

  • Description2 Text[]

    Description2 for the Sales Line, set to var to allow customizations


OnAfterGenerateSalesLine

local procedure OnAfterGenerateSalesLine(var SalesHeader: Record "Sales Header"; IPLInvoicePlanHeader: Record "EOS IPL Invoice Plan Header"; var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line"; var GLAccount: Code[20]; RevertedLineNo: Integer; Amount: Decimal; var Description: Text; var Description2: Text)

Raised after generating Sales Line, allows to add custom lines after the Sales Line insertion or Descriptions and GL Account modifications

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • IPLInvoicePlanHeader Record "EOS IPL Invoice Plan Header"

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

  • GLAccount Code[20]

    GL Account for the Sales Line, set to var to allow customizations

  • RevertedLineNo Integer

    Reverted Line No

  • Amount Decimal

    Amount

  • Description Text[]

    Description for the Sales Line, set to var to allow customizations

  • Description2 Text[]

    Description2 for the Sales Line, set to var to allow customizations


OnBeforeGenerateServiceLineSplitByVAT

local procedure OnBeforeGenerateServiceLineSplitByVAT(var ServiceHeader: Record "Service Header"; IPLInvoicePlanHeader: Record "EOS IPL Invoice Plan Header"; var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line"; SourceDocServiceLines: Record "Service Line"; var GLAccount: Code[20]; RevertedLineNo: Integer; Amount: Decimal; var Description: Text; var Description2: Text)

Raised before generating Service Line when SplitByVAT is enabled, allows to add custom lines before the Service Line insertion or Descriptions and GL Account modifications

Parameters / Return Value

  • ServiceHeader Record "Service Header"

    Service Header being of the invoice being created

  • IPLInvoicePlanHeader Record "EOS IPL Invoice Plan Header"

    Invoice Plan Header being processed

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

    Invoice Plan Line being processed

  • SourceDocServiceLines Record "Service Line"

    Source Order Service Lines used to process Splitting by VAT

  • GLAccount Code[20]

    GL Account for the Service Line, set to var to allow customizations

  • RevertedLineNo Integer

    Reverted Line No

  • Amount Decimal

    Amount

  • Description Text[]

    Description for the Service Line, set to var to allow customizations

  • Description2 Text[]

    Description2 for the Service Line, set to var to allow customizations


OnAfterGenerateServiceLineSplitByVAT

local procedure OnAfterGenerateServiceLineSplitByVAT(var ServiceHeader: Record "Service Header"; IPLInvoicePlanHeader: Record "EOS IPL Invoice Plan Header"; var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line"; SourceDocServiceLines: Record "Service Line"; var GLAccount: Code[20]; RevertedLineNo: Integer; Amount: Decimal; var Description: Text; var Description2: Text)

Raised after generating Service Line when SplitByVAT is enabled, allows to add custom lines after the Service Line insertion or Descriptions and GL Account modifications

Parameters / Return Value

  • ServiceHeader Record "Service Header"

    Service Header being of the invoice being created

  • IPLInvoicePlanHeader Record "EOS IPL Invoice Plan Header"

    Invoice Plan Header being processed

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

    Invoice Plan Line being processed

  • SourceDocServiceLines Record "Service Line"

    Source Order Service Lines used to process Splitting by VAT

  • GLAccount Code[20]

    GL Account for the Service Line, set to var to allow customizations

  • RevertedLineNo Integer

    Reverted Line No

  • Amount Decimal

    Amount

  • Description Text[]

    Description for the Service Line, set to var to allow customizations

  • Description2 Text[]

    Description2 for the Service Line, set to var to allow customizations


OnBeforeGenerateServiceLine

local procedure OnBeforeGenerateServiceLine(var ServiceHeader: Record "Service Header"; IPLInvoicePlanHeader: Record "EOS IPL Invoice Plan Header"; var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line"; var GLAccount: Code[20]; RevertedLineNo: Integer; Amount: Decimal; var Description: Text; var Description2: Text)

Raised before generating Service Line, allows to add custom lines before the Service Line insertion or Descriptions and GL Account modifications

Parameters / Return Value

  • ServiceHeader Record "Service Header"

    Service Header being of the invoice being created

  • IPLInvoicePlanHeader Record "EOS IPL Invoice Plan Header"

    Invoice Plan Header being processed

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

    Invoice Plan Line being processed

  • GLAccount Code[20]

    GL Account for the Service Line, set to var to allow customizations

  • RevertedLineNo Integer

    Reverted Line No

  • Amount Decimal

    Amount

  • Description Text[]

    Description for the Service Line, set to var to allow customizations

  • Description2 Text[]

    Description2 for the Service Line, set to var to allow customizations


OnAfterGenerateServiceLine

local procedure OnAfterGenerateServiceLine(var ServiceHeader: Record "Service Header"; IPLInvoicePlanHeader: Record "EOS IPL Invoice Plan Header"; var IPLInvoicePlanLine: Record "EOS IPL Invoice Plan Line"; var GLAccount: Code[20]; RevertedLineNo: Integer; Amount: Decimal; var Description: Text; var Description2: Text)

Raised after generating Service Line, allows to add custom lines after the Service Line insertion or Descriptions and GL Account modifications

Parameters / Return Value

  • ServiceHeader Record "Service Header"

  • IPLInvoicePlanHeader Record "EOS IPL Invoice Plan Header"

  • IPLInvoicePlanLine Record "EOS IPL Invoice Plan Line"

  • GLAccount Code[20]

    GL Account for the Service Line, set to var to allow customizations

  • RevertedLineNo Integer

    Reverted Line No

  • Amount Decimal

    Amount

  • Description Text[]

    Description for the Service Line, set to var to allow customizations

  • Description2 Text[]

    Description2 for the Service Line, set to var to allow customizations



EOS Labs -