8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-10 03:46:27 +00:00
re2o/printer/settings.py

28 lines
543 B
Python
Raw Normal View History

"""printer.settings
Define variables used in printer app
"""
from preferences.models import OptionalPrinter
settings = OptionalPrinter.objects.get()
MAX_PRINTFILE_SIZE = settings.max_size * 1024 * 1024 # 25 MB
ALLOWED_TYPES = ['application/pdf']
2018-09-08 12:04:44 +00:00
## Config
## Depreciation
depr = settings.depreciation_coef
2018-09-08 12:04:44 +00:00
PRICES = {
'Depreciation': depr,
'A3': settings.A3_price,
'A4': settings.A4_price,
'Color': settings.Color_price + depr,
'Greyscale': settings.Greyscale_price + depr,
'Staples': settings.Staples_price,
2018-09-08 12:04:44 +00:00
}