STOK_ DEPO_ DETAYLARI
Stok Depo Detayları
STOK_DEPO_DETAYLARI, Mikro V16 veritabanında stok depo detayları verilerini tutan tablodur.
Bu tablo Mikro'nun Stok modülüne aittir ve toplam 59 alan içerir.
59
Toplam alan
0
Bağlı tablo
3
İndeks
sdp_Guid
Birincil anahtar
Alanlar
59 / 59 alan| # | Alan Adı | Tip | Açıklama | İlişki / Kod |
|---|---|---|---|---|
| 0 | sdp_Guid | Uniqueidentifier | — | |
| 1 | sdp_DBCno | Smallint | — | |
| 2 | sdp_SpecRECno | Integer | — | |
| 3 | sdp_iptal | Bit | — | |
| 4 | sdp_fileid | Smallint | — | |
| 5 | sdp_hidden | Bit | — | |
| 6 | sdp_kilitli | Bit | — | |
| 7 | sdp_degisti | Bit | — | |
| 8 | sdp_checksum | Integer | — | |
| 9 | sdp_create_user | Smallint | — | |
| 10 | sdp_create_date | DateTime | — | |
| 11 | sdp_lastup_user | Smallint | — | |
| 12 | sdp_lastup_date | DateTime | — | |
| 13 | sdp_special1 | Nvarchar(4) | — | |
| 14 | sdp_special2 | Nvarchar(4) | — | |
| 15 | sdp_special3 | Nvarchar(4) | — | |
| 16 | sdp_depo_kod | Nvarchar(25) | Stok Depo Kodu | |
| 17 | sdp_depo_no | Tinyint | Stok Depo No | |
| 18 | sdp_kar_orani | Float | Stok Depo Kar Oranı | |
| 19 | sdp_min_stok | Float | Stok Depo Minimum Seviyesi | |
| 20 | sdp_sip_stok | Float | Stok Depo Sipariş Seviyesi | |
| 21 | sdp_max_stok | Float | Stok Depo Maksimum Seviyesi | |
| 22 | sdp_ver_sipbirimpntr | Tinyint | Verilen Sipariş Birimi | STOKLAR |
| 23 | sdp_al_sipbirimpntr | Tinyint | Alınan Sipariş Birimi | STOKLAR |
| 24 | sdp_sipsure | Smallint | Sipariş Süresi (Gün) | |
| 25 | sdp_yerkodu | Nvarchar(10) | Depo Yer Kodu - Ambar Adresi | |
| 26 | sdp_satisdursun | Tinyint | Satış Dursun? | |
| 27 | sdp_sipdursun | Tinyint | Sipariş Dursun? | |
| 28 | sdp_malkabuldursun | Tinyint | Mal Kabul Dursun? | |
| 29 | sdp_MalKabulGun1 | Bit | Mal Kabul Günü | |
| 30 | sdp_MalKabulGun2 | Bit | Mal Kabul Günü | |
| 31 | sdp_MalKabulGun3 | Bit | Mal Kabul Günü | |
| 32 | sdp_MalKabulGun4 | Bit | Mal Kabul Günü | |
| 33 | sdp_MalKabulGun5 | Bit | Mal Kabul Günü | |
| 34 | sdp_MalKabulGun6 | Bit | Mal Kabul Günü | |
| 35 | sdp_MalKabulGun7 | Bit | Mal Kabul Günü | |
| 36 | sdp_siparisGun1 | Bit | Sipariş Günleri | |
| 37 | sdp_siparisGun2 | Bit | Sipariş Günleri | |
| 38 | sdp_siparisGun3 | Bit | Sipariş Günleri | |
| 39 | sdp_siparisGun4 | Bit | Sipariş Günleri | |
| 40 | sdp_siparisGun5 | Bit | Sipariş Günleri | |
| 41 | sdp_siparisGun6 | Bit | Sipariş Günleri | |
| 42 | sdp_siparisGun7 | Bit | Sipariş Günleri | |
| 43 | sdp_IskontoYapilamaz | Bit | İskonto Yapılamaz? | |
| 44 | sdp_Tasfiyede_Fl | Bit | Tasfiyede? | |
| 45 | sdp_Pasif_fl | Bit | Aktif/Pasif | |
| 46 | sdp_sat_cari_kod | Nvarchar(25) | Stok Depo Satıcı Cari Kodu | |
| 47 | sdpKasaIskontoOrani | Float | Kasa İskonto Oranı | |
| 48 | sdpKasaIskontoTutari | Float | Kasa İskonto Tutarı | |
| 49 | sdp_eksiyedusebilir_fl | Bit | Eksiye Düşebilir Mi ? | |
| 50 | sdp_UrunSorumlusuKodu | Nvarchar(25) | Ürün Sorumlusu Kodu | |
| 51 | sdp_KasadaTaksitlenebilir_fl | Bit | Kasada Taksitlenebilir Mi ? | |
| 52 | sdp_siparisyeri | Tinyint | Sipariş Yeri | |
| 53 | sdp_muhkod_artikeli | Nvarchar(10) | Muhasebe Kodu Artikeli | |
| 54 | sdp_pozisyonbayrak_kodu | Nvarchar(25) | Pozisyon Bayrak Kodu | |
| 55 | sdp_min_stok_belirleme_gun | Smallint | Minimum Seviye Belirleme Operasyonu İçin Gün Bilgisi | |
| 56 | sdp_sip_stok_belirleme_gun | Smallint | Sipariş Seviye Belirleme Operasyonu İçin Gün Bilgisi | |
| 57 | sdp_max_stok_belirleme_gun | Smallint | Maksimum Seviye Belirleme Operasyonu İçin Gün Bilgisi | |
| 58 | sdp_sev_bel_opr_degerlendime_fl | Bit | Seviye Belirleme Operasyonu Değerlendirmesi Yapılacak Mı? |
İndeksler ve Anahtarlar
3 indeksPRIMARY KEYsdp_Guid
UNIQUEsdp_depo_kod, sdp_depo_no
INDEXsdp_sat_cari_kod, sdp_depo_kod
İlişkili Tablolar
STOK_DEPO_DETAYLARI aşağıdaki tablolara referans verir. Bir kayıt oluşturulurken bu tablolardan değer alınır.
Aynı Modüldeki Tablolar
StokStok modülüne ait diğer Mikro V16 tabloları:
BARKOD_ETIKET_TANIMLARIBARKOD_TANIMLARIDEPO_GRUPLARIDEPOLARDEPOLAR_ARASI_SIPARISLERETIKETETIKETBASISEMRI_STOK_TUKETIMLERIRAKIP_STOK_DEPO_DETAYLARIRAKIP_STOKLARSTOK_ALT_GRUPLARISTOK_ALTERNATIFLERISTOK_AMBALAJLARISTOK_ANA_GRUPLARISTOK_ANAHAMMADDELERISTOK_BAG_TANIMLARISTOK_BEDEN_TANIMLARISTOK_BIRIMLERI+31 tablo →
Örnek SQL Sorguları
4 sorguTemel veri listeleme
STOK_DEPO_DETAYLARI tablosundan başlıca alanları, en güncel kayıtlardan başlayarak çeker.
SELECT TOP 100 sdp_Guid, sdp_DBCno, sdp_SpecRECno, sdp_iptal, sdp_fileid FROM STOK_DEPO_DETAYLARI ORDER BY sdp_Guid DESC
Belirli bir kaydı getirme
Birincil anahtar (sdp_Guid) üzerinden tek bir kaydı sorgular.
SELECT sdp_Guid, sdp_DBCno, sdp_SpecRECno, sdp_iptal, sdp_fileid FROM STOK_DEPO_DETAYLARI WHERE sdp_Guid = @kayit_no
STOKLAR ile birleştirme (JOIN)
STOK_DEPO_DETAYLARI kayıtlarını ilişkili STOKLAR tablosuyla eşleştirir.
SELECT a.sdp_ver_sipbirimpntr, b.sto_kod FROM STOK_DEPO_DETAYLARI a INNER JOIN STOKLAR b ON a.sdp_ver_sipbirimpntr = b.sto_kod
Toplam / özet hesaplama
Kayıt sayısını ve sdpKasaIskontoTutari alanının toplamını hesaplar.
SELECT COUNT(*) AS kayit_sayisi,
SUM(sdpKasaIskontoTutari) AS toplam
FROM STOK_DEPO_DETAYLARISık Sorulan Sorular
STOK_DEPO_DETAYLARI ile entegrasyon mu yapıyorsunuz?
Veri aktarımı, SQL raporlama veya Mikro API entegrasyonu için uzman ekibimizden destek alın.