mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Move canonical knowledge for Microsoft-owned review domains into the Microsoft layer and document the skill/knowledge co-location policy. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com> Copilot-Session: 2a6ea875-d38e-4f30-aadb-0d606f9be231
12 lines
455 B
AL
12 lines
455 B
AL
codeunit 50100 "Order Buffer Helper"
|
|
{
|
|
procedure ResetStagingBuffer(var OrderBuffer: Record "Sales Header")
|
|
begin
|
|
// The helper is designed for a temporary buffer only. Fail loudly
|
|
// if a caller accidentally passes the real table.
|
|
if not OrderBuffer.IsTemporary() then
|
|
Error('ResetStagingBuffer requires a temporary Sales Header; a persistent record was passed.');
|
|
|
|
OrderBuffer.DeleteAll();
|
|
end;
|
|
}
|