No default salesrep_id in PO/SO,Invoice when using 'Change Role'

Description

The system automatically populates the salesrep_id (Sales Rep in SO, Company Agent in PO) with the current user as default value when creating sales orders, purchase orders or invoices. However, it does not populate a default value when using the 'Change Role' function and when logging in again. The salesrep_id remains blank.

Environment

None

Activity

Show:

Michael Powacht March 18, 2021 at 12:34 AM

Thanks to all involved for fixing this bug!

Michael Powacht March 11, 2021 at 10:05 AM

Interesting, thanks a lot Carlos!

Carlos Ruiz March 11, 2021 at 9:56 AM

Indeed, compared the context after login with the context after change role and found the following variables are missing:

#AD_Client_Name
#AD_Role_Name
#AD_User_Name
#SalesRep_ID
#User_Level
SERVER_CONTEXT_URL_HANDLER

The lack of these variables could have a bad effect on some parts of the application, so raising the priority.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created March 11, 2021 at 6:00 AM
Updated May 1, 2021 at 10:01 AM
Resolved March 15, 2021 at 1:42 PM