Commit Graph

2 Commits

Author SHA1 Message Date
fcayre
caec4cf6f8 [FIX] contract_payment_auto: transaction create must always get a token (#167)
When a contrat had no payment token but the corresponding partner had
one, the transaction was created without an acquirer, leading to an
integrity error in postgres.

This change makes sure the token used to test the ability to pay an
invoice is passed along to the transaction creation call.

Tests were also added to check the ability to use the contract token if
present, but the partner's in the opposite case.

This change fixes #165.
2018-05-28 17:46:32 +02:00
Dave Lasley
9d1ae5c100 [ADD] contract_auto: Automatic Payment For Contracts 2017-10-16 07:41:26 -07:00