Hi Virgil,
On Tue, Aug 20, 2013 at 5:45 PM, Virgil Dupras <
virgil.dupras@xxxxxxxxxxxxxxxxxxxx> wrote:
Hi Stefan,
Thanks for your answer. The refactoring looks interesting, but it's still
a bit far from my use case, especially since it seems based on wizards (the
workflow I have to implement is a cron job that batch-charges all customers
who owe money, and a cron job that receives the response file from the
bank).
The goal of this module is to have a hook to plug payment order export
mechanisms. In principle there is no obligation to have an interactive
wizard.
[...]
Workflows differ, but communication protocols with banks should normally
stay pretty similar, so we shouldn't have to re-implement them for each
workflow. If we're going to have banking workflows that aren't compatible
with each other, I thought we should loose the coupling and implement a
registry-based system (instead of direct dependency) so that bank
parsing/export code can be re-used by all workflows.
It is for this reason that we want to refactor banking addons.
- for importing and processing bank statements, the
bank-statement-reconcile-70 series has a very modular approach which
cleanly separates the parsing and import of statements from the
reconciliation phase
- for payments (and direct debit), the situation is more complex, hence the
effort started to refactor that part to cleanly separate the generation of
payment files from the rest, then the other gems in banking addons will
have to be factored out
Cheers,
-sbi
Stéphane Bidoul | @SBidoul <https://twitter.com/SBidoul>
Acsone sa/nv | http://acsone.eu/ | +32 2 888 3120