[objets.facture] Sucre syntaxique

This commit is contained in:
Valentin Samir 2014-02-24 21:44:34 +01:00
parent ac0445b7e3
commit 15f92fbf21

View file

@ -1146,8 +1146,8 @@ class facture(CransLdapObject):
def __init__(self, *args, **kwargs):
super(facture, self).__init__(*args, **kwargs)
self._frais = []
if not self.get('recuPaiement', []):
if str(self['modePaiement'][0]) == 'paypal':
if not self['recuPaiement']:
if 'paypal' in self['modePaiement']:
# 25 centimes pour le paiement paypal
s = 0.25
# et on ajoute 3.5% du montant