Share via


Codeunit "Inventory Posting To G/L"

ID 5802
Namespace: Microsoft.Inventory.Costing

Properties

Name Value
Permissions TableData "G/L Account" = r, TableData "Invt. Posting Buffer" = rimd, TableData "Value Entry" = rm, TableData "G/L - Item Ledger Relation" = rimd
TableNo Table Microsoft.Inventory.Ledger."Value Entry"

Methods

Initialize

procedure Initialize(PostPerPostGroup: Boolean)

Parameters

Name Type Description
PostPerPostGroup Boolean

SetGenJnlBatch

procedure SetGenJnlBatch(JnlTemplName: Code[10], JnlBatchName: Code[10])

Parameters

Name Type Description
JnlTemplName Code[10]
JnlBatchName Code[10]

SetRunOnlyCheck

procedure SetRunOnlyCheck(SetCalledFromItemPosting: Boolean, SetCheckOnly: Boolean, SetCalledFromTestReport: Boolean)

Parameters

Name Type Description
SetCalledFromItemPosting Boolean
SetCheckOnly Boolean
SetCalledFromTestReport Boolean

BufferInvtPosting

procedure BufferInvtPosting(var ValueEntry: Record "Value Entry"): Boolean

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

Returns

Type Description
Boolean

AdjustPostedWIPForProduction

procedure AdjustPostedWIPForProduction(ValueEntry: Record "Value Entry"): Boolean

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

Returns

Type Description
Boolean

InitInvtPostBuf

procedure InitInvtPostBuf(ValueEntry: Record "Value Entry", AccType: Enum "Invt. Posting Buffer Account Type", BalAccType: Enum "Invt. Posting Buffer Account Type", CostToPost: Decimal, CostToPostACY: Decimal, InterimAccount: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
AccType Enum Microsoft.Inventory.Costing."Invt. Posting Buffer Account Type"
BalAccType Enum Microsoft.Inventory.Costing."Invt. Posting Buffer Account Type"
CostToPost Decimal
CostToPostACY Decimal
InterimAccount Boolean

PostInvtPostBufPerEntry

procedure PostInvtPostBufPerEntry(var ValueEntry: Record "Value Entry")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

PostInvtPostBufPerPostGrp

procedure PostInvtPostBufPerPostGrp(DocNo: Code[20], Desc: Text[50])

Parameters

Name Type Description
DocNo Code[20]
Desc Text[50]

SetDesc

procedure SetDesc(var GenJnlLine: Record "Gen. Journal Line", InvtPostBuf: Record "Invt. Posting Buffer" temporary)

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
InvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"

GetTempInvtPostToGLTestBuf

procedure GetTempInvtPostToGLTestBuf(var InvtPostToGLTestBuf: Record "Invt. Post to G/L Test Buffer")

Parameters

Name Type Description
InvtPostToGLTestBuf Table Microsoft.Inventory.Costing."Invt. Post to G/L Test Buffer"

GetAmtToPost

procedure GetAmtToPost(var NewCOGSAmt: Decimal, var NewInvtAdjmtAmt: Decimal, var NewDirCostAmt: Decimal, var NewOvhdCostAmt: Decimal, var NewVarPurchCostAmt: Decimal, var NewVarMfgDirCostAmt: Decimal, var NewVarMfgOvhdCostAmt: Decimal, var NewWIPInvtAmt: Decimal, var NewInvtAmt: Decimal, GetTotal: Boolean)

Parameters

Name Type Description
NewCOGSAmt Decimal
NewInvtAdjmtAmt Decimal
NewDirCostAmt Decimal
NewOvhdCostAmt Decimal
NewVarPurchCostAmt Decimal
NewVarMfgDirCostAmt Decimal
NewVarMfgOvhdCostAmt Decimal
NewWIPInvtAmt Decimal
NewInvtAmt Decimal
GetTotal Boolean

GetInvtPostBuf

procedure GetInvtPostBuf(var InvtPostBuf: Record "Invt. Posting Buffer" temporary)

Parameters

Name Type Description
InvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"

CheckGenJnlLine

procedure CheckGenJnlLine(var GenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

PostGenJnlLine

procedure PostGenJnlLine(var GenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

Events

OnAfterBufferCapacityPosting

[IntegrationEvent(True,False)]
local procedure OnAfterBufferCapacityPosting(var ValueEntry: Record "Value Entry", var CostToPost: Decimal, var CostToPostACY: Decimal)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
CostToPost Decimal
CostToPostACY Decimal

OnAfterBufferConsumpPosting

[IntegrationEvent(True,False)]
local procedure OnAfterBufferConsumpPosting(var TempInvtPostingBuffer: array[20] of Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", var PostBufDimNo: Integer, var CostToPost: Decimal, var CostToPostACY: Decimal)

Parameters

Name Type Description
TempInvtPostingBuffer array[20] of Record "Invt. Posting Buffer" temporary
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
PostBufDimNo Integer
CostToPost Decimal
CostToPostACY Decimal

OnAfterBufferOutputPosting

[IntegrationEvent(True,False)]
local procedure OnAfterBufferOutputPosting(var ValueEntry: Record "Value Entry", var CostToPost: Decimal, var CostToPostACY: Decimal, var ExpCostToPost: Decimal, var ExpCostToPostACY: Decimal)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
CostToPost Decimal
CostToPostACY Decimal
ExpCostToPost Decimal
ExpCostToPostACY Decimal

OnAfterBufferPosting

[IntegrationEvent(False,False)]
local procedure OnAfterBufferPosting(var ValueEntry: Record "Value Entry", var CostToPost: Decimal, var CostToPostACY: Decimal, var ExpCostToPost: Decimal, var ExpCostToPostACY: Decimal)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
CostToPost Decimal
CostToPostACY Decimal
ExpCostToPost Decimal
ExpCostToPostACY Decimal

OnAfterBufferSalesPosting

[IntegrationEvent(False,False)]
local procedure OnAfterBufferSalesPosting(var TempInvtPostingBuffer: array[20] of Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", var PostBufDimNo: Integer)

Parameters

Name Type Description
TempInvtPostingBuffer array[20] of Record "Invt. Posting Buffer" temporary
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
PostBufDimNo Integer

OnAfterCalcCostToPostFromBuffer

[IntegrationEvent(False,False)]
local procedure OnAfterCalcCostToPostFromBuffer(var ValueEntry: Record "Value Entry", var CostToPost: Decimal, var CostToPostACY: Decimal, var ExpCostToPost: Decimal, var ExpCostToPostACY: Decimal, var PostToGL: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
CostToPost Decimal
CostToPostACY Decimal
ExpCostToPost Decimal
ExpCostToPostACY Decimal
PostToGL Boolean

OnAfterGLItemLedgRelationInsert

[IntegrationEvent(False,False)]
local procedure OnAfterGLItemLedgRelationInsert()

OnAfterInitInvtPostBuf

[IntegrationEvent(True,False)]
local procedure OnAfterInitInvtPostBuf(var ValueEntry: Record "Value Entry")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnAfterInitTempInvtPostBuf

[IntegrationEvent(True,False)]
local procedure OnAfterInitTempInvtPostBuf(var TempInvtPostBuf: array[20] of Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", PostBufDimNo: Integer)

Parameters

Name Type Description
TempInvtPostBuf array[20] of Record "Invt. Posting Buffer" temporary
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
PostBufDimNo Integer

OnAfterRun

[IntegrationEvent(False,False)]
local procedure OnAfterRun(var ValueEntry: Record "Value Entry")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnAfterSetAccNo

[IntegrationEvent(False,False)]
local procedure OnAfterSetAccNo(var InvtPostingBuffer: Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", CalledFromItemPosting: Boolean)

Parameters

Name Type Description
InvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
CalledFromItemPosting Boolean

OnAfterSetDesc

[IntegrationEvent(False,False)]
local procedure OnAfterSetDesc(var GenJnlLine: Record "Gen. Journal Line", var InvtPostBuf: Record "Invt. Posting Buffer" temporary)

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
InvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"

OnAfterSetAmt

[IntegrationEvent(False,False)]
local procedure OnAfterSetAmt(var GenJnlLine: Record "Gen. Journal Line", Amt: Decimal, AmtACY: Decimal, var HasAmountToPost: Boolean)

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
Amt Decimal
AmtACY Decimal
HasAmountToPost Boolean

OnBeforeBufferAdjmtPosting

[IntegrationEvent(True,False)]
local procedure OnBeforeBufferAdjmtPosting(var ValueEntry: Record "Value Entry", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, CostToPost: Decimal, CostToPostACY: Decimal, ExpCostToPost: Decimal, ExpCostToPostACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
CostToPost Decimal
CostToPostACY Decimal
ExpCostToPost Decimal
ExpCostToPostACY Decimal
IsHandled Boolean

OnBeforeBufferInvtPosting

[IntegrationEvent(False,False)]
local procedure OnBeforeBufferInvtPosting(var ValueEntry: Record "Value Entry", var Result: Boolean, var IsHandled: Boolean, RunOnlyCheck: Boolean, CalledFromTestReport: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
Result Boolean
IsHandled Boolean
RunOnlyCheck Boolean
CalledFromTestReport Boolean

OnBeforeBufferOutputPosting

[IntegrationEvent(True,False)]
local procedure OnBeforeBufferOutputPosting(var ValueEntry: Record "Value Entry", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, CostToPost: Decimal, CostToPostACY: Decimal, ExpCostToPost: Decimal, ExpCostToPostACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
CostToPost Decimal
CostToPostACY Decimal
ExpCostToPost Decimal
ExpCostToPostACY Decimal
IsHandled Boolean

OnBeforeBufferPosting

[IntegrationEvent(False,False)]
local procedure OnBeforeBufferPosting(var ValueEntry: Record "Value Entry", var CostToPost: Decimal, var CostToPostACY: Decimal, var ExpCostToPost: Decimal, var ExpCostToPostACY: Decimal)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
CostToPost Decimal
CostToPostACY Decimal
ExpCostToPost Decimal
ExpCostToPostACY Decimal

OnBeforeBufferPurchPosting

[IntegrationEvent(True,False)]
local procedure OnBeforeBufferPurchPosting(var ValueEntry: Record "Value Entry", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, CostToPost: Decimal, CostToPostACY: Decimal, ExpCostToPost: Decimal, ExpCostToPostACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
CostToPost Decimal
CostToPostACY Decimal
ExpCostToPost Decimal
ExpCostToPostACY Decimal
IsHandled Boolean

OnBeforeBufferSalesPosting

[IntegrationEvent(True,False)]
local procedure OnBeforeBufferSalesPosting(var ValueEntry: Record "Value Entry", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, CostToPost: Decimal, CostToPostACY: Decimal, ExpCostToPost: Decimal, ExpCostToPostACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
CostToPost Decimal
CostToPostACY Decimal
ExpCostToPost Decimal
ExpCostToPostACY Decimal
IsHandled Boolean

OnBeforeCheckGLAcc

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckGLAcc(var AccountNo: Code[20], CalledFromItemPosting: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
AccountNo Code[20]
CalledFromItemPosting Boolean
IsHandled Boolean

OnBeforeCheckInvtPostBuf

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckInvtPostBuf(var GenJournalLine: Record "Gen. Journal Line", var InvtPostingBuffer: Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line", var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
InvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GenJnlPostLine Codeunit Microsoft.Finance.GeneralLedger.Posting."Gen. Jnl.-Post Line"
GenJnlCheckLine Codeunit Microsoft.Finance.GeneralLedger.Journal."Gen. Jnl.-Check Line"

OnBeforeGetInvPostingGroupCode

[IntegrationEvent(False,False)]
local procedure OnBeforeGetInvPostingGroupCode(var ValueEntry: Record "Value Entry", var InvPostingGroupCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
InvPostingGroupCode Code[20]
IsHandled Boolean

OnBeforeInitInvtPostBuf

[IntegrationEvent(True,False)]
local procedure OnBeforeInitInvtPostBuf(var ValueEntry: Record "Value Entry", var AccType: Enum "Invt. Posting Buffer Account Type", var BalAccType: Enum "Invt. Posting Buffer Account Type")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
AccType Enum Microsoft.Inventory.Costing."Invt. Posting Buffer Account Type"
BalAccType Enum Microsoft.Inventory.Costing."Invt. Posting Buffer Account Type"

OnBeforeInitInvtPostBufPerAccount

[IntegrationEvent(True,False)]
local procedure OnBeforeInitInvtPostBufPerAccount(var ValueEntry: Record "Value Entry", AccType: Enum "Invt. Posting Buffer Account Type", BalAccType: Enum "Invt. Posting Buffer Account Type", CostToPost: Decimal, CostToPostACY: Decimal, InterimAccount: Boolean, BalancingRecord: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
AccType Enum Microsoft.Inventory.Costing."Invt. Posting Buffer Account Type"
BalAccType Enum Microsoft.Inventory.Costing."Invt. Posting Buffer Account Type"
CostToPost Decimal
CostToPostACY Decimal
InterimAccount Boolean
BalancingRecord Boolean
IsHandled Boolean

OnBeforePostInvtPostBuf

[IntegrationEvent(False,False)]
local procedure OnBeforePostInvtPostBuf(var GenJournalLine: Record "Gen. Journal Line", var InvtPostingBuffer: Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
InvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GenJnlPostLine Codeunit Microsoft.Finance.GeneralLedger.Posting."Gen. Jnl.-Post Line"

OnAfterPostInvtPostBuf

[IntegrationEvent(False,False)]
local procedure OnAfterPostInvtPostBuf(var GenJournalLine: Record "Gen. Journal Line", var InvtPostingBuffer: Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
InvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GenJnlPostLine Codeunit Microsoft.Finance.GeneralLedger.Posting."Gen. Jnl.-Post Line"

OnBeforeGetInvtPostSetup

[IntegrationEvent(False,False)]
local procedure OnBeforeGetInvtPostSetup(var InventoryPostingSetup: Record "Inventory Posting Setup", var LocationCode: Code[10], InventoryPostingGroup: Code[20], var GenPostingSetup: Record "General Posting Setup", var IsHandled: Boolean, var InvtPostingBuffer: Record "Invt. Posting Buffer" temporary)

Parameters

Name Type Description
InventoryPostingSetup Table Microsoft.Inventory.Item."Inventory Posting Setup"
LocationCode Code[10]
InventoryPostingGroup Code[20]
GenPostingSetup Table Microsoft.Finance.GeneralLedger.Setup."General Posting Setup"
IsHandled Boolean
InvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"

OnBeforeGLItemLedgRelationInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeGLItemLedgRelationInsert(var GLItemLedgerRelation: Record "G/L - Item Ledger Relation", InvtPostingBuffer: Record "Invt. Posting Buffer" temporary, GLRegister: Record "G/L Register", TempGLItemLedgerRelation: Record "G/L - Item Ledger Relation" temporary)

Parameters

Name Type Description
GLItemLedgerRelation Table Microsoft.Inventory.Ledger."G/L - Item Ledger Relation"
InvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
GLRegister Table Microsoft.Finance.GeneralLedger.Ledger."G/L Register"
TempGLItemLedgerRelation Table Microsoft.Inventory.Ledger."G/L - Item Ledger Relation"

OnBeforePostInvtPostBufProcessGlobalInvtPostBuf

[IntegrationEvent(False,False)]
local procedure OnBeforePostInvtPostBufProcessGlobalInvtPostBuf(var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, var GenJnlLine: Record "Gen. Journal Line", var ValueEntry: Record "Value Entry", var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line", CalledFromItemPosting: Boolean, PostPerPostGroup: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GenJnlPostLine Codeunit Microsoft.Finance.GeneralLedger.Posting."Gen. Jnl.-Post Line"
CalledFromItemPosting Boolean
PostPerPostGroup Boolean
IsHandled Boolean

OnBeforeSetAccNo

[IntegrationEvent(False,False)]
local procedure OnBeforeSetAccNo(var InvtPostBuf: Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", AccType: Option, BalAccType: Option, CalledFromItemPosting: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
InvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
AccType Option
BalAccType Option
CalledFromItemPosting Boolean
IsHandled Boolean

OnBeforeOnRun

[IntegrationEvent(False,False)]
local procedure OnBeforeOnRun(var ValueEntry: Record "Value Entry", PostPerPostGroup: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
PostPerPostGroup Boolean
IsHandled Boolean

OnInsertTempInvtPostToGLTestBufOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnInsertTempInvtPostToGLTestBufOnBeforeInsert(var TempInvtPostToGLTestBuf: Record "Invt. Post to G/L Test Buffer" temporary, ValueEntry: Record "Value Entry")

Parameters

Name Type Description
TempInvtPostToGLTestBuf Table Microsoft.Inventory.Costing."Invt. Post to G/L Test Buffer"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnInsertTempInvtPostToGLTestBufOnBeforeTempInvtPostToGLTestBufInsert

[IntegrationEvent(False,False)]
local procedure OnInsertTempInvtPostToGLTestBufOnBeforeTempInvtPostToGLTestBufInsert(var TempInvtPostToGLTestBuf: Record "Invt. Post to G/L Test Buffer" temporary, GenJournalLine: Record "Gen. Journal Line", ValueEntry: Record "Value Entry")

Parameters

Name Type Description
TempInvtPostToGLTestBuf Table Microsoft.Inventory.Costing."Invt. Post to G/L Test Buffer"
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnPostInvtPostBufferOnBeforeFind

[IntegrationEvent(True,False)]
local procedure OnPostInvtPostBufferOnBeforeFind(var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, var TempGLItemLedgRelation: Record "G/L - Item Ledger Relation", var ValueEntry: Record "Value Entry")

Parameters

Name Type Description
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
TempGLItemLedgRelation Table Microsoft.Inventory.Ledger."G/L - Item Ledger Relation"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnPostInvtPostBufOnAfterInitGenJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostInvtPostBufOnAfterInitGenJnlLine(var GenJournalLine: Record "Gen. Journal Line", var ValueEntry: Record "Value Entry")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnPostInvtPostBufferOnAfterPostInvtPostBuf

[IntegrationEvent(False,False)]
local procedure OnPostInvtPostBufferOnAfterPostInvtPostBuf(var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, var ValueEntry: Record "Value Entry", CalledFromItemPosting: Boolean, CalledFromTestReport: Boolean, RunOnlyCheck: Boolean, PostPerPostGrp: Boolean)

Parameters

Name Type Description
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
CalledFromItemPosting Boolean
CalledFromTestReport Boolean
RunOnlyCheck Boolean
PostPerPostGrp Boolean

OnPostInvtPostBufOnAfterUpdateGlobalDimFromDimSetID

[IntegrationEvent(False,False)]
local procedure OnPostInvtPostBufOnAfterUpdateGlobalDimFromDimSetID(var GenJournalLine: Record "Gen. Journal Line", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"

OnPostInvtPostBufOnBeforeSetAmt

[IntegrationEvent(False,False)]
local procedure OnPostInvtPostBufOnBeforeSetAmt(var GenJournalLine: Record "Gen. Journal Line", var ValueEntry: Record "Value Entry", var GlobalInvtPostingBuffer: Record "Invt. Posting Buffer" temporary)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalInvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"

OnPostInvtPostBufProcessGlobalInvtPostBufOnAfterSetAmt

[IntegrationEvent(False,False)]
local procedure OnPostInvtPostBufProcessGlobalInvtPostBufOnAfterSetAmt(var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

OnPostInvtPostBufProcessGlobalInvtPostBufOnAfterSetDesc

[IntegrationEvent(False,False)]
local procedure OnPostInvtPostBufProcessGlobalInvtPostBufOnAfterSetDesc(var GenJournalLine: Record "Gen. Journal Line", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"

OnSetAccNoOnAfterGetPostingSetup

[IntegrationEvent(False,False)]
local procedure OnSetAccNoOnAfterGetPostingSetup(var InvtPostBuf: Record "Invt. Posting Buffer" temporary, var InvtPostingSetup: Record "Inventory Posting Setup", var GenPostingSetup: Record "General Posting Setup", ValueEntry: Record "Value Entry", UseInvtPostSetup: Boolean)

Parameters

Name Type Description
InvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
InvtPostingSetup Table Microsoft.Inventory.Item."Inventory Posting Setup"
GenPostingSetup Table Microsoft.Finance.GeneralLedger.Setup."General Posting Setup"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
UseInvtPostSetup Boolean

OnSetAccNoOnBeforeCheckAccNo

[IntegrationEvent(False,False)]
local procedure OnSetAccNoOnBeforeCheckAccNo(var InvtPostBuf: Record "Invt. Posting Buffer" temporary, InvtPostingSetup: Record "Inventory Posting Setup", GenPostingSetup: Record "General Posting Setup", CalledFromItemPosting: Boolean, var ValueEntry: Record "Value Entry")

Parameters

Name Type Description
InvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
InvtPostingSetup Table Microsoft.Inventory.Item."Inventory Posting Setup"
GenPostingSetup Table Microsoft.Finance.GeneralLedger.Setup."General Posting Setup"
CalledFromItemPosting Boolean
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnUpdateGlobalInvtPostBufOnBeforeModify

[IntegrationEvent(False,False)]
local procedure OnUpdateGlobalInvtPostBufOnBeforeModify(var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, TempInvtPostBuf: Record "Invt. Posting Buffer" temporary)

Parameters

Name Type Description
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
TempInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"

OnUpdateGlobalInvtPostBufOnAfterCalcShouldInsertTempGLItemLedgRelation

[IntegrationEvent(False,False)]
local procedure OnUpdateGlobalInvtPostBufOnAfterCalcShouldInsertTempGLItemLedgRelation(var TempGLItemLedgerRelation: Record "G/L - Item Ledger Relation" temporary, TempInvtPostingBuffer: Record "Invt. Posting Buffer" temporary, ValueEntryNo: Integer, RunOnlyCheck: Boolean, CalledFromTestReport: Boolean, var ShouldInsertTempGLItemLedgRelation: Boolean)

Parameters

Name Type Description
TempGLItemLedgerRelation Table Microsoft.Inventory.Ledger."G/L - Item Ledger Relation"
TempInvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
ValueEntryNo Integer
RunOnlyCheck Boolean
CalledFromTestReport Boolean
ShouldInsertTempGLItemLedgRelation Boolean

OnAfterBufferGLItemLedgRelation

[IntegrationEvent(False,False)]
local procedure OnAfterBufferGLItemLedgRelation(var TempGLItemLedgRelation: Record "G/L - Item Ledger Relation" temporary, GlobalInvtPostBufEntryNo: Integer)

Parameters

Name Type Description
TempGLItemLedgRelation Table Microsoft.Inventory.Ledger."G/L - Item Ledger Relation"
GlobalInvtPostBufEntryNo Integer

OnUpdateValueEntryOnBeforeModify

[IntegrationEvent(False,False)]
local procedure OnUpdateValueEntryOnBeforeModify(var ValueEntry: Record "Value Entry", InvtPostingBuffer: Record "Invt. Posting Buffer" temporary)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
InvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"

OnBeforeBufferConsumpPosting

[IntegrationEvent(True,False)]
local procedure OnBeforeBufferConsumpPosting(var ValueEntry: Record "Value Entry", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, CostToPost: Decimal, CostToPostACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
CostToPost Decimal
CostToPostACY Decimal
IsHandled Boolean

OnAfteUpdateReportAmounts

[IntegrationEvent(False,False)]
local procedure OnAfteUpdateReportAmounts(var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, var InvtAmt: Decimal, var InvtAdjmtAmt: Decimal, var VarMfgDirCostAmt: Decimal)

Parameters

Name Type Description
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
InvtAmt Decimal
InvtAdjmtAmt Decimal
VarMfgDirCostAmt Decimal

OnBeforeBufferAsmOutputPosting

[IntegrationEvent(True,False)]
local procedure OnBeforeBufferAsmOutputPosting(var ValueEntry: Record "Value Entry", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, var CostToPost: Decimal, var CostToPostACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
CostToPost Decimal
CostToPostACY Decimal
IsHandled Boolean

OnBeforeBufferAsmConsumpPosting

[IntegrationEvent(True,False)]
local procedure OnBeforeBufferAsmConsumpPosting(var ValueEntry: Record "Value Entry", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, var CostToPost: Decimal, var CostToPostACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
CostToPost Decimal
CostToPostACY Decimal
IsHandled Boolean

OnBeforePostInvtPostBufPerEntry

[IntegrationEvent(False,False)]
local procedure OnBeforePostInvtPostBufPerEntry(var ValueEntry: Record "Value Entry", var TempGlobalInvtPostingBuffer: Record "Invt. Posting Buffer" temporary, RunOnlyCheckSaved: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
TempGlobalInvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
RunOnlyCheckSaved Boolean
IsHandled Boolean

OnAfterSetGenJnlBatch

[IntegrationEvent(False,False)]
local procedure OnAfterSetGenJnlBatch(GlobalJnlTemplName: Code[10], GlobalJnlBatchName: Code[10])

Parameters

Name Type Description
GlobalJnlTemplName Code[10]
GlobalJnlBatchName Code[10]

OnAfterSetRunOnlyCheck

[IntegrationEvent(False,False)]
local procedure OnAfterSetRunOnlyCheck(CalledFromItemPosting: Boolean, RunOnlyCheck: Boolean, CalledFromTestReport: Boolean)

Parameters

Name Type Description
CalledFromItemPosting Boolean
RunOnlyCheck Boolean
CalledFromTestReport Boolean

OnAfterInitialize

[IntegrationEvent(False,False)]
local procedure OnAfterInitialize(GlobalPostPerPostGroup: Boolean)

Parameters

Name Type Description
GlobalPostPerPostGroup Boolean

OnAfterBufferAdjmtPosting

[IntegrationEvent(False,False)]
local procedure OnAfterBufferAdjmtPosting(var TempInvtPostingBuffer: array[20] of Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", var PostBufDimNo: Integer)

Parameters

Name Type Description
TempInvtPostingBuffer array[20] of Record "Invt. Posting Buffer" temporary
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
PostBufDimNo Integer

OnAfterBufferPurchPosting

[IntegrationEvent(False,False)]
local procedure OnAfterBufferPurchPosting(var TempInvtPostingBuffer: array[20] of Record "Invt. Posting Buffer" temporary, ValueEntry: Record "Value Entry", var PostBufDimNo: Integer)

Parameters

Name Type Description
TempInvtPostingBuffer array[20] of Record "Invt. Posting Buffer" temporary
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
PostBufDimNo Integer

OnBeforeBufferCapacityPosting

[IntegrationEvent(True,False)]
local procedure OnBeforeBufferCapacityPosting(var ValueEntry: Record "Value Entry", var TempGlobalInvtPostingBuffer: Record "Invt. Posting Buffer" temporary, CostToPost: Decimal, CostToPostACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
TempGlobalInvtPostingBuffer Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
CostToPost Decimal
CostToPostACY Decimal
IsHandled Boolean

OnBeforeCreateGLItemLedgerRelationEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateGLItemLedgerRelationEntry(var GLRegister: Record "G/L Register", var IsHandled: Boolean)

Parameters

Name Type Description
GLRegister Table Microsoft.Finance.GeneralLedger.Ledger."G/L Register"
IsHandled Boolean

OnBeforeAdjustWIPForProduction

[IntegrationEvent(True,False)]
local procedure OnBeforeAdjustWIPForProduction(var ValueEntry: Record "Value Entry", var GlobalInvtPostBuf: Record "Invt. Posting Buffer" temporary, CostToPost: Decimal, CostToPostACY: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
GlobalInvtPostBuf Table Microsoft.Inventory.Costing."Invt. Posting Buffer"
CostToPost Decimal
CostToPostACY Decimal
IsHandled Boolean

OnBeforeUpdateGlobalInvtPostBuf

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateGlobalInvtPostBuf(ValueEntryNo: Integer, var TempInvtPostBuf: array[20] of Record "Invt. Posting Buffer" temporary, RunOnlyCheck: Boolean, CalledFromTestReport: Boolean, Result: Boolean, IsHandled: Boolean)

Parameters

Name Type Description
ValueEntryNo Integer
TempInvtPostBuf array[20] of Record "Invt. Posting Buffer" temporary
RunOnlyCheck Boolean
CalledFromTestReport Boolean
Result Boolean
IsHandled Boolean

See also