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
|
@ -478,8 +478,16 @@ def cout(fic_impr):
|
|||
pages = int(faces/2.+0.5)
|
||||
c_total = (c_taille * pages +
|
||||
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):
|
||||
self.list_messages_admin.append('erreur_cout')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue