Sub RptDtlStck(result As DBResult)
Main.SQLMem.ExecNonQuery("delete from MEM_SLS_ERR")
Private Dt,FrmN,Art,Dscp As String
Private Qty_In,Qty_Ot,Blnc As Int
Art = RptUI.RptParams.Get("Art")
For Each records() As Object In result.Rows
If records(5) <> Null Then
Dt = DateTime.Date(records(0))
FrmN = records(1)
Dscp = Dt & "-" & FrmN & CRLF & records(2)
Qty_In = 0
Qty_Ot = 0
Blnc = 0
If records(3) <> Null Then Qty_In = records(3)
If records(4) <> Null Then Qty_Ot = records(4)
If records(5) <> Null Then Blnc = records(5)
Main.SQLMem.ExecNonQuery2("insert into MEM_SLS_ERR (ART,DSCP,QTY_IN,QTY_OT,BLNC) values(?,?,?,?,?)", Array As Object(Art,Dscp,Qty_In,Qty_Ot,Blnc))
End If
Next
End Sub