From 8feedf5963d877f9d2771334c960f24c94f6aa5c Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Wed, 4 Feb 2026 14:05:55 +0000 Subject: [PATCH] Ver 11 - cleaned data --- core/__pycache__/models.cpython-311.pyc | Bin 11176 -> 11176 bytes ..._expensereceipt_payment_method_and_more.py | 23 ++++++++++++++++++ ...pt_payment_method_and_more.cpython-311.pyc | Bin 0 -> 1219 bytes core/models.py | 6 ++--- 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 core/migrations/0008_alter_expensereceipt_payment_method_and_more.py create mode 100644 core/migrations/__pycache__/0008_alter_expensereceipt_payment_method_and_more.cpython-311.pyc diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index c43fb0343c40691a393822d5f5073fe1bfacadeb..1255e6c72fd43e063fbeedd9575b495e25a7152e 100644 GIT binary patch delta 55 zcmZ1xz9O7=IWI340}u#!H)rnH$jhV5Jsrp^>H-ndHmfMtFmbtE;19mYAAE&Bc=IaN Gf2;tTbr4Yi delta 55 zcmZ1xz9O7=IWI340}xDbZO+`gk(WoAdnS-q)CD4@Y*taOVdC<-z#o2*Kl}=R_~uor G|5yRA`4Hd$ 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 0000000000000000000000000000000000000000..cc36e256da75266b58eeebd08c14c181d8fdcc3e GIT binary patch literal 1219 zcmah{%}*0S6rcU*cDqm&B=O)!5D{reC^tC}6GDriSRz!Sm1MK*Jld`MQD=9xU}8x0 z;E@}54;mx?g#Q5t4rH&MxGjMbC*N!-SZd~G$ixAS{n^F5o@2#$fLpDaxx+PV>HRUHtJ>4d#5-NWc zXo@Pk>CP~A)lR*ODbvNIAyd!)nW|z%rM;M9Hp)C}=Z1;OrpF+PJ48vVQe_y2D$@5&7(P))6GmT&mkIqt)(p$xW*`IQgOD-u3`~T zPA!(_ic7c!HDIg<4-a`sb5fKxYo29-AEha*8=)OwFN~&cgIf)1XxEZ%=&s>FBqx|! zx4@>6`pyXSV50#!2_2~OrJ02ng<@f|cV)UfIPaQvNP&l;7GM5tDK^h7a%r(t+*C^5 zAYNg&FrHE_6RCRQOxGh#*U@=s1IoR+{x&ph9st)UVCg8hrUgFZuPV}}?Eu&;4~@zE zATv`lT6&~;4LEyUKgcl}$tlg(JO}dOTIdF09-3f=fyeUiJ@&?L7$)R-pYj*4GLIdb z)D7;V-KcioI@_WfF2%4Jj5juzg02$ag8vI)>wLxv$xOzQIG}7T#2U%m`J(Nsw-0VS zIOw~3&_A?2vfn?nH|DoiOvp!}Ama91T;|*LvUrr>NrG`&&S*yj;e^8_zMB_(ANI!h zLWWs!ffKzFUnhL43E!&7`BufteA%9UW$Ou_?0!3^QcjLCv~IXnZ=9|rT}Ue5%6gdp zmi#+{(y2PtYULv~imHI0zk(1;f*@cegxnq(?Ow6cCnz!LhHY*C+VBxKoczO@`27QY CYCstP literal 0 HcmV?d00001 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