Checked the Inventory workback and find the cause of incorrect data in Set items, I tried to check all the transactions of set items and it was extracting correct data. Then I found that in the table inventory_facts was need to add the field cpno as the primary key