apply highlighting and showing supplier name to invoice pdf
This commit is contained in:
parent
45db0575b1
commit
a65120eefc
9 changed files with 96 additions and 72 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue