diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index c43fb03..1255e6c 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/migrations/0008_alter_expensereceipt_payment_method_and_more.py b/core/migrations/0008_alter_expensereceipt_payment_method_and_more.py new file mode 100644 index 0000000..0dacd28 --- /dev/null +++ b/core/migrations/0008_alter_expensereceipt_payment_method_and_more.py @@ -0,0 +1,23 @@ +# Generated by Django 5.2.7 on 2026-02-04 13:35 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0007_expensereceipt_expenselineitem'), + ] + + operations = [ + migrations.AlterField( + model_name='expensereceipt', + name='payment_method', + field=models.CharField(choices=[('CASH', 'Cash'), ('CARD', 'Card'), ('EFT', 'EFT'), ('OTHER', 'Other')], default='CASH', max_length=10), + ), + migrations.AlterField( + model_name='expensereceipt', + name='vat_type', + field=models.CharField(choices=[('INCLUDED', 'VAT Included'), ('EXCLUDED', 'VAT Excluded'), ('NONE', 'No VAT')], default='NONE', max_length=10), + ), + ] diff --git a/core/migrations/__pycache__/0008_alter_expensereceipt_payment_method_and_more.cpython-311.pyc b/core/migrations/__pycache__/0008_alter_expensereceipt_payment_method_and_more.cpython-311.pyc new file mode 100644 index 0000000..cc36e25 Binary files /dev/null and b/core/migrations/__pycache__/0008_alter_expensereceipt_payment_method_and_more.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index ce5f02d..69779cf 100644 --- a/core/models.py +++ b/core/models.py @@ -120,8 +120,8 @@ class ExpenseReceipt(models.Model): date = models.DateField(default=timezone.now) vendor = models.CharField(max_length=200) description = models.TextField(blank=True) - payment_method = models.CharField(max_length=10, choices=PAYMENT_METHODS, default='CARD') - vat_type = models.CharField(max_length=10, choices=VAT_CHOICES, default='INCLUDED') + payment_method = models.CharField(max_length=10, choices=PAYMENT_METHODS, default='CASH') + vat_type = models.CharField(max_length=10, choices=VAT_CHOICES, default='NONE') # Financials (Stored for record keeping) subtotal = models.DecimalField(max_digits=12, decimal_places=2, default=0) @@ -139,4 +139,4 @@ class ExpenseLineItem(models.Model): amount = models.DecimalField(max_digits=10, decimal_places=2) def __str__(self): - return f"{self.product} - {self.amount}" + return f"{self.product} - {self.amount}" \ No newline at end of file