VyA - calendario pierde las fechas, la regresa al mes actual al hacer postback
This commit is contained in:
@@ -926,7 +926,7 @@ Partial Class OC_OC
|
||||
ChkEntregaDirecta.Checked = False
|
||||
End If
|
||||
|
||||
If CveOrdenCompra > 0 AndAlso Request("Conta") IsNot Nothing AndAlso Request("Conta").ToEntero = 1 Then
|
||||
If UsuarioActual.CveEmpresa.Contiene(13, 73) AndAlso CveOrdenCompra > 0 AndAlso Request("Conta") IsNot Nothing AndAlso Request("Conta").ToEntero = 1 Then
|
||||
If GeneraPrePolizaPresupuesto(CveOrdenCompra, Nothing) Then
|
||||
Alert("PrePoliza de Presupuesto Generada Correctamente")
|
||||
Else
|
||||
@@ -3522,7 +3522,7 @@ Partial Class OC_OC
|
||||
End If
|
||||
|
||||
|
||||
If Not HuboError AndAlso UsuarioActual.Empresa.Funcionalidad(532) = "1" Then
|
||||
If UsuarioActual.CveEmpresa.Contiene(13, 73) Then
|
||||
|
||||
If Not GeneraPrePolizaPresupuesto(objOrdenCompra.CveOrdenCompra, objOrdenCompra.IniciaTransacSQL) Then
|
||||
HuboError = True
|
||||
@@ -9161,7 +9161,7 @@ Partial Class OC_OC
|
||||
|
||||
Dim Respuesta As Boolean = True
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(532) = "1" Then
|
||||
If UsuarioActual.CveEmpresa.Contiene(13, 73) Then
|
||||
|
||||
Dim CveMonedaPresupuesto As Integer = DdlMoneda.SelectedValue.ToEntero
|
||||
Dim TC As Decimal = If(CveMonedaPresupuesto = 1, 1, GlobalTipoCambio(TxtFecha.Text.ToDate).ToDecimal)
|
||||
@@ -9204,7 +9204,7 @@ Partial Class OC_OC
|
||||
|
||||
Dim Importe As Decimal = item.TotalSum
|
||||
Dim ImporteME As Decimal = If(CveMonedaPresupuesto = 1, 0, item.TotalSum)
|
||||
Dim ImporteMN As Decimal = If(CveMonedaPresupuesto = 1, 1, item.TotalSum * TC)
|
||||
Dim ImporteMN As Decimal = If(CveMonedaPresupuesto = 1, item.TotalSum, item.TotalSum * TC)
|
||||
|
||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePolizaPreSuPuesto, False, Importe, ImporteMN, 154, SerieFolio, SerieFolio, ImporteME:=ImporteME, TipoCambio:=TC, CveProveedor:=DdlProveedores.SelectedValue.ToEntero, CveOC:=CveOrdenCompraPresupuesto, CveClasificacion:=item.CveClasificacion, CveSubProyecto:=item.CveSubProyecto, Contabilizable:=True) Then
|
||||
Respuesta = False
|
||||
|
||||
Reference in New Issue
Block a user