mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-07 15:46:55 +01:00
Add SCM functional knowledge domain
Introduce nine source-backed rules with original AL sample pairs, bounded SCM review routing, and complete positive/clean evaluation coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b91443beec
commit
9ac62e3967
34 changed files with 1244 additions and 10 deletions
|
|
@ -0,0 +1,21 @@
|
|||
namespace BCQuality.SCM.Samples;
|
||||
|
||||
using Microsoft.Inventory.Journal;
|
||||
using Microsoft.Inventory.Posting;
|
||||
|
||||
codeunit 50103 "SCM Revaluation Batch Good"
|
||||
{
|
||||
procedure PostCalculatedRevaluationBatch(TemplateName: Code[10]; BatchName: Code[10])
|
||||
var
|
||||
ItemJournalLine: Record "Item Journal Line";
|
||||
ItemJnlPostBatch: Codeunit "Item Jnl.-Post Batch";
|
||||
begin
|
||||
ItemJournalLine.SetRange("Journal Template Name", TemplateName);
|
||||
ItemJournalLine.SetRange("Journal Batch Name", BatchName);
|
||||
ItemJournalLine.FindFirst();
|
||||
ItemJournalLine.TestField("Value Entry Type", ItemJournalLine."Value Entry Type"::Revaluation);
|
||||
ItemJournalLine.TestField("Inventory Value Per");
|
||||
|
||||
ItemJnlPostBatch.Run(ItemJournalLine);
|
||||
end;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue