Commit 0ad5c747 authored by Denis S. Valdenaire's avatar Denis S. Valdenaire

correction appel de création de compte

parent 3290548d
......@@ -105,6 +105,9 @@ class Member extends Record {
$subscription = new Subscription();
$subscription_id = $subscription->create();
// TODO pass the accounting operation for the payment
// here the thing begins to be really annoying
// must have a web REST service on the compta side OR you'll end up
// duplicating all the classes for operation, moves, etc.
public function update_subscription() {
......@@ -174,8 +174,7 @@ class MembersController extends AppController {
$_REQUEST["member_id"] = $member->id;
// the user must first have an account in the accounting part
if(!$member->account_id) {
$member->account = Account::create_for_member($member->id);
$member->account_id = $member->account->id;
$member->account_id = Account::create_for_member($member->id);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment