diff --git a/accounting/__pycache__/urls.cpython-311.pyc b/accounting/__pycache__/urls.cpython-311.pyc index 38d3eff..2953fcd 100644 Binary files a/accounting/__pycache__/urls.cpython-311.pyc and b/accounting/__pycache__/urls.cpython-311.pyc differ diff --git a/accounting/__pycache__/views.cpython-311.pyc b/accounting/__pycache__/views.cpython-311.pyc index 60fe963..30c1509 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/vat_report.html b/accounting/templates/accounting/vat_report.html new file mode 100644 index 0000000..e5a5b9d --- /dev/null +++ b/accounting/templates/accounting/vat_report.html @@ -0,0 +1,121 @@ +{% extends 'base.html' %} +{% load i18n %} + +{% block content %} +
{% trans "Tax Declaration Summary" %} / ملخص الإقرار الضريبي
+| {% trans "Total Sales (Excl. VAT)" %} إجمالي المبيعات (غير شامل الضريبة) |
+ {{ total_sales_subtotal|floatformat:3 }} {{ global_settings.currency_symbol }} | +
| {% trans "Total VAT Collected" %} إجمالي الضريبة المحصلة |
+ {{ total_output_vat|floatformat:3 }} {{ global_settings.currency_symbol }} | +
| {% trans "Total Gross Sales" %} إجمالي المبيعات (شامل الضريبة) |
+ {{ total_sales_gross|floatformat:3 }} {{ global_settings.currency_symbol }} | +
| {% trans "Total Purchases (Excl. VAT)" %} إجمالي المشتريات (غير شامل الضريبة) |
+ {{ total_purchases_subtotal|floatformat:3 }} {{ global_settings.currency_symbol }} | +
| {% trans "Total VAT Paid (Recoverable)" %} إجمالي الضريبة المدفوعة (القابلة للاسترداد) |
+ {{ total_input_vat|floatformat:3 }} {{ global_settings.currency_symbol }} | +
| {% trans "Total Gross Purchases" %} إجمالي المشتريات (شامل الضريبة) |
+ {{ total_purchases_gross|floatformat:3 }} {{ global_settings.currency_symbol }} | +
+ {% if net_vat > 0 %} + {% trans "Amount to be paid to Tax Authority" %} / المبلغ المستحق للدفع للهيئة الضريبية + {% else %} + {% trans "Amount to be refunded from Tax Authority" %} / المبلغ المستحق للاسترداد من الهيئة الضريبية + {% endif %} +
+Phone: {{ selected_customer.phone }}
{% endif %} +Date Range:
++ {% if start_date %}{{ start_date }}{% else %}Start{% endif %} + to + {% if end_date %}{{ end_date }}{% else %}Present{% endif %} +
+| Date | Invoice # | -Total | -Paid | -Balance | +Total | +Paid | +Balance | |
|---|---|---|---|---|---|---|---|---|
| {{ sale.created_at|date:"Y-m-d" }} | -{{ sale.invoice_number }} | -{{ sale.total_amount }} | -{{ sale.paid_amount }} | -{{ sale.balance_due }} | +{{ sale.invoice_number|default:sale.id }} | +{{ sale.total_amount }} | +{{ sale.paid_amount }} | +{{ sale.balance_due }} |
| Totals: | +{{ total_amount|floatformat:2 }} | +{{ total_paid|floatformat:2 }} | +{{ total_balance|floatformat:2 }} | +|||||
Phone: {{ selected_supplier.phone }}
{% endif %} +Date Range:
++ {% if start_date %}{{ start_date }}{% else %}Start{% endif %} + to + {% if end_date %}{{ end_date }}{% else %}Present{% endif %} +
+| Date | Ref # | -Total | -Paid | -Balance | +Total | +Paid | +Balance | |
|---|---|---|---|---|---|---|---|---|
| {{ purchase.created_at|date:"Y-m-d" }} | -{{ purchase.invoice_number }} | -{{ purchase.total_amount }} | -{{ purchase.paid_amount }} | -{{ purchase.balance_due }} | +{{ purchase.invoice_number|default:purchase.id }} | +{{ purchase.total_amount }} | +{{ purchase.paid_amount }} | +{{ purchase.balance_due }} |
| Totals: | +{{ total_amount|floatformat:2 }} | +{{ total_paid|floatformat:2 }} | +{{ total_balance|floatformat:2 }} | +|||||