You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## To add a new distribution method for item charges
70
70
In the new codeunit, add functions to distribute the charges over the item lines.
71
71
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
+
72
75
```AL
73
76
local procedure AssignByFairyDust(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; Currency: Record Currency; TotalQtyToAssign: Decimal; TotalAmtToAssign: Decimal)
0 commit comments