Skip to content

Commit bf769c2

Browse files
Merge pull request #3562 from jeffreybulanadi/fix-item-charges-with-deprecation-note
Add deprecation note for with statement in item charges example
2 parents cb56926 + b228191 commit bf769c2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dev-itpro/developer/devenv-extending-item-charges.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ codeunit 50100 "Item Ch. Assign by Fairy Dust"
6969
## To add a new distribution method for item charges
7070
In the new codeunit, add functions to distribute the charges over the item lines.
7171

72+
> [!NOTE]
73+
> The `GetItemValues` procedure in the example below uses a `with` statement, which is deprecated since Business Central 2020 release wave 2. In new code, qualify field access with the record variable name instead. Learn more in [Deprecating explicit and implicit with statements](devenv-deprecating-with-statements-overview.md).
74+
7275
```AL
7376
local procedure AssignByFairyDust(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; Currency: Record Currency; TotalQtyToAssign: Decimal; TotalAmtToAssign: Decimal)
7477
var

0 commit comments

Comments
 (0)