fix issues for receipt and invoice