Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FicheParentDisc (FPDISC), is used to apply slip bottom discount or surcharge according to the slip totals of the materials under the material classes mentioned in the function. 
FicheGrupDisc (FGDISC), is used to apply slip bottom discount or surcharge according to the slip totals of the materials under the material groups mentioned in the function. 
FicheItemDisc (FIDISC),  is used to apply slip bottom discount or surcharge according to the slip totals of the materials mentioned in the function. (* character can bu used to cover all materials on the material code field.)

Order Type:

1: En DüşükMinimum

2: En YüksekMaximum




3: Giriş Sırası (Düz)

4: Giriş Sırası (Ters)

...

3: Net Line Amount (Main Unit)

4: KDV Hariç (Satırdaki BirimExcl. VAT (Unit Used)

5: KDV Dahil (Satırdaki BirimVAT Included (Unit Used)

6: Satır Net Tutarı (Satırdaki BirimLine Amount (Unit Used)

Kampanya Kartında SQLINFO Kullanımı

Kampanya kartı içerisinde olmayan alanlar yada başka bir tabloda değer getirmek için SQLINFO fonksiyonu kullanılabilir.

Örnek: Sipariş yada Fatura içerisinde birden fazla malzemeye aynı indirimi yapmak için SQLINFO fonksiyonu kullanılması.

Malzeme Adı

SQLINFO Usage in Campaign Cards

SQLINFO function can be used to bring value to nonexistent fields in campaign card or in another table. 

For Example: Using SQLINFO function to apply same discount to more than one material in an order or invoice. 
  
Material Name      

A

B

C

D

EMalzeme Sınıfı Kodu

Material Class Code           

PGMalzeme Sınıfı Açıklaması

Material Class Description

PG

Ortak kampanya uygulanacak malzeme kartları Malzeme sınıfı açılarak bağlantı yapılmalıdır. 

MALZEME – MALZEME SINIF BAÐLANTISINI LISTELEYEN QUERYQUERY LISTING THE MATERIAL - MATERIAL CLASS CONNECTION

SELECT

COUNT (*)

FROM

LG_010_ITEMS I (NOLOCK)

...

I.CODE LIKE 'PG.001'

AND S.CODE LIKE 'PG' 

QUERY' NIN FONKSİYON HALİNE GETİRİLMESİTURNING QUERY INTO FUNCTION 

CREATE FUNCTION [dbo].[FN_MS_KAMPANYA_010] (@MALZ VARCHAR(21), @SINIF VARCHAR(21))

...

Not : Fonksiyon SQL' de bir kez çalıştırılarak sql tarafına fonksiyon olarak eklenmesi sağlanmalıdır. 

FONKSİYON' UN QUERY İLE ÇALIŞTIRILMASI

SELECT DBO.FN_MS_KAMPANYA_010('PG.004','PG') FROM L_CAPIFIRM WHERE NR=10 

FONKSİYON' UN SQLINFO HALİNE GETİRİLMESİ

VAL(_SQLINFO("DBO.FN_MS_KAMPANYA_010('"P101"','PG')","L_CAPIFIRM","NR=10"))

...