When approving purchase invoices, the 'Created by' field was mistakenly filled with the user who approved

When approving purchase invoices, the Created by field was mistakenly filled with the user who approved. This field should only be filled with the user who created the outstanding item. Now, when approving, only the Changed by field of the outstanding item line is filled with the user who approved.