optimize invoice rendering, RT#80177