First working version of allow invoice management