apply highlighting and showing supplier name to invoice pdf

This commit is contained in:
viehlieb 2025-05-22 14:55:35 +02:00
parent 45db0575b1
commit a65120eefc
9 changed files with 96 additions and 72 deletions

View file

@ -118,7 +118,7 @@ class MultiOrdersController < ApplicationController
format.xml do
multi_group_orders.map(&:ordergroup_invoice).each(&:mark_sepa_downloaded)
collective_debit = OrderCollectiveDirectDebitXml.new(multi_group_orders)
send_data collective_debit.xml_string, filename: @multi_order.orders.first.name + '_Sammellastschrift' + '.xml', type: 'text/xml'
send_data collective_debit.xml_string, filename: @multi_order.name + '_Sammellastschrift' + '.xml', type: 'text/xml'
rescue SEPA::Error => e
multi_group_orders.map(&:ordergroup_invoice).each(&:unmark_sepa_downloaded)
render json: { error: e.message }