Skip to main content
Solved

Connecting Expense Receipt & Assigned Approver in a Custom GI

  • October 13, 2022
  • 4 replies
  • 316 views

Laura Carpenter
Varsity II
Forum|alt.badge.img

I am looking to join the ApproverEmployee DAC with my custom GI so I can see the required Assignee ID for the expense receipt.  I have figured out that the ApprovedEmployee DAC is hidden but I don’t have any other ideas how to gather that data and associate it with the receipt.  I have the screenshots below of the field I am looking for along with the tables & relationships for my custom GI.

 

 

Best answer by BenjaminCrisman

@Laura Carpenter I found that all I needed was a condition on the GI to show the approvals which are in a pending status:

This meant that because the other line showed as approved, it wouldn’t appear.

If there was a third step, then once the second was approved, that would drop off and the new approval would take its place.

The Expense I was working with:

With that condition off:
 

With the condition on:

 

View original
Did this topic help you find an answer to your question?

4 replies

BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • 711 replies
  • October 13, 2022

Hi @Laura Carpenter! For this information you’ll need to join to EPApproval, this should have the information you’re looking for.

I believe the join is EPExpenseClaim to EPApproval on NoteID = RefNoteID (or that could be backward 😉)


Laura Carpenter
Varsity II
Forum|alt.badge.img

Thanks @BenjaminCrisman.  I was able to join the EPExpenseClaimDetails with the EPApproval with an inner join and with the noteID and refNoteID relations as you suggested.  We have a 2 step approval process for our expense receipts so I did need to do some conditioning with the fields so I only saw 1 record per expense receipts but I think I have it figured out.  Would there be a way to join the tables and use conditioning in the relations of the tables to only see 1 line in the results grid for the first approval that is pending?  An example would be when the first approval step is pending, it would show that assigned approver and after the first approval is complete, the line would then reflect the second assigned approver?  What I am asking for is what I am accomplishing with my condition on the GI (ApproverID is empty) but once the approvals are done, the receipt will disappear from my GI because it no longer meets the condition that “ApproverID is empty”.


BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • 711 replies
  • Answer
  • October 13, 2022

@Laura Carpenter I found that all I needed was a condition on the GI to show the approvals which are in a pending status:

This meant that because the other line showed as approved, it wouldn’t appear.

If there was a third step, then once the second was approved, that would drop off and the new approval would take its place.

The Expense I was working with:

With that condition off:
 

With the condition on:

 


Laura Carpenter
Varsity II
Forum|alt.badge.img

@BenjaminCrisman Thanks so much for your reply.  That was super helpful.  I wanted to be able to see 1 line for every expense receipt regardless of the status.  I took what you did and expanded on it.  Here is a snapshot of what I ended up with for my conditions.

 

I was able to use the StepID descriptions to filter out the lines that I wanted for the Open and Released Statuses. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings