invoice partially working