https://docs.erpnext.com/docs/user/manual/en/purchase-invoice#4-6-provisional-accounting-for-expenses-only-for-non-stock-items-
Have you got the solution?