From f5058aa968e5f499fcdc58bb89e9b585b337ee94 Mon Sep 17 00:00:00 2001 From: numex-admin Date: Thu, 10 Sep 2026 08:59:08 +0000 Subject: [PATCH] =?UTF-8?q?Numex=20yay=C4=B1n:=20views/products/detail.ejs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/products/detail.ejs | 87 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 views/products/detail.ejs diff --git a/views/products/detail.ejs b/views/products/detail.ejs new file mode 100644 index 0000000..c5e3152 --- /dev/null +++ b/views/products/detail.ejs @@ -0,0 +1,87 @@ +
+

<%= product.name %>

+

Kayıt #<%= product.id %> · <%= product.categoryName %>

+ +
+ +<% if (lowStock) { %> +
⚠️ Bu ürün düşük stok seviyesinde! Stok: <%= product.stock %> (eşik: <%= product.minimumStock %>)
+<% } %> + +
+
+

Mevcut Stok

+
<%= product.stock %>
+
+
+

Birim Fiyat

+
<%= product.unitPrice.toLocaleString('tr-TR') %> ₺
+
+
+

Stok Değeri

+
<%= (product.stock * product.unitPrice).toLocaleString('tr-TR') %> ₺
+
+
+ +
+

Stok İşlemleri

+
+ + +
+
+ +
+

Hareket Geçmişi

+ <% if (movements.length === 0) { %> +

Bu ürün için henüz hareket kaydı yok.

+ <% } else { %> + + + + + + <% movements.forEach(m => { %> + + + + + + + + + <% }) %> + +
#TipMiktarKalan StokNotTarih
<%= m.id %> + <%= m.type === 'in' ? 'Giriş' : 'Çıkış' %><%= m.quantity %><%= m.remainingStock %><%= m.note || '—' %><%= new Date(m.date).toLocaleString('tr-TR') %>
+ <% } %> +
+ + + + +