diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index c4cf650..93e6085 100644 Binary files a/core/__pycache__/admin.cpython-311.pyc and b/core/__pycache__/admin.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index b06800a..2e8ff7d 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index ddeb8a3..9c3b770 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/admin.py b/core/admin.py index 656f462..61d387a 100644 --- a/core/admin.py +++ b/core/admin.py @@ -112,7 +112,7 @@ class AppSettingAdmin(admin.ModelAdmin): (None, {'fields': ('app_name', 'logo', 'slogan')}), (_('Contact Information'), {'fields': ('contact_phone', 'contact_email', 'contact_address')}), (_('Legal'), {'fields': ('registration_number', 'tax_number', 'terms_of_service', 'privacy_policy')}), - (_('Subscription Status'), {'fields': ('subscription_enabled',)}), + (_('Subscription Status'), {'fields': ('subscription_enabled', 'thawani_enabled')}), (_('Shipper Subscription Fees'), {'fields': ('shipper_monthly_fee', 'shipper_annual_fee')}), (_('Truck Owner Subscription Fees'), {'fields': ('truck_owner_monthly_fee', 'truck_owner_annual_fee')}), ) diff --git a/core/migrations/0021_appsetting_thawani_enabled.py b/core/migrations/0021_appsetting_thawani_enabled.py new file mode 100644 index 0000000..75592b2 --- /dev/null +++ b/core/migrations/0021_appsetting_thawani_enabled.py @@ -0,0 +1,18 @@ +# Generated by Django 5.2.7 on 2026-01-24 07:44 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0020_transaction_payment_status_transaction_session_id'), + ] + + operations = [ + migrations.AddField( + model_name='appsetting', + name='thawani_enabled', + field=models.BooleanField(default=True, verbose_name='Enable Thawani Payment'), + ), + ] diff --git a/core/migrations/__pycache__/0021_appsetting_thawani_enabled.cpython-311.pyc b/core/migrations/__pycache__/0021_appsetting_thawani_enabled.cpython-311.pyc new file mode 100644 index 0000000..91a4da2 Binary files /dev/null and b/core/migrations/__pycache__/0021_appsetting_thawani_enabled.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index 1ca61f8..3384816 100644 --- a/core/models.py +++ b/core/models.py @@ -261,6 +261,7 @@ class AppSetting(models.Model): terms_of_service = models.TextField(_('Terms of Service'), blank=True) privacy_policy = models.TextField(_('Privacy Policy'), blank=True) subscription_enabled = models.BooleanField(_('Enable Subscription Fee'), default=False) + thawani_enabled = models.BooleanField(_("Enable Thawani Payment"), default=True) # Shipper Fees shipper_monthly_fee = models.DecimalField(_('Shipper Monthly Fee'), max_digits=10, decimal_places=2, default=0.00) diff --git a/core/templates/core/place_bid.html b/core/templates/core/place_bid.html index bb96997..738f3e6 100644 --- a/core/templates/core/place_bid.html +++ b/core/templates/core/place_bid.html @@ -46,35 +46,52 @@ {% trans "Owner" %}: {{ truck.owner.username }} | {% trans "Plate" %}: {{ truck.plate_no }} -