Fixing PurchaseInvoice