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

Re: Convert float data type in formula to Money type

$
0
0

Hi,

 

Would you mind converting the example below so i have two of you answers to work with pls.

Thanks

 

WhilePrintingRecords;

numberVar totalgoods;

 

 

if ( {?SP_INVCREDNEG} = 0 and {delvitems.dqty} < 0.0 ) and {delv.dcurrency} <> {?SP_LEHOMECURR} then

          totalgoods := totalgoods + ROUND(    ( {delvitems.diforeignprice} * -1 ), {currency.currvaldp}    )

else if ( {?SP_INVCREDNEG} = 0 and {delvitems.dqty} < 0.0 ) and {delv.dcurrency} = {?SP_LEHOMECURR} then

          totalgoods := totalgoods + ROUND(    ( {delvitems.dtpr} * -1 ), {currency.currvaldp}    )

else if {delv.dcurrency} <> {?SP_LEHOMECURR}  then

          totalgoods := totalgoods + ROUND(    ( {delvitems.diforeignprice} ), {currency.currvaldp}    )

else

          totalgoods := totalgoods + ROUND(    {delvitems.dtpr}, {currency.currvaldp}    )

 


Viewing all articles
Browse latest Browse all 8950

Trending Articles



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