Skip to content

[Main]Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costsInitial commit#9471

Draft
sanjmaurya wants to merge 2 commits into
microsoft:mainfrom
sanjmaurya:bugs/Bug-642126-Main-IncorrectCostAmountActualValue_EntriesAfterpostingNew
Draft

[Main]Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costsInitial commit#9471
sanjmaurya wants to merge 2 commits into
microsoft:mainfrom
sanjmaurya:bugs/Bug-642126-Main-IncorrectCostAmountActualValue_EntriesAfterpostingNew

Conversation

@sanjmaurya

@sanjmaurya sanjmaurya commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Bug 642126: [Master] [ALL-E] Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costs

Fixes AB#642126
Issue :- Incorrect Cost Amount (Actual) in Value Entries after posting Assembly Process and calulating the assembly standard costs

Root cause :-
The item's per-unit indirect cost and the per-output indirect cost are computed with inconsistent rounding, so the amounts diverge once Calc. Assembly Std. Cost re-stamps the item's standard cost with high precision.

Solutions :-
The assembly overhead recompute runs after the if/else, covering both branches
if not InvtAdjmtEntryOrder.Find() or not InvtAdjmtEntryOrder."Completely Invoiced" then
InvtAdjmtEntryOrder.GetCostsFromItem(OutputQty)
else begin
InvtAdjmtEntryOrder.RoundCosts(OutputQty);
InvtAdjmtEntryOrder.CalcDirectCostFromCostShares();
InvtAdjmtEntryOrder.CalcIndirectCostFromCostShares();
InvtAdjmtEntryOrder.CalcUnitCost();
end;

if InvtAdjmtEntryOrder."Order Type" = InvtAdjmtEntryOrder."Order Type"::Assembly then begin
InvtAdjmtEntryOrder.CalcOvhdCost(OutputQty); // overhead from stable matcap × Indirect %
InvtAdjmtEntryOrder.RoundCosts(1);
InvtAdjmtEntryOrder.CalcIndirectCostFromCostShares();
InvtAdjmtEntryOrder.CalcUnitCost();
end;

@github-actions github-actions Bot added From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item labels Jul 15, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant