From cb0fda8c6cb1e3312ee669be261140c69a6cda9b Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Tue, 24 Nov 2015 02:03:52 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9e=20une=20facture=20pour=20le=20recharg?= =?UTF-8?q?ement=20arbitraire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/dialog/proprio.py | 7 ------- 1 file changed, 7 deletions(-) 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: