diff --git a/accounting/__pycache__/views.cpython-311.pyc b/accounting/__pycache__/views.cpython-311.pyc index 86bed7d..c4192dc 100644 Binary files a/accounting/__pycache__/views.cpython-311.pyc and b/accounting/__pycache__/views.cpython-311.pyc differ diff --git a/accounting/templates/accounting/journal_entries.html b/accounting/templates/accounting/journal_entries.html index b47711e..82d1e7c 100644 --- a/accounting/templates/accounting/journal_entries.html +++ b/accounting/templates/accounting/journal_entries.html @@ -18,38 +18,80 @@ - {% for entry in entries %} -
{{ entry.reference }}
- {% trans "Description" %}: {{ entry.description }}
+| {% trans "Account" %} | -{% trans "Debit" %} | -{% trans "Credit" %} | +{% trans "Date" %} | +{% trans "Ref #" %} | +{% trans "Description" %} | +{% trans "Debit" %} | +{% trans "Credit" %} | +{% trans "Actions" %} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ entry.date }} | - {{ item.account.code }} - - {% if LANGUAGE_CODE == 'ar' %}{{ item.account.name_ar }}{% else %}{{ item.account.name_en }}{% endif %} + {% if entry.reference %} + {{ entry.reference }} + {% else %} + - + {% endif %} | -- {% if item.type == 'debit' %}{{ item.amount|floatformat:global_settings.decimal_places }}{% endif %} + | {{ entry.description|truncatechars:60 }} | +{{ entry.total_debit|floatformat:global_settings.decimal_places }} | +{{ entry.total_credit|floatformat:global_settings.decimal_places }} | ++ | -- {% if item.type == 'credit' %}{{ item.amount|floatformat:global_settings.decimal_places }}{% endif %} + | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
+
+
+
+
+ {% trans "Transaction Details" %} #{{ entry.id }}+ {% trans "Created" %}: {{ entry.created_at|date:"Y-m-d H:i" }} +
|
+ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| + {% trans "No journal entries found." %} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| + |
{% trans "Item Description" %}
وصف العنصر
|
- + |
{% trans "Unit Price" %}
سعر الوحدة
|
- + |
{% trans "Quantity" %}
الكمية
|
- + |
{% trans "Total" %}
المجموع
|
@@ -121,74 +121,74 @@
|---|---|---|---|---|---|---|---|
| + |
{{ item.product.name_ar }}
{{ item.product.name_en }}
|
- {{ settings.currency_symbol }}{{ item.unit_price|floatformat:3 }} | -{{ item.quantity|floatformat:2 }} | -{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} | +{{ settings.currency_symbol }}{{ item.unit_price|floatformat:3 }} | +{{ item.quantity|floatformat:2 }} | +{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} |
| - | + |
{% trans "Subtotal" %}
المجموع الفرعي
|
- {{ settings.currency_symbol }}{{ sale.subtotal|floatformat:3 }} | +{{ settings.currency_symbol }}{{ sale.subtotal|floatformat:3 }} | |||
| - | + |
{% trans "VAT" %}
الضريبة
|
- {{ settings.currency_symbol }}{{ sale.vat_amount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ sale.vat_amount|floatformat:3 }} | |||
| - | + |
{% trans "Discount" %}
الخصم
|
- -{{ settings.currency_symbol }}{{ sale.discount|floatformat:3 }} | +-{{ settings.currency_symbol }}{{ sale.discount|floatformat:3 }} | |||
| - | + |
{% trans "Grand Total" %}
المجموع الكلي
|
- {{ settings.currency_symbol }}{{ sale.total_amount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ sale.total_amount|floatformat:3 }} | |||
| - | + |
{% trans "Total Paid" %}
إجمالي المدفوع
|
- {{ settings.currency_symbol }}{{ sale.paid_amount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ sale.paid_amount|floatformat:3 }} | |||
| - | + |
{% trans "Balance Due" %}
الرصيد المستحق
|
- {{ settings.currency_symbol }}{{ sale.balance_due|floatformat:3 }} | +{{ settings.currency_symbol }}{{ sale.balance_due|floatformat:3 }} | |||
| {% trans "Date" %} / التاريخ | {% trans "Method" %} / الطريقة | @@ -233,13 +233,13 @@ {% if sale.notes %} -|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + |
{% trans "Item Description" %}
وصف العنصر
|
- + |
{% trans "Cost Price" %}
سعر التكلفة
|
- + |
{% trans "Quantity" %}
الكمية
|
- + |
{% trans "Total" %}
المجموع
|
@@ -120,32 +120,32 @@
|---|---|---|---|---|---|---|---|
| + |
{{ item.product.name_ar }}
{{ item.product.name_en }}
|
- {{ settings.currency_symbol }}{{ item.cost_price|floatformat:3 }} | -{{ item.quantity|floatformat:2 }} | -{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} | +{{ settings.currency_symbol }}{{ item.cost_price|floatformat:3 }} | +{{ item.quantity|floatformat:2 }} | +{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} |
| - | + |
{% trans "Grand Total" %}
المجموع الكلي
|
- {{ settings.currency_symbol }}{{ order.total_amount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ order.total_amount|floatformat:3 }} | |||
{{ order.notes }}
{% trans "Thank you for your business!" %} / شكراً لتعاملكم معنا!
{{ settings.address }}
{{ settings.phone }}
{{ settings.email }}
@@ -42,10 +42,10 @@| + |
{% trans "Item Description" %}
وصف العنصر
|
- + |
{% trans "Cost Price" %}
سعر التكلفة
|
- + |
{% trans "Quantity" %}
الكمية
|
- + |
{% trans "Total" %}
المجموع
|
@@ -115,48 +115,48 @@
|---|---|---|---|---|---|---|---|
| + |
{{ item.product.name_ar }}
{{ item.product.name_en }}
|
- {{ settings.currency_symbol }}{{ item.cost_price|floatformat:3 }} | -{{ item.quantity|floatformat:2 }} | -{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} | +{{ settings.currency_symbol }}{{ item.cost_price|floatformat:3 }} | +{{ item.quantity|floatformat:2 }} | +{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} |
| - | + |
{% trans "Grand Total" %}
المجموع الكلي
|
- {{ settings.currency_symbol }}{{ purchase.total_amount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ purchase.total_amount|floatformat:3 }} | |||
| - | + |
{% trans "Total Paid" %}
إجمالي المدفوع
|
- {{ settings.currency_symbol }}{{ purchase.paid_amount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ purchase.paid_amount|floatformat:3 }} | |||
| - | + |
{% trans "Balance Due" %}
الرصيد المستحق
|
- {{ settings.currency_symbol }}{{ purchase.balance_due|floatformat:3 }} | +{{ settings.currency_symbol }}{{ purchase.balance_due|floatformat:3 }} | |||
| {% trans "Date" %} / التاريخ | {% trans "Method" %} / الطريقة | @@ -201,13 +201,13 @@ {% if purchase.notes %} -|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + |
{% trans "Item Description" %}
وصف العنصر
|
- + |
{% trans "Cost Price" %}
سعر التكلفة
|
- + |
{% trans "Quantity" %}
الكمية
|
- + |
{% trans "Total" %}
المجموع
|
@@ -93,24 +93,24 @@
|---|---|---|---|---|---|---|---|
| + |
{{ item.product.name_ar }}
{{ item.product.name_en }}
|
- {{ settings.currency_symbol }}{{ item.cost_price|floatformat:3 }} | -{{ item.quantity|floatformat:2 }} | -{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} | +{{ settings.currency_symbol }}{{ item.cost_price|floatformat:3 }} | +{{ item.quantity|floatformat:2 }} | +{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} |
| - | + |
{% trans "Total Credit" %}
إجمالي الرصيد المسترد
|
- {{ settings.currency_symbol }}{{ purchase_return.total_amount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ purchase_return.total_amount|floatformat:3 }} | |||
{{ purchase_return.notes }}
{% trans "Purchase Return Confirmation" %} / تأكيد مرتجع مشتريات
{% trans "Software by Meezan" %} / برمجة ميزان
{{ settings.address }}
{{ settings.phone }}
{{ settings.email }}
@@ -66,10 +66,10 @@| + |
{% trans "Item Description" %}
وصف العنصر
|
- + |
{% trans "Unit Price" %}
سعر الوحدة
|
- + |
{% trans "Quantity" %}
الكمية
|
- + |
{% trans "Total" %}
المجموع
|
@@ -137,72 +137,72 @@
|---|---|---|---|---|---|---|---|
| + |
{{ item.product.name_ar }}
{{ item.product.name_en }}
|
- {{ settings.currency_symbol }}{{ item.unit_price|floatformat:3 }} | -{{ item.quantity|floatformat:2 }} | -{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} | +{{ settings.currency_symbol }}{{ item.unit_price|floatformat:3 }} | +{{ item.quantity|floatformat:2 }} | +{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} |
| - | + |
{% trans "Subtotal" %}
المجموع الفرعي
|
- {{ settings.currency_symbol }}{{ quotation.total_amount|add:quotation.discount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ quotation.total_amount|add:quotation.discount|floatformat:3 }} | |||
| - | + |
{% trans "Discount" %}
الخصم
|
- -{{ settings.currency_symbol }}{{ quotation.discount|floatformat:3 }} | +-{{ settings.currency_symbol }}{{ quotation.discount|floatformat:3 }} | |||
| - | + |
{% trans "Grand Total" %}
المجموع الكلي
|
- {{ settings.currency_symbol }}{{ quotation.total_amount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ quotation.total_amount|floatformat:3 }} | |||
{{ quotation.notes }}
{% trans "This is a computer generated quotation." %} / هذا عرض سعر تم إنشاؤه بواسطة الكمبيوتر.
{% trans "Software by Meezan" %} / برمجة ميزان
{{ settings.address }}
{{ settings.phone }}
{{ settings.email }}
| + |
{% trans "Item Description" %}
وصف العنصر
|
- + |
{% trans "Unit Price" %}
سعر الوحدة
|
- + |
{% trans "Quantity" %}
الكمية
|
- + |
{% trans "Total" %}
المجموع
|
@@ -93,24 +93,24 @@
|---|---|---|---|---|---|---|---|
| + |
{{ item.product.name_ar }}
{{ item.product.name_en }}
|
- {{ settings.currency_symbol }}{{ item.unit_price|floatformat:3 }} | -{{ item.quantity|floatformat:2 }} | -{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} | +{{ settings.currency_symbol }}{{ item.unit_price|floatformat:3 }} | +{{ item.quantity|floatformat:2 }} | +{{ settings.currency_symbol }}{{ item.line_total|floatformat:3 }} |
| - | + |
{% trans "Total Refund" %}
إجمالي المبلغ المرتجع
|
- {{ settings.currency_symbol }}{{ sale_return.total_amount|floatformat:3 }} | +{{ settings.currency_symbol }}{{ sale_return.total_amount|floatformat:3 }} | |||
{{ sale_return.notes }}
{% trans "Sales Return Confirmation" %} / تأكيد مرتجع مبيعات
{% trans "Software by Meezan" %} / برمجة ميزان
{% trans "Biometric Device ID" %}: {{ employee.biometric_id|default:"-" }}
+{% trans "Department" %}: {{ employee.department.name_en }} / {{ employee.department.name_ar }}
{% trans "Position" %}: {{ employee.job_position.title_en }} / {{ employee.job_position.title_ar }}
{% trans "Hire Date" %}: {{ employee.hire_date }}
@@ -43,4 +45,4 @@| {% trans "Biometric ID" %} | {% trans "Name" %} | {% trans "Department" %} | {% trans "Position" %} | @@ -28,6 +29,7 @@|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ employee.biometric_id|default:"-" }} | {{ employee.first_name }} {{ employee.last_name }} @@ -50,7 +52,7 @@ | |||||||||||||
| {% trans "No employees found." %} | +{% trans "No employees found." %} | |||||||||||||