Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Approval Procedure Query

$
0
0

Dear All,

 

I have created an approval procedure on PO based on total amount as below.

 

SELECT 'TRUE' where exists (

  SELECT T0.CardCode FROM OCRD T0

  WHERE T0.CardCode=$[$4.0.0] AND ($[opor.doctotal.number]-$[opor.vatsum.number]) between 0 and 250000)

 

The requirement is to check the amount based on currency, for example:

a. if AED then the amount is between 0 and 100000

b. if EUR then it's between 10000 and 50000

c. etc.

 

How should i proceed with it?  Please advise.

 

Note: LC - USD

 

Thanks and Regards,

Lailus


Viewing all articles
Browse latest Browse all 9236

Trending Articles