- longitud del usuario
This commit is contained in:
@@ -5194,7 +5194,7 @@ Partial Class Ventas
|
||||
HdnTotalVenta.Value = DbRowVenta("Total").ToString().FormatoNumero(2)
|
||||
TxtMotivoDescuento.Text = DbRowVenta("MotivoDescuento").ToString()
|
||||
TxtObsFact.Text = DbRowVenta("Observaciones").ToString()
|
||||
LblUsuario.Text = DbRowVenta("Nombre").ToString()
|
||||
LblUsuario.Text = DbRowVenta("Nombre").ToString().Substring(0, If(DbRowVenta("Nombre").ToString.Length > 30, 30, DbRowVenta("Nombre").ToString.Length))
|
||||
LblFechaRegistro.Text = DbRowVenta("FechaIng").ToString().ToDate.ToShortDateString
|
||||
LblSeTimbro.Text = DbRowVenta("SeTimbro").ToString()
|
||||
LblMail.Text = DbRowVenta("EnvioMail").ToString()
|
||||
@@ -26187,7 +26187,26 @@ Partial Class Ventas
|
||||
|
||||
#Region " SALDAR VENTA "
|
||||
Protected Sub BtnSaldarVenta_Click(sender As Object, e As EventArgs)
|
||||
SaldarVenta()
|
||||
'SaldarVenta()
|
||||
|
||||
Dim ObjCancelacion As New Timbrado
|
||||
|
||||
Dim FolioFiscal As String = LblFolioFiscal.Text
|
||||
Dim RFCEmisor As String = UsuarioActual.Empresa.RFC
|
||||
Dim RFCReceptor As String = LblRFC.Text
|
||||
Dim CvePACCancelacion As Integer = 4
|
||||
|
||||
|
||||
Dim RespCancelacion As RespuestaCancelacionSAT = ObjCancelacion.CFDICancelar(UsuarioActual.Empresa, FolioFiscal, TxtTotal.Text.ToDecimal, RFCReceptor, RFCEmisor, CvePACCancelacion, CveSATMotivoCancelacion:=3)
|
||||
|
||||
If RespCancelacion.Verificado Then
|
||||
|
||||
|
||||
|
||||
Else
|
||||
Alert("Los servicios de cancelación del SAT no se encuentran disponibles o presentan time out. Intente de nuevo en unos minutos.<br/>Origen del error: WebService www.sat.gob.mx", TipoMensaje.MsgError)
|
||||
End If
|
||||
|
||||
End Sub
|
||||
Private Sub SaldarVenta()
|
||||
'Dim ObjVenta As New ClsVentas
|
||||
|
||||
Reference in New Issue
Block a user