Ver 11 - cleaned data

This commit is contained in:
Flatlogic Bot 2026-02-04 14:05:55 +00:00
parent 4c6eb17d09
commit 8feedf5963
4 changed files with 26 additions and 3 deletions

View File

@ -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),
),
]

View File

@ -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}"