diff --git a/loko/common/static/common/base_style.css b/loko/common/static/common/base_style.css index 5e005f1..84d1237 100644 --- a/loko/common/static/common/base_style.css +++ b/loko/common/static/common/base_style.css @@ -571,4 +571,13 @@ label, .text-status-validated { color: #388e3c !important; } .text-status-invoiced { color: #738f7a !important; } .text-status-closed { color: #09425f !important; } -.text-status-canceled { color: #cfd8dc !important; } \ No newline at end of file +.text-status-canceled { color: #cfd8dc !important; } + +/* Badge & utilitaire Indigo (destinations externes, tiers, partenaires) */ +.badge-indigo { + background-color: #6610f2 !important; + color: #ffffff !important; +} +.bg-indigo { + background-color: #6610f2 !important; +} \ No newline at end of file diff --git a/loko/mobile/templates/mobile/mobile_base.html b/loko/mobile/templates/mobile/mobile_base.html index f08c817..e89b9ee 100644 --- a/loko/mobile/templates/mobile/mobile_base.html +++ b/loko/mobile/templates/mobile/mobile_base.html @@ -19,6 +19,13 @@ :root { --brand-color: #0f172a; } + .badge-indigo { + background-color: #6610f2 !important; + color: #ffffff !important; + } + .bg-indigo { + background-color: #6610f2 !important; + } body { padding-top: 4.5rem; padding-bottom: 3.5rem; diff --git a/loko/stock/models.py b/loko/stock/models.py index 5683961..9529dbe 100644 --- a/loko/stock/models.py +++ b/loko/stock/models.py @@ -2441,6 +2441,11 @@ class ProductionOrder(models.Model): verbose_name = _("Bon de confection") verbose_name_plural = _("Bons de confection") + @property + def is_external(self): + """Retourne True si le bon de confection est destiné à l'usage externe.""" + return self.destination == self.DESTINATION_EXTERNAL + @property def is_reopened(self): """Retourne True si le bon a été réouvert et est actuellement en cours ou à traiter.""" diff --git a/loko/stock/templates/stock/mobile/stock_preparation_order_detail_mobile.html b/loko/stock/templates/stock/mobile/stock_preparation_order_detail_mobile.html index 3860019..4adacfa 100644 --- a/loko/stock/templates/stock/mobile/stock_preparation_order_detail_mobile.html +++ b/loko/stock/templates/stock/mobile/stock_preparation_order_detail_mobile.html @@ -365,8 +365,13 @@ {% if item_data.production_order %}
@@ -406,8 +411,13 @@ {% if oi_data.production_order %} diff --git a/loko/stock/templates/stock/mobile/stock_production_order_detail_mobile.html b/loko/stock/templates/stock/mobile/stock_production_order_detail_mobile.html index f0c7553..669646b 100644 --- a/loko/stock/templates/stock/mobile/stock_production_order_detail_mobile.html +++ b/loko/stock/templates/stock/mobile/stock_production_order_detail_mobile.html @@ -47,7 +47,14 @@{{ order.created_at|date:"d/m/Y H:i" }} @@ -123,11 +127,11 @@