[intranet/impression] Ajout log imprimeur club

Ignore-this: 2662fa44212c256ce4208e4299eff7f8

darcs-hash:20121027234130-28565-07456e146bf5e083d090d726e4fbfce30cb4a9de.gz
This commit is contained in:
Daniel STAN 2012-10-28 01:41:30 +02:00
parent ce443b9bfa
commit 5d25b023d8
3 changed files with 11 additions and 3 deletions

View file

@ -378,10 +378,13 @@ class impression:
# debite l'adhérent si adherent il y a
if (self._adh != None):
adh = self._get_adh(self._adh)
adh = self._adh.split('@')
if len(adh) > 1:
adh = adh[1:]
adh = self._get_adh(adh[0])
if (self._prix > (adh.solde() - DECOUVERT_AUTHORISE)):
raise SoldeInsuffisant
adh.solde(-self._prix, "impression(%d): %s" % (self._jid,self._fichier))
adh.solde(-self._prix, "impression(%d): %s par %s" % (self._jid,self._fichier,self._adh))
adh.save()
del adh
# imprime le document