In the sending company, in System: Base registers/General/Company specific registers/Parameters under the tab E-invoice, check the box "Subtotals on fees/purchases/other".