diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 2186e8d..b8ccc01 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 94a8e37..accc30c 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 828f7d8..da16869 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/migrations/0035_remove_heldsale_customer_remove_heldsale_notes_and_more.py b/core/migrations/0035_remove_heldsale_customer_remove_heldsale_notes_and_more.py new file mode 100644 index 0000000..75696f1 --- /dev/null +++ b/core/migrations/0035_remove_heldsale_customer_remove_heldsale_notes_and_more.py @@ -0,0 +1,50 @@ +# Generated by Django 5.2.7 on 2026-02-11 08:39 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0034_systemsetting_favicon'), + ] + + operations = [ + migrations.RemoveField( + model_name='heldsale', + name='customer', + ), + migrations.RemoveField( + model_name='heldsale', + name='notes', + ), + migrations.RemoveField( + model_name='heldsale', + name='total_amount', + ), + migrations.AddField( + model_name='heldsale', + name='customer_name', + field=models.CharField(blank=True, max_length=200, verbose_name='Customer Name'), + ), + migrations.AddField( + model_name='heldsale', + name='note', + field=models.TextField(blank=True, verbose_name='Note'), + ), + migrations.AlterField( + model_name='customer', + name='phone', + field=models.CharField(blank=True, default='968', max_length=20, verbose_name='Phone'), + ), + migrations.AlterField( + model_name='heldsale', + name='cart_data', + field=models.TextField(verbose_name='Cart Data'), + ), + migrations.AlterField( + model_name='supplier', + name='phone', + field=models.CharField(blank=True, default='968', max_length=20, verbose_name='Phone'), + ), + ] diff --git a/core/migrations/__pycache__/0035_remove_heldsale_customer_remove_heldsale_notes_and_more.cpython-311.pyc b/core/migrations/__pycache__/0035_remove_heldsale_customer_remove_heldsale_notes_and_more.cpython-311.pyc new file mode 100644 index 0000000..43d20d4 Binary files /dev/null and b/core/migrations/__pycache__/0035_remove_heldsale_customer_remove_heldsale_notes_and_more.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index 9cf3601..eacc4a3 100644 --- a/core/models.py +++ b/core/models.py @@ -61,7 +61,7 @@ class LoyaltyTier(models.Model): class Customer(models.Model): name = models.CharField(_("Name"), max_length=200) - phone = models.CharField(_("Phone"), max_length=20, blank=True) + phone = models.CharField(_("Phone"), max_length=20, blank=True, default='968') email = models.EmailField(_("Email"), blank=True) address = models.TextField(_("Address"), blank=True) loyalty_points = models.DecimalField(_("Loyalty Points"), max_digits=15, decimal_places=2, default=0) @@ -96,7 +96,7 @@ class LoyaltyTransaction(models.Model): class Supplier(models.Model): name = models.CharField(_("Name"), max_length=200) contact_person = models.CharField(_("Contact Person"), max_length=200, blank=True) - phone = models.CharField(_("Phone"), max_length=20, blank=True) + phone = models.CharField(_("Phone"), max_length=20, blank=True, default='968') # created_at = models.DateTimeField(auto_now_add=True) <-- Removed to fix DB mismatch def __str__(self): diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 93284a7..ae8dacc 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -12,9 +12,6 @@
{% trans "Welcome back! Here's what's happening with your business today." %}