from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    dependencies = [("shop_management", "0098_financialopeningbalance")]

    operations = [
        migrations.AddField(
            model_name="customerbalancepayment",
            name="settlement_currency",
            field=models.ForeignKey(
                blank=True,
                help_text="Currency of the customer debt reduced by this payment.",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="customer_balance_payment_settlements",
                to="shop_management.currency",
            ),
        ),
        migrations.AddField(
            model_name="customerbalancepayment",
            name="settlement_exchange_rate",
            field=models.DecimalField(decimal_places=6, default=1, max_digits=20),
        ),
        migrations.AddField(
            model_name="customerbalancepayment",
            name="settlement_amount",
            field=models.DecimalField(decimal_places=2, default=0, max_digits=18),
        ),
    ]
