This commit is contained in:
gitea 2025-01-22 12:34:08 +00:00
parent 44c1f20801
commit 45a937a0b3
4 changed files with 19 additions and 20 deletions

View File

@ -16,6 +16,7 @@ from .models import (
Vendor,
Customer,
Car,
CarTransfer,
CarFinance,
CustomCard,
CarRegistration,
@ -241,6 +242,14 @@ class CarLocationForm(forms.ModelForm):
"description": forms.Textarea(attrs={"rows": 2, "class": "form-control"}),
}
class CarTransferForm(forms.ModelForm):
class Meta:
model = CarTransfer
fields = ["car", "to_dealer", "remarks"]
widgets = {
"remarks": forms.Textarea(attrs={"rows": 2, "class": "form-control"}),
}
# Custom Card Form
class CustomCardForm(forms.ModelForm):

View File

@ -1,16 +0,0 @@
# Generated by Django 5.1.5 on 2025-01-21 12:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('inventory', '0006_cartransferlog_delete_invoicemodelbase'),
]
operations = [
migrations.DeleteModel(
name='CarTransferLog',
),
]

View File

@ -300,8 +300,7 @@
</label>
</div>
</li>
{% include "notifications.html" %}
{% include "notifications.html" %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="languageDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false" data-bs-auto-close="outside" aria-haspopup="true">
{% if request.LANGUAGE_CODE == 'ar' %}
@ -344,7 +343,7 @@
<div class="text-center pt-4 pb-3">
<div class="avatar avatar-xl">
{% if user.dealer.logo %}
{% if user.dealer.logo %}
<img class="rounded-circle" src="{{ user.dealer.logo.url }}" alt="" />
{% elif user.staff.dealer.logo %}
<img class="rounded-circle" src="{{ user.staff.dealer.logo.url }}" alt="" />

View File

@ -74,7 +74,14 @@
</div>
<tr>
<td class="align-middle ps-3">{{ bill.bill_number }}</td>
<td class="align-middle">{{ bill.bill_status }}</td>
<td class="align-middle">
{% if bill.bill.status == 'draft' %}
<span class="badge badge-phoenix badge-phoenix-warning">
{{ bill.bill_status }}
</span>
{% endif %}
</td>
<td class="align-middle text-end py-3 pe-3">
{{bill.vendor.vendor_name}}
</td>