Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEPOT - AquisitionPreis funktioniert für einige Banken nicht + FIX #464

Open
SegFaulty opened this issue Nov 17, 2024 · 0 comments
Open

Comments

@SegFaulty
Copy link

getDepot->getStatement()->getHoldings()->[]->getAcquisitionPrice()

erwartet das Format:

:70E::HOLD//1STK23,968293+EUR

einige Banken (z.b. DKB) und die Beispiele unter https://www.hbci-zka.de/dokumente/spezifikation_deutsch/fintsv3/FinTS_3.0_Messages_Finanzdatenformate_2010-08-06_final_version.pdf (Seite 162) liefern aber ein solches Format:

:70E::HOLD//1STK+805+00028+LU+20240822+
22,5624+EUR+
3
4

ich habe das für mich so gefixed:
nemiah/php-fints/lib/Fhp/MT535/MT535.php Line 50:

old:
if (preg_match('/:70E::HOLD\/\/\d*STK2(\d*),(\d*)\+([A-Z]{3})/sm', $block, $iwn)) {

new:
if (preg_match('/:70E::HOLD\/\/1STK(?:\+.*)?2(\d+),(\d+)\+([A-Z]{3})/sm', $block, $iwn)) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant