recuPaiement devient un generalizedTimeFormat
This commit is contained in:
parent
6da84bbfd1
commit
c5c903b114
2 changed files with 8 additions and 7 deletions
|
@ -1100,7 +1100,7 @@ def set_solde(clas):
|
|||
|
||||
try:
|
||||
# Met aussi à jour le solde.
|
||||
f.recuPaiement(strftime("%Y-%m-%d %H:%M:%S"))
|
||||
f.recuPaiement(datetimeToGTF(localizedDatetime()))
|
||||
f.save()
|
||||
db.services_to_restart('mail_solde', [
|
||||
'%s a fait %s euros pour %s [mode: %s, remarque: %s]' %
|
||||
|
@ -1256,7 +1256,7 @@ def set_vente(proprio):
|
|||
return 1
|
||||
else:
|
||||
try:
|
||||
f.recuPaiement(strftime("%Y-%m-%d %H:%M:%S"))
|
||||
f.recuPaiement(datetimeToGTF(localizedDatetime()))
|
||||
f.save()
|
||||
# arg = u'--title "Impression facture" '
|
||||
# arg += u'--yesno "Voulez vous imprimer cette facture ?\n" 0 0'
|
||||
|
@ -1314,7 +1314,7 @@ def confirm(clas):
|
|||
else:
|
||||
subprocess.call(['/usr/scripts/cransticket/dump_creds.py', 'mid=%s' % clas.id()])
|
||||
if in_facture is not None:
|
||||
in_facture.recuPaiement(strftime("%Y-%m-%d %H:%M:%S"))
|
||||
in_facture.recuPaiement(datetimeToGTF(localizedDatetime()))
|
||||
in_facture.save()
|
||||
# arg = u'--title "Impression facture" '
|
||||
# arg += u'--yesno "Voulez vous imprimer cette facture ?\n" 0 0'
|
||||
|
@ -1857,7 +1857,7 @@ def set_facture_recu(facture):
|
|||
if annul:
|
||||
return 1
|
||||
if u"Pmt" in res:
|
||||
facture.recuPaiement(strftime("%Y-%m-%d %H:%M:%S"))
|
||||
facture.recuPaiement(datetimeToGTF(localizedDatetime()))
|
||||
else:
|
||||
facture.recuPaiement(False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue