mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Three Microsoft-layer articles with good/bad samples: - error-handling/declined-confirm-must-abort-not-partially-apply - data-modeling/delete-master-data-with-trigger - data-modeling/master-data-must-be-inserted-with-trigger Wire targeted worklist cues into al-error-handling-review and al-data-modeling-review and register the samples in review-fixtures.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
402 B
AL
12 lines
402 B
AL
codeunit 50100 "Sample Currency Cleanup"
|
|
{
|
|
procedure DeleteRetiredCurrencies(CurrencyFilter: Text)
|
|
var
|
|
Currency: Record Currency;
|
|
begin
|
|
Currency.SetFilter(Code, CurrencyFilter);
|
|
// RunTrigger defaults to false: Currency.OnDelete never runs, so the
|
|
// open-entry guard is skipped and exchange rates are left orphaned.
|
|
Currency.DeleteAll();
|
|
end;
|
|
}
|