# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-08-03 17:35
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('codenerix_products', '0030_productfinaloption_productfinaloptiontexten_productfinaloptiontextes'),
        ('codenerix_invoicing', '0024_auto_20170726_1830'),
    ]

    operations = [
        migrations.CreateModel(
            name='SalesLineBasketOption',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True, verbose_name='Created')),
                ('updated', models.DateTimeField(auto_now=True, verbose_name='Updated')),
                ('quantity', models.FloatField(verbose_name='Quantity')),
                ('notes', models.CharField(blank=True, max_length=256, null=True, verbose_name='Notes')),
                ('price_recommended', models.FloatField(verbose_name='Recomended price')),
                ('description', models.CharField(blank=True, max_length=256, null=True, verbose_name='Description')),
                ('discount', models.FloatField(default=0, verbose_name='Discount')),
                ('price', models.FloatField(verbose_name='Price')),
                ('tax', models.FloatField(blank=True, default=0, null=True, verbose_name='Tax')),
                ('line_budget', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='line_basket_option_sales', to='codenerix_invoicing.SalesLineBasket', verbose_name='Line budget')),
                ('product_final', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='line_basket_option_sales', to='codenerix_products.ProductFinal', verbose_name='Product')),
                ('product_option', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='line_basket_option_sales', to='codenerix_products.ProductFinalOption', verbose_name='Option')),
            ],
            options={
                'default_permissions': ('add', 'change', 'delete', 'view', 'list'),
                'abstract': False,
            },
        ),
    ]
