Revert "Revert "fixed the invoice view""

This reverts commit 24d2f1b660f1428caa026d57ffc9da939e5e58e4.