Share via


Codeunit "PEPPOL Validation"

ID 1620
Namespace: Microsoft.Sales.Peppol

Properties

Name Value
TableNo Table Microsoft.Sales.Document."Sales Header"

Methods

CheckSalesDocument

procedure CheckSalesDocument(SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

CheckSalesDocumentLines

procedure CheckSalesDocumentLines(SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

CheckSalesDocumentLine

procedure CheckSalesDocumentLine(SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

CheckSalesInvoice

procedure CheckSalesInvoice(SalesInvoiceHeader: Record "Sales Invoice Header")

Parameters

Name Type Description
SalesInvoiceHeader Table Microsoft.Sales.History."Sales Invoice Header"

CheckSalesCreditMemo

procedure CheckSalesCreditMemo(SalesCrMemoHeader: Record "Sales Cr.Memo Header")

Parameters

Name Type Description
SalesCrMemoHeader Table Microsoft.Sales.History."Sales Cr.Memo Header"

CheckServiceHeader

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit PEPPOL Service Validation

[Obsolete(Moved to codeunit PEPPOL Service Validation,25.0)]
procedure CheckServiceHeader(ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

CheckServiceInvoice

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit PEPPOL Service Validation

[Obsolete(Moved to codeunit PEPPOL Service Validation,25.0)]
procedure CheckServiceInvoice(ServiceInvoiceHeader: Record "Service Invoice Header")

Parameters

Name Type Description
ServiceInvoiceHeader Table Microsoft.Service.History."Service Invoice Header"

CheckServiceCreditMemo

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit PEPPOL Service Validation

[Obsolete(Moved to codeunit PEPPOL Service Validation,25.0)]
procedure CheckServiceCreditMemo(ServiceCrMemoHeader: Record "Service Cr.Memo Header")

Parameters

Name Type Description
ServiceCrMemoHeader Table Microsoft.Service.History."Service Cr.Memo Header"

CheckSalesLineTypeAndDescription

procedure CheckSalesLineTypeAndDescription(SalesLine: Record "Sales Line"): Boolean

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

Returns

Type Description
Boolean

Events

OnAfterCheckSalesDocument

[IntegrationEvent(False,False)]
local procedure OnAfterCheckSalesDocument(SalesHeader: Record "Sales Header", CompanyInfo: Record "Company Information")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
CompanyInfo Table Microsoft.Foundation.Company."Company Information"

OnBeforeCheckShipToAddress

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckShipToAddress(SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

OnBeforeOnRun

[IntegrationEvent(False,False)]
local procedure OnBeforeOnRun(SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

OnCheckSalesDocumentLineOnBeforeCheckEmptyDescription

[IntegrationEvent(False,False)]
local procedure OnCheckSalesDocumentLineOnBeforeCheckEmptyDescription(SalesLine: Record "Sales Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnBeforeCheckSalesDocument

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSalesDocument(var SalesHeader: Record "Sales Header", var CompanyInformation: Record "Company Information", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
CompanyInformation Table Microsoft.Foundation.Company."Company Information"
IsHandled Boolean

OnBeforeCheckSalesDocumentLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSalesDocumentLine(var SalesLine: Record "Sales Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnCheckServiceHeaderOnBeforeCheckSalesDocumentLine

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit PEPPOL Service Validation

[Obsolete(Moved to codeunit PEPPOL Service Validation,25.0)]
[IntegrationEvent(False,False)]
local procedure OnCheckServiceHeaderOnBeforeCheckSalesDocumentLine(var SalesLine: Record "Sales Line", ServiceLine: Record "Service Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnCheckServiceInvoiceOnBeforeCheckSalesDocumentLine

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit PEPPOL Service Validation

[Obsolete(Moved to codeunit PEPPOL Service Validation,25.0)]
[IntegrationEvent(False,False)]
local procedure OnCheckServiceInvoiceOnBeforeCheckSalesDocumentLine(var SalesLine: Record "Sales Line", ServiceInvoiceLine: Record "Service Invoice Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ServiceInvoiceLine Table Microsoft.Service.History."Service Invoice Line"

OnCheckServiceCreditMemoOnBeforeCheckSalesDocumentLine

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit PEPPOL Service Validation

[Obsolete(Moved to codeunit PEPPOL Service Validation,25.0)]
[IntegrationEvent(False,False)]
local procedure OnCheckServiceCreditMemoOnBeforeCheckSalesDocumentLine(var SalesLine: Record "Sales Line", ServiceCrMemoLine: Record "Service Cr.Memo Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ServiceCrMemoLine Table Microsoft.Service.History."Service Cr.Memo Line"

OnCheckSalesDocumentOnBeforeCheckCompanyVATRegNo

[IntegrationEvent(False,False)]
local procedure OnCheckSalesDocumentOnBeforeCheckCompanyVATRegNo(SalesHeader: Record "Sales Header", CompanyInformation: Record "Company Information", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
CompanyInformation Table Microsoft.Foundation.Company."Company Information"
IsHandled Boolean

OnCheckSalesDocumentOnBeforeCheckCustomerVATRegNo

[IntegrationEvent(False,False)]
local procedure OnCheckSalesDocumentOnBeforeCheckCustomerVATRegNo(SalesHeader: Record "Sales Header", Customer: Record Customer, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
Customer Table Microsoft.Sales.Customer.Customer
IsHandled Boolean

OnCheckSalesDocumentOnBeforeCheckYourReference

[IntegrationEvent(False,False)]
local procedure OnCheckSalesDocumentOnBeforeCheckYourReference(SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

See also