# Path: konfera/models/abstract.py
# class AddressModel(KonferaModel):
#     COUNTRY_DEFAULT = 'SK'
# 
#     class Meta:
#         abstract = True
# 
#     street = models.CharField(max_length=128, blank=True)
#     street2 = models.CharField(max_length=128, blank=True)
#     city = models.CharField(max_length=128, blank=True)
#     postcode = models.CharField(max_length=12, blank=True)
#     state = models.CharField(max_length=128, blank=True)
#     country = models.CharField(choices=COUNTRIES, max_length=2, default=COUNTRY_DEFAULT)


from django.db import models
from django.core.validators import MinValueValidator
from django.utils.translation import ugettext_lazy as _
from konfera.models.abstract import AddressModel



class Receipt(AddressModel):
    order = models.OneToOneField('Order', on_delete=models.CASCADE, related_name='receipt_of')
    title = models.CharField(max_length=128, verbose_name=_('Name'), blank=True)
    companyid = models.CharField(max_length=32, blank=True, verbose_name=_('Company ID'))

# Path: konfera/models/abstract.py
# class AddressModel(KonferaModel):
#     COUNTRY_DEFAULT = 'SK'
# 
#     class Meta:
#         abstract = True
# 
#     street = models.CharField(max_length=128, blank=True)
#     street2 = models.CharField(max_length=128, blank=True)
#     city = models.CharField(max_length=128, blank=True)
#     postcode = models.CharField(max_length=12, blank=True)
#     state = models.CharField(max_length=128, blank=True)
#     country = models.CharField(choices=COUNTRIES, max_length=2, default=COUNTRY_DEFAULT)


# Path: konfera/models/receipt.py
from django.db import models
from django.core.validators import MinValueValidator
from django.utils.translation import ugettext_lazy as _
from konfera.models.abstract import AddressModel




class Receipt(AddressModel):
    order = models.OneToOneField('Order', on_delete=models.CASCADE, related_name='receipt_of')
    title = models.CharField(max_length=128, verbose_name=_('Name'), blank=True)
    companyid = models.CharField(max_length=32, blank=True, verbose_name=_('Company ID'))

    taxid = models.CharField(max_length=32, blank=True, verbose_name=_('TAX ID'))