# Generated by Django 3.0.5 on 2020-08-27 03:48

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('system', '0031_delete_bscodeset'),
        ('project', '0024_auto_20200827_1132'),
        ('crm', '0011_enterprise_parent'),
    ]

    operations = [
        migrations.CreateModel(
            name='Bill',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, help_text='创建时间', verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, help_text='修改时间', verbose_name='修改时间')),
                ('is_deleted', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('feecode', models.CharField(max_length=300, verbose_name='收费单号')),
                ('totalfee', models.FloatField(blank=True, default=0, null=True, verbose_name='总金额')),
                ('deductions', models.FloatField(blank=True, default=0, null=True, verbose_name='扣减额')),
                ('exchangetype', models.CharField(max_length=300, verbose_name='外汇类型')),
                ('exchangerate', models.FloatField(blank=True, default=0, null=True, verbose_name='外币汇率')),
                ('paidrmb', models.FloatField(blank=True, default=0, null=True, verbose_name='实收人名币')),
                ('paidwb', models.FloatField(blank=True, default=0, null=True, verbose_name='实收外币')),
                ('remark', models.CharField(max_length=300, verbose_name='备注')),
                ('applicant', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='bill_applicant', to='crm.Enterprise')),
                ('belong_dept', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='bill_belong_dept', to='system.Organization', verbose_name='所属部门')),
                ('create_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='bill_create_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人')),
                ('feecharacter', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='bill_feecharacter', to='system.Dict', verbose_name='费用性质')),
                ('number', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='bill_number', to='project.CertApp')),
                ('update_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='bill_update_by', to=settings.AUTH_USER_MODEL, verbose_name='最后编辑人')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
