2014-09-17 10:32:29 +00:00
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
from orchestra.settings import Setting
|
2014-09-17 10:32:29 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
|
|
|
|
SERVICES_SERVICE_TAXES = Setting('SERVICES_SERVICE_TAXES', (
|
2015-04-27 12:24:17 +00:00
|
|
|
(0, _("Duty free")),
|
|
|
|
(21, "21%"),
|
|
|
|
),
|
|
|
|
validators=[Setting.validate_choices]
|
|
|
|
)
|
2014-09-17 10:32:29 +00:00
|
|
|
|
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SERVICES_SERVICE_DEFAULT_TAX = Setting('SERVICES_SERVICE_DEFAULT_TAX', 0,
|
|
|
|
choices=SERVICES_SERVICE_TAXES
|
2015-03-31 12:39:08 +00:00
|
|
|
)
|
2014-09-17 10:32:29 +00:00
|
|
|
|
2014-09-26 10:38:50 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SERVICES_SERVICE_ANUAL_BILLING_MONTH = Setting('SERVICES_SERVICE_ANUAL_BILLING_MONTH', 1,
|
|
|
|
choices=tuple((n, n) for n in range(1, 13))
|
2015-03-31 12:39:08 +00:00
|
|
|
)
|
2014-09-26 10:38:50 +00:00
|
|
|
|
2014-10-24 10:16:46 +00:00
|
|
|
|
2015-04-27 12:24:17 +00:00
|
|
|
SERVICES_ORDER_MODEL = Setting('SERVICES_ORDER_MODEL', 'orders.Order',
|
|
|
|
validators=[Setting.validate_model_label]
|
2015-03-31 12:39:08 +00:00
|
|
|
)
|
2014-10-24 10:16:46 +00:00
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
|
2015-04-27 12:24:17 +00:00
|
|
|
SERVICES_RATE_CLASS = Setting('SERVICES_RATE_CLASS', 'orchestra.contrib.plans.models.Rate',
|
|
|
|
validators=[Setting.validate_import_class]
|
2015-03-31 12:39:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2015-04-27 12:24:17 +00:00
|
|
|
SERVICES_DEFAULT_IGNORE_PERIOD = Setting('SERVICES_DEFAULT_IGNORE_PERIOD', 'TEN_DAYS')
|
2015-04-02 16:14:55 +00:00
|
|
|
|
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SERVICES_IGNORE_ACCOUNT_TYPE = Setting('SERVICES_IGNORE_ACCOUNT_TYPE', (
|
2015-04-02 16:14:55 +00:00
|
|
|
'superuser',
|
|
|
|
'STAFF',
|
|
|
|
'FRIEND',
|
|
|
|
))
|