Tomar corte del usuario actual al generar devolucion de efectivo
This commit is contained in:
@@ -1307,16 +1307,25 @@ Partial Class Bancos_IE
|
|||||||
GvRH.DataBind()
|
GvRH.DataBind()
|
||||||
UpGvRH.Update()
|
UpGvRH.Update()
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaCorteCaja(CveCuenta As Integer)
|
Private Sub CargaCorteCaja()
|
||||||
'Checar si hay un Turno Abierto
|
'Checar si hay un Turno Abierto
|
||||||
Dim ObjPVenta As New ClsPuntoVenta
|
Dim ObjPVenta As New ClsPuntoVenta
|
||||||
|
|
||||||
If ObjPVenta.GetCortesPorCuenta(CveCuenta, UsuarioActual.CveEmpresa) Then
|
If ObjPVenta.GetVta_Cortes("-1", "-1", UsuarioActual.CveUsuario, -1, UsuarioActual.CveEmpresa, 0) Then
|
||||||
|
If ObjPVenta.DtResultados.Rows.Count > 0 Then
|
||||||
CveCorte = ObjPVenta.CveCorte
|
CveCorte = ObjPVenta.CveCorte
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
ObjPVenta.Dispose()
|
ObjPVenta.Dispose()
|
||||||
|
|
||||||
|
'Dim ObjPVenta As New ClsPuntoVenta
|
||||||
|
|
||||||
|
'If ObjPVenta.GetCortesPorCuenta(CveCuenta, UsuarioActual.CveEmpresa) Then
|
||||||
|
|
||||||
|
' CveCorte = ObjPVenta.CveCorte
|
||||||
|
|
||||||
|
'End If
|
||||||
|
'ObjPVenta.Dispose()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#Region " CARGA PROVEEDOR "
|
#Region " CARGA PROVEEDOR "
|
||||||
@@ -1671,7 +1680,7 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
'PAGAR NC CON C.CH DEBE DESCONTAR EN EL CORTE
|
'PAGAR NC CON C.CH DEBE DESCONTAR EN EL CORTE
|
||||||
If Opcion IsNot Nothing AndAlso Opcion = "DevDinV" AndAlso dr("CveTipoCuenta").ToString.ToEntero = 1 Then
|
If Opcion IsNot Nothing AndAlso Opcion = "DevDinV" AndAlso dr("CveTipoCuenta").ToString.ToEntero = 1 Then
|
||||||
CargaCorteCaja(DdlCuenta.SelectedValue.ToEntero)
|
CargaCorteCaja()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If dr("UsaTarjeta").ToString = "True" Then
|
If dr("UsaTarjeta").ToString = "True" Then
|
||||||
|
|||||||
Reference in New Issue
Block a user