Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Private Sub EditorCompras_AntesDeGravar(Cancel As Boolean)
  2. Dim i As Long
  3. For i = 1 To Me.DocumentoCompra.Linhas.NumItens
  4. If Me.DocumentoCompra.TipoDoc = "PM1" Then
  5. Me.DocumentoCompra.Linhas(i).CamposUtil("CDU_numdocLinhas").Valor = "PM1" + Me.DocumentoCompra.NumDoc
  6. End If
  7. If Me.DocumentoCompra.TipoDoc = "PM2" Then
  8. Me.DocumentoCompra.Linhas(i).CamposUtil("CDU_numdocLinhas").Valor = "PM2" + Me.DocumentoCompra.NumDoc
  9. End If
  10. If Me.DocumentoCompra.TipoDoc = "PM3" Then
  11. Me.DocumentoCompra.Linhas(i).CamposUtil("CDU_numdocLinhas").Valor = "PM3" + Me.DocumentoCompra.NumDoc
  12. End If
  13.  
  14. Next
  15.  
  16. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement