Hi
I have two tables issue and receive how to show balance (issue qty )- (receive qty) balance in radgridview
issue Table
IssueId | MaterialId | ItemId | LotNo | IssueWt | IssueQty |
1 | 1 | 9 | 22050001 | 100 | 1 |
2 | 1 | 11 | 22050002 | 75 | 1 |
3 | 1 | 13 | 22050003 | 15 | 1 |
4 | 1 | 5 | 22050003 | 1 | 1 |
5 | 1 | 17 | 22050003 | 1 | 1 |
Receive Table
ReceiveId | MaterialId | ItemId | LotNo | ReceiveWt | ReceiveQty |
1 | 1 | 7 | 22050001 | 75 | 1 |
2 | 1 | 16 | 22050002 | 25 | 1 |
3 | 1 | 2 | 22050003 | 10 | 1 |
4 | 1 | 17 | 22050003 | 1 | 1 |
5 | 1 | 17 | 22050003 | 1 | 1 |
6 | 1 | 17 | 22050003 | 1 | 1 |
Output
Lot No | IssueWt | ReceiveWt | Balance |
22050001 | 100 | 75 | 25 |
22050002 | 75 | 25 | 50 |
22050003 | 17 | 13 | 4 |