Why Budgeting not working in erpnext v7

I have added a budgeting in for account sales expense

and i tried to add the purchase invoice with expense head as sales expense in item child table in purchase invoice but whenever i saves it expense head is resetting Stock Received But Not Billed - S can any one help me why is this happening due to this reason budgeting is not working.

You have enabled perpetual inventory. Thats why, the system is resetting expense account as Stock Received But Not Billed. As per perpetual inventory method, the expenses are booked on delivery of the item via Delivery Note.

@nabinhait thanks it worked