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

Re: Sales Order Approval- Gross Profit Margin % in Item Level

$
0
0

Hi Jeyabalan,

 

You will have to create a UDF on OITM for the minimum GP percentage. Then you will have to create 2 UDFS in the document row. In the first you'll have to copy the minimum percentage from the OITM with a FMS like:

 

SELECT U_MinGP FROM OITM WHERE ItemCode = $[$38.1]

 

In the second UDF you will have to calculate the GP percentage with a FMS like this:

 

SELECT  ($[$38.123.number] /  $[$38.11.number] * $[$38.14.number])/100

 

Then you will have to create a query for the approval template.

 

SELECT Distinct 'True' FROM RDR1 WHERE $[RDR1.U_GP] < $[RDR1.U_MinGP]

 

app.png

 

Kind regards,

 

Andy Grootens

Asecom


Viewing all articles
Browse latest Browse all 2069

Trending Articles