diff --git a/gestion/dialog/proprio.py b/gestion/dialog/proprio.py index 99ba802a..1f750332 100644 --- a/gestion/dialog/proprio.py +++ b/gestion/dialog/proprio.py @@ -516,13 +516,6 @@ class Dialog(machine.Dialog, blacklist.Dialog): if tag == u"arbitraire": if len(articles) > 1 or "SOLDE" not in [art['code'] for art in articles]: raise ValueError("Il n'est possible que de faire une opération de solde en mode arbitraire") - else: - with self.conn.search(dn=proprio.dn, scope=0, mode='rw')[0] as adh: - adh.solde(articles[0]['pu'], comment=unicode(comment)) - adh.history_gen() - adh.save() - self.dialog.msgbox(text=u"Le solde de l'adhérent a bien été crédité", title="Solde crédité", width=0, height=0, timeout=self.timeout) - raise Continue(cont) # Les articles classiques on facture with self.conn.newFacture(proprio.dn, {}) as facture: