aspettl / delphi-sepa-xml Goto Github PK
View Code? Open in Web Editor NEWDelphi-Unit zur Erstellung von SEPA-XML-Dateien
License: Other
Delphi-Unit zur Erstellung von SEPA-XML-Dateien
License: Other
If special characters are allowed and in the Mandate ID is an '&' it will not be excaped. So in the Field MndtID is a string with an unescaped '&' wich is not a valid SEPA-XML.
We need the "BtchBookg" parameter in XML output. We have changed source on our side, please add it to your code:
TCreditTransferPaymentInformation = class
private
...
fBtchBookg:string; // set it to "false" in onCreate
public
...
property BtchBookg: String read fBtchBookg write fBtchBookg;
...
and write it to XML right after "PmtMtd"
procedure TCreditTransferPaymentInformation.SaveToStream(const stream: TStream; const schema: String);
begin
SEPAWriteLine(stream, '');
SEPAWriteLine(stream, ''+SEPACleanString(PmtInfId)+'');
SEPAWriteLine(stream, ''+SEPACleanString(PmtMtd)+'');
//>>
SEPAWriteLine(stream, ''+SEPACleanString(fBtchBookg)+'');
in Current version your CharIsSEPAWhitelisted() function is removing the ; character, if we escape the strings like:
"CustomerCompany GmbH & Co. KG" to "CustomerCompany GmbH & amp; Co. KG"
after output it is written as "CustomerCompany GmbH & Co. KG" and the ; is missing.
Without escaping the & char the xml-file cannot be validated.
Add ; to your CharisSEPAWhitelisted() and everything works.
ps: Note that we had to insert a space between & and amp in above example to show it here ...
We have disabled your lines:
// if (CdtrAgt.OthrID = FIN_INSTN_NOTPROVIDED) and not SEPAIsGermanIBAN(CdtrAcct.IBAN) then Result.Append(INVALID_IBAN_NOT_DE);
because we're using this also with ibans in Luxembourg, Austria etc, its working so why should we show that warning ... remove it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.