Changeset View
Changeset View
Standalone View
Standalone View
looper/migrations/0058_adjust_tax_fields.py
- This file was added.
| # Generated by Django 3.0.4 on 2021-05-18 15:30 | |||||
| from django.db import migrations, models | |||||
| import looper.models | |||||
| class Migration(migrations.Migration): | |||||
| dependencies = [ | |||||
| ('looper', '0057_change_plan_variation_ordering'), | |||||
| ] | |||||
| operations = [ | |||||
| migrations.RenameField( | |||||
| model_name='order', | |||||
| old_name='tax_region', | |||||
| new_name='tax_country', | |||||
| ), | |||||
| migrations.RenameField( | |||||
| model_name='subscription', | |||||
| old_name='tax_region', | |||||
| new_name='tax_country', | |||||
| ), | |||||
| migrations.AddField( | |||||
| model_name='order', | |||||
| name='tax_rate', | |||||
| field=models.DecimalField(blank=True, decimal_places=2, default=0, help_text='Tax rate percentage applicable at the moment of sale. Stored regardless of whether the tax was charged or not (e.g. due to exemption or reverse-charge).', max_digits=5), | |||||
| ), | |||||
| migrations.AddField( | |||||
| model_name='order', | |||||
| name='vat_number', | |||||
| field=models.CharField(blank=True, default='', max_length=255, verbose_name='VAT identification number'), | |||||
| ), | |||||
| migrations.AddField( | |||||
| model_name='product', | |||||
| name='type', | |||||
| field=models.CharField(choices=[('GES', 'Generic electronic service'), ('DNT', 'Donation')], default='DNT', help_text='The nature and type of goods or services supplied (for tax administration)', max_length=20), | |||||
| ), | |||||
| migrations.AddField( | |||||
| model_name='subscription', | |||||
| name='tax_rate', | |||||
| field=models.DecimalField(blank=True, decimal_places=2, default=0, help_text='Tax rate percentage applicable at the moment of sale. Stored regardless of whether the tax was charged or not (e.g. due to exemption or reverse-charge).', max_digits=5), | |||||
| ), | |||||
| migrations.AlterField( | |||||
| model_name='order', | |||||
| name='tax', | |||||
| field=looper.models.MoneyField(blank=True, currency_field='currency', default=0, help_text='Tax amount charged at the moment of sale.'), | |||||
| ), | |||||
| migrations.AlterField( | |||||
| model_name='order', | |||||
| name='tax_type', | |||||
| field=models.CharField(blank=True, choices=[('', 'No tax charged'), ('VATC', 'VAT charged'), ('VATRC', 'No VAT charged but customer is required to account via reverse-charge')], default='', max_length=20), | |||||
| ), | |||||
| migrations.AlterField( | |||||
| model_name='subscription', | |||||
| name='tax', | |||||
| field=looper.models.MoneyField(blank=True, currency_field='currency', default=0, help_text='Tax amount charged at the moment of sale.'), | |||||
| ), | |||||
| migrations.AlterField( | |||||
| model_name='subscription', | |||||
| name='tax_type', | |||||
| field=models.CharField(blank=True, choices=[('', 'No tax charged'), ('VATC', 'VAT charged'), ('VATRC', 'No VAT charged but customer is required to account via reverse-charge')], default='', max_length=20), | |||||
| ), | |||||
| ] | |||||