How to get final data from Db

hi, I am working on inventory management .which consists of purchases ,stockout and currentstock . Above image is purchase stockin page  Next  stockout page    And next is currentstock page .in this page am showing units of purchase,units of stockout and current stockout units I am showing all this data from database only  but In the stock out page if i take more units on the same Itemcode . its not reflecting in Currentstock page  so how to resolve this problem    thanks  
1 answers


Make sure to set the association properly & commit the data in the Stock out page after incrementing the units on Itemcode.