Merge pull request #56 from pdelbar/master

Small fixes to XML and generate SQL
Merge pull request #57 from pdelbar/master

fix: replace is_set by isset
fix #38 show the creditor only if sepa
Merge branch 'master' of github.com:Project60/sepa_dd
Merge pull request #59 from pdelbar/master

Initial testrig setup + reworking batching after model changes
Merge pull request #61 from pdelbar/master

testrig extended + better batching
Merge pull request #62 from pdelbar/master

Extended data model with tag field for multi-creditor grouping, see GitH...
Merge pull request #63 from pdelbar/master

batching now uses creditor tag to group
Merge pull request #64 from pdelbar/master

extended the test rig with variable dates etc
Merge pull request #67 from pdelbar/master

initial version of membership create for SDD
Merge pull request #69 from pdelbar/master

refactored form hooks into separate classes
Merge pull request #71 from pdelbar/v44

fixed dashboard for v4.4 datamodel
Merge pull request #73 from pdelbar/v44

fixed date logic for batching
One SDD PP type is enough

It's nice to have a PP type for SDD created when the extension is
installed. It's not so nice though to have two of them created, with
slightly different parameters...

By the right of the eldest, I decided to keep the original one, and drop
the upstart. (Hi CRM/Core/Payment/SEPA.mgd.php )
Reanimate Creditor form on PP configuration page

It's a honourable quest to check the selected PP type, and only show the
Creditor form when it's the SDD one. The glory is even greater when
using a check that actually works...
Regenerate DAOs to match schema

Not sure this actually fixes anything -- but at least it *feels* safer
with the corrected default value for `type`...
Adapt setting of `payment_instrument_id` to New World Order

Now that `payment_instrument_id` is no longer coupled to the Creditor,
but rather describes the transaction type, we get better results when we
don't try to get it from the creditor, but rather set it to an
appropriate transaction type...

Among other things, this makes the sepa_civicrm_mend_rcontrib() hook
get called again; and fixes the batching to use a valid type for the
transaction group. (Rather than "Credit Card"...)
Set default `status` for civicrm_api3_sepa_mandate_create

The code expects to always have this set, e.g. in
CRM_Sepa_BAO_SEPAMandate::add() .

This restores the previous default behaviour of new mandates not being
activated (and the first contribution not being batched) immediately...
MessageTemplate API now in Core

With 4.4, the API is available in Core now -- so use it.

(The previous local version is actually conflicting with 4.4; so we have
to switch to the Core one -- with a sligtly different entity name -- in
any case...)
Fix retrieval of `creditor_id` in batchContribution()

Don't try to find the `creditor_id` from the `payment_instrument_id`,
which is no longer related in the New World Order.

Conveniently, the `creditor_id` is actually available directly from the
mandate object, which we get as a parameter... No need for any extra
queries.

This also drops the gross hack of creating a fake creditor on the fly.
No idea what that was for, but it doesn't apply anymore, and I *very*
much hope it's not needed. (Works fine here without.)