mejora en registro y considera importes negativos
This commit is contained in:
@@ -911,7 +911,7 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
If idCuentaContabilizacion = 1 AndAlso (IdCtaContable = 0) Then
|
If idCuentaContabilizacion = 1 AndAlso (IdCtaContable = 0) Then
|
||||||
idCuentaContabilizacion = 0
|
idCuentaContabilizacion = 0
|
||||||
End If
|
End If
|
||||||
If Importe > 0 Then
|
If Importe <> 0 Then
|
||||||
Dim tCveCuenta As Integer = gvr.DataKey("CveCuenta").ToEntero
|
Dim tCveCuenta As Integer = gvr.DataKey("CveCuenta").ToEntero
|
||||||
|
|
||||||
'If gvr.datakey("CveConcepto") = "299" Then
|
'If gvr.datakey("CveConcepto") = "299" Then
|
||||||
@@ -929,15 +929,9 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
'If CvePeriodo > 0 Then
|
If MsgError = "" AndAlso ObjMov.ValidacionPrePolizaCuadre(CvePrePoliza, 1) Then
|
||||||
' If Not ObjNom.UpdateProvisionNomina(CvePeriodo, CvePrePoliza, UsuarioActual.CveEmpresa) Then
|
|
||||||
' MsgError = "No se pudo actualizar el periodo de la nómina"
|
|
||||||
' End If
|
|
||||||
'End If
|
|
||||||
|
|
||||||
If ObjMov.ValidacionPrePolizaCuadre(CvePrePoliza, 1) Then
|
|
||||||
If ObjMov.ValorPolizaDescuadre > 0 Then
|
If ObjMov.ValorPolizaDescuadre > 0 Then
|
||||||
GuardaLogAD($"Contabilidad/RegPrePolizas | Error:{ObjMov.MensajePolizaDescuadre} Diferencia:{ObjMov.ValorDiferencia} | CvePrePoliza:{CvePrePoliza}", "LogPrePolizas")
|
GuardaLogAD($"Contabilidad/RegPrePolizas | Error:{ObjMov.MensajePolizaDescuadre} Diferencia:{ObjMov.ValorDiferencia} | CvePrePoliza:{CvePrePoliza}", "LogPrePolizas")
|
||||||
MsgError = ObjMov.MensajePolizaDescuadre
|
MsgError = ObjMov.MensajePolizaDescuadre
|
||||||
@@ -986,7 +980,8 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
GvMov.DataBind()
|
GvMov.DataBind()
|
||||||
TxtFecha.Text = ""
|
TxtFecha.Text = ""
|
||||||
TxtObservaciones.Text = ""
|
TxtObservaciones.Text = ""
|
||||||
Else
|
Else
|
||||||
|
Alert(MsgError.ToString, ModExtensiones.TipoMensaje.MsgError)
|
||||||
ObjIE.RollBack()
|
ObjIE.RollBack()
|
||||||
If Conta IsNot Nothing Then Conta.RollBack()
|
If Conta IsNot Nothing Then Conta.RollBack()
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user