adjust Sepa XML for multi order
This commit is contained in:
parent
a65120eefc
commit
d648f1bd55
1 changed files with 4 additions and 1 deletions
|
|
@ -23,6 +23,9 @@ class OrderCollectiveDirectDebitXml
|
||||||
creditor_identifier: FoodsoftConfig[:group_order_invoices][:creditor_identifier],
|
creditor_identifier: FoodsoftConfig[:group_order_invoices][:creditor_identifier],
|
||||||
)
|
)
|
||||||
group_orders.each do |group_order|
|
group_orders.each do |group_order|
|
||||||
|
if group_order.class == MultiGroupOrder
|
||||||
|
remittance_information = "#{group_order.ordergroup_invoice.invoice_number} #{group_order.multi_order.name}"
|
||||||
|
end
|
||||||
next if group_order.price == 0
|
next if group_order.price == 0
|
||||||
|
|
||||||
sdd.add_transaction(
|
sdd.add_transaction(
|
||||||
|
|
@ -55,7 +58,7 @@ class OrderCollectiveDirectDebitXml
|
||||||
|
|
||||||
# OPTIONAL: Unstructured remittance information, in German "Verwendungszweck"
|
# OPTIONAL: Unstructured remittance information, in German "Verwendungszweck"
|
||||||
# String, max. 140 char
|
# String, max. 140 char
|
||||||
remittance_information: "#{group_order.group_order_invoice.invoice_number} #{group_order.order.supplier.name}",
|
remittance_information: remittance_information || "#{group_order.group_order_invoice.invoice_number} #{group_order.order.supplier.name}",
|
||||||
|
|
||||||
# Mandate identifikation, in German "Mandatsreferenz"
|
# Mandate identifikation, in German "Mandatsreferenz"
|
||||||
# String, max. 35 char
|
# String, max. 35 char
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue