This commit is contained in:
Nicolas Bally 2020-03-11 09:39:44 +01:00
parent 6f5f5b9363
commit 15e059f7a0

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"> <Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"><pain.001.001.02>
<pain.001.001.02> <pain.001.001.02>
<GrpHdr> <GrpHdr>
<MsgId><%=@prelevement_date.strftime("%d/%m/%Y").to_slug %>-<%= @m_odr_remise.id %></MsgId> <MsgId><%=@prelevement_date.strftime("%d/%m/%Y").to_slug %>-<%= @m_odr_remise.id %></MsgId>
@ -48,22 +48,25 @@
<% @m_odr_virements.all.each do |m_odr_virement| %> <% @m_odr_virements.all.each do |m_odr_virement| %>
<CdtTrfTxInf> <CdtTrfTxInf>
<PmtId> <PmtId>
<InstrId>ABC<%= m_odr_virement.token %></InstrId>
<EndToEndId><%= m_odr_virement.token %></EndToEndId> <EndToEndId><%= m_odr_virement.token %></EndToEndId>
</PmtId> </PmtId>
<Amt> <Amt>
<InstdAmt Ccy="EUR"><%= '%.2f' % m_odr_virement.amount %></InstdAmt> <InstdAmt Ccy="EUR"><%= '%.2f' % m_odr_virement.amount %></InstdAmt>
</Amt> </Amt>
<Cdtr>
<Nm><%= m_odr_virement.m_odr_rep.long_name %></Nm>
</Cdtr>
<CdtrAgt> <CdtrAgt>
<FinInstnId> <FinInstnId>
<BIC><%= m_odr_virement.bic_to %></BIC> <BIC><%= m_odr_virement.bic_to %></BIC>
</FinInstnId> </FinInstnId>
</CdtrAgt> </CdtrAgt>
<Cdtr>
<Nm><%= m_odr_virement.m_odr_rep.long_name %></Nm>
</Cdtr>
<CdtrAcct> <CdtrAcct>
<Id> <Id>