Character Attribute System

How I add function to add Current XP in Level instead of Required XP to next level.
In other words, change RequiredXP function to CurrentXP. I have the Order ID.