impression: arrondi par le bas
This commit is contained in:
parent
fa2b32250d
commit
540dac75ac
1 changed files with 3 additions and 2 deletions
|
@ -16,6 +16,7 @@ import logging
|
|||
import logging.handlers
|
||||
import BeautifulSoup
|
||||
import requests
|
||||
import math
|
||||
|
||||
if '/usr/scripts' not in sys.path:
|
||||
sys.path.append('/usr/scripts')
|
||||
|
@ -417,8 +418,8 @@ class impression(object):
|
|||
|
||||
c_agrafes = nb_agrafes * config_impression.c_agrafe
|
||||
|
||||
c_total = int(self._settings['copies'].value * ( c_impression +
|
||||
c_agrafes ) + 0.5) # arrondi et facture
|
||||
c_total = math.floor(self._settings['copies'].value * ( c_impression +
|
||||
c_agrafes)) # arrondi et facture
|
||||
|
||||
self._prix = float(c_total)/100
|
||||
return self._prix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue