On ajoute le cout des agrafes
darcs-hash:20060331201752-d1718-9c6cee34c4a4ab0727974bd49ad491842410e605.gz
This commit is contained in:
parent
f5c49ff7d6
commit
3d0a18c90f
1 changed files with 10 additions and 2 deletions
|
@ -479,7 +479,15 @@ def cout(fic_impr):
|
||||||
c_total = (c_taille * pages +
|
c_total = (c_taille * pages +
|
||||||
impression.c_tambour_noir * faces+cout_noir * total_noir)
|
impression.c_tambour_noir * faces+cout_noir * total_noir)
|
||||||
|
|
||||||
c_total = int(fic_impr.nb_copie * c_total + impression.fact + 0.5) # arrondi et facture
|
# Cout des agrafes
|
||||||
|
if pages <= 50:
|
||||||
|
fic_impr.nb_copies * (config.c_agraphe * abs(fic_impr.agrafe))
|
||||||
|
else:
|
||||||
|
c_agrafes = 0
|
||||||
|
|
||||||
|
c_total = int(fic_impr.nb_copie * c_total + impression.fact +
|
||||||
|
c_agrafes +
|
||||||
|
0.5) # arrondi et facture
|
||||||
|
|
||||||
if commands.getoutput("rm -r -f %s" % nom_rep):
|
if commands.getoutput("rm -r -f %s" % nom_rep):
|
||||||
self.list_messages_admin.append('erreur_cout')
|
self.list_messages_admin.append('erreur_cout')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue