From 8735f902a19c2624ae1095886aa86a775c39fd00 Mon Sep 17 00:00:00 2001 From: Faheedkhan Date: Wed, 25 Jun 2025 14:31:46 +0300 Subject: [PATCH 1/2] update --- templates/header.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/templates/header.html b/templates/header.html index eeb6a35e..00227175 100644 --- a/templates/header.html +++ b/templates/header.html @@ -99,6 +99,14 @@ {% endif %} + + {% if perms.django_ledger.view_invoicemodel %} {% endif %} - + -- 2.39.5 From 4f364e279866c361c34ca32bc7f375eed70d58e0 Mon Sep 17 00:00:00 2001 From: Faheedkhan Date: Wed, 25 Jun 2025 16:08:36 +0300 Subject: [PATCH 2/2] update --- templates/header.html | 21 +++++---- templates/purchase_orders/po_detail.html | 59 +++++++++++------------- 2 files changed, 37 insertions(+), 43 deletions(-) diff --git a/templates/header.html b/templates/header.html index 88723579..cadf5166 100644 --- a/templates/header.html +++ b/templates/header.html @@ -31,17 +31,11 @@ - + {% endif %} + @@ -476,7 +477,7 @@ - {% else %} + {% else %} diff --git a/templates/purchase_orders/po_detail.html b/templates/purchase_orders/po_detail.html index 79465d8b..b4b82328 100644 --- a/templates/purchase_orders/po_detail.html +++ b/templates/purchase_orders/po_detail.html @@ -7,17 +7,15 @@ {% block content %}
- +
-
{% include 'purchase_orders/includes/card_po.html' with dealer_slug=request.dealer.slug po_model=po_model entity_slug=entity_slug style='po-detail' %}
- {% trans 'PO List' %} @@ -25,9 +23,8 @@
- -
- + +
@@ -51,28 +48,24 @@
-
+
+ +
{% include "purchase_orders/includes/mark_as.html" %} {% endblock %} @@ -91,15 +84,15 @@ document.getElementById('POModalTitle').textContent = title; document.getElementById('POModalBody').innerHTML = ` -
- - ${buttonText} - - -
- `; +
+ + ${buttonText} + + +
+ `; modal.show(); }; -- 2.39.5