refactored to associate multiple accounts to an apartmentgroup
fixed issue when inserting an invoice dividing exactly to the no of apartments