on 08-03-2023 7:22 AM
Hi.
Currently the default series when we creates Purchase request is 'Primary'. But now I need to separate it if IT department then they need to use 'Indirect' series that I already created. Right now my user need to manually select the series and sometimes they forgot to choose 'Indirect'.
can someone help me the formatted search query? i am using below query but its not working
SELECT T0.Series
FROM OPRQ T0
WHERE T0.DocEntry = $[OPRQ.DocEntry]
AND T0.department = '15'
Hi,
Try this
select case when
(select T0.Department from OUSR T0 where T0.USER_CODE=$[OPRQ.Requester]) ='15'
then 'Indirect'
else 'Primary'
end
Hope this helps,
Son Tran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.