expense vs cost

expense vs cost

I deal with computer hardware and software, and i buy from various sources, is there a way to keep track of what i purchase from a vendor and tie it to a invoice 

Example

Customer 1 wants upgraded memory, 

i purchase memory from amazon.com

it is $40.00

can i tie that expense to a invoice but not show the actual cost i would like it to include my selling cost to my customer so that way they don't see that i only paid "X amount of $$ for the purchase instead of there purchase price"

Thank you