# Generated by Django 3.1.4 on 2020-12-31 19:29

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('sales', '0119_auto_20201231_1842'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='rebateapplication',
            name='bank_receipt',
        ),
        migrations.AddField(
            model_name='rebateapplication',
            name='status',
            field=models.SmallIntegerField(choices=[(0, '待上传发票'), (1, '待审核'), (2, '待放款'), (4, '被驳回'), (10, '已放款')], default=0, verbose_name='当前状态'),
        ),
        migrations.AddField(
            model_name='rebateapplication',
            name='tm_paid',
            field=models.DateTimeField(blank=True, db_index=True, null=True, verbose_name='付款时间'),
        ),
        migrations.AddField(
            model_name='rebateapplication',
            name='wx_receipt',
            field=models.CharField(blank=True, max_length=50, null=True, verbose_name='微信转帐回单'),
        ),
        migrations.AddField(
            model_name='rebatepayee',
            name='payee_name',
            field=models.CharField(blank=True, max_length=15, null=True, verbose_name='收款人实名'),
        ),
        migrations.AlterField(
            model_name='rebateapplication',
            name='dt',
            field=models.DateField(db_index=True, default=django.utils.timezone.now, verbose_name='申请日期'),
        ),
        migrations.AlterField(
            model_name='rebateapplication',
            name='payee',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='rebateapplication_payee', to=settings.AUTH_USER_MODEL, verbose_name='收款人'),
        ),
        migrations.AlterField(
            model_name='rebateapplication',
            name='payee_name',
            field=models.CharField(blank=True, max_length=15, null=True, verbose_name='收款人实名'),
        ),
        migrations.AlterField(
            model_name='rebateapplication',
            name='tm',
            field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='申请时间'),
        ),
    ]
