tilakrajsingh
IS-IT--Management
Hi
I am creating a stock statement for a particular period using SQL 2000 store procedure with Crystal report.
I have :
Table : Product -> with field: pr_item
pr_opening (stock as on
year starting
date)
........
Table : grnote >- with field :wt_received (all receipts)
............
table : issue-> with field : wt_issue (all issues)
........
Now i want to print a stock statement for each item as follows :
Stock statement for period of 01-june-03 to 30-sep-03
===========================================================
Item Code | name | opening balance|
-------------------------
|transaction date|recd |issue | closing Bal
-------------------------------------------------------
xxxxxxxx | xxxxxx 000000.00
-------------------------
xxxxxxx|dd/mm/yy|00.00|00.00 | 0000.00
===========================================================
=> Opening balance = Pr_opening + total receipt (from year start date to 31-may-03) - total issue (from year start date to 31-may-03)
=> Closing balance = Calculated Opening + total receipt (01-june-03 to 30-Sep-03)
I have done so far :-
i am combining both the tables in a stored procedure with the help of UNION. all parameters (i.e. sdate,edate, sItem, eItem etc) are defined in crystal report.
report is coming fine but i am not finding a way to calculate the Opening balance for a item for a specific period...
Kindly help me to get rid of this problem....
I will be greatfull.
Tilak Raj
I am creating a stock statement for a particular period using SQL 2000 store procedure with Crystal report.
I have :
Table : Product -> with field: pr_item
pr_opening (stock as on
year starting
date)
........
Table : grnote >- with field :wt_received (all receipts)
............
table : issue-> with field : wt_issue (all issues)
........
Now i want to print a stock statement for each item as follows :
Stock statement for period of 01-june-03 to 30-sep-03
===========================================================
Item Code | name | opening balance|
-------------------------
|transaction date|recd |issue | closing Bal
-------------------------------------------------------
xxxxxxxx | xxxxxx 000000.00
-------------------------
xxxxxxx|dd/mm/yy|00.00|00.00 | 0000.00
===========================================================
=> Opening balance = Pr_opening + total receipt (from year start date to 31-may-03) - total issue (from year start date to 31-may-03)
=> Closing balance = Calculated Opening + total receipt (01-june-03 to 30-Sep-03)
I have done so far :-
i am combining both the tables in a stored procedure with the help of UNION. all parameters (i.e. sdate,edate, sItem, eItem etc) are defined in crystal report.
report is coming fine but i am not finding a way to calculate the Opening balance for a item for a specific period...
Kindly help me to get rid of this problem....
I will be greatfull.
Tilak Raj