Skip to content

KVSEDX GS1 BMS INVOIC EXP#

Events#

OnBeforeCreateSalesInvoiceLine(Record Sales Invoice Header, Record Sales Invoice Line, Boolean, Boolean) :#

Summary: The OnBeforeCreateLine event is fired before the invoiceLineItem XmlElement is created.

[IntegrationEvent(true, false)]
local procedure OnBeforeCreateSalesInvoiceLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesInvoiceLine: Record "Sales Invoice Line"; var SkipLine: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnBeforeCreateSalesInvoiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateSalesInvoiceLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesInvoiceLine: Record "Sales Invoice Line"; var SkipLine: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesInvoiceHeader: Current Sales Invoice Header
  • SalesInvoiceLine: Current Sales Invoice Line
  • SkipLine: Skip tihs line if true
  • IsFreightChargeLine: Skip tihs line if true
  • IsHandled: Is Handled

OnAfterCreateSalesInvoiceLine(Record Sales Invoice Header, Record Sales Invoice Line, XmlElement, Boolean) :#

Summary: The OnAfterCreateLine event is fired after the invoiceLineItem XmlElement is created.

[IntegrationEvent(true, false)]
local procedure OnAfterCreateSalesInvoiceLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesInvoiceLine: Record "Sales Invoice Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnAfterCreateSalesInvoiceLine', '', false, false)]
local procedure DoSomethingOnAfterCreateSalesInvoiceLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesInvoiceLine: Record "Sales Invoice Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesInvoiceHeader: Current Sales Invoice Header
  • SalesInvoiceLine: Current Sales Invoice Line
  • GS1LineXmlElement: Current Line XmlElement
  • IsHandled: Is Handled

OnBeforeCreateSalesCrMemoLine(Record Sales Cr.Memo Header, Record Sales Cr.Memo Line, Boolean, Boolean) :#

Summary: The OnBeforeCreateLine event is fired before the invoiceLineItem XmlElement is created.

[IntegrationEvent(true, false)]
local procedure OnBeforeCreateSalesCrMemoLine(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line"; var SkipLine: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnBeforeCreateSalesCrMemoLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateSalesCrMemoLine(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line"; var SkipLine: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesCrMemoHeader: Current Sales Cr.Memo Header
  • SalesInvoiceLine: Current Sales Cr.Memo Line
  • SkipLine: Skip tihs line if true
  • IsFreightChargeLine: Skip tihs line if true
  • IsHandled: Is Handled

OnAfterCreateSalesCrMemoLine(Record Sales Cr.Memo Header, Record Sales Cr.Memo Line, XmlElement, Boolean) :#

Summary: The OnAfterCreateLine event is fired after the invoiceLineItem XmlElement is created.

[IntegrationEvent(true, false)]
local procedure OnAfterCreateSalesCrMemoLine(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnAfterCreateSalesCrMemoLine', '', false, false)]
local procedure DoSomethingOnAfterCreateSalesCrMemoLine(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesCrMemoHeader: Current Cr.Memo Invoice Header
  • SalesInvoiceLine: Current Sales Cr.Memo Line
  • GS1LineXmlElement: Current Line XmlElement
  • IsHandled: Is Handled

OnBeforeCreateServiceInvoiceLine(Record Service Invoice Header, Record Service Invoice Line, Boolean, Boolean) :#

Summary: The OnBeforeCreateLine event is fired before the invoiceLineItem XmlElement is created.

[IntegrationEvent(true, false)]
local procedure OnBeforeCreateServiceInvoiceLine(ServiceInvoiceHeader: Record "Service Invoice Header"; ServiceInvoiceLine: Record "Service Invoice Line"; var SkipLine: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnBeforeCreateServiceInvoiceLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateServiceInvoiceLine(ServiceInvoiceHeader: Record "Service Invoice Header"; ServiceInvoiceLine: Record "Service Invoice Line"; var SkipLine: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceInvoiceHeader: Current Service Invoice Header
  • ServiceInvoiceLine: Current Service Invoice Line
  • SkipLine: Skip tihs line if true
  • IsFreightChargeLine: Skip tihs line if true
  • IsHandled: Is Handled

OnAfterCreateServiceInvoiceLine(Record Service Invoice Header, Record Service Invoice Line, XmlElement, Boolean) :#

Summary: The OnAfterCreateLine event is fired after the invoiceLineItem XmlElement is created.

[IntegrationEvent(true, false)]
local procedure OnAfterCreateServiceInvoiceLine(ServiceInvoiceHeader: Record "Service Invoice Header"; ServiceInvoiceLine: Record "Service Invoice Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnAfterCreateServiceInvoiceLine', '', false, false)]
local procedure DoSomethingOnAfterCreateServiceInvoiceLine(ServiceInvoiceHeader: Record "Service Invoice Header"; ServiceInvoiceLine: Record "Service Invoice Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceInvoiceHeader: Current Service Invoice Header
  • ServiceInvoiceLine: Current Service Invoice Line
  • GS1LineXmlElement: Current Line XmlElement
  • IsHandled: Is Handled

OnBeforeCreateServiceCrMemoLine(Record Service Cr.Memo Header, Record Service Cr.Memo Line, Boolean, Boolean) :#

Summary: The OnBeforeCreateLine event is fired before the invoiceLineItem XmlElement is created.

[IntegrationEvent(true, false)]
local procedure OnBeforeCreateServiceCrMemoLine(ServiceCrMemoHeader: Record "Service Cr.Memo Header"; ServiceCrMemoLine: Record "Service Cr.Memo Line"; var SkipLine: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnBeforeCreateServiceCrMemoLine', '', false, false)]
local procedure DoSomethingOnBeforeCreateServiceCrMemoLine(ServiceCrMemoHeader: Record "Service Cr.Memo Header"; ServiceCrMemoLine: Record "Service Cr.Memo Line"; var SkipLine: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceCrMemoHeader: Current Service Cr.Memo Header
  • ServiceCrMemoLine: Current Service Cr.Memo Line
  • SkipLine: Skip tihs line if true
  • IsFreightChargeLine: Skip tihs line if true
  • IsHandled: Is Handled

OnAfterCreateServiceCrMemoLine(Record Service Cr.Memo Header, Record Service Cr.Memo Line, XmlElement, Boolean) :#

Summary: The OnAfterCreateLine event is fired after the invoiceLineItem XmlElement is created.

[IntegrationEvent(true, false)]
local procedure OnAfterCreateServiceCrMemoLine(ServiceCrMemoHeader: Record "Service Cr.Memo Header"; ServiceCrMemoLine: Record "Service Cr.Memo Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnAfterCreateServiceCrMemoLine', '', false, false)]
local procedure DoSomethingOnAfterCreateServiceCrMemoLine(ServiceCrMemoHeader: Record "Service Cr.Memo Header"; ServiceCrMemoLine: Record "Service Cr.Memo Line"; var GS1LineXmlElement: XmlElement; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesInvoiceHeader: Current Sales Invoice Header
  • SalesInvoiceLine: Current Sales Invoice Line
  • GS1LineXmlElement: Current Line XmlElement
  • IsHandled: Is Handled

OnPreXMLItemHeaderData(RecordId, Record KVSEDX Outbound, Boolean) :#

Summary: The OnPreXMLItemHeaderData event is fired when the avpList (Attribute Value Pair List) is created for the header. Project-related additional data can be transmitted.

[IntegrationEvent(true, false)]
local procedure OnPreXMLItemHeaderData(SourceHeaderRecordId: RecordId; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnPreXMLItemHeaderData', '', false, false)]
local procedure DoSomethingOnPreXMLItemHeaderData(SourceHeaderRecordId: RecordId; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean)
begin
end;

Parameters:

  • SourceHeaderRecordId: SourceHeaderRecordId of Sales Invoice, Sales Cr.Memo ...
  • TempKVSEDXOutbound: Dynamic Data
  • IsHandled: Is Handled

Example:

var
    SalesInvoiceHeader: Record "Sales Invoice Header";
    SalesCrMemoHeader: Record "Sales Cr.Memo Header";
    ServiceInvoiceHeader: Record "Service Invoice Header";
    ServiceCrMemoHeader: Record "Service Cr.Memo Header";
    SourceHeaderRecordRef: RecordRef;
begin
    SourceHeaderRecordRef.Get(SourceHeaderRecordId);
    case SourceHeaderRecordId.TableNo of
        Database::"Sales Invoice Header":
                SourceHeaderRecordRef.SetTable(SalesInvoiceHeader);
        Database::"Sales Cr.Memo Header":
                SourceHeaderRecordRef.SetTable(SalesCrMemoHeader);
        Database::"Service Invoice Header":
                SourceHeaderRecordRef.SetTable(ServiceInvoiceHeader);
        Database::"Service Cr.Memo Header":
                SourceHeaderRecordRef.SetTable(ServiceCrMemoHeader);
    end;
    ....
end;

OnPreXMLItemLineData(RecordId, Record KVSEDX Outbound, Boolean) :#

Summary: The OnPreXMLItemLineData event is fired when the avpList (Attribute Value Pair List) is created for the header. Project-related additional data can be transmitted.

[IntegrationEvent(true, false)]
local procedure OnPreXMLItemLineData(SourceLineReordId: RecordId; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnPreXMLItemLineData', '', false, false)]
local procedure DoSomethingOnPreXMLItemLineData(SourceLineReordId: RecordId; var TempKVSEDXOutbound: Record "KVSEDX Outbound" temporary; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesInvoiceLine: Current Sales Invoice Line
  • TempKVSEDXOutbound: Dynamic Data
  • IsHandled: Is Handled

Example:

var
    SalesInvoiceLine: Record "Sales Invoice Line";
    SalesCrMemoLine: Record "Sales Cr.Memo Line";
    ServiceInvoiceLine: Record "Service Invoice Line";
    ServiceCrMemoLine: Record "Service Cr.Memo Line";
    SourceLineRecordRef: RecordRef;
begin
    SourceLineRecordRef.Get(SourceLineRecordId);
    case SourceLineRecordId.TableNo of
        Database::"Sales Invoice Line":
                SourceLineRecordRef.SetTable(SalesInvoiceLine);
        Database::"Sales Cr.Memo Line":
                SourceLineRecordRef.SetTable(SalesCrMemoLine);
        Database::"Service Invoice Line":
                SourceLineRecordRef.SetTable(ServiceInvoiceLine);
        Database::"Service Cr.Memo Line":
                SourceLineRecordRef.SetTable(ServiceCrMemoLine);
    end;
    ....
end;

OnBeforeSalesInvoiceLineGetGTIN(Record Sales Invoice Line, Text, Boolean) :#

Summary: The event OnBeforeGetGTIN is fired if the GTIN is to be changed for the item.

[IntegrationEvent(true, false)]
local procedure OnBeforeSalesInvoiceLineGetGTIN(SalesInvoiceLine: Record "Sales Invoice Line"; var GTIN: Text; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnBeforeSalesInvoiceLineGetGTIN', '', false, false)]
local procedure DoSomethingOnBeforeSalesInvoiceLineGetGTIN(SalesInvoiceLine: Record "Sales Invoice Line"; var GTIN: Text; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesInvoiceLine: Current Sales Invoice Line
  • GTIN: GTIN used in Message
  • IsHandled: Is Handled

OnBeforeSalesCrMemoLineGetGTIN(Record Sales Cr.Memo Line, Text, Boolean) :#

Summary: The event OnBeforeGetGTIN is fired if the GTIN is to be changed for the item.

[IntegrationEvent(true, false)]
local procedure OnBeforeSalesCrMemoLineGetGTIN(SalesCrMemoLine: Record "Sales Cr.Memo Line"; var GTIN: Text; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnBeforeSalesCrMemoLineGetGTIN', '', false, false)]
local procedure DoSomethingOnBeforeSalesCrMemoLineGetGTIN(SalesCrMemoLine: Record "Sales Cr.Memo Line"; var GTIN: Text; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesInvoiceLine: Current Sales Invoice Line
  • GTIN: GTIN used in Message
  • IsHandled: Is Handled

OnBeforeServiceInvoiceLineGetGTIN(Record Service Invoice Line, Text, Boolean) :#

Summary: The event OnBeforeGetGTIN is fired if the GTIN is to be changed for the item.

[IntegrationEvent(true, false)]
local procedure OnBeforeServiceInvoiceLineGetGTIN(ServiceInvoiceLine: Record "Service Invoice Line"; var GTIN: Text; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnBeforeServiceInvoiceLineGetGTIN', '', false, false)]
local procedure DoSomethingOnBeforeServiceInvoiceLineGetGTIN(ServiceInvoiceLine: Record "Service Invoice Line"; var GTIN: Text; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesInvoiceLine: Current Sales Invoice Line
  • GTIN: GTIN used in Message
  • IsHandled: Is Handled

OnBeforeServiceCrMemoLineGetGTIN(Record Service Cr.Memo Line, Text, Boolean) :#

Summary: The event OnBeforeGetGTIN is fired if the GTIN is to be changed for the item.

[IntegrationEvent(true, false)]
local procedure OnBeforeServiceCrMemoLineGetGTIN(ServiceCrMemoLine: Record "Service Cr.Memo Line"; var GTIN: Text; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX GS1 BMS INVOIC EXP", 'OnBeforeServiceCrMemoLineGetGTIN', '', false, false)]
local procedure DoSomethingOnBeforeServiceCrMemoLineGetGTIN(ServiceCrMemoLine: Record "Service Cr.Memo Line"; var GTIN: Text; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesInvoiceLine: Current Sales Invoice Line
  • GTIN: GTIN used in Message
  • IsHandled: Is Handled