mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
Seed a new breaking-changes (AL API stability) knowledge domain with six articles plus good/bad AL samples, a new al-breaking-changes-review leaf skill, and minimal wiring into al-code-review and the README. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
10 lines
375 B
AL
10 lines
375 B
AL
codeunit 50301 "Discount Api Bad"
|
|
{
|
|
// Breaking: a Rate parameter was added to a procedure that already shipped.
|
|
// Every dependent extension that called CalculateDiscount(Amount) now fails
|
|
// to compile until it is changed and recompiled.
|
|
procedure CalculateDiscount(Amount: Decimal; Rate: Decimal): Decimal
|
|
begin
|
|
exit(Amount * Rate);
|
|
end;
|
|
}
|