# -*- coding: UTF-8 -*-

# Copyright (c) 2007 Daniele Favara <nomed@dsslive.org>.
#
# This is free software you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
# later version.
#
# This software is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this software; see the file COPYING.  If not, write to the Free
# Software Foundation, Inc., 51 Franilin St, Fifth Floor, Boston, MA


ADD_TYPES=[u'user', u'biller', u'customer']
USER_UPDATABLE=[ u'user_name',u'display_name',u'email_address', u'password',]
USER_FORM = USER_UPDATABLE
USER_LST = ['user_id', 'user_name', 'display_name', 'email_address']

USER_MAP = {
            u'user_id': _(u'ID'),
            u'user_name': _(u'Nick'),
            u'display_name': _(u'Display Name'),
            u'email_address':_(u'Email'),
            u'password': _(u'Password'),
            }

CONTACT_LST = [u'vat_code', u'fiscal_code', u'company_name', u'street',
              u'city', u'post_code', u'state_province', u'country',
              u'phone', u'fax',u'web', u'created' ]

CONTACT_MAP = {
              u'vat_code': _(u'VAT Number'),
              u'company_name': _(u'Company Name'),
              u'fiscal_code': _(u'Fiscal Code'),
              u'street': _('Street'),
              u'city': _(u'City'),
              u'post_code': _(u'Postal Code'),
              u'state_province': _(u'State/Province'),
              u'country': _(u'Country'),
              u'phone': _(u'Phone'),
              u'fax': _(u'Fax'),
              u'web': _(u'Web'),
              u'created': _(u'Created')
              }
BILLER_LST = []
CUSTOMER_LST = []
for lst in [BILLER_LST, CUSTOMER_LST]:
    for col in CONTACT_LST:
        lst.append(col)

CUSTOMER_LST.insert(3, u'company_description')

CUSTOMER_EDITABLE = []

for i in CUSTOMER_LST:
    if i != 'created':
        CUSTOMER_EDITABLE.append(i)

BILLER_LST.insert(2, u'company_slogan')

BILLER_MAP = CUSTOMER_MAP =  CONTACT_MAP

BILLER_MAP[u'company_slogan'] = _(u'Company Slogan')

CUSTOMER_MAP[u'company_description'] = _(u'Company Description')

PROJECT_LST = ['name', 'description']

PROJECT_FORM = ['name', 'description']

PROJECT_MAP = {
            u'name': _(u'Name'),
            u'description': _('Description'),
            u'created': _(u"Created"),
               }
MILESTONE_LST = [u'name', u'description', u'begindate', u'enddate']
MILESTONE_FORM = [u'name', u'description', u'begindate', u'enddate']
MILESTONE_MAP = {u'name': _(u"Name"),
            u'description': _(u"Description"),
            u'priority': _(u"Priority"),
            u'created': _(u"Created"),
            u'begindate': _("Begin Date"),
            u'enddate': _(u'End Date')
            }

TASK_FORM = [u'title', u'description',u'priority']

TASK_LST = [u'title', u'description',u'priority', u'created']

TASK_MAP = {u'title': _(u"Title"),
            u'description': _(u"Description"),
            u'priority': _(u"Priority"),
            u'created': _(u"Created"),
            }

INVOICE_MAP = {
               u'number': _(u'Number'),
               u'vat_code': _(u'VAT Code'),
               u'tot': _(u'Total'),
               u'gross': _(u'Gross'),
               u'company_name': _(u'Company Name'),
               u'created': _(u'Created'),
               u'tmpl':_(u'Template')
               }

INVOICE_LST = ['number','vat_code', 'company_name', 'tot', 'gross', 'created']

CURRENCY_LST = [u'$',u'£', u'€']

PRODUCT_LST = [u'qty', u'description', u'note',u'unit_price', u'vat', u'tot_price', u'gross_price']

PRODUCT_FORM = [u'qty', u'description', u'note',u'unit_price', u'vat']

PRODUCT_MAP = {u'qty': u"Quantity",
                u'description': _(u"Description"),
                u'note': _(u"Note"),
                u'unit_price': _(u"Unit Price"),
                u'vat': _(u"VAT"),
                u'tot_price': _(u"Total"),
                u'gross_price': _(u"Gross"),}


ACTION_MAP = {
        u"edit": _(u"Edit"),
        u"new": _(u"New"),
        u"save": _(u"Save"),
        u"show": _(u"Show"),
        u"edit_invoice": _(u"Edit Invoice"),
        u"edit_customer": _(u"Edit Customer"),
        u"invoice_customer": _(u"Invoice Customer"),
        u'new_task': _("New Task"),
        u'new_milestone': _("New Milestone"),
               }

TAB_LIST = ['biller', 'customers', 'projects','invoices']

TAB_MAP = {
        u"biller": _(u"Biller"),
        u"customers": _(u"Customers"),
        u"invoices": _(u"Invoices"),
        u"projects": _(u"Projects")
            }

GENERAL_MAP = {
        u"customer": _(u"Customer"),
        u"currency": _(u"Currency"),
        u"milestone": _(u"Milestone"),
        u'proformas': _(u'Proformas'),
        u'proforma': _(u'Proforma'),
        u'invoices': _(u'Invoices'),
        u'invoice': _(u'Invoice'),
        u'variant': _(u'Variant'),
               }

ERROR_MAP ={
        u'project_name_not_unique': _(u'There is already a project with that name, plese change it')
            }