add saving invoice after checkout submit

[re #homework_5]