codeunitIntegration & APIsofficial - Microsoftderived - from the source, no model text

Codeunit 6246 "E-Doc. Item Charge Mapping"

EDocument · Microsoft.eServices.EDocument

Across versions

  1. BC23-28not present
  2. BC29-30present

EDocument · Microsoft.eServices.EDocument · BC29-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Permissions tabledata “Item Charge” = r, tabledata “Sales Invoice Line” = r, tabledata “Sales Cr.Memo Line” = r, tabledata “Value Entry” = r

Events published

  • OnAfterGetItemChargeStructure(EDocumentService: Record "E-Document Service"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesInvoiceLine: Record "Sales Invoice Line"; var Structure: Enum "Item Charge E-Doc. Structure"; var TargetSalesInvoiceLine: Record "Sales Invoice Line") (integration): Integration event that allows subscribers to override the structure an item charge of a posted sales invoice is exported as.
  • OnAfterGetSalesCrMemoItemChargeStructure(EDocumentService: Record "E-Document Service"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line"; var Structure: Enum "Item Charge E-Doc. Structure"; var TargetSalesCrMemoLine: Record "Sales Cr.Memo Line") (integration): Integration event that allows subscribers to override the structure an item charge of a posted sales credit memo is exported as.

Procedures

  • GetItemChargeStructure(EDocumentService: Record "E-Document Service"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesInvoiceLine: Record "Sales Invoice Line"; var TargetSalesInvoiceLine: Record "Sales Invoice Line"): Enum "Item Charge E-Doc. Structure": Determines which structure an item charge line of a posted sales invoice is exported as. A mapping override on the item charge takes precedence over the setting of the service.
  • GetItemChargeStructure(EDocumentService: Record "E-Document Service"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line"; var TargetSalesCrMemoLine: Record "Sales Cr.Memo Line"): Enum "Item Charge E-Doc. Structure": Determines which structure an item charge line of a posted sales credit memo is exported as. A mapping override on the item charge takes precedence over the setting of the service.
  • GetFallbackQuantity(): Decimal: Gets the quantity to use when an item charge is exported as a regular document line.
  • GetFallbackQuantity(NetAmount: Decimal): Decimal: Gets the quantity to use when an item charge of the given net amount is exported as a regular document line. A negative net amount is reported as a negative quantity, because the item net price of a document line must never be negative.
  • GetFallbackUnitPrice(NetAmount: Decimal): Decimal: Gets the net price to use when an item charge of the given net amount is exported as a regular document line. The fallback document line reports a single unit, so the price carries the whole net amount, and it is never negative.
  • GetFallbackUnitOfMeasureCode(ItemChargeNo: Code[20]): Code[10]: Gets the unit code to use when the given item charge is exported as a regular document line.
  • GetItemChargeReason(ItemChargeNo: Code[20]; var ReasonCode: Code[10]; var ReasonText: Text[100]): Gets the allowance/charge reason code and reason text to export for the given item charge. Both are plain field reads without any resolution rule, so they are returned together to read the item charge only once. An item charge that cannot be read yields empty values, so that a missing item charge be…

Plus 10 local procedures.

Recent changes

Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "E-Doc. Item Charge Mapping"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources