bcquality/microsoft/knowledge/scm/cancel-reservations-through-reservation-management.bad.al
Jesper Schulz-Wedde bec8890b7e
Add SCM functional knowledge domain (#192)
* 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>

* Normalize SCM knowledge and review ownership

Align article and AL sample conventions, keep BC facts separate from review mechanics, and clarify reciprocal Finance ownership without bespoke shared test assertions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-21 10:16:44 +02:00

13 lines
477 B
AL

codeunit 50106 "SCM Cancel Reservation Bad"
{
procedure CancelSalesReservation(ReservationEntryNo: Integer)
var
ReservationEntry: Record "Reservation Entry";
begin
ReservationEntry.Get(ReservationEntryNo, false);
ReservationEntry.TestField("Source Type", Database::"Sales Line");
ReservationEntry.TestField("Reservation Status", ReservationEntry."Reservation Status"::Reservation);
ReservationEntry.Delete(true);
end;
}