Click here to Skip to main content
15,902,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am generating invoice. i am stuck in maintaining that table. i have purchased product in gridview.(which can be more than one) and other common fields are (client name,Due date,Issue date) then i am calculating that items price with discount and shipping charge outside the datagridview.

in short ,i am storing items with their unit price and quantity in one table.
and total of all purchased items with discount,shiping charge on that total i am storing in another table.

now i am facing problem in generating rdlc report.becasue it takes only one table.(i have two. i.e saleproduct and main table)

now i am confused how to show final invoice with rdlc report.

What I have tried:

these are my tables:
saleproduct:
Product_Name,
Description,
Unit_Price,
Qty,
Total,
Tax,
TotalwithTax

2)Main table:
MainId,
Client_Name
Billing_Address,
Shipping_Address,
Doc_No,
Issue_Date,
Payment_Term,
Due_Date,
Discount,
Shipping,
SubTotal,
total



please suggest me something. i should change table or give it relation to make it one table.
Posted
Updated 28-Jun-16 1:31am
Comments

1 solution

All you need to do is write a stored procedure that joins as many tables as you need to and then use that stored procedure as your datasource.
 
Share this answer
 

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