Table of Contents

Table "Item Charge Assignment (Sales)"

ID 5809
Namespace: Microsoft.Sales.Document

Stores item charge allocation data linking charges to specific sales shipment or return receipt lines.

Properties

Name Value
Caption Item Charge Assignment (Sales)
DataClassification CustomerContent

Fields

Name Type Description
"Document Type" Enum Microsoft.Sales.Document."Sales Document Type"

Specifies the type of sales document for this item charge assignment.

"Document No." Code[20]

Specifies the sales document number containing the item charge line.

"Document Line No." Integer

Specifies the line number of the item charge on the sales document.

"Line No." Integer

Specifies the unique line number for this charge assignment entry.

"Item Charge No." Code[20]

Specifies the item charge number being assigned to sales lines.

"Item No." Code[20]

Specifies the item number that receives the allocated charge.

Description Text[100]

Contains a description of the item charge assignment.

"Qty. to Assign" Decimal

Specifies the quantity of the item charge to be assigned to the target document line.

"Qty. Assigned" Decimal

Specifies the quantity of the item charge that has already been assigned.

"Unit Cost" Decimal

Specifies the unit cost of the item charge for assignment calculations.

"Amount to Assign" Decimal

Specifies the total amount of the item charge to be assigned, calculated from quantity and unit cost.

"Applies-to Doc. Type" Enum Microsoft.Sales.Document."Sales Applies-to Document Type"

Specifies the type of document to which this item charge is applied.

"Applies-to Doc. No." Code[20]

Specifies the document number to which this item charge is applied.

"Applies-to Doc. Line No." Integer

Specifies the document line number to which this item charge is applied.

"Applies-to Doc. Line Amount" Decimal

Specifies the amount of the document line to which the charge is applied.

"Qty. to Handle" Decimal

Specifies the quantity of item charges to handle when posting.

"Amount to Handle" Decimal

Specifies the amount of item charges to handle when posting.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemCreatedByUserName Text[50]
SystemCreatedByFullName Text[80]
SystemModifiedByUserName Text[50]
SystemModifiedByFullName Text[80]
SystemRowVersion BigInteger

Methods

SalesLineInvoiced

Checks whether the applied-to sales line is fully invoiced.

procedure SalesLineInvoiced(): Boolean

Returns

Type Description
Boolean

True if the sales line is fully invoiced.

CheckAssignment

Checks if item charge assignments exist for the specified document line and raises an error if found.

procedure CheckAssignment(AppliesToDocumentType: Enum "Sales Applies-to Document Type"; AppliesToDocumentNo: Code[20]; AppliesToDocumentLineNo: Integer)

Parameters

Name Type Description
AppliesToDocumentType Enum Microsoft.Sales.Document."Sales Applies-to Document Type"

The document type to check.

AppliesToDocumentNo Code[20]

The document number to check.

AppliesToDocumentLineNo Integer

The document line number to check.

Events

OnAfterSalesLineInvoiced

[IntegrationEvent(False,False)]
local procedure OnAfterSalesLineInvoiced(ItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)"; var SalesLine: Record "Sales Line"; var Result: Boolean)

Parameters

Name Type Description
ItemChargeAssignmentSales Table Microsoft.Sales.Document."Item Charge Assignment (Sales)"
SalesLine Table Microsoft.Sales.Document."Sales Line"
Result Boolean

See also