django-orchestra-test/orchestra/contrib/bills/settings.py

104 lines
2.0 KiB
Python
Raw Permalink Normal View History

2014-10-30 16:34:02 +00:00
from django_countries import data
2014-07-23 16:24:56 +00:00
2015-05-04 19:52:53 +00:00
from orchestra.contrib.settings import Setting
from orchestra.settings import ORCHESTRA_BASE_DOMAIN
2014-08-19 18:59:23 +00:00
2015-04-27 14:54:17 +00:00
BILLS_NUMBER_LENGTH = Setting('BILLS_NUMBER_LENGTH',
4
)
2014-10-17 10:04:47 +00:00
2014-08-19 18:59:23 +00:00
2015-04-27 14:54:17 +00:00
BILLS_INVOICE_NUMBER_PREFIX = Setting('BILLS_INVOICE_NUMBER_PREFIX',
'I'
)
2014-10-17 10:04:47 +00:00
2014-08-19 18:59:23 +00:00
2015-04-27 14:54:17 +00:00
BILLS_AMENDMENT_INVOICE_NUMBER_PREFIX = Setting('BILLS_AMENDMENT_INVOICE_NUMBER_PREFIX',
'A'
)
2014-10-17 10:04:47 +00:00
2014-08-19 18:59:23 +00:00
2015-04-27 14:54:17 +00:00
BILLS_FEE_NUMBER_PREFIX = Setting('BILLS_FEE_NUMBER_PREFIX',
'F'
)
2014-10-17 10:04:47 +00:00
2015-04-27 14:54:17 +00:00
BILLS_AMENDMENT_FEE_NUMBER_PREFIX = Setting('BILLS_AMENDMENT_FEE_NUMBER_PREFIX',
'B'
)
2014-10-17 10:04:47 +00:00
2015-04-27 14:54:17 +00:00
BILLS_PROFORMA_NUMBER_PREFIX = Setting('BILLS_PROFORMA_NUMBER_PREFIX',
'P'
)
2014-08-19 18:59:23 +00:00
2015-04-27 14:54:17 +00:00
BILLS_DEFAULT_TEMPLATE = Setting('BILLS_DEFAULT_TEMPLATE',
'bills/microspective.html'
)
2014-10-17 10:04:47 +00:00
2014-08-29 12:45:27 +00:00
2015-04-27 14:54:17 +00:00
BILLS_FEE_TEMPLATE = Setting('BILLS_FEE_TEMPLATE',
'bills/microspective-fee.html'
)
2014-08-29 12:45:27 +00:00
2015-04-27 14:54:17 +00:00
BILLS_PROFORMA_TEMPLATE = Setting('BILLS_PROFORMA_TEMPLATE',
'bills/microspective-proforma.html'
)
2014-08-19 18:59:23 +00:00
2015-04-27 14:54:17 +00:00
BILLS_CURRENCY = Setting('BILLS_CURRENCY',
'euro'
)
2014-08-19 18:59:23 +00:00
2015-04-27 14:54:17 +00:00
BILLS_SELLER_PHONE = Setting('BILLS_SELLER_PHONE',
'111-112-11-222'
)
2014-08-19 18:59:23 +00:00
2014-10-17 10:04:47 +00:00
2015-04-27 14:54:17 +00:00
BILLS_SELLER_EMAIL = Setting('BILLS_SELLER_EMAIL',
'sales@{}'.format(ORCHESTRA_BASE_DOMAIN),
help_text="Uses ORCHESTRA_BASE_DOMAIN by default.",
)
2014-08-19 18:59:23 +00:00
2014-10-17 10:04:47 +00:00
2015-04-27 14:54:17 +00:00
BILLS_SELLER_WEBSITE = Setting('BILLS_SELLER_WEBSITE',
'www.{}'.format(ORCHESTRA_BASE_DOMAIN),
help_text="Uses ORCHESTRA_BASE_DOMAIN by default.",
)
2014-09-04 15:55:43 +00:00
2014-10-17 10:04:47 +00:00
2015-04-27 14:54:17 +00:00
BILLS_SELLER_BANK_ACCOUNT = Setting('BILLS_SELLER_BANK_ACCOUNT',
'0000 0000 00 00000000 (Orchestra Bank)'
)
2014-09-04 15:55:43 +00:00
2015-04-26 13:53:00 +00:00
BILLS_EMAIL_NOTIFICATION_TEMPLATE = Setting('BILLS_EMAIL_NOTIFICATION_TEMPLATE',
'bills/bill-notification.email'
)
2014-10-17 10:04:47 +00:00
2015-04-27 14:54:17 +00:00
BILLS_ORDER_MODEL = Setting('BILLS_ORDER_MODEL',
'orders.Order',
validators=[Setting.validate_model_label]
)
2014-10-17 10:04:47 +00:00
2015-04-27 14:54:17 +00:00
BILLS_CONTACT_DEFAULT_CITY = Setting('BILLS_CONTACT_DEFAULT_CITY',
'Barcelona'
)
2014-10-30 16:34:02 +00:00
2015-04-27 14:54:17 +00:00
BILLS_CONTACT_COUNTRIES = Setting('BILLS_CONTACT_COUNTRIES',
tuple((k,v) for k,v in data.COUNTRIES.items()),
serializable=False
)
2014-10-30 16:34:02 +00:00
2015-04-27 14:54:17 +00:00
BILLS_CONTACT_DEFAULT_COUNTRY = Setting('BILLS_CONTACT_DEFAULT_COUNTRY',
'ES',
2015-04-26 13:53:00 +00:00
choices=BILLS_CONTACT_COUNTRIES
)