Skip to main content
Question

Assigning default branch to Purchase Receipts using workflow engine

  • May 29, 2023
  • 2 replies
  • 119 views

Forum|alt.badge.img

Hi,

Looking into automatically filling the Branch field (Others tab) in Purchase Receipts based on the branch of the user receiving it, as opposed to defaulting from Purchase Order.

Workflow seems like a reasonable solution, and I have been referring to this guide, but that seems to only be for fixed values. Any idea on how to make the default value change depending on the current user’s branch?

2 replies

aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • May 29, 2023

AccessInfo.BranchID provides the currently logged in branch


dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • June 2, 2023

I dont think you need to use the Workflow just customise the attributes on the Branch field on the purchase receipt. We needed to populate the owner on the purchase receipt with the current user so done it below