fixed cs_writer total invoiced