diff --git a/templates/consumable_detail.html b/templates/consumable_detail.html index 1253ce3..8877c8a 100644 --- a/templates/consumable_detail.html +++ b/templates/consumable_detail.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} -{% block page_title %}{{ item.item_code }} - {{ item.name }}{% endblock %} +{% block page_title %}{{ item.item_code }}{% endblock %} {% block page_title_guide %}Buku Besar & Riwayat Stok Consumable{% endblock %} {% block page_guide_content %} @@ -15,58 +15,94 @@ {% block content %} -
{{ item.brand|default:"Tanpa Merek" }} • {{ item.specification|default:"Tidak ada spesifikasi khusus" }}
+ ++ {{ item.brand|default:"Tanpa Merek" }} + {% if item.specification %} + • + {{ item.specification }} + {% endif %} +
| Tanggal & Ref | Tipe Transaksi | Kuantitas Transaksi | @@ -654,5 +703,13 @@ function closeModalReversal() { document.getElementById('modalReversal').classList.add('hidden'); } + + // Tutup dropdown saat klik di luar + window.addEventListener('click', function(e) { + var trxDropdown = document.getElementById('trxActionDropdown'); + if (trxDropdown && !trxDropdown.contains(e.target)) { + trxDropdown.style.display = 'none'; + } + }); {% endblock %}
|---|