Guest User

Untitled

a guest
Nov 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. For Each row As DataGridViewRow In grdItem.Rows
  2. If row.Cells(5).Value <> 0 Then
  3. Dim ds As Integer = 0
  4. chk = Item_Chk(0, row.Cells(1).Value.ToString)
  5. If chk = True Then
  6. ds = 1
  7. End If
  8. chk = Item_Chk(1, row.Cells(1).Value.ToString)
  9. If chk = True Then
  10. ds = 0
  11. End If
  12. If Del_Item_Save(delno, row.Cells(1).Value.ToString, row.Cells(2).Value.ToString, row.Cells(3).Value.ToString, If(row.Cells(4).Value.ToString = "-", 0, row.Cells(4).Value.ToString), row.Cells(5).Value.ToString, ds, txtRefNo.Text) = True Then
  13. End If
  14. Dim barcode As String = row.Cells(1).Value.ToString
  15. If ds = 1 Then
  16. barcode = Item_Get(19, barcode)
  17. End If
  18. 'update stock
Add Comment
Please, Sign In to add comment