Settings > Project and Budget Settings > Settings Window - Project > Change the Way Amounts are Allocated to Projects

Change the Way Amounts are Allocated to Projects

Select the transaction type you want to change the project allocation method for: