STRUCTURE - > CUSTENTR1
EVENTS BEFORESAVEE AŞAĞIDAKINI YAPIŞTIR
Sub BeforeSave(proceed as Integer)
MaxGridLine=MGridLines("InvoiceGrid")-1
for i=0 to MaxGridLine
GetGridRowHandle("InvoiceGrid",i,recH)
AppTables[9].GetIntFieldR(recH,"LINETYPE",intLineType)
AppTables[9].GetIntFieldR(recH,"GLOBTRANS",intGlobTrans)
AppTables[9].GetIntFieldR(recH,"PARENTLNREF",intPARENTLNREF)
AppTables[9].GetIntFieldR(recH,"TRCODE",intTRCODE)
if (intLineType = 1) and (intGlobTrans = 1) and (intPARENTLNREF = 0) and (intTRCODE = 1) then
warn("Fiş Genelindeki Promosyonları silmelisiniz")
proceed = 0
end if
next i
End Sub
EVENTS BEFORESAVEE AŞAĞIDAKINI YAPIŞTIR
Sub BeforeSave(proceed as Integer)
MaxGridLine=MGridLines("InvoiceGrid")-1
for i=0 to MaxGridLine
GetGridRowHandle("InvoiceGrid",i,recH)
AppTables[9].GetIntFieldR(recH,"LINETYPE",intLineType)
AppTables[9].GetIntFieldR(recH,"GLOBTRANS",intGlobTrans)
AppTables[9].GetIntFieldR(recH,"PARENTLNREF",intPARENTLNREF)
AppTables[9].GetIntFieldR(recH,"TRCODE",intTRCODE)
if (intLineType = 1) and (intGlobTrans = 1) and (intPARENTLNREF = 0) and (intTRCODE = 1) then
warn("Fiş Genelindeki Promosyonları silmelisiniz")
proceed = 0
end if
next i
End Sub
No comments:
Post a Comment