Merge branch 'master' of http://jarvizu@192.168.10.111:8383/SIG.git
This commit is contained in:
@@ -2746,7 +2746,7 @@ Namespace Modelos
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'ContPAQ El movimiento 1 es el de Venta
|
'ContPAQ El movimiento 1 es el de Venta
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And UsuarioActual.Empresa.UsaContabilidad = True And Not ErrorPrepoliza Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso Not ErrorPrepoliza Then
|
||||||
If idCuentaContabilizacion > 0 Then
|
If idCuentaContabilizacion > 0 Then
|
||||||
If ObjConta.ContabilizarPrePoliza(ObjFactura.CvePrePoliza, ObjFactura.CveUsuario, UsuarioActual.Empresa, ObjConta:=objContPaqi) Then
|
If ObjConta.ContabilizarPrePoliza(ObjFactura.CvePrePoliza, ObjFactura.CveUsuario, UsuarioActual.Empresa, ObjConta:=objContPaqi) Then
|
||||||
Else
|
Else
|
||||||
|
|||||||
@@ -467,7 +467,7 @@ public partial class Bancos_Devoluciones : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
//CONTABILIZA
|
//CONTABILIZA
|
||||||
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") && UsuarioActual.Empresa.UsaContabilidad)
|
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals(""))
|
||||||
{
|
{
|
||||||
if (IDCtaContableDevolucion > 0 && IDCtaContableBancos > 0)
|
if (IDCtaContableDevolucion > 0 && IDCtaContableBancos > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -423,7 +423,19 @@ Partial Class Bancos_IE
|
|||||||
End Set
|
End Set
|
||||||
|
|
||||||
End Property
|
End Property
|
||||||
|
Private Property PermisoComplementoVigente As Boolean
|
||||||
|
Get
|
||||||
|
If ViewState("PermisoComplementoVigente") Is Nothing Then
|
||||||
|
Return False
|
||||||
|
Else
|
||||||
|
Return CBool(ViewState("PermisoComplementoVigente"))
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
ViewState("PermisoComplementoVigente") = value
|
||||||
|
End Set
|
||||||
|
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
#Region "CANCELACIÓN COMPLEMENTO MODAL V2"
|
#Region "CANCELACIÓN COMPLEMENTO MODAL V2"
|
||||||
@@ -689,7 +701,7 @@ Partial Class Bancos_IE
|
|||||||
LnkAjustarMovimiento.Visible = True
|
LnkAjustarMovimiento.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.CveEmpresa = 72 OrElse Not VerificaComplementos(True) Then 'No entrara para la empresa 72 porque tarda mucho el load
|
If Not VerificaComplementos(True) Then
|
||||||
|
|
||||||
LnkCancelarComplemento.Visible = False
|
LnkCancelarComplemento.Visible = False
|
||||||
LnkCancelarComplementoImporte.Visible = False
|
LnkCancelarComplementoImporte.Visible = False
|
||||||
@@ -1090,6 +1102,9 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
If (Not VerificaComplementos(True)) And UsuarioActual.TienePermisoProceso(99) And ObjIE.CveEstatusIE <> 2 Then
|
If (Not VerificaComplementos(True)) And UsuarioActual.TienePermisoProceso(99) And ObjIE.CveEstatusIE <> 2 Then
|
||||||
BtnEditar.Visible = True
|
BtnEditar.Visible = True
|
||||||
|
PermisoComplementoVigente = True
|
||||||
|
Else
|
||||||
|
BtnEditar.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UpGuardar.Update()
|
UpGuardar.Update()
|
||||||
@@ -3049,7 +3064,7 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
'El movimiento 1 es el de Venta
|
'El movimiento 1 es el de Venta
|
||||||
'Conta SIG
|
'Conta SIG
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" And UsuarioActual.Empresa.UsaContabilidadSIG Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" AndAlso UsuarioActual.Empresa.UsaContabilidadSIG Then
|
||||||
If CveCuentaBeneficiario > 0 And CveCuentaConta > 0 Then
|
If CveCuentaBeneficiario > 0 And CveCuentaConta > 0 Then
|
||||||
If ObjMov.ContabilizarPrePolizaSIG(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
If ObjMov.ContabilizarPrePolizaSIG(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
IDPoliza = ObjMov.ContaIdPoliza
|
IDPoliza = ObjMov.ContaIdPoliza
|
||||||
@@ -3067,7 +3082,7 @@ Partial Class Bancos_IE
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta ContPAQ
|
'Conta ContPAQ
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" And UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" Then
|
||||||
If IDCtaBeneficiario > 0 And IDCtaContable > 0 Then
|
If IDCtaBeneficiario > 0 And IDCtaContable > 0 Then
|
||||||
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
IDPoliza = ObjMov.ContaIdPoliza
|
IDPoliza = ObjMov.ContaIdPoliza
|
||||||
@@ -5598,14 +5613,14 @@ Partial Class Bancos_IE
|
|||||||
BtnEditar.Visible = False
|
BtnEditar.Visible = False
|
||||||
UpGuardar.Update()
|
UpGuardar.Update()
|
||||||
|
|
||||||
ControlesEdicion(True)
|
ControlesEdicion()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ControlesEdicion(mostrar As Boolean)
|
Private Sub ControlesEdicion()
|
||||||
|
|
||||||
|
|
||||||
If mostrar Then
|
If PermisoComplementoVigente Then
|
||||||
|
|
||||||
DdlTipoTransaccion.Enabled = True
|
DdlTipoTransaccion.Enabled = True
|
||||||
LblCuenta.Visible = False
|
LblCuenta.Visible = False
|
||||||
@@ -5617,12 +5632,11 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
CargaCuentasDepositoClientes()
|
CargaCuentasDepositoClientes()
|
||||||
|
|
||||||
|
Else
|
||||||
|
TxtFolio.Enabled = True
|
||||||
|
TxtObservaciones.Enabled = True
|
||||||
|
|
||||||
|
UpDatos.Update()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -527,7 +527,7 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
//CONTABILIZA
|
//CONTABILIZA
|
||||||
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") && UsuarioActual.Empresa.UsaContabilidad)
|
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals(""))
|
||||||
{
|
{
|
||||||
if (IDCtaContableAcreedor > 0 && IDCtaContableBancos > 0)
|
if (IDCtaContableAcreedor > 0 && IDCtaContableBancos > 0)
|
||||||
{
|
{
|
||||||
@@ -801,7 +801,7 @@ public partial class Bancos_PagoAcreedor : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
//CONTABILIZA
|
//CONTABILIZA
|
||||||
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") && UsuarioActual.Empresa.UsaContabilidad)
|
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") )
|
||||||
{
|
{
|
||||||
if (IDCtaContableAcreedor > 0 && IDCtaContableBancos > 0)
|
if (IDCtaContableAcreedor > 0 && IDCtaContableBancos > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -447,7 +447,7 @@ public partial class Bancos_PagoDeudor : ClsPaginas
|
|||||||
bool AutoConta = UsuarioActual.Empresa.Funcionalidad(200).Equals("1");
|
bool AutoConta = UsuarioActual.Empresa.Funcionalidad(200).Equals("1");
|
||||||
if (UsuarioActual.CveEmpresa == 119) AutoConta = false;
|
if (UsuarioActual.CveEmpresa == 119) AutoConta = false;
|
||||||
|
|
||||||
if (AutoConta && MsgError.Equals("") && UsuarioActual.Empresa.UsaContabilidad)
|
if (AutoConta && MsgError.Equals(""))
|
||||||
{
|
{
|
||||||
//JJMQ:20190103: Cambio la siguiente linea porque esta validando siempre una complementaria aunque el movto sea dlls
|
//JJMQ:20190103: Cambio la siguiente linea porque esta validando siempre una complementaria aunque el movto sea dlls
|
||||||
//if (IDCtaContableDeudorPrestamo > 0 && IDCtaContableBancosPrestamo > 0 && IDCtaContableBancosComplementariaPrestamo > 0 && IDCtaContableDeudorCompPrestamo > 0)
|
//if (IDCtaContableDeudorPrestamo > 0 && IDCtaContableBancosPrestamo > 0 && IDCtaContableBancosComplementariaPrestamo > 0 && IDCtaContableDeudorCompPrestamo > 0)
|
||||||
@@ -838,7 +838,7 @@ public partial class Bancos_PagoDeudor : ClsPaginas
|
|||||||
bool AutoConta = UsuarioActual.Empresa.Funcionalidad(200).Equals("1");
|
bool AutoConta = UsuarioActual.Empresa.Funcionalidad(200).Equals("1");
|
||||||
if (UsuarioActual.CveEmpresa == 119) AutoConta = false;
|
if (UsuarioActual.CveEmpresa == 119) AutoConta = false;
|
||||||
|
|
||||||
if (AutoConta && MsgError.Equals("") && UsuarioActual.Empresa.UsaContabilidad)
|
if (AutoConta && MsgError.Equals(""))
|
||||||
{
|
{
|
||||||
if (IDCtaContableDeudor > 0 && IDCtaContableBancos > 0)
|
if (IDCtaContableDeudor > 0 && IDCtaContableBancos > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3090,7 +3090,7 @@ Partial Class Bancos_PopIECompras
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta ContPAQ
|
'Conta ContPAQ
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" AndAlso UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" Then
|
||||||
If idCuentaContabilizacion > 0 Then
|
If idCuentaContabilizacion > 0 Then
|
||||||
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
IdPoliza = ObjMov.ContaIdPoliza
|
IdPoliza = ObjMov.ContaIdPoliza
|
||||||
|
|||||||
@@ -3390,7 +3390,7 @@ Partial Class Bancos_PopIEVentas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta ContPAQ
|
'Conta ContPAQ
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" AndAlso UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" Then
|
||||||
If idCuentaContabilizacion > 0 Then
|
If idCuentaContabilizacion > 0 Then
|
||||||
|
|
||||||
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
|
|||||||
@@ -366,7 +366,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
//CONTABILIZA
|
//CONTABILIZA
|
||||||
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") && UsuarioActual.Empresa.UsaContabilidad)
|
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") )
|
||||||
{
|
{
|
||||||
if (IDCtaContablePrestamo > 0 && IDCtaContableBancos > 0)
|
if (IDCtaContablePrestamo > 0 && IDCtaContableBancos > 0)
|
||||||
{
|
{
|
||||||
@@ -626,7 +626,7 @@ public partial class Bancos_PrestamoPersonal : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
//CONTABILIZA
|
//CONTABILIZA
|
||||||
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") && UsuarioActual.Empresa.UsaContabilidad)
|
if (UsuarioActual.Empresa.Funcionalidad(200).Equals("1") && MsgError.Equals("") )
|
||||||
{
|
{
|
||||||
if (IDCtaContablePrestamo > 0 && IDCtaContableBancosPrestamo > 0)
|
if (IDCtaContablePrestamo > 0 && IDCtaContableBancosPrestamo > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1823,7 +1823,7 @@ Partial Class Bancos_ProveedoresAbonar
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta ContPAQ
|
'Conta ContPAQ
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" And UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" Then
|
||||||
If idCuentaContabilizacion > 0 Then
|
If idCuentaContabilizacion > 0 Then
|
||||||
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa, ObjConta:=ObjConta) Then
|
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa, ObjConta:=ObjConta) Then
|
||||||
' Alert(alertaContabilizacion, ModExtensiones.TipoMensaje.MsgInformacion)
|
' Alert(alertaContabilizacion, ModExtensiones.TipoMensaje.MsgInformacion)
|
||||||
|
|||||||
@@ -412,7 +412,7 @@ Partial Class Bancos_Transferencias
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta ContPAQ
|
'Conta ContPAQ
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" AndAlso UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" Then
|
||||||
If (IdCtaContableOrigen > 0 AndAlso IdCtaContableDestino > 0) OrElse (IdCtaContableDestino > 0 AndAlso Opcion = 1) Then
|
If (IdCtaContableOrigen > 0 AndAlso IdCtaContableDestino > 0) OrElse (IdCtaContableDestino > 0 AndAlso Opcion = 1) Then
|
||||||
|
|
||||||
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa, Fecha:=TxtFechaDocumento.Text) Then
|
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa, Fecha:=TxtFechaDocumento.Text) Then
|
||||||
|
|||||||
@@ -7009,7 +7009,7 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta ContPAQ
|
'Conta ContPAQ
|
||||||
If ObjContaAC IsNot Nothing AndAlso Not ErrorPrepoliza AndAlso Not ErrorPrepolizaDescuadre AndAlso UsuarioActual.Empresa.UsaContabilidad Then
|
If ObjContaAC IsNot Nothing AndAlso Not ErrorPrepoliza AndAlso Not ErrorPrepolizaDescuadre AndAlso UsuarioActual.Empresa.Funcionalidad(200).ToString = "1" Then
|
||||||
If idCuentaContabilizacion > 0 Then
|
If idCuentaContabilizacion > 0 Then
|
||||||
If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa, ObjConta:=ObjContaAC) Then
|
If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa, ObjConta:=ObjContaAC) Then
|
||||||
' Alert(alertaContabilizacion, ModExtensiones.TipoMensaje.MsgInformacion)
|
' Alert(alertaContabilizacion, ModExtensiones.TipoMensaje.MsgInformacion)
|
||||||
@@ -8575,7 +8575,7 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta ContPAQ
|
'Conta ContPAQ
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And ErrorMovtosCxP = 0 And UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso ErrorMovtosCxP = 0 Then
|
||||||
If idCuentaContabilizacion > 0 Then
|
If idCuentaContabilizacion > 0 Then
|
||||||
If ObjConta.ContabilizarPrePoliza(CvePrePolizaNueva, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
If ObjConta.ContabilizarPrePoliza(CvePrePolizaNueva, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
alertaContabilizacion.AppendFormat("<a class='Texto' href = '/Contabilidad/RegPoliza.aspx?IdPoliza={0}'>{1}<\a><br>", ObjConta.ContaIdPoliza, ObjConta.ContaFolio)
|
alertaContabilizacion.AppendFormat("<a class='Texto' href = '/Contabilidad/RegPoliza.aspx?IdPoliza={0}'>{1}<\a><br>", ObjConta.ContaIdPoliza, ObjConta.ContaFolio)
|
||||||
|
|||||||
@@ -1295,7 +1295,7 @@ Partial Class Compras_ReembolsosComprobaciones
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta ContPAQ AUTOMATICA
|
'Conta ContPAQ AUTOMATICA
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError.Trim = "" AndAlso UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError.Trim = "" Then
|
||||||
If CvePrePolizaIERegistrado > 0 Then
|
If CvePrePolizaIERegistrado > 0 Then
|
||||||
If IdCtaPersonal > 0 Or DdlCajaChica.Visible Then
|
If IdCtaPersonal > 0 Or DdlCajaChica.Visible Then
|
||||||
If IdCtaProveedor > 0 Then
|
If IdCtaProveedor > 0 Then
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ Partial Class Compras_RepNotasCredito
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" And UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" Then
|
||||||
If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
If ObjConta.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
If MensajeAlert.ToString = "" Then
|
If MensajeAlert.ToString = "" Then
|
||||||
MensajeAlert.AppendFormat("Los siguientes movimientos fueron saldados correctamente: <br/>")
|
MensajeAlert.AppendFormat("Los siguientes movimientos fueron saldados correctamente: <br/>")
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ Partial Class Compras_RepRembolsoComprobaciones
|
|||||||
Msg.AppendFormat("Se unificaron todas las compras con éxito")
|
Msg.AppendFormat("Se unificaron todas las compras con éxito")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If UsuarioActual.Empresa.UsaContabilidad AndAlso Not TieneError Then
|
If UsuarioActual.Empresa.Funcionalidad(200).ToString = "1" AndAlso Not TieneError Then
|
||||||
If ObjAC Is Nothing Then
|
If ObjAC Is Nothing Then
|
||||||
TieneError = True
|
TieneError = True
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -95,15 +95,18 @@
|
|||||||
<td>
|
<td>
|
||||||
<asp:GridView ID="GvDatos" runat="server" data-sort="true" AutoGenerateColumns="False" EmptyDataText="No hay movimientos." ToolTip="Listado de Movimientos" CssClass="table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
|
<asp:GridView ID="GvDatos" runat="server" data-sort="true" AutoGenerateColumns="False" EmptyDataText="No hay movimientos." ToolTip="Listado de Movimientos" CssClass="table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:HyperLinkField HeaderText="Folio Almacen" DataTextField="FolioAlmacen" DataNavigateUrlFields="CveMovimiento" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" ItemStyle-Width="7.5%" />
|
<asp:HyperLinkField HeaderText="Folio Almacen" DataTextField="FolioAlmacen" DataNavigateUrlFields="CveMovimiento" DataNavigateUrlFormatString="/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Left"/>
|
||||||
<asp:BoundField HeaderText="Almacen" DataField="Almacen" ItemStyle-Width="20%" />
|
<asp:BoundField HeaderText="Almacen" DataField="Almacen" ItemStyle-Width="20%" />
|
||||||
<asp:BoundField HeaderText="Fecha Movto" DataField="FechaMovto" DataFormatString="{0:d}" ItemStyle-Width="7.5%" />
|
<asp:BoundField HeaderText="Fecha Movto" DataField="FechaMovto" DataFormatString="{0:d}" ItemStyle-Width="7.5%" />
|
||||||
<asp:HyperLinkField HeaderText="Folio Compra" DataTextField="FolioCompra" DataNavigateUrlFields="CveCompra" DataNavigateUrlFormatString="/Compras/Compras.aspx?CveCompra={0}" ItemStyle-Width="7.5%" />
|
<asp:BoundField HeaderText="Total" DataField="TotalAlmacen" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
||||||
|
<asp:HyperLinkField HeaderText="Folio Compra" DataTextField="FolioCompra" DataNavigateUrlFields="CveCompra" DataNavigateUrlFormatString="/Compras/Compras.aspx?CveCompra={0}" ItemStyle-Width="7.5%" ItemStyle-HorizontalAlign="Left" />
|
||||||
<asp:BoundField HeaderText="Observaciones" DataField="Observaciones" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%" />
|
<asp:BoundField HeaderText="Observaciones" DataField="Observaciones" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%" />
|
||||||
<asp:BoundField HeaderText="Proveedor" DataField="RazonSocial" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="20%" />
|
<asp:BoundField HeaderText="Proveedor" DataField="RazonSocial" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="20%" />
|
||||||
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
<asp:BoundField HeaderText="SubTotal" DataField="SubTotal" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
||||||
|
<asp:BoundField HeaderText="Descuentos" DataField="Descuentos" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
||||||
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
<asp:BoundField HeaderText="IVA" DataField="IVA" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
||||||
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
||||||
|
<asp:BoundField HeaderText="Diferencia" DataField="Diferencia" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="7.5%" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -43,12 +43,15 @@ Partial Class Inventarios_RepAlmacenCompras
|
|||||||
#Region " CARGA VALORES INICIALES "
|
#Region " CARGA VALORES INICIALES "
|
||||||
Private Sub CargaPermisos()
|
Private Sub CargaPermisos()
|
||||||
Dim TienePermisoImportes As Boolean = UsuarioActual.TienePermisoProceso(201)
|
Dim TienePermisoImportes As Boolean = UsuarioActual.TienePermisoProceso(201)
|
||||||
GvDatos.Columns(6).Visible = TienePermisoImportes
|
GvDatos.Columns(3).Visible = TienePermisoImportes
|
||||||
GvDatos.Columns(7).Visible = TienePermisoImportes
|
GvDatos.Columns(7).Visible = TienePermisoImportes
|
||||||
GvDatos.Columns(8).Visible = TienePermisoImportes
|
GvDatos.Columns(8).Visible = TienePermisoImportes
|
||||||
|
GvDatos.Columns(9).Visible = TienePermisoImportes
|
||||||
|
GvDatos.Columns(10).Visible = TienePermisoImportes
|
||||||
|
GvDatos.Columns(11).Visible = TienePermisoImportes
|
||||||
|
|
||||||
If TienePermisoImportes Then
|
If TienePermisoImportes Then
|
||||||
CabeceraAlmacen.Width = "35%"
|
CabeceraAlmacen.Width = "36%"
|
||||||
CabeceraCompra.Width = "65%"
|
CabeceraCompra.Width = "65%"
|
||||||
Else
|
Else
|
||||||
CabeceraAlmacen.Width = "45%"
|
CabeceraAlmacen.Width = "45%"
|
||||||
|
|||||||
@@ -1538,7 +1538,7 @@ Partial Class Ventas_ClientesAbonar
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'Conta ContPAQ
|
'Conta ContPAQ
|
||||||
If UsuarioActual.Empresa.Funcionalidad(200) = "1" And MsgError = "" AndAlso UsuarioActual.Empresa.UsaContabilidad Then
|
If UsuarioActual.Empresa.Funcionalidad(200) = "1" AndAlso MsgError = "" Then
|
||||||
If idCuentaContabilizacion > 0 Then
|
If idCuentaContabilizacion > 0 Then
|
||||||
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
If ObjMov.ContabilizarPrePoliza(CvePrePoliza, UsuarioActual.CveUsuario, UsuarioActual.Empresa) Then
|
||||||
IDPoliza = ObjMov.ContaIdPoliza
|
IDPoliza = ObjMov.ContaIdPoliza
|
||||||
|
|||||||
@@ -6572,7 +6572,7 @@ Partial Class Ventas
|
|||||||
AutoConta = False
|
AutoConta = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If AutoConta And UsuarioActual.Empresa.UsaContabilidad = True Then
|
If AutoConta Then
|
||||||
If idCuentaContabilizacion > 0 Then
|
If idCuentaContabilizacion > 0 Then
|
||||||
If ObjConta.ContabilizarPrePoliza(ObjFactura.CvePrePoliza, ObjFactura.CveUsuario, UsuarioActual.Empresa, ObjConta:=ObjContPaq) Then
|
If ObjConta.ContabilizarPrePoliza(ObjFactura.CvePrePoliza, ObjFactura.CveUsuario, UsuarioActual.Empresa, ObjConta:=ObjContPaq) Then
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user