Report "Calc. Consumption"

ID 5405
Namespace: Microsoft.Manufacturing.Document

Properties

Name Value
Caption Calc. Consumption
ProcessingOnly True

Methods

InitializeRequest

procedure InitializeRequest(NewPostingDate: Date, NewCalcBasedOn: Option)

Parameters

Name Type Description
NewPostingDate Date
NewCalcBasedOn Option

SetTemplateAndBatchName

procedure SetTemplateAndBatchName(TemplateName: Code[10], BatchName: Code[10])

Parameters

Name Type Description
TemplateName Code[10]
BatchName Code[10]

Events

OnAfterInsertItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterInsertItemJnlLine(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeAssignItemTracking

[IntegrationEvent(False,False)]
local procedure OnBeforeAssignItemTracking(var ProdOrderComponent: Record "Prod. Order Component", var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeCreateConsumpJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateConsumpJnlLine(LocationCode: Code[10], BinCode: Code[20], QtyToPost: Decimal)

Parameters

Name Type Description
LocationCode Code[10]
BinCode Code[20]
QtyToPost Decimal

OnBeforeInsertItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertItemJnlLine(var ItemJournalLine: Record "Item Journal Line", ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnBeforeItemJnlLineModify

[IntegrationEvent(False,False)]
local procedure OnBeforeItemJnlLineModify(var ItemJournalLine: Record "Item Journal Line", ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnBeforeValidateItemJnlLineQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateItemJnlLineQuantity(var ItemJnlLine: Record "Item Journal Line", ProdOrderComponent: Record "Prod. Order Component", QtyToPost: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
QtyToPost Decimal
IsHandled Boolean

OnAfterCreateConsumpJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterCreateConsumpJnlLine(LocationCode: Code[10], BinCode: Code[20], QtyToPost: Decimal, var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
LocationCode Code[10]
BinCode Code[20]
QtyToPost Decimal
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnAssignItemTrackingOnBeforeTempReservEntryInsert

[IntegrationEvent(False,False)]
local procedure OnAssignItemTrackingOnBeforeTempReservEntryInsert(var TempReservationEntry: Record "Reservation Entry" temporary, ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
TempReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAssignItemTrackingOnBeforeTempReservEntryModify

[IntegrationEvent(False,False)]
local procedure OnAssignItemTrackingOnBeforeTempReservEntryModify(var TempReservationEntry: Record "Reservation Entry" temporary, ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
TempReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnAfterPreDataItemProdOrderComp

[IntegrationEvent(False,False)]
local procedure OnAfterPreDataItemProdOrderComp(var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnCreateConsumpJnlLineOnAfterCalcShouldModifyItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnCreateConsumpJnlLineOnAfterCalcShouldModifyItemJnlLine(var ItemJnlLine: Record "Item Journal Line", var ShouldModifyItemJnlLine: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ShouldModifyItemJnlLine Boolean

OnCreateConsumpJnlLineOnAfterAssignItemTracking

[IntegrationEvent(False,False)]
local procedure OnCreateConsumpJnlLineOnAfterAssignItemTracking(var ItemJnlLine: Record "Item Journal Line", var NextConsumpJnlLineNo: Integer)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
NextConsumpJnlLineNo Integer

OnBeforeGetNeededQty

[IntegrationEvent(False,False)]
local procedure OnBeforeGetNeededQty(var NeededQty: Decimal, CalcBasedOn: Option, ProdOrderComponent: Record "Prod. Order Component", ProductionOrder: Record "Production Order", PostingDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
NeededQty Decimal
CalcBasedOn Option
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
PostingDate Date
IsHandled Boolean

See also