File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ module Secretariat
3535 :payment_terms_text ,
3636 :payment_due_date ,
3737 :payment_iban ,
38+ :payment_bic ,
39+ :payment_payee_account_name ,
3840 :tax_category ,
3941 :tax_percent ,
4042 :tax_amount ,
@@ -265,9 +267,15 @@ def to_xml(version: 1, validate: true)
265267 xml [ 'ram' ] . SpecifiedTradeSettlementPaymentMeans do
266268 xml [ 'ram' ] . TypeCode payment_code
267269 xml [ 'ram' ] . Information payment_text
268- if payment_iban
270+ if payment_iban || payment_payee_account_name
269271 xml [ 'ram' ] . PayeePartyCreditorFinancialAccount do
270- xml [ 'ram' ] . IBANID payment_iban
272+ xml [ 'ram' ] . IBANID payment_iban if payment_iban
273+ xml [ 'ram' ] . AccountName payment_payee_account_name if payment_payee_account_name
274+ end
275+ end
276+ if payment_bic
277+ xml [ 'ram' ] . PayeeSpecifiedCreditorFinancialInstitution do
278+ xml [ 'ram' ] . BICID payment_bic
271279 end
272280 end
273281 end
Original file line number Diff line number Diff line change @@ -345,6 +345,8 @@ def make_negative_de_invoice
345345 payment_reference : 'INV 123123123' ,
346346 payment_iban : 'DE02120300000000202051' ,
347347 payment_terms_text : "Wir zahlen die Gutschrift unmittelbar aus" ,
348+ payment_bic : 'BYLADEM1001' ,
349+ payment_payee_account_name : 'Depfu inc' ,
348350 tax_category : :STANDARDRATE ,
349351 tax_amount : BigDecimal ( '-38' ) ,
350352 basis_amount : BigDecimal ( '-200' ) ,
You can’t perform that action at this time.
0 commit comments