sum invoice lines then sum, instead of applying discount on each line then sum