>Unfortunately I don't understand this and previous msgs.
>Cetin
Sorry to have been unclear. Say an item of qty 50 is in cases no. 2 (icasefrom) and 3 (icaseto) as per data-entry, in actual the case 2 will contain 25 qty and 3 will also contain 25 qty. In the original idea the qty will always show as 50 in both the slips which is not true.
Also in the second code I pasted I have removed a few of the logics and pulled the data from the array straight into the view which I will be using in ReportManager.