Skip to content

[Master] - Slice 640938: [Expense Agent][VENDOR] Adding approval limits (November '26) - #11639

Open
v-rohangarg20 wants to merge 3 commits into
mainfrom
features/Slice-640938-Expense-Agent-Adding-Approval-Limits-V2
Open

v-rohangarg20 wants to merge 3 commits into
mainfrom
features/Slice-640938-Expense-Agent-Adding-Approval-Limits-V2

Conversation

@v-rohangarg20

@v-rohangarg20 v-rohangarg20 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

@v-rohangarg20
v-rohangarg20 marked this pull request as ready for review September 21, 2026 08:10
@v-rohangarg20
v-rohangarg20 requested a review from a team as a code owner September 21, 2026 08:10
@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 Team: Finance GitHub request for Finance area labels Sep 21, 2026
@github-actions github-actions Bot modified the milestone: Version 30.0 Sep 21, 2026
Caption = 'Approval Information';
Visible = Rec."Can Approve";

field("Approval Limit"; Rec."Approval Limit")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to call this LCY for additional clarity? Not sure what we do for other similar fields.

Also, do we need to add a specific format to the field here?

exit(ExpenseApprovalSetup."Approver No.");

ExpenseAgentSetup.GetRecordOnce();
exit(ExpenseAgentSetup."Default Approver No.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes slightly the semantic of default approver. Double check with PM that they agree with this fallback.

ApproverExpenseUserNo := GetExpenseUserNo();
CheckActorIsNotInterimApprover(ExpenseReportHeader, ApproverExpenseUserNo);
CheckActorIsActiveApprover(ExpenseReportHeader, ApproverExpenseUserNo);
CheckApproverApprovalLimit(ExpenseReportHeader, ApproverExpenseUserNo);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would happen if a report is sent for my approval, and then while that's pending, my approval limit is changed?

ApproverExpenseUser.Get(ExpenseReportHeader."Approver Expense User No.");
ExpenseReportHeader.CalcFields("Amount (LCY)");

while not ApproverExpenseUser."Unlimited Approval" and (ExpenseReportHeader."Amount (LCY)" > ApproverExpenseUser."Approval Limit") do begin

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In upgraded environments, this means nobody will be able to approve by default because they will all have approval limit 0 and unlimited approval false? Please check with PM that this is acceptable behaviour. It's true that we are in preview, but this might add some friction to customers already using the feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 Team: Finance GitHub request for Finance area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants