Skip to Content
0
Former Member
Apr 03, 2014 at 02:09 AM

Error when posting AR Invoice with serial

24 Views

Hi experts, just want to ask what is the problem when posting AR Invoice with serial number. The error is "Internal error (-5002) occurred [الرسالة 131-183]"

Here's my code :

                            If Not oSerial Is Nothing Then
                                oSerial.DefaultView.RowFilter = "product_reference_code = '" & oDrView("product_reference_code") & "' " 'AND site_reference = '" & oDrView("site_reference") & "' "
                                For Each oDrSerial As DataRowView In oSerial.DefaultView
                                    Try
                                        .Lines.SerialNumbers.Quantity = 1
                                        .Lines.SerialNumbers.InternalSerialNumber = oDrSerial("serial_no")
                                        .Lines.SerialNumbers.Add()
                                    Catch ex As Exception
                                    End Try
                                Next
                            End If