# Generated by Django 5.2.8 on 2025-12-09 23:53

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('sales', '0005_alter_paymenttransaction_payment_method'),
    ]

    operations = [
        migrations.AddField(
            model_name='dailysalessummary',
            name='credit_outstanding',
            field=models.DecimalField(decimal_places=2, default=0, help_text='Total outstanding customer balances for this day.', max_digits=12),
        ),
        migrations.AddField(
            model_name='dailysalessummary',
            name='total_profit',
            field=models.DecimalField(decimal_places=2, default=0, max_digits=12),
        ),
        migrations.AddField(
            model_name='posorder',
            name='amount_paid',
            field=models.DecimalField(decimal_places=2, default=0, help_text='How much the customer has paid now.', max_digits=10),
        ),
        migrations.AddField(
            model_name='posorder',
            name='balance_amount',
            field=models.DecimalField(decimal_places=2, default=0, help_text='Outstanding balance = final_amount - amount_paid.', max_digits=10),
        ),
        migrations.AddField(
            model_name='posorder',
            name='payment_status',
            field=models.CharField(choices=[('full', 'Paid in Full'), ('partial', 'Partial Payment'), ('credit', 'Credit / Customer Owing')], default='full', help_text='Whether the order is fully paid or has an outstanding balance.', max_length=10),
        ),
    ]
