mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-07 09:56:52 +01:00
Correct high-confidence Business Central guidance and samples for upgrade tags, collectible errors, trigger semantics, obsoletion, events, interfaces, API contracts, and test transactions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e05a43e7-6448-4d67-9c73-798523f5d945
15 lines
550 B
AL
15 lines
550 B
AL
codeunit 50305 "Net Amount Api Good"
|
|
{
|
|
// Old name kept during the warning window. The tag records when obsoletion
|
|
// began; a later release deletes the method after consumers have migrated.
|
|
[Obsolete('Use CalculateNetAmount instead.', '25.0')]
|
|
procedure CalcNet(GrossAmount: Decimal; TaxRate: Decimal): Decimal
|
|
begin
|
|
exit(CalculateNetAmount(GrossAmount, TaxRate));
|
|
end;
|
|
|
|
procedure CalculateNetAmount(GrossAmount: Decimal; TaxRate: Decimal): Decimal
|
|
begin
|
|
exit(GrossAmount / (1 + TaxRate));
|
|
end;
|
|
}
|