简体   繁体   中英

total price in crystal report

I try to get total of sale price in crystal report. In sale price column amount is displayed by quantity*net price = net value now if one sale order have multiple items then i want sum of all these sale price behalf of sale order

this is what i do

sale order   customer  mat name sale price
12223123     abc        books      120
112312342    xyz        comp        100
112312342    xyz        mouse        40

this is what i want

sale order   customer  mat name sale price   total
12223123     abc        books      120       120
112312342    xyz        comp        100      140*
112312342    xyz        mouse        40


*100+40=140

how i do this in crystal report???

and the query which i tried.

SELECT
    customer.custname1,ordhdeader.saleorder,material.matname,orddetail.netvalue as sale price
FROM
    ordhdeader
     left  join orddetail on  
    ordhdeader.saleorder = orddetail.saleorder 

      left   join customer on  ordhdeader.custno = customer.custno 
     left   join material on orddetail.matno=matmst.matno

In field explore create a new Running total formula and give it a name.

Select sale_price in field to summarize part and type of summary is sum

In Evaluate select on change of field in that select each record

In Reset select sale order field

Place the running total on design

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM