From 001bee8ca979bbaf5138824974be3aaf68930e45 Mon Sep 17 00:00:00 2001 From: Karl Determe Date: Tue, 29 Sep 2026 15:20:03 +0200 Subject: [PATCH] feat: add stock batch views, templates, and comprehensive test suite --- .../stock/mobile/new_stock_batch_mobile.html | 339 +++++++++----- .../templates/stock/new_stock_batch.html | 412 +++++++++--------- loko/stock/tests.py | 142 ++++++ loko/stock/views.py | 85 ++-- 4 files changed, 600 insertions(+), 378 deletions(-) diff --git a/loko/stock/templates/stock/mobile/new_stock_batch_mobile.html b/loko/stock/templates/stock/mobile/new_stock_batch_mobile.html index 879ee88..1970c45 100644 --- a/loko/stock/templates/stock/mobile/new_stock_batch_mobile.html +++ b/loko/stock/templates/stock/mobile/new_stock_batch_mobile.html @@ -70,7 +70,7 @@
{% if movement_type == 'in' %} - +
{% translate "Source" %}
@@ -92,32 +92,8 @@
-
-
{% translate "Destination" %}
-
- - -
-
{% elif movement_type == 'out' %} - -
-
{% translate "Source" %}
-
- - -
-
+
{% translate "Destination" %}
@@ -139,26 +115,6 @@
- {% else %} - -
- - -
-
- - -
{% endif %} {% comment %}
@@ -179,12 +135,12 @@ - + {% elif movement_type == 'out' %} - + {% endif %}
@@ -302,8 +258,39 @@
- - + + {% if movement_type == 'in' %} +
+ + + +
+ {% elif movement_type == 'out' %} +
+ + + +
+ {% elif movement_type == 'transfer' %} +
+ + + +
+
+ + + +
+ {% endif %}