Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

How to properly sum Sales Order and Credit Returns

$
0
0

Hello everyone,

 

I have a formula where it sums the sales orders for the corresponding year

if year({ORDR.DocDate}) =year(currentdate) and year({ORIN.DocDate})=year(currentdate) then

({ORDR.DocTotal}-{ORDR.TotalExpSC})-{ORIN.DocTotal}

 

I am trying to add credit returns so that it takes that into account; however, as is, formula is subtracting credit return amount from each line.

How can I modify this formula so that credit return is subtracting only once for the corresponding year?


Viewing all articles
Browse latest Browse all 4814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>