Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi
I have a winform invoice, it calculate correctly and show total invoice ...

After save I have to print the invoice

I use the store procedure

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[PrintInvoice]

@iInvoiceno int

AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SELECT *
FROM dbo.acc_Invoice_v
Where dbo.acc_Invoice_v.iInvoiceno = @iInvoiceno
Order by dbo.acc_Invoice_v.iLine
END

acc_Invoice_v is a view for parent and child invoice for multiple items

when print crystal report the total invoice is wrong which is not as shown on the screen and saved

the total invoice is a field in the view

thanks in advance
Posted
Comments
Sinisa Hajnal 4-Aug-15 2:25am    
Do you get correct items back? That is, is your view correct? CR only shows the data (assuming you don't do some additional processing), the problem is in the query.
ahmad zrein 4-Aug-15 13:03pm    
no additional process just fire the crystal report, for the view it show all items on invoice but the total is incorrect

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900