Stock change and consideration in Profit and loss display

Hi,

Every item we buy via purchase inv. booked in account 1020 (stock finished goods), Sales inv. for that particular item is booked out from account 4000. Unfortunately items are not booked off 1020 nor is it considerate as expenses so profit analyse is entirely wrong. 

Suggestions what needs to change?

Thanks in advanced,

JC