Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the local access modifier for a procedure #196

Open
FadiAleid opened this issue Jun 9, 2023 · 0 comments
Open

Remove the local access modifier for a procedure #196

FadiAleid opened this issue Jun 9, 2023 · 0 comments

Comments

@FadiAleid
Copy link

Hi
Can you please remove the local access modifier from procedure AssignPurchItemCharge in codeunit 5805 "Item Charge Assgnt. (Purch.)"?

// >>>>>>>>>>
local procedure AssignPurchItemCharge(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; ItemChargeAssgntPurch2: Record "Item Charge Assignment (Purch)"; Currency: Record Currency; var QtyRemainder: Decimal; var AmountRemainder: Decimal)
begin
ItemChargeAssgntPurch.Get(
ItemChargeAssgntPurch2."Document Type",
ItemChargeAssgntPurch2."Document No.",
ItemChargeAssgntPurch2."Document Line No.",
ItemChargeAssgntPurch2."Line No.");
ItemChargeAssgntPurch."Qty. to Assign" := Round(ItemChargeAssgntPurch2."Qty. to Assign", UOMMgt.QtyRndPrecision());
ItemChargeAssgntPurch."Amount to Assign" :=
ItemChargeAssgntPurch."Qty. to Assign" * ItemChargeAssgntPurch."Unit Cost" + AmountRemainder;
AmountRemainder := ItemChargeAssgntPurch."Amount to Assign" -
Round(ItemChargeAssgntPurch."Amount to Assign", Currency."Amount Rounding Precision");
QtyRemainder := ItemChargeAssgntPurch2."Qty. to Assign" - ItemChargeAssgntPurch."Qty. to Assign";
ItemChargeAssgntPurch."Amount to Assign" :=
Round(ItemChargeAssgntPurch."Amount to Assign", Currency."Amount Rounding Precision");
ItemChargeAssgntPurch."Qty. to Handle" := ItemChargeAssgntPurch."Qty. to Assign";
ItemChargeAssgntPurch."Amount to Handle" := ItemChargeAssgntPurch."Amount to Assign";
ItemChargeAssgntPurch.Modify();
end;
// <<<<<<<<<<

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant