8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-28 15:42:25 +00:00

[Printer] Fix _compute_price

This commit is contained in:
Maxime Bombar 2018-12-03 03:56:59 +01:00 committed by root
parent 8620581e5c
commit f1c9d8d066

View file

@ -249,7 +249,7 @@ class JobWithOptions(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model
price_ink = price_paper*sheets + PRICES[self.color]*pages price_ink = price_paper*sheets + PRICES[self.color]*pages
if self.stapling: if self.stapling != 'None':
nb_staples = 2 - int('Top' in self.stapling) nb_staples = 2 - int('Top' in self.stapling)
price_stapling = nb_staples * PRICES['Staples'] price_stapling = nb_staples * PRICES['Staples']