fixed invoice rake task to handle multiple invoices in bek's server