-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
In the "CFONB" (french bank norm concil) it states that the "PaymentInformation" block may be repeated.
Reading the code, it would be quite a remake...
1/ On my side, build several SepaSDD, and "merge" XMLs.
2/ On Project Side, add a layer to code, such as :
import datetime, uuid
config1 = {
"name": "Test von Testenstein 1",
"IBAN": "NL50BANK000000001",
...
}
config2 = {
"name": "Test von Testenstein 2",
"IBAN": "NL50BANK000000002",
...
}
## This creates a sepa and adds first creditor as config1.
## This is supposed to be exactly as "before", not breaking working code everywhere :-)
sepa = SepaDD(config1, schema="pain.008.001.02", clean=True)
sepa.add_payment(payment_a)
sepa.add_payment(payment_b)
sepa.add_payment(payment_c)
## we define a new creditor from now on...
sepa.new_creditor(config2)
sepa.add_payment(payment_d)
print(sepa.export(validate=True))
Metadata
Metadata
Assignees
Labels
No labels