lundi 2 février 2015

IF statement in vdc configuration file


"@@FILE VERSION@@","251"
"@@TABLEDEF START@@"
"ID=AutoInc,0,""ID"","""",10,Data,"""""
"RECTYP=Integer,0,""RECTYP"","""",10,Data,"""""
"LINEFORMAT=String,255,""LINEFORMAT"","""",255,Data,"""""
"PROCNAME=String,50,""PROCNAME"","""",50,Data,"""""
"ISLID=Integer,0,""ISLID"","""",10,Data,"""""
"ISLPRNT=Integer,0,""ISLPRNT"","""",10,Data,"""""
"ISLTIP=Integer,0,""ISLTIP"","""",10,Data,"""""
"PAR1=Integer,0,""PAR1"","""",10,Data,"""""
"PAR2=Integer,0,""PAR2"","""",10,Data,"""""
"PSTR1=String,50,""PSTR1"","""",50,Data,"""""
"PSTR2=String,50,""PSTR2"","""",50,Data,"""""
"MM=Memo,0,""MM"","""",10,Data,"""""
"@@INDEXDEF START@@"
"@@INDEXDEF END@@"
"@@TABLEDEF END@@"
"ID","RECTYP","LINEFORMAT","PROCNAME","ISLID","ISLPRNT","ISLTIP","PAR1","PAR2","PSTR1","PSTR2","MM",
"40","10","Bilgileri veritabanına aktar","","0","0","0","7","0","","",,
"1","1","*","","0","0","0","1","0","","",,
"13","10","İşlem Görmeyen Satırları Logla","","0","0","0","0","0","","",,
"14","10","Hatalı Satırları Logla","","0","0","0","1","0","","",,
"0","0","Transit Dosyası (Barcode ve Miktarla)","Ver.1.0","0","0","0","0","1","SATIS","C:\POS\barkod.txt",,
"2","2","","","1","0","0","0","0","","",,
"3","3","0","Barcode","2","1","1","1","13","","",,
"8","4","txSATIS","","2","0","0","0","0","","",,
"10","5","KOD","aaa","3","2","1","0",,"","",,
"4","3","1","Adet","3","1","1","15","5","","",,
"11","5","Miktar","Adet","4","2","1","1","0","","",,
"6","3","__SQL('SELECT STOKNO FROM *!FTBLBIRIMLEREX WHERE BARCODE='''+BARCODE+'''')","aaa","5","1","2","0","0","","",,
"7","3","__SQL('SELECT SATISFIYATI1 FROM *!FTBLBIRIMLEREX WHERE BARCODE='''+BARCODE+'''')","Fiyat","6","1","2","0","0","","",,
"22","5","Fiyat","Fiyat","7","2","1","1","0","","",,
"9","3","aaa<>0","kayıt","7","1","4","2","0","","",,
"33","3","Fiyat","Fiyat","9","1","2","5","0","","0",,
"19","11","aaa","","9","-1","1","0","0","''","",,
"20","11","Fiyat","","10","-1","1","0","0","''","",,
"34","3","IF AAA=0 THEN MESAJ('Stok Bulunamadı. SATIR:'+__SATIR)","","11","1","2","0","0","","",,


This is a default code of our bussines software configuration file. This code executes txt file like this



9789756716175 0
9789756716151 0
9789756716168 0
9789756716199 5
9789756716236 15
9789756716243 20
9789756716038 21
9789756716274 28
9789756716250 31
9789756716106 67
9789756716083 74
9789756716090 74
9789756716052 83
9789756716045 88
9789756716069 91
9789756716076 115


but first three line quantity should be zero however software write to bill as one. I want to make a change to solve that problem. If quantity is zero confiquration should do anything and pass the next line. Can you help me?


Aucun commentaire:

Enregistrer un commentaire