X-Git-Url: https://git.cyclocoop.org/?p=garradin.git;a=blobdiff_plain;f=include%2Fclass.cotisations_membres.php;fp=include%2Fclass.cotisations_membres.php;h=1dc9029e06e1e726288211aeed5b99091c83467f;hp=a895ee26735172ce5783ce84f7ebccdc09d37b77;hb=f7ee0ae730f47bfef173c394fa4db71a22dece61;hpb=1ab3343a95ed3ef4958d91dfbf49372dce8a092e diff --git a/include/class.cotisations_membres.php b/include/class.cotisations_membres.php index a895ee2..1dc9029 100644 --- a/include/class.cotisations_membres.php +++ b/include/class.cotisations_membres.php @@ -193,12 +193,12 @@ class Cotisations_Membres $id_operation = $journal->add([ 'libelle' => $data['libelle'], - 'montant' => $data['montant'], 'date' => $data['date'], + 'fluxs' => + [ ['compte'=>$credit, 'montant' => - $data['montant'] ] + , ['compte'=>$debit, 'montant' => $data['montant'] ] ], 'moyen_paiement'=> $data['moyen_paiement'], 'numero_cheque' => isset($data['numero_cheque']) ? $data['numero_cheque'] : null, - 'compte_debit' => $debit, - 'compte_credit' => $credit, 'id_categorie' => (int)$data['id_categorie'], 'id_auteur' => (int)$data['id_auteur'], ]); @@ -333,4 +333,4 @@ class Cotisations_Membres return $db->simpleQuerySingle('SELECT COUNT(DISTINCT id_cotisation) FROM cotisations_membres WHERE id_membre = ?;', false, (int)$id); } -} \ No newline at end of file +}