Allow for ClieOp export with empty reference

Bug #814009 reported by Stefan Rijnhart (Opener)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Account Banking Framework
New
Undecided
Unassigned

Bug Description

The current version of ABF does not seem to allow for ClieOp exports with empty reference. This is important, because several banks (Triodos, and according to their own specifications ING as well) do not accept ClieOp files with variant code C.

When we clear the reference field in the clieop wizard, an error occurs

  File "convert.py", line 56, in to_swift
    astr = unicode(astr, scheme)
TypeError: coercing to Unicode: need string or buffer, bool found

This can be avoided by initializing the SWIFTFields sender_id and batch_id with the empty string in case of a False value.

Also, the batch_id is taken from the original payment order reference instead of the wizard form values.

Cheers,
Stefan.

Related branches

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.