Codeunit 5895 Inventory Adjustment

Base Application, Microsoft.Inventory.Costing

src/Layers/W1/BaseApp/Inventory/Costing/InventoryAdjustment.Codeunit.al109 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

MakeMultiLevelAdjmt line 121

  1. 126callsCodeunit 5824 Cost Adjustment Params Mgt. GetParameters
  2. 132callsCodeunit 5824 Cost Adjustment Params Mgt. GetInventoryAdjmtEntryOrder
  3. 133callsCodeunit 5824 Cost Adjustment Params Mgt. GetAvgCostAdjmtEntryPoint
  4. 134callsCodeunit 5824 Cost Adjustment Params Mgt. GetItemsToAdjust
  5. 135raisesOnBeforeMakeMultiLevejAdjmtOnAfterGetParameters

MakeMultiLevelAdjmt line 140

  1. 149raisesOnBeforeMakeMultiLevelAdjmtIsHandled
  2. 153callsInitializeAdjmt
  3. 156callsInvtToAdjustExist
  4. 158callsMakeSingleLevelAdjmt
  5. 161callsAssemblyToAdjustExists
  6. 162callsMakeAssemblyAdjmt
  7. 165callsWIPToAdjustExist
  8. 166callsMakeWIPAdjmt
  9. 168raisesOnMakeMultiLevelAdjmtOnAfterMakeAdjmt
  10. 174callsSetAppliedEntryToAdjustFromBuf
  11. 176callsFinalizeAdjmt
  12. 177callsRunUpdateJobItemCost
  13. 179raisesOnAfterMakeMultiLevelAdjmt

InitializeAdjmt line 182, local

  1. 191callsOpenWindow
  2. 194callsCodeunit 22 Item Jnl.-Post Line SetCalledFromAdjustment
  3. 200callsTable 313 Inventory Setup AutomaticCostAdjmtRequired
  4. 201callsCodeunit 8703 Feature Telemetry LogUsage
  5. 205callsTable 98 General Ledger Setup FirstAllowedPostingDate
  6. 206raisesOnInitializeAdjmtOnAfterGetPostingDate
  7. 208callsGetAddReportingCurrency
  8. 213callsCodeunit 5804 ItemCostManagement SetProperties

FinalizeAdjmt line 217, local

  1. 222writesTable 5810 Rounding Residual Buffer DeleteAll
  2. 225writesTable 5812 Item Application Trace DeleteAll

GetAddReportingCurrency line 231, local

  1. 235callsTable 4 Currency CheckAmountRoundingPrecision

InvtToAdjustExist line 239, local

  1. 251callsFindLastDate
  2. 253raisesOnInvtToAdjustExistOnBeforeCopyItemToItem
  3. 254callsCopyItemToItem

MakeSingleLevelAdjmt line 259, local

  1. 266raisesOnBeforeMakeSingleLevelAdjmtIsHandled
  2. 271callsFindLastDate
  3. 275callsUpDateWindow
  4. 281raisesOnBeforeAdjustItem
  5. 283callsTable 27 Item SetBaseLoadFields
  6. 285callsUpDateWindow
  7. 287callsPushCurrentItem
  8. 290raisesOnBeforeCollectItemLedgerEntryTypesUsedIsHandled
  9. 292callsCollectItemLedgerEntryTypesUsed
  10. 294raisesOnMakeSingleLevelAdjmtOnBeforeCollectAvgCostAdjmtEntryPointToUpdate
  11. 295callsCollectAvgCostAdjmtEntryPointToUpdate
  12. 296callsAppliedEntryToAdjustBufExists
  13. 301raisesOnMakeSingleLevelAdjmtOnAfterLevelExceeded
  14. 302callsAdjustItemAppliedCost
  15. 306callsAdjustItemAvgCost
  16. 310raisesOnMakeSingleLevelAdjmtOnBeforePostAdjmtBuf2IsHandled
  17. 312callsPostAdjmtBuf
  18. 315callsUpdateItemUnitCost
  19. 316raisesOnMakeSingleLevelAdjmtOnAfterUpdateItemUnitCost
  20. 318callsPopCurrentItem
  21. 319callsCheckAndCommit
  22. 321raisesOnAfterAdjustItem

AdjustItemAppliedCost line 330, local

  1. 336callsUpDateWindow
  2. 339writesTable 5802 Value Entry DeleteAll
  3. 349raisesOnBeforeCopyILEToILE
  4. 351callsUpDateWindow
  5. 353raisesOnAdjustItemAppliedCostForItemLedgerEntry
  6. 355callsTable 5810 Rounding Residual Buffer AddAdjustedCost
  7. 356callsForwardAppliedCost
  8. 358callsEliminateRndgResidual

ForwardAppliedCost line 363, local

  1. 374callsTable 32 Item Ledger Entry SetAppliedEntryToAdjust
  2. 380raisesOnForwardAppliedCostOnBeforeUpdateWindow
  3. 381callsUpDateWindow
  4. 383callsForwardCostToOutbndEntries
  5. 384raisesOnForwardAppliedCostOnAfterSetAppliedQty
  6. 387callsForwardCostToInbndTransEntries
  7. 389callsForwardCostToInbndEntries
  8. 391callsShouldSetAppliedEntryToAdjustForForwardAppliedCost
  9. 394callsTable 32 Item Ledger Entry IsOutbndConsump
  10. 395callsUpdateAppliedEntryToAdjustBuf
  11. 397callsTable 32 Item Ledger Entry SetAppliedEntryToAdjust

ShouldSetAppliedEntryToAdjustForForwardAppliedCost line 400, local

  1. 405callsOutboundSalesEntryToAdjust
  2. 410callsInboundTransferEntryToAdjust

ForwardAppliedCostRecursion line 414, local

  1. 426callsForwardAppliedCost
  2. 428callsIsRndgAllowed
  3. 429callsTable 5895 Inventory Adjustment Buffer CalcItemLedgEntryCost
  4. 430callsTable 5802 Value Entry CalcItemLedgEntryCost
  5. 431callsTable 5802 Value Entry AddCost
  6. 435callsTable 339 Item Application Entry AppliedOutbndEntryExists
  7. 437callsTable 5895 Inventory Adjustment Buffer CalcItemLedgEntryCost
  8. 438callsTable 5802 Value Entry CalcItemLedgEntryCost
  9. 439callsTable 5802 Value Entry AddCost
  10. 447callsUpdateAppliedEntryToAdjustBuf

ForwardCostToOutbndEntries line 456, local

  1. 463callsTable 339 Item Application Entry AppliedOutbndEntryExists
  2. 465callsAdjustAppliedOutbndEntries

AdjustAppliedOutbndEntries line 473, local

  1. 489raisesOnAdjustAppliedOutbndEntry
  2. 492callsUseStandardCostMirroring
  3. 494callsCalcOutbndCost
  4. 501callsLoadFields
  5. 506callsExpCostIsCompletelyInvoiced
  6. 507raisesOnAdjustAppliedOutbndEntriesOnBeforeAdjustEntry
  7. 511callsCalcOutbndDocOldCost
  8. 513callsTable 32 Item Ledger Entry IsExactCostReversingPurchase
  9. 513callsTable 32 Item Ledger Entry IsExactCostReversingOutput
  10. 515callsCalcCostPerUnit
  11. 518callsTable 5820 Cost Element Buffer GetElement
  12. 523callsCalcOutbndDocNewCost
  13. 528callsTable 5820 Cost Element Buffer GetElement
  14. 533callsTable 5820 Cost Element Buffer GetElement
  15. 540callsCreateCostAdjmtBuf
  16. 543callsCreateCostAdjmtBuf
  17. 546raisesOnAdjustAppliedOutbndEntriesOnBeforeCheckExpectedCost
  18. 549callsCreateIndirectCostAdjmt
  19. 551callsCreateIndirectCostAdjmt
  20. 561callsIsUpdateCompletelyInvoiced
  21. 564callsTable 32 Item Ledger Entry SetCompletelyInvoiced
  22. 566callsForwardAppliedCostRecursion
  23. 568callsTable 339 Item Application Entry SetInboundToUpdated

CalcCostPerUnit line 574, local

  1. 581raisesOnCalcCostPerUnitOnBeforeCalcCostPerUnit

CalcOutbndCost line 589, local

  1. 594writesTable 5820 Cost Element Buffer DeleteAll
  2. 595writesTable 5820 Cost Element Buffer DeleteAll
  3. 597callsRestoreValuesFromBuffers
  4. 599callsItemLedgerEntryTypeIsUsed
  5. 607callsCalcInbndEntryAdjustedCost
  6. 609callsTable 32 Item Ledger Entry IsExactCostReversingPurchase
  7. 609callsTable 32 Item Ledger Entry IsExactCostReversingOutput
  8. 622callsCalcInbndEntryAdjustedCost
  9. 626callsTable 32 Item Ledger Entry IsExactCostReversingPurchase
  10. 626callsTable 32 Item Ledger Entry IsExactCostReversingOutput
  11. 631callsTable 5820 Cost Element Buffer GetElement
  12. 640callsSaveValuesToBuffers

CalcOutbndDocNewCost line 643, local

  1. 648callsTable 5820 Cost Element Buffer GetElement
  2. 652callsRoundCost
  3. 655callsRoundCost
  4. 659writesTable 5820 Cost Element Buffer Insert
  5. 660writesTable 5820 Cost Element Buffer Modify

CollectAvgCostAdjmtEntryPointToUpdate line 663, local

  1. 672callsInsertEntryPointToUpdate

CreateCostAdjmtBuf line 677, local

  1. 679callsUpdateAdjmtBuf
  2. 680callsUpdateAvgCostAdjmtEntryPoint

CreateIndirectCostAdjmt line 686, local

  1. 693callsTable 5820 Cost Element Buffer GetElement
  2. 694callsTable 5820 Cost Element Buffer GetElement
  3. 698callsHasNewCost
  4. 699callsGetOrigValueEntry
  5. 700callsInitAdjmtJnlLine
  6. 702callsPostItemJnlLine
  7. 704raisesOnCreateIndirectCostAdjmtOnAfterPostItemJnlLine
  8. 705callsUpdateAvgCostAdjmtEntryPoint

ForwardCostToInbndTransEntries line 712, local

  1. 717callsItemLedgerEntryTypeIsUsed
  2. 720callsTable 339 Item Application Entry AppliedInbndTransEntryExists
  3. 722callsAdjustAppliedInbndTransEntries

AdjustAppliedInbndTransEntries line 726, local

  1. 736callsTable 32 Item Ledger Entry SetBaseLoadFields
  2. 738raisesOnAdjustAppliedInbndTransEntry
  3. 741callsAdjustNotInvdRevaluation
  4. 743callsCalcTransEntryOldCost
  5. 745callsCalcInbndEntryAdjustedCost
  6. 752callsTable 32 Item Ledger Entry SetCompletelyInvoiced
  7. 756callsUpdateAdjmtBuf
  8. 766callsClearOutboundEntryCostBuffer
  9. 767callsUpdateAvgCostAdjmtEntryPoint
  10. 768callsForwardAppliedCostRecursion

CalcTransEntryOldCost line 772, local

  1. 783callsLoadFields
  2. 787raisesOnCalcTransEntryOldCostOnBeforeProcessTransValueEntry
  3. 790callsTable 5802 Value Entry AddCost

ForwardCostToInbndEntries line 799, local

  1. 804callsTable 339 Item Application Entry AppliedInbndEntryExists
  2. 806callsAdjustAppliedInbndEntries

AdjustAppliedInbndEntries line 810, local

  1. 822callsCalcItemApplnEntryOldCost
  2. 824callsTable 32 Item Ledger Entry SetBaseLoadFields
  3. 826raisesOnAdjustAppliedInbndEntry
  4. 830raisesOnAdjustAppliedInbndEntriesOnAfterSetFilter
  5. 831callsLoadFields
  6. 836callsExpCostIsCompletelyInvoiced
  7. 840callsCalcInbndDocOldCost
  8. 843callsTable 5820 Cost Element Buffer GetElement
  9. 848callsCalcInbndDocNewCost
  10. 852callsCreateCostAdjmtBuf
  11. 857writesTable 5802 Value Entry DeleteAll
  12. 867callsIsUpdateCompletelyInvoiced
  13. 870callsTable 32 Item Ledger Entry SetCompletelyInvoiced
  14. 875callsUpdateAvgCostAdjmtEntryPoint
  15. 876callsForwardAppliedCostRecursion

CalcItemApplnEntryOldCost line 880, local

  1. 895callsTable 5802 Value Entry AddCost
  2. 905callsTable 5820 Cost Element Buffer RoundActualCost

CalcInbndDocOldCost line 910, local

  1. 912writesTable 5820 Cost Element Buffer DeleteAll
  2. 928callsTable 5802 Value Entry AddCost
  3. 930callsTable 5820 Cost Element Buffer AddExpectedCostElement
  4. 932callsTable 5820 Cost Element Buffer AddActualCostElement
  5. 935writesTable 5820 Cost Element Buffer Modify
  6. 936writesTable 5820 Cost Element Buffer Insert

CalcInbndDocNewCost line 943, local

  1. 945callsTable 5820 Cost Element Buffer RoundActualCost

IsUpdateCompletelyInvoiced line 957, local

  1. 962raisesOnBeforeIsUpdateCompletelyInvoicedIsHandled

CalcInbndEntryAdjustedCost line 972, local

  1. 981raisesOnBeforeCalcInbndEntryAdjustedCostIsHandled
  2. 983writesTable 5820 Cost Element Buffer DeleteAll
  3. 996callsExpCostIsCompletelyInvoiced
  4. 997callsIncludedInCostCalculation
  5. 998raisesOnCalcInbndEntryAdjustedCostOnBeforeAddCost
  6. 1000callsTable 5802 Value Entry AddCost
  7. 1002callsIsInterimRevaluation
  8. 1005callsTable 5820 Cost Element Buffer AddActualCostElement
  9. 1013callsTable 5820 Cost Element Buffer AddActualCostElement
  10. 1021callsTable 5820 Cost Element Buffer AddActualCostElement
  11. 1027callsTable 5820 Cost Element Buffer AddActualCostElement
  12. 1029callsTable 5820 Cost Element Buffer AddActualCostElement
  13. 1031callsTable 5820 Cost Element Buffer AddActualCostElement
  14. 1037raisesOnCalcInbndEntryAdjustedCostOnBeforeCalcNewAdjustedCostIsHandled
  15. 1039callsCalcNewAdjustedCost
  16. 1041callsAdjustAppliedCostEntry
  17. 1042callsTable 5810 Rounding Residual Buffer AddAdjustedCost
  18. 1049raisesOnAfterCalcInbndEntryAdjustedCost

CalcNewAdjustedCost line 1052, local

  1. 1056callsTable 5820 Cost Element Buffer RoundActualCost
  2. 1057writesTable 5820 Cost Element Buffer Modify
  3. 1061callsTable 5820 Cost Element Buffer AddActualCostElement

IncludedInCostCalculation line 1072

  1. 1089callsTable 5802 Value Entry EntryNoHasSameSign
  2. 1090callsTable 5802 Value Entry EntryNoHasSameSign
  3. 1091callsTable 5802 Value Entry GetValuationDate

CalcOutbndDocOldCost line 1098, local

  1. 1102writesTable 5820 Cost Element Buffer DeleteAll
  2. 1113callsTable 5802 Value Entry AddCost
  3. 1114callsTable 5820 Cost Element Buffer AddExpectedCostElement
  4. 1120callsTable 5820 Cost Element Buffer AddActualCostElement
  5. 1123writesTable 5820 Cost Element Buffer Modify
  6. 1124writesTable 5820 Cost Element Buffer Insert
  7. 1128callsTable 5820 Cost Element Buffer AddActualCostElement
  8. 1130callsTable 5820 Cost Element Buffer AddActualCostElement
  9. 1135callsTable 5820 Cost Element Buffer AddActualCostElement

EliminateRndgResidual line 1138, local

  1. 1146callsIsRndgAllowed
  2. 1147callsTable 5895 Inventory Adjustment Buffer CalcItemLedgEntryCost
  3. 1148callsTable 5802 Value Entry CalcItemLedgEntryCost
  4. 1149callsTable 5802 Value Entry AddCost
  5. 1150raisesOnEliminateRndgResidualOnAfterCalcInboundCost
  6. 1161raisesOnEliminateRndgResidualOnBeforeCheckHasNewCostIsHandled
  7. 1163callsHasNewCost
  8. 1170callsTable 5802 Value Entry SetBaseLoadFields
  9. 1172callsInitRndgResidualItemJnlLine
  10. 1173callsPostItemJnlLine
  11. 1179writesTable 5810 Rounding Residual Buffer DeleteAll

InitRndgResidualItemJnlLine line 1192, local

  1. 1200raisesOnAfterInitRndgResidualItemJnlLine

AdjustItemAvgCost line 1203, local

  1. 1215callsIsAvgCostItem
  2. 1218callsUpDateWindow
  3. 1220callsDeleteAvgBuffers
  4. 1223callsAvgCostAdjmtEntryPointExist
  5. 1228raisesOnBeforeAvgCostAdjmtEntryPoint
  6. 1235callsTable 5804 Avg. Cost Adjmt. Entry Point SetAvgCostAjmtFilter
  7. 1236callsSetDateFilterUntilLastDate
  8. 1237writesTable 5804 Avg. Cost Adjmt. Entry Point DeleteAll
  9. 1240callsTable 5804 Avg. Cost Adjmt. Entry Point SetAvgCostAjmtFilter
  10. 1241callsSetDateFilterUntilLastDate
  11. 1242writesTable 5804 Avg. Cost Adjmt. Entry Point ModifyAll
  12. 1245raisesOnAdjustItemAvgCostOnBeforeAdjustValueEntries
  13. 1251callsFindOutboundEntriesToAdjust
  14. 1259raisesOnBeforeIteratingOverOutbndAvgEntries
  15. 1261raisesOnAdjustItemAvgCostOnBeforeUpdateWindow
  16. 1262callsUpDateWindow
  17. 1264callsAdjustOutbndAvgEntry
  18. 1265callsUpdateConsumpAvgEntry
  19. 1268callsTable 5804 Avg. Cost Adjmt. Entry Point SetAvgCostAjmtFilter
  20. 1269callsSetDateFilterUntilLastDate
  21. 1271raisesOnAdjustItemAvgCostOnAfterCalcRestart
  22. 1275callsGetNextDate
  23. 1280raisesOnAdjustItemAvgCostOnAfterLastTempAvgCostAdjmtEntryPointIsHandled

AvgCostAdjmtEntryPointExist line 1286, local

  1. 1295callsCopyAvgCostAdjmtToAvgCostAdjmt

FindOutboundEntriesToAdjust line 1300, local

  1. 1306callsAvgValueEntriesToAdjustExist
  2. 1310callsGetNextDate
  3. 1311raisesOnAvgValueEntriesToAdjustExistOnFindNextRangeOnBeforeAvgValueEntriesToAdjustExist

AvgValueEntriesToAdjustExist line 1317, local

  1. 1326callsResetAvgBuffers
  2. 1329callsTable 5804 Avg. Cost Adjmt. Entry Point GetValuationPeriod
  3. 1330raisesOnAfterGetValuationPeriod
  4. 1334callsTable 5804 Avg. Cost Adjmt. Entry Point AvgCostCalcTypeIsChanged
  5. 1335callsTable 5804 Avg. Cost Adjmt. Entry Point GetAvgCostCalcTypeIsChgPeriod
  6. 1336callsMin
  7. 1338callsMin
  8. 1340callsTable 5804 Avg. Cost Adjmt. Entry Point IsAvgCostCalcTypeItem
  9. 1345raisesOnAvgValueEntriesToAdjustExistOnAfterSetAvgValueEntryFilters
  10. 1354callsTable 5804 Avg. Cost Adjmt. Entry Point GetValuationPeriod
  11. 1357callsTable 5804 Avg. Cost Adjmt. Entry Point ValuationExists
  12. 1357callsTable 5804 Avg. Cost Adjmt. Entry Point PrevValuationAdjusted
  13. 1360callsTable 5804 Avg. Cost Adjmt. Entry Point UpdateValuationDate
  14. 1366raisesOnAvgValueEntriesToAdjustExistOnAfterSetChildValueEntryFilters
  15. 1375callsDeleteAvgBuffers
  16. 1383callsTable 339 Item Application Entry AppliedFromEntryExists
  17. 1386writesTable 2000000026 Integer Insert
  18. 1387callsFillFixApplBuffer
  19. 1393writesTable 5802 Value Entry Insert
  20. 1397raisesOnAvgValueEntriesToAdjustExistOnBeforeIsNotAdjustment
  21. 1399callsIsAvgCostException
  22. 1401writesTable 2000000026 Integer Insert
  23. 1403writesTable 2000000026 Integer Insert
  24. 1407writesTable 5802 Value Entry Insert
  25. 1409callsFetchOpenOutboundItemEntriesToExclude

AdjustOutbndAvgEntry line 1422, local

  1. 1433callsExpCostIsCompletelyInvoiced
  2. 1436raisesOnAdjustOutbndAvgEntry
  3. 1438callsUpDateWindow
  4. 1441callsTable 32 Item Ledger Entry SetAvgTransCompletelyInvoiced
  5. 1443callsCalcAvgCost
  6. 1444callsCalcOutbndDocOldCost
  7. 1451raisesOnAdjustOutbndAvgEntryOnNewCostElementBuf
  8. 1453callsUpdateAdjmtBuf
  9. 1463callsTable 32 Item Ledger Entry SetAppliedEntryToAdjust
  10. 1465raisesOnAdjustOutbndAvgEntryOnBeforeForwardAvgCostToInbndEntries
  11. 1466callsForwardAvgCostToInbndEntries

CalcAvgCost line 1475, local

  1. 1483callsTable 5802 Value Entry SumCostsTillValuationDate
  2. 1485callsTable 5895 Inventory Adjustment Buffer SumCostsTillValuationDate
  3. 1496raisesOnCalcAvgCostOnAfterAssignRoundingError
  4. 1498callsExcludeAvgCostOnValuationDate
  5. 1499callsTable 5820 Cost Element Buffer UpdateAvgCostBuffer
  6. 1500callsGetLastValidValueEntry
  7. 1502callsTable 5820 Cost Element Buffer UpdateCostElementBuffer
  8. 1505callsExcludeTransferFromAvgCostCalc
  9. 1512callsRoundCost
  10. 1516callsRoundCost
  11. 1521callsTable 5820 Cost Element Buffer DeductOutbndValueEntryFromBuf

ExcludeAvgCostOnValuationDate line 1536, local

  1. 1551callsGetChainOfAppliedEntries
  2. 1552callsTable 5812 Item Application Trace AddChain
  3. 1553raisesOnExcludeAvgCostOnValuationDateOnAfterGetItemApplicationTrace
  4. 1558raisesOnExcludeAvgCostOnValuationDate
  5. 1564callsIsExcludeILEFromAvgCostCalc
  6. 1573callsIsExcludeFromAvgCostForRevalPoint
  7. 1574callsCalcRevalFixedApplnQty
  8. 1578callsRoundAmt
  9. 1580callsRoundAmt
  10. 1582callsRoundAmt
  11. 1584callsRoundAmt
  12. 1593callsIsExcludeFromAvgCostForRevalPoint
  13. 1598callsTable 5820 Cost Element Buffer ExcludeEntryFromAvgCostCalc
  14. 1600callsTable 5820 Cost Element Buffer ExcludeBufFromAvgCostCalc

IsExcludeILEFromAvgCostCalc line 1605, local

  1. 1627callsIsItemLedgEntryPositive
  2. 1631callsIsOutputWithSelfConsumption
  3. 1647callsTable 5804 Avg. Cost Adjmt. Entry Point IsAvgCostCalcTypeItem

IsExcludeFromAvgCostForRevalPoint line 1663, local

  1. 1671raisesOnBeforeIsExcludeFromAvgCostForRevalPoint
  2. 1689callsIncludedInCostCalculation

CalcRevalFixedApplnQty line 1696, local

  1. 1708callsIncludedInCostCalculation

UpdateAvgCostAdjmtEntryPoint line 1715, local

  1. 1719callsTable 5804 Avg. Cost Adjmt. Entry Point UpdateValuationDate

UpdateConsumpAvgEntry line 1722, local

  1. 1730raisesOnBeforeUpdateConsumpAvgEntryIsHandled
  2. 1742callsTable 5804 Avg. Cost Adjmt. Entry Point IsAvgCostCalcTypeItem
  3. 1747raisesOnUpdateConsumpAvgEntryOnAfterSetItemLedgEntryFilters
  4. 1750callsTable 32 Item Ledger Entry SetCompletelyInvoiced
  5. 1751callsTable 32 Item Ledger Entry SetAppliedEntryToAdjust

ForwardAvgCostToInbndEntries line 1756, local

  1. 1761callsTable 339 Item Application Entry AppliedInbndEntryExists
  2. 1764callsAdjustAppliedInbndEntries
  3. 1768callsUpDateWindow
  4. 1769callsAdjustItemAppliedCost
  5. 1770callsUpDateWindow

WIPToAdjustExist line 1775, local

  1. 1787raisesOnWIPToAdjustExistOnAfterInventoryAdjmtEntryOrderSetFilters
  2. 1788callsCopyOrderAdmtEntryToOrderAdjmt

MakeWIPAdjmt line 1792, local

  1. 1799callsGetItem
  2. 1800callsUpDateWindow
  3. 1802raisesOnMakeWIPAdjmt
  4. 1805callsCodeunit 5896 Calc. Inventory Adjmt. - Order Calculate
  5. 1806callsPostOutputAdjmtBuf
  6. 1809callsTable 5896 Inventory Adjmt. Entry (Order) GetUnitCostsFromItem
  7. 1814writesTable 5896 Inventory Adjmt. Entry (Order) Modify

PostOutputAdjmtBuf line 1818, local

  1. 1823callsPostOutput
  2. 1825writesTable 5895 Inventory Adjustment Buffer DeleteAll

PostOutput line 1828, local

  1. 1837callsTable 5802 Value Entry SetBaseLoadFields
  2. 1856raisesOnPostOutputOnBeforePostItemJnlLineIsHandled
  3. 1858callsPostItemJnlLine
  4. 1862callsTable 32 Item Ledger Entry SetCompletelyInvoiced
  5. 1864callsInsertEntryPointToUpdate

AssemblyToAdjustExists line 1867, local

  1. 1878callsCopyOrderAdmtEntryToOrderAdjmt

MakeAssemblyAdjmt line 1882, local

  1. 1889callsGetItem
  2. 1890callsUpDateWindow
  3. 1892raisesOnMakeAssemblyAdjmt
  4. 1896callsCodeunit 5896 Calc. Inventory Adjmt. - Order Calculate
  5. 1897callsPostOutputAdjmtBuf
  6. 1901callsTable 5896 Inventory Adjmt. Entry (Order) GetUnitCostsFromItem
  7. 1906writesTable 5896 Inventory Adjmt. Entry (Order) Modify

UpdateAdjmtBuf line 1910, local

  1. 1918raisesOnBeforeUpdateAdjmtBufIsHandled
  2. 1922callsHasNewCost
  3. 1926callsTable 5810 Rounding Residual Buffer UpdRoundingCheck
  4. 1933callsUpdateValuationPeriodHasOutput
  5. 1935callsTable 5895 Inventory Adjustment Buffer AddActualCostBuf
  6. 1936raisesOnUpdateAdjmtBufOnAfterAddActualCostBuf
  7. 1939callsGetOrigValueEntry
  8. 1942writesTable 5895 Inventory Adjustment Buffer Modify
  9. 1948callsCalcExpectedCostToBalance
  10. 1950raisesOnUpdateAdjmtBufOnBeforeHasNewCostIsHandled
  11. 1952callsHasNewCost
  12. 1953callsTable 5895 Inventory Adjustment Buffer AddBalanceExpectedCostBuf
  13. 1959callsTable 339 Item Application Entry SetOutboundsNotUpdated

CalcExpectedCostToBalance line 1964, local

  1. 1986callsRoundAmt
  2. 1988callsRoundAmt

PostAdjmtBuf line 1993, local

  1. 2001callsTable 5802 Value Entry SetBaseLoadFields
  2. 2003callsInsertEntryPointToUpdate
  3. 2006callsHasNewCost
  4. 2007callsInitAdjmtJnlLine
  5. 2008callsPostItemJnlLine
  6. 2010raisesOnPostAdjmtBufOnAfterPostExpectedCost
  7. 2013callsHasNewCost
  8. 2014callsHasNewCost
  9. 2015callsInitAdjmtJnlLine
  10. 2016callsPostItemJnlLine
  11. 2018callsInitAdjmtJnlLine
  12. 2019raisesOnPostAdjmtBufOnBeforePostNewCost
  13. 2020callsPostItemJnlLine
  14. 2022raisesOnPostAdjmtBufOnAfterPostNewCost
  15. 2025writesTable 5895 Inventory Adjustment Buffer DeleteAll

InitAdjmtJnlLine line 2029, local

  1. 2050raisesOnAfterInitAdjmtJnlLine

PostItemJnlLine line 2053, local

  1. 2059raisesOnBeforePostItemJnlLineIsHandled
  2. 2067callsTable 98 General Ledger Setup IsPostingAllowed
  3. 2067callsTable 5814 Inventory Period IsValidDate
  4. 2071raisesOnPostItemJnlLineOnAfterSetPostingDate
  5. 2097callsRoundAmt
  6. 2099callsRoundAmt
  7. 2107callsCopyJobToAdjustmentBuf
  8. 2109raisesOnPostItemJnlLineCopyFromValueEntry
  9. 2110callsCodeunit 22 Item Jnl.-Post Line RunWithCheck
  10. 2111raisesOnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck

RoundCost line 2114, local

  1. 2119callsRoundAmt

GetOrigValueEntry line 2130, local

  1. 2138callsTable 5802 Value Entry SetBaseLoadFields
  2. 2148raisesOnGetOrigValueEntryOnAfterOrigValueEntryFound
  3. 2157callsGetOrigVarianceType

SetAppliedEntryToAdjustFromBuf line 2184, local

  1. 2198callsTable 32 Item Ledger Entry SetAppliedEntryToAdjust
  2. 2205callsTable 32 Item Ledger Entry SetAppliedEntryToAdjust

UpdateItemUnitCost line 2214, local

  1. 2221raisesOnBeforeUpdateItemUnitCost2IsHandled
  2. 2227raisesOnUpdateItemUnitCostOnAfterItemGet
  3. 2232callsIsAvgCostItem
  4. 2235writesTable 5804 Avg. Cost Adjmt. Entry Point ModifyAll
  5. 2238callsIsAvgCostItem
  6. 2239callsAppliedEntryToAdjustBufExists
  7. 2240callsSetAppliedEntryToAdjustFromBuf
  8. 2248callsCodeunit 5804 ItemCostManagement UpdateUnitCost
  9. 2252writesTable 27 Item Modify
  10. 2254raisesOnUpdateItemUnitCostOnBeforeModifyItemNotStandardCostingMethod
  11. 2255writesTable 27 Item Modify
  12. 2256raisesOnUpdateItemUnitCostOnAfterModifyItemNotStandardCostingMethod
  13. 2260writesTable 5804 Avg. Cost Adjmt. Entry Point DeleteAll

IsAvgCostItem line 2269, local

  1. 2273raisesOnAfterIsAvgCostItem

OpenWindow line 2281, local

  1. 2286raisesOnBeforeOpenWindowIsHandled

UpDateWindow line 2304, local

  1. 2320raisesOnBeforeUpdateWindowIsHandled
  2. 2327callsIsTimeForUpdate
  3. 2329callsOpenWindow
  4. 2332raisesOnUpdateWindowOnAfterOpenWindowIsHandled

CopyItemToItem line 2354, local

  1. 2359raisesOnBeforeCopyItemToItemIsHandled
  2. 2364writesTable 27 Item DeleteAll
  3. 2375writesTable 27 Item Insert

CopyAvgCostAdjmtToAvgCostAdjmt line 2380, local

  1. 2383writesTable 5804 Avg. Cost Adjmt. Entry Point DeleteAll
  2. 2387writesTable 5804 Avg. Cost Adjmt. Entry Point Insert
  3. 2388raisesOnCopyAvgCostAdjmtToAvgCostAdjmtOnAfterInsert

CopyOrderAdmtEntryToOrderAdjmt line 2392, local

  1. 2395writesTable 5896 Inventory Adjmt. Entry (Order) DeleteAll
  2. 2399callsCanAdjustInventoryAdjmtEntryOrder
  3. 2401writesTable 5896 Inventory Adjmt. Entry (Order) Insert

AdjustNotInvdRevaluation line 2429, local

  1. 2436callsTable 5802 Value Entry NotInvdRevaluationExists
  2. 2437callsGetOrigPosItemLedgEntryNo
  3. 2441callsCalcTransEntryNewRevAmt
  4. 2442callsCalcTransEntryOldRevAmt
  5. 2444callsUpdateAdjmtBuf

CalcTransEntryNewRevAmt line 2464, local

  1. 2480callsTable 5802 Value Entry EntryNoHasSameSign
  2. 2481callsTable 5802 Value Entry EntryNoHasSameSign
  3. 2489callsTable 5802 Value Entry AddCost

CalcTransEntryOldRevAmt line 2497, local

  1. 2508callsTable 5802 Value Entry AddCost

OutboundSalesEntryToAdjust line 2521, local

  1. 2526callsTable 32 Item Ledger Entry IsOutbndSale

FillFixApplBuffer line 2578, local

  1. 2584callsTable 339 Item Application Entry AppliedOutbndEntryExists

RunUpdateJobItemCost line 2593, local

  1. 2600raisesOnBeforeRunUpdateJobItemCost
  2. 2610callsReport 1095 Update Job Item Cost SetProperties

FetchOpenOutboundItemEntriesToExclude line 2615, local

  1. 2622callsOpenOutbndItemLedgEntriesExist
  2. 2624callsCopyOpenItemLedgEntryToBuf
  3. 2625callsGetChainOfAppliedEntries
  4. 2627callsCopyOpenItemLedgEntryToBuf

OpenOutbndItemLedgEntriesExist line 2633, local

  1. 2640callsTable 5804 Avg. Cost Adjmt. Entry Point IsAvgCostCalcTypeItem
  2. 2644raisesOnOpenOutbndItemLedgEntriesExistOnAfterSetOpenItemLedgEntryFilters
  3. 2645callsTable 32 Item Ledger Entry SetBaseLoadFields

ResetAvgBuffers line 2649, local

  1. 2656callsTable 5820 Cost Element Buffer Initialize

DeleteAvgBuffers line 2659, local

  1. 2661callsResetAvgBuffers
  2. 2662callsTable 5820 Cost Element Buffer Initialize
  3. 2663writesTable 5802 Value Entry DeleteAll
  4. 2664writesTable 5802 Value Entry DeleteAll
  5. 2665writesTable 2000000026 Integer DeleteAll
  6. 2666writesTable 2000000026 Integer DeleteAll
  7. 2667writesTable 5802 Value Entry DeleteAll

InsertEntryPointToUpdate line 2671, local

  1. 2677writesTable 5804 Avg. Cost Adjmt. Entry Point Insert

UpdateValuationPeriodHasOutput line 2680, local

  1. 2690callsTable 5804 Avg. Cost Adjmt. Entry Point ValuationExists
  2. 2697callsTable 5804 Avg. Cost Adjmt. Entry Point GetValuationPeriod

CopyOpenItemLedgEntryToBuf line 2712, local

  1. 2714callsCollectOpenValueEntries

CollectOpenValueEntries line 2719, local

  1. 2730writesTable 5802 Value Entry Insert

IsOutputWithSelfConsumption line 2769, local

  1. 2788callsTable 5804 Avg. Cost Adjmt. Entry Point ValuationExists
  2. 2792callsTable 5804 Avg. Cost Adjmt. Entry Point GetValuationPeriod
  3. 2805callsTable 5804 Avg. Cost Adjmt. Entry Point IsAvgCostCalcTypeItem
  4. 2809raisesOnIsOutputWithSelfConsumptionOnAfterSetConsumpValueEntryFilters
  5. 2813callsTable 32 Item Ledger Entry SetBaseLoadFields
  6. 2815callsGetChainOfAppliedEntries
  7. 2816raisesOnIsOutputWithSelfConsumptionOnAfterGetItemApplicationTrace
  8. 2820callsTable 5812 Item Application Trace AddChain

RestoreValuesFromBuffers line 2828, local

  1. 2836callsCopyValueEntryBufToCostElementBuf
  2. 2840callsCopyValueEntryBufToCostElementBuf

SaveValuesToBuffers line 2846, local

  1. 2851callsCopyCostElementBufToValueEntryBuf
  2. 2854callsCopyCostElementBufToValueEntryBuf

CopyCostElementBufToValueEntryBuf line 2858, local

  1. 2880raisesOnCopyCostElementBufToValueEntryBufOnBeforeValueEntryBufInsert
  2. 2881writesTable 5802 Value Entry Insert

CopyValueEntryBufToCostElementBuf line 2884, local

  1. 2898raisesOnCopyValueEntryBufToCostElementBufOnBeforeCostElementBufferInsert
  2. 2899writesTable 5820 Cost Element Buffer Insert

ClearOutboundEntryCostBuffer line 2902, local

  1. 2907callsTable 339 Item Application Entry AppliedOutbndEntryExists
  2. 2912writesTable 5802 Value Entry DeleteAll

GetChainOfAppliedEntries line 2916, local

  1. 2924callsTable 339 Item Application Entry GetVisitedEntries
  2. 2925callsTable 5812 Item Application Trace CreateChain

IsAvgCostException line 2932, local

  1. 2954callsGetChainOfAppliedEntries

CollectItemLedgerEntryTypesUsed line 2980, local

  1. 2984callsTable 32 Item Ledger Entry CollectItemLedgerEntryTypesUsed

CheckAndCommit line 3010, local

  1. 3018callsCodeunit 22 Item Jnl.-Post Line ResetGLPostingState
  2. 3019callsEmitCheckAndCommitTelemetry
  3. 3024writesTable 5812 Item Application Trace DeleteAll

EmitCheckAndCommitTelemetry line 3027, local

  1. 3035callsCodeunit 8703 Feature Telemetry LogUsage

FindLastDate line 3038, local

  1. 3044callsCodeunit 362 PeriodPageManagement EndOfPeriod

SetDateFilterUntilLastDate line 3052, local

  1. 3058callsCodeunit 362 PeriodPageManagement EndOfPeriod

CallInitializeAdjmt line 3091

  1. 3093callsInitializeAdjmt

CallFinalizeAdjmt line 3096

  1. 3098callsFinalizeAdjmt

CallInvtToAdjustExist line 3101

  1. 3103callsInvtToAdjustExist

CallMakeSingleLevelAdjmt line 3106

  1. 3108callsMakeSingleLevelAdjmt

CallWIPToAdjustExist line 3111

  1. 3113callsWIPToAdjustExist

CallMakeWIPAdjmt line 3116

  1. 3118callsMakeWIPAdjmt

CallAssemblyToAdjustExists line 3121

  1. 3123callsAssemblyToAdjustExists

CallMakeAssemblyAdjmt line 3126

  1. 3128callsMakeAssemblyAdjmt

CallUpdateAdjmtBuf line 3131

  1. 3133callsUpdateAdjmtBuf

CallPostAdjmtBuf line 3136

  1. 3138callsPostAdjmtBuf

CallPostOutputAdjmtBuf line 3141

  1. 3143callsPostOutputAdjmtBuf

CallSetAppliedEntryToAdjustFromBuf line 3146

  1. 3148callsSetAppliedEntryToAdjustFromBuf

CallAppliedEntryToAdjustBufExists line 3151

  1. 3153callsAppliedEntryToAdjustBufExists

CallUpdateJobItemCost line 3156

  1. 3158callsRunUpdateJobItemCost