Receipt for invoice/sale

Could you make this code cleaner?  It doesn't abide by our styleguide.