Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -32,6 +32,8 @@ Public Class ClsClasificaciones
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Property CveClasificacion As Integer = -1
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Sub New(Optional TransaccionCompartida As SqlTransaction = Nothing)
|
Sub New(Optional TransaccionCompartida As SqlTransaction = Nothing)
|
||||||
@@ -273,6 +275,7 @@ Public Class ClsClasificaciones
|
|||||||
Public Function AddClasificaciones(Clasificacion As String, Codigo As String, IdCuentaGasto As Integer, CuentaGasto As String, IdCuentaCostos As Integer, CuentaCostos As String, IdCuentaIngreso As Integer, CuentaIngreso As String, CveCategoria As Integer, CveUsuario As Integer, CveEmpresa As Integer, Optional RequiereSerieLote As Integer = 0, Optional UsoClasificacion As Integer = -1, Optional CveSATPS As Integer = -1, Optional RequiereAFCompra As Boolean = False, Optional RequiereAFInsumo As Boolean = False, Optional RequierePersonal As Boolean = False,
|
Public Function AddClasificaciones(Clasificacion As String, Codigo As String, IdCuentaGasto As Integer, CuentaGasto As String, IdCuentaCostos As Integer, CuentaCostos As String, IdCuentaIngreso As Integer, CuentaIngreso As String, CveCategoria As Integer, CveUsuario As Integer, CveEmpresa As Integer, Optional RequiereSerieLote As Integer = 0, Optional UsoClasificacion As Integer = -1, Optional CveSATPS As Integer = -1, Optional RequiereAFCompra As Boolean = False, Optional RequiereAFInsumo As Boolean = False, Optional RequierePersonal As Boolean = False,
|
||||||
Optional EsAcumulador As Boolean = False, Optional TopVentas As Boolean = False, Optional TopCompras As Boolean = False, Optional PrecioBaseCosto As Decimal = -1) As Boolean
|
Optional EsAcumulador As Boolean = False, Optional TopVentas As Boolean = False, Optional TopCompras As Boolean = False, Optional PrecioBaseCosto As Decimal = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
Me.CveClasificacion = -1
|
||||||
|
|
||||||
DataAdapter("PA_ClasificacionesAdd")
|
DataAdapter("PA_ClasificacionesAdd")
|
||||||
|
|
||||||
@@ -308,11 +311,13 @@ Public Class ClsClasificaciones
|
|||||||
.Add("@TopVentas", SqlDbType.Bit).Value = TopVentas
|
.Add("@TopVentas", SqlDbType.Bit).Value = TopVentas
|
||||||
.Add("@PrecioBaseCosto", SqlDbType.Money).Value = PrecioBaseCosto
|
.Add("@PrecioBaseCosto", SqlDbType.Money).Value = PrecioBaseCosto
|
||||||
|
|
||||||
|
.Add("@CveClasificacion", SqlDbType.Int).Direction = ParameterDirection.Output
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
|
Me.CveClasificacion = SqlAdapter.SelectCommand.Parameters("@CveClasificacion").Value.ToString.ToEntero
|
||||||
Retorno = True
|
Retorno = True
|
||||||
Catch Ex1 As SqlException
|
Catch Ex1 As SqlException
|
||||||
If Ex1.Message.Contains("Número: 2627;") Then
|
If Ex1.Message.Contains("Número: 2627;") Then
|
||||||
|
|||||||
@@ -8591,19 +8591,18 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'VALIDA IMPORTES
|
'VALIDA IMPORTES
|
||||||
If CveFactura > 0 Then 'SI NO VIENE DE FACTURA/XML NO VALIDA TOTALES
|
If CveFactura > 0 Then 'SI NO VIENE DE FACTURA/XML NO VALIDA TOTALES
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If Not ValidaTotalesGuardar() Then
|
If Not ValidaTotalesGuardar() Then
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If DdlRembolsoCajaChica.SelectedValue.ToEntero() > 0 AndAlso DdlRembolsoPersonal.SelectedValue.ToEntero() > 0 Then
|
||||||
|
Alert("No se puede tener seleccionada una 'Caja Chica' y 'Personal/Empleado' a la vez", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
For Each Row As DataRow In TmpDT.Rows
|
For Each Row As DataRow In TmpDT.Rows
|
||||||
If Row("CveSubProyecto").ToString.ToEntero <= 0 Then
|
If Row("CveSubProyecto").ToString.ToEntero <= 0 Then
|
||||||
Alert("No se ha completado la asignacion de proyectos en la compra. ", TipoMensaje.MsgAdvertencia)
|
Alert("No se ha completado la asignacion de proyectos en la compra. ", TipoMensaje.MsgAdvertencia)
|
||||||
@@ -11968,13 +11967,15 @@ Partial Class Compras_Compras
|
|||||||
Protected Sub RblRembolso_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub RblRembolso_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
TrRembolsoCajaChica.Visible = False
|
TrRembolsoCajaChica.Visible = False
|
||||||
TrRembolsoPersonal.Visible = False
|
TrRembolsoPersonal.Visible = False
|
||||||
DdlRembolsoCajaChica.SelectedValueExist("-1")
|
DdlRembolsoCajaChica.SelectedValueExistInsert("-1", "Seleccione")
|
||||||
DdlRembolsoPersonal.SelectedValueExist("-1")
|
DdlRembolsoPersonal.SelectedValueExistInsert("-1", "Seleccione")
|
||||||
If RblRembolso.SelectedValue.ToEntero = 1 Then
|
If RblRembolso.SelectedValue.ToEntero = 1 Then
|
||||||
TrRembolsoPersonal.Visible = True
|
TrRembolsoPersonal.Visible = True
|
||||||
ElseIf RblRembolso.SelectedValue.ToEntero = 2 Then
|
ElseIf RblRembolso.SelectedValue.ToEntero = 2 Then
|
||||||
TrRembolsoCajaChica.Visible = True
|
TrRembolsoCajaChica.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
UPCondicionesPago.Update()
|
||||||
End Sub
|
End Sub
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|||||||
@@ -358,8 +358,8 @@
|
|||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlTieneLineaAdicional" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
<asp:DropDownList ID="DdlTieneLineaAdicional" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
<asp:ListItem Text="Si" Value="1"></asp:ListItem>
|
<asp:ListItem Text="Solo lineas adicionales" Value="1"></asp:ListItem>
|
||||||
<asp:ListItem Text="No" Value="0"></asp:ListItem>
|
<asp:ListItem Text="Sin lineas adicionales" Value="0"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2 .select2-selection__rendered{
|
.select2 .select2-selection__rendered {
|
||||||
line-height:1;
|
line-height: 1;
|
||||||
color:#111;
|
color: #111;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2 .select2-selection--multiple {
|
.select2 .select2-selection--multiple {
|
||||||
@@ -82,6 +82,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Cliente:
|
Cliente:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2" id="DivClientes" runat="server">
|
<div class="col-md-2" id="DivClientes" runat="server">
|
||||||
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlClientesWS" Width="100%" data-metodo="getcliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlClientesWS" Width="100%" data-metodo="getcliente" runat="server" DataTextField="NombreComercial" DataValueField="CveCliente" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
||||||
@@ -96,6 +97,7 @@
|
|||||||
|
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Sucursal:
|
Sucursal:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 ">
|
<div class="col-md-2 ">
|
||||||
<asp:DropDownList ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-small input-sm select2me" Width="100%">
|
<asp:DropDownList ID="DdlSubProyecto" runat="server" AppendDataBoundItems="true" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-small input-sm select2me" Width="100%">
|
||||||
@@ -104,6 +106,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Grupo:
|
Grupo:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 truncate">
|
<div class="col-md-2 truncate">
|
||||||
<asp:DropDownList ID="DdlGrupo" runat="server" CssClass="form-control input-small input-sm select2me" Style="max-width: 100px">
|
<asp:DropDownList ID="DdlGrupo" runat="server" CssClass="form-control input-small input-sm select2me" Style="max-width: 100px">
|
||||||
@@ -128,6 +131,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Vendedor:
|
Vendedor:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 ">
|
<div class="col-md-2 ">
|
||||||
<asp:DropDownList ID="DdlVendedor" runat="server" AppendDataBoundItems="true" DataTextField="Vendedor" DataValueField="CveVendedor" CssClass="form-control input-small input-sm select2me" Width="100%">
|
<asp:DropDownList ID="DdlVendedor" runat="server" AppendDataBoundItems="true" DataTextField="Vendedor" DataValueField="CveVendedor" CssClass="form-control input-small input-sm select2me" Width="100%">
|
||||||
@@ -136,6 +140,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate" title="Fecha Inicio Documento" data-toggle="tooltip" data-placement="top">
|
<div class="col-md-1 truncate" title="Fecha Inicio Documento" data-toggle="tooltip" data-placement="top">
|
||||||
Fecha Inicio Docto:
|
Fecha Inicio Docto:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
@@ -153,6 +158,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate" title="Fecha Fin Documento" data-toggle="tooltip" data-placement="top">
|
<div class="col-md-1 truncate" title="Fecha Fin Documento" data-toggle="tooltip" data-placement="top">
|
||||||
Fecha Fin Docto:
|
Fecha Fin Docto:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
@@ -173,6 +179,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Registró:
|
Registró:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 ">
|
<div class="col-md-2 ">
|
||||||
<asp:DropDownList ID="DdlUsuario" runat="server" AppendDataBoundItems="true" DataTextField="Usuario" DataValueField="CveUsuario" CssClass="form-control input-small input-sm select2me" Width="100%">
|
<asp:DropDownList ID="DdlUsuario" runat="server" AppendDataBoundItems="true" DataTextField="Usuario" DataValueField="CveUsuario" CssClass="form-control input-small input-sm select2me" Width="100%">
|
||||||
@@ -181,6 +188,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Responsable:
|
Responsable:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 ">
|
<div class="col-md-2 ">
|
||||||
<asp:DropDownList ID="DdlResponsable" runat="server" AppendDataBoundItems="true" DataTextField="Usuario" DataValueField="CveUsuario" CssClass="form-control input-small input-sm select2me" Width="100%">
|
<asp:DropDownList ID="DdlResponsable" runat="server" AppendDataBoundItems="true" DataTextField="Usuario" DataValueField="CveUsuario" CssClass="form-control input-small input-sm select2me" Width="100%">
|
||||||
@@ -190,6 +198,7 @@
|
|||||||
|
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Tipo Docto:
|
Tipo Docto:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 ">
|
<div class="col-md-2 ">
|
||||||
<asp:ListBox ID="DdlTipoDocto" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
<asp:ListBox ID="DdlTipoDocto" SelectionMode="Multiple" CssClass="form-control ddlFiltros input-sm select2me Widthall" Style="width: 100%;" runat="server">
|
||||||
@@ -210,6 +219,7 @@
|
|||||||
|
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Estatus Cobranza:
|
Estatus Cobranza:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlCobranzaEstatusFiltro" AppendDataBoundItems="true" DataValueField="CveCobranzaEstatus" DataTextField="CobranzaEstatus" runat="server" CssClass="form-control select2me">
|
<asp:DropDownList ID="DdlCobranzaEstatusFiltro" AppendDataBoundItems="true" DataValueField="CveCobranzaEstatus" DataTextField="CobranzaEstatus" runat="server" CssClass="form-control select2me">
|
||||||
@@ -224,6 +234,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1 truncate" data-toggle="tooltip" title="Fecha Vencimiento Inicial">
|
<div class="col-md-1 truncate" data-toggle="tooltip" title="Fecha Vencimiento Inicial">
|
||||||
Fecha Venc. Inicial:
|
Fecha Venc. Inicial:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
@@ -241,6 +252,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate" data-toggle="tooltip" title="Fecha Vencimiento Final">
|
<div class="col-md-1 truncate" data-toggle="tooltip" title="Fecha Vencimiento Final">
|
||||||
Fecha Venc. Final:
|
Fecha Venc. Final:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 100px !important; padding: 0px;">
|
||||||
@@ -259,6 +271,7 @@
|
|||||||
|
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Corte A:
|
Corte A:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
@@ -277,8 +290,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-1 truncate">
|
<div class="col-md-1 truncate">
|
||||||
Estatus Cliente:
|
Estatus Cliente:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlEstatusCliente" runat="server" AppendDataBoundItems="true" CssClass="form-control input-small input-sm select2me" Width="100%">
|
<asp:DropDownList ID="DdlEstatusCliente" runat="server" AppendDataBoundItems="true" CssClass="form-control input-small input-sm select2me" Width="100%">
|
||||||
@@ -291,9 +305,10 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1 truncate" title="Clasificación Cliente" data-toggle="tooltip" data-placement="top" >
|
<div class="col-md-1 truncate" title="Clasificación Cliente" data-toggle="tooltip" data-placement="top">
|
||||||
Clasificación Cliente:
|
Clasificación Cliente:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="form-control input-small input-sm select2me" Width="100%" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
<asp:DropDownList ID="DdlClienteClasificacion" AutoPostBack="true" OnSelectedIndexChanged="DdlClienteClasificacion_SelectedIndexChanged" runat="server" AppendDataBoundItems="true" CssClass="form-control input-small input-sm select2me" Width="100%" DataTextField="ClienteClasificacion" DataValueField="CveClienteClasificacion"></asp:DropDownList>
|
||||||
@@ -302,6 +317,7 @@
|
|||||||
|
|
||||||
<div class="col-md-1 truncate" title="Tipo Cliente:" data-toggle="tooltip" data-placement="top">
|
<div class="col-md-1 truncate" title="Tipo Cliente:" data-toggle="tooltip" data-placement="top">
|
||||||
Tipo Cliente:
|
Tipo Cliente:
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
@@ -314,22 +330,23 @@
|
|||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<asp:CheckBox ID="ChkAnticipos" runat="server" Text="Incluye Anticipos" TextAlign="Left" Checked="true" Visible="false" />
|
<asp:CheckBox ID="ChkAnticipos" runat="server" Text="Incluye Anticipos" TextAlign="Left" Checked="true" Visible="false" />
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-1 truncate" title="Tipo Cliente:" data-toggle="tooltip" data-placement="top">
|
|
||||||
Linea Adicional:
|
|
||||||
</div>
|
|
||||||
<div class="col-md-2">
|
|
||||||
<asp:DropDownList ID="DdlTieneLineaAdicional" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
|
||||||
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="Si" Value="1"></asp:ListItem>
|
|
||||||
<asp:ListItem Text="No" Value="0"></asp:ListItem>
|
|
||||||
</asp:DropDownList>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-1 truncate" title="Tipo Cliente:" data-toggle="tooltip" data-placement="top">
|
||||||
|
Linea Adicional:
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-md-2">
|
||||||
|
<asp:DropDownList ID="DdlTieneLineaAdicional" runat="server" AppendDataBoundItems="true" Class="table-group-action-input form-control input-inline input-small input-sm select2me">
|
||||||
|
<asp:ListItem Selected="True" Text="Todas" Value="-1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Solo lineas adicionales" Value="1"></asp:ListItem>
|
||||||
|
<asp:ListItem Text="Sin lineas adicionales" Value="0"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -337,7 +354,7 @@
|
|||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpCartera" runat="server" UpdateMode="Conditional">
|
<asp:UpdatePanel ID="UpCartera" runat="server" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6" runat="server" id="DVCartera" visible="false">
|
<div class="col-md-6" runat="server" id="DVCartera" visible="false">
|
||||||
@@ -349,7 +366,7 @@
|
|||||||
<asp:BoundField HeaderText="Rango Días" DataField="Rango" ItemStyle-Width="80px" />
|
<asp:BoundField HeaderText="Rango Días" DataField="Rango" ItemStyle-Width="80px" />
|
||||||
<asp:BoundField HeaderText="Importe" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
<asp:BoundField HeaderText="Importe" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="150px" />
|
||||||
<asp:BoundField HeaderText="%" DataField="Porcentaje" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" />
|
<asp:BoundField HeaderText="%" DataField="Porcentaje" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" />
|
||||||
<asp:BoundField HeaderText="Objetivo" DataField="Objetivo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" />
|
<asp:BoundField HeaderText="Objetivo" DataField="Objetivo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px" />
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
@@ -361,10 +378,10 @@
|
|||||||
<asp:UpdatePanel ID="UpCobranza" UpdateMode="Conditional" runat="server">
|
<asp:UpdatePanel ID="UpCobranza" UpdateMode="Conditional" runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12" style="text-align:right">
|
<div class="col-md-12" style="text-align: right">
|
||||||
|
|
||||||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-offset-8" style="width: 300px;">
|
<div class="col-md-offset-8" style="width: 300px;">
|
||||||
@@ -480,7 +497,7 @@
|
|||||||
<asp:BoundField HeaderText="RetISR" DataField="RetISR" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="RetISR" DataField="RetISR" DataFormatString="{0:N2}" Visible="false" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Total" DataField="Total" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Saldo" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Saldo" DataField="Saldo" DataFormatString="{0:N2}" ItemStyle-HorizontalAlign="Right" />
|
||||||
<asp:BoundField HeaderText="Mon" DataField="Moneda"/>
|
<asp:BoundField HeaderText="Mon" DataField="Moneda" />
|
||||||
<asp:BoundField HeaderText="Sucursal Venta" DataField="SubProyecto" DataFormatString="{0}" />
|
<asp:BoundField HeaderText="Sucursal Venta" DataField="SubProyecto" DataFormatString="{0}" />
|
||||||
<asp:BoundField HeaderText="Fecha Venc." DataField="FechaVencimiento" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField HeaderText="Fecha Venc." DataField="FechaVencimiento" DataFormatString="{0:d}" ItemStyle-HorizontalAlign="Center" />
|
||||||
<asp:BoundField HeaderText="Días Venc." DataField="DiasVencidos" DataFormatString="{0:N0}" ItemStyle-HorizontalAlign="Right" />
|
<asp:BoundField HeaderText="Días Venc." DataField="DiasVencidos" DataFormatString="{0:N0}" ItemStyle-HorizontalAlign="Right" />
|
||||||
@@ -621,7 +638,6 @@
|
|||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkCuentaContableReferencia" runat="server" Text=" CuentaContableReferencia" Visible="False" /></td>
|
<asp:CheckBox ID="ChkCuentaContableReferencia" runat="server" Text=" CuentaContableReferencia" Visible="False" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
@@ -629,11 +645,12 @@
|
|||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkSeTimbro" runat="server" Text=" Se Timbró" /></td>
|
<asp:CheckBox ID="ChkSeTimbro" runat="server" Text=" Se Timbró" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkFechaCobranza" runat="server" Text=" Fecha Cobranza" Checked="true" /> </td>
|
<asp:CheckBox ID="ChkFechaCobranza" runat="server" Text=" Fecha Cobranza" Checked="true" />
|
||||||
|
</td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkDiasTranscurridos" runat="server" Text=" Días Transcurridos" /></td>
|
<asp:CheckBox ID="ChkDiasTranscurridos" runat="server" Text=" Días Transcurridos" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkHorario" runat="server" Text=" Horario" Checked="false" /></td>
|
<asp:CheckBox ID="ChkHorario" runat="server" Text=" Horario" Checked="false" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
@@ -641,7 +658,7 @@
|
|||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkFechaEjecucion" runat="server" Text=" Fecha Ejecución" /></td>
|
<asp:CheckBox ID="ChkFechaEjecucion" runat="server" Text=" Fecha Ejecución" /></td>
|
||||||
<td style="text-align: left;">
|
<td style="text-align: left;">
|
||||||
<asp:CheckBox ID="ChkTC" runat="server" Text=" Tipo Cambio" /></td>
|
<asp:CheckBox ID="ChkTC" runat="server" Text=" Tipo Cambio" /></td>
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@@ -683,7 +700,8 @@
|
|||||||
|
|
||||||
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
<div class="row" style="margin-left: 10px;" runat="server" id="LiEspecifico" visible="false">
|
||||||
Especifico:
|
Especifico:
|
||||||
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
|
||||||
|
<asp:TextBox ID="TxtEspecifico" runat="server" Width="55px" />
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
<asp:ListItem Value="4" Text="Factura - Cliente"></asp:ListItem>
|
<asp:ListItem Value="4" Text="Factura - Cliente"></asp:ListItem>
|
||||||
<asp:ListItem Value="14" Text="Anticipo Clientes"></asp:ListItem>
|
<asp:ListItem Value="14" Text="Anticipo Clientes"></asp:ListItem>
|
||||||
<asp:ListItem Value="5" Text="Productos y Sevicios" ></asp:ListItem>
|
<asp:ListItem Value="5" Text="Productos y Sevicios" ></asp:ListItem>
|
||||||
|
<asp:ListItem Value="16" Text="Clasificaciones" Enabled="True"></asp:ListItem>
|
||||||
<asp:ListItem Value="6" Text="RH - Personal"></asp:ListItem>
|
<asp:ListItem Value="6" Text="RH - Personal"></asp:ListItem>
|
||||||
<%--<asp:ListItem Value="7" Text="AF - Activos Fijos" Enabled="false"></asp:ListItem>--%>
|
<%--<asp:ListItem Value="7" Text="AF - Activos Fijos" Enabled="false"></asp:ListItem>--%>
|
||||||
<asp:ListItem Value="7" Text="AF - Activos Fijos" ></asp:ListItem>
|
<asp:ListItem Value="7" Text="AF - Activos Fijos" ></asp:ListItem>
|
||||||
@@ -53,7 +54,7 @@
|
|||||||
<asp:ListItem Value="11" Text="ContaSIG - Saldos Iniciales Cuentas" Enabled="True"></asp:ListItem>
|
<asp:ListItem Value="11" Text="ContaSIG - Saldos Iniciales Cuentas" Enabled="True"></asp:ListItem>
|
||||||
<asp:ListItem Value="12" Text="Almacen" Enabled="True"></asp:ListItem>
|
<asp:ListItem Value="12" Text="Almacen" Enabled="True"></asp:ListItem>
|
||||||
<asp:ListItem Value="15" Text="Bancos" Enabled="True"></asp:ListItem>
|
<asp:ListItem Value="15" Text="Bancos" Enabled="True"></asp:ListItem>
|
||||||
<asp:ListItem Value="16" Text="Clasificaciones" Enabled="True"></asp:ListItem>
|
|
||||||
</asp:RadioButtonList>
|
</asp:RadioButtonList>
|
||||||
<div runat="server" id="divAlmacen">
|
<div runat="server" id="divAlmacen">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -628,6 +628,36 @@ Partial Class General_SaldosIniciales
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
ElseIf RblFormato.SelectedValue = "16" Then 'CLASIFICACIONES
|
||||||
|
|
||||||
|
If Not dt.Columns(0).ColumnName = "Clasificacion" Then
|
||||||
|
Alert("El nombre de la primera columna debe ser 'Clasificacion'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not dt.Columns(1).ColumnName = "Categoria" Then
|
||||||
|
Alert("El nombre de la segunda columna debe ser 'Categoria'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not dt.Columns(2).ColumnName = "UsoClasificacion" Then
|
||||||
|
Alert("El nombre de la segunda columna debe ser 'UsoClasificacion'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not dt.Columns(3).ColumnName = "CuentaContableIngreso" Then
|
||||||
|
Alert("El nombre de la segunda columna debe ser 'CuentaContableIngreso'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not dt.Columns(4).ColumnName = "CuentaContableGasto" Then
|
||||||
|
Alert("El nombre de la cuarta columna debe ser 'CuentaContableGasto'. Favor de corregirlo", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -2214,14 +2244,130 @@ Partial Class General_SaldosIniciales
|
|||||||
ProcesaAnticipoCliente(dt, DTCuentasContables)
|
ProcesaAnticipoCliente(dt, DTCuentasContables)
|
||||||
ElseIf RblFormato.SelectedValue = "15" Then
|
ElseIf RblFormato.SelectedValue = "15" Then
|
||||||
ProcesaBancos(dt, DTCuentasContables)
|
ProcesaBancos(dt, DTCuentasContables)
|
||||||
|
ElseIf RblFormato.SelectedValue = "16" Then
|
||||||
|
ProcesaClasificaciones(dt, DTCuentasContables)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ProcesaClasificaciones(dt As DataTable, dTCuentasContables As DataTable)
|
||||||
|
|
||||||
|
|
||||||
|
Dim ObjClasificaciones As New ClsClasificaciones
|
||||||
|
Dim ObjConta As New ClsContabilidad(ObjClasificaciones.IniciaTransacSQL)
|
||||||
|
Dim ErrorProceso As Boolean = False
|
||||||
|
Dim Contador As Integer = 0
|
||||||
|
|
||||||
|
|
||||||
|
For Each dRow As DataRow In dt.Rows
|
||||||
|
|
||||||
|
|
||||||
|
Dim Clasificacion As String = dRow("Clasificacion").ToString.Trim
|
||||||
|
Dim Categoria As String = dRow("Categoria").ToString.Trim
|
||||||
|
Dim UsoClasificacion As String = dRow("UsoClasificacion").ToString.Trim.ToUpper
|
||||||
|
Dim CuentaContableIngreso As String = dRow("CuentaContableIngreso").ToString.Trim
|
||||||
|
Dim CuentaContableGasto As String = dRow("CuentaContableGasto").ToString.Trim
|
||||||
|
|
||||||
|
Dim CveClasificacion As Integer = -1
|
||||||
|
Dim CveUsoClasificacion As Integer = -1
|
||||||
|
Dim CveCategoria As Integer = -1
|
||||||
|
|
||||||
|
|
||||||
|
CveCategoria = GlobalDTGralCategorias(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveCategoria", $" Categoria = '{Categoria}' ").ToEntero
|
||||||
|
|
||||||
|
If Not CveCategoria > 0 Then
|
||||||
|
CveCategoria = GlobalDTGralCategorias(UsuarioActual.CveEmpresa).FiltroPrimeroValor("CveCategoria", "").ToEntero
|
||||||
|
If Not CveCategoria > 0 Then
|
||||||
|
Alert($"Clasificación {Clasificacion} la categoria {Categoria} no es valida.", TipoMensaje.MsgAdvertencia)
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If UsoClasificacion = "INGRESOS" Then
|
||||||
|
CveUsoClasificacion = 1
|
||||||
|
ElseIf UsoClasificacion = "GASTO" Then
|
||||||
|
CveUsoClasificacion = 2
|
||||||
|
ElseIf UsoClasificacion = "INGRESOS/GASTO" Then
|
||||||
|
CveUsoClasificacion = 3
|
||||||
|
End If
|
||||||
|
|
||||||
|
If Not CveUsoClasificacion > 0 Then
|
||||||
|
Alert($"Clasificación {Clasificacion} el uso {UsoClasificacion} no es valido.", TipoMensaje.MsgAdvertencia)
|
||||||
|
ErrorProceso = True
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim CveCuentaContableIngreso As Integer = dTCuentasContables.FiltroPrimeroValor("CveCuenta", $"Codigo ='{CuentaContableIngreso}'").ToEntero
|
||||||
|
Dim CveCuentaContableGasto As Integer = dTCuentasContables.FiltroPrimeroValor("CveCuenta", $"Codigo ='{CuentaContableGasto}'").ToEntero
|
||||||
|
|
||||||
|
If CuentaContableIngreso.Trim.Length > 0 AndAlso CveCuentaContableIngreso <= 0 Then
|
||||||
|
Alert($"Clasificación {Clasificacion} no se encontro la cuenta de ingreso {CuentaContableIngreso}.", TipoMensaje.MsgAdvertencia)
|
||||||
|
ErrorProceso = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
If CuentaContableGasto.Trim.Length > 0 AndAlso CveCuentaContableGasto <= 0 Then
|
||||||
|
Alert($"Clasificación {Clasificacion} no se encontro la cuenta de gasto {CuentaContableGasto}.", TipoMensaje.MsgAdvertencia)
|
||||||
|
ErrorProceso = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If ObjClasificaciones.AddClasificaciones(Clasificacion, "", -1, "-1", -1, "-1", -1, "-1", CveCategoria, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, RequiereSerieLote:=0, UsoClasificacion:=CveUsoClasificacion,
|
||||||
|
CveSATPS:=-1, RequiereAFCompra:=False, RequiereAFInsumo:=False, RequierePersonal:=False, EsAcumulador:=False, TopVentas:=False, TopCompras:=False, PrecioBaseCosto:=-1) Then
|
||||||
|
|
||||||
|
CveClasificacion = ObjClasificaciones.CveClasificacion
|
||||||
|
|
||||||
|
If Not CveClasificacion > 0 Then
|
||||||
|
ErrorProceso = True
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
ErrorProceso = True
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If Not ErrorProceso Then
|
||||||
|
|
||||||
|
If CveCuentaContableIngreso > 0 Then
|
||||||
|
If Not AsignacionCuenta(ObjConta, 4, CveCuentaContableIngreso, -1, -1, -1, -1, UsuarioActual.CveEmpresa, CveClasificacion) Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Alert("Se presento un error al guardar en asignaciones", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
If CveCuentaContableGasto > 0 Then
|
||||||
|
If Not AsignacionCuenta(ObjConta, 6, CveCuentaContableGasto, -1, -1, -1, -1, UsuarioActual.CveEmpresa, CveClasificacion) Then
|
||||||
|
ErrorProceso = True
|
||||||
|
Alert("Se presento un error al guardar en asignaciones", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit For
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
Contador = Contador + 1
|
||||||
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
If Not ErrorProceso Then
|
||||||
|
ObjClasificaciones.Commit()
|
||||||
|
Alert($"Se agregaron {Contador} Clasificaciones.")
|
||||||
|
Else
|
||||||
|
ObjClasificaciones.RollBack()
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
ObjClasificaciones.Dispose()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private Sub ProcesaBancos(DTBancos As DataTable, DTCuentasContables As DataTable)
|
Private Sub ProcesaBancos(DTBancos As DataTable, DTCuentasContables As DataTable)
|
||||||
|
|
||||||
Dim ErrorProceso As Boolean = False
|
Dim ErrorProceso As Boolean = False
|
||||||
@@ -2312,7 +2458,7 @@ Partial Class General_SaldosIniciales
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If Not AsignacionCuenta(ObjConta, 30, CveCuentaContable, CveCuentaBancaria, -1, -1, -1, UsuarioActual.CveEmpresa) Then
|
If Not AsignacionCuenta(ObjConta, 30, CveCuentaContable, CveCuentaBancaria, -1, -1, -1, UsuarioActual.CveEmpresa, -1) Then
|
||||||
ErrorProceso = True
|
ErrorProceso = True
|
||||||
Alert("Se presento un error al guardar en asignaciones", TipoMensaje.MsgAdvertencia)
|
Alert("Se presento un error al guardar en asignaciones", TipoMensaje.MsgAdvertencia)
|
||||||
Exit For
|
Exit For
|
||||||
@@ -2445,7 +2591,7 @@ Partial Class General_SaldosIniciales
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If Not AsignacionCuenta(ObjConta, 10, CveCuentaContable, -1, CveProveedor, -1, -1, UsuarioActual.CveEmpresa) Then
|
If Not AsignacionCuenta(ObjConta, 10, CveCuentaContable, -1, CveProveedor, -1, -1, UsuarioActual.CveEmpresa, -1) Then
|
||||||
ErrorProceso = True
|
ErrorProceso = True
|
||||||
Alert("Se presento un error al guardar en asignaciones", TipoMensaje.MsgAdvertencia)
|
Alert("Se presento un error al guardar en asignaciones", TipoMensaje.MsgAdvertencia)
|
||||||
Exit For
|
Exit For
|
||||||
@@ -2576,7 +2722,7 @@ Partial Class General_SaldosIniciales
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
If Not AsignacionCuenta(ObjConta, 66, CveCuentaContable, -1, -1, CveCliente, -1, UsuarioActual.CveEmpresa) Then
|
If Not AsignacionCuenta(ObjConta, 66, CveCuentaContable, -1, -1, CveCliente, -1, UsuarioActual.CveEmpresa, -1) Then
|
||||||
ErrorProceso = True
|
ErrorProceso = True
|
||||||
Alert("Se presento un error al guardar en asignaciones", TipoMensaje.MsgAdvertencia)
|
Alert("Se presento un error al guardar en asignaciones", TipoMensaje.MsgAdvertencia)
|
||||||
Exit For
|
Exit For
|
||||||
@@ -2619,19 +2765,14 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
|
|
||||||
Private Function AsignacionCuenta(ObjContabilidad As ClsContabilidad, CveConceptoContable As Integer, CveCuentaContable As Integer, CveBancoCuenta As Integer, CveProveedor As Integer, CveCliente As Integer,
|
Private Function AsignacionCuenta(ObjContabilidad As ClsContabilidad, CveConceptoContable As Integer, CveCuentaContable As Integer, CveBancoCuenta As Integer, CveProveedor As Integer, CveCliente As Integer,
|
||||||
CvePersonal As Integer, CveEmpresa As Integer) As Boolean
|
CvePersonal As Integer, CveEmpresa As Integer, CveClasificacion As Integer) As Boolean
|
||||||
|
|
||||||
Dim Respuesta As Boolean = False
|
Dim Respuesta As Boolean = False
|
||||||
|
|
||||||
'If Not ObjConta.AddCuentasAsignaciones(28, UsuarioActual.CveEmpresa, CveCuentaContable, -1,
|
|
||||||
' -1, -1, ObjRH.CvePersonal, -1, -1, 0, CveBancoCuenta:=-1, CveConceptoNomina:=-1, CveSubProyecto:=-1, CveActivoFijo:=-1,
|
|
||||||
' CveTipoGasto:=-1, RegeneraCuenta:=False) Then
|
|
||||||
' ErrorRH = True
|
|
||||||
' Exit For
|
|
||||||
'End If
|
|
||||||
|
|
||||||
If ObjContabilidad.AddCuentasAsignaciones(CveConceptoContable, CveEmpresa, CveCuentaContable, -1,
|
If ObjContabilidad.AddCuentasAsignaciones(CveConceptoContable, CveEmpresa, CveCuentaContable, -1,
|
||||||
CveProveedor, CveCliente, CvePersonal, -1, -1, 0, CveBancoCuenta:=CveBancoCuenta, CveConceptoNomina:=-1, CveSubProyecto:=-1, CveActivoFijo:=-1,
|
CveProveedor, CveCliente, CvePersonal, CveClasificacion, -1, 0, CveBancoCuenta:=CveBancoCuenta, CveConceptoNomina:=-1, CveSubProyecto:=-1, CveActivoFijo:=-1,
|
||||||
CveTipoGasto:=-1, RegeneraCuenta:=False) Then
|
CveTipoGasto:=-1, RegeneraCuenta:=False) Then
|
||||||
Respuesta = True
|
Respuesta = True
|
||||||
End If
|
End If
|
||||||
@@ -2673,6 +2814,8 @@ Partial Class General_SaldosIniciales
|
|||||||
Directorio = ModExtensiones.DirectorioBaseEmpresas & "Empresas\Grales\SaldosIniciales\FormatoAnticipoCliente.xlsx"
|
Directorio = ModExtensiones.DirectorioBaseEmpresas & "Empresas\Grales\SaldosIniciales\FormatoAnticipoCliente.xlsx"
|
||||||
ElseIf RblFormato.SelectedValue = "15" Then
|
ElseIf RblFormato.SelectedValue = "15" Then
|
||||||
Directorio = ModExtensiones.DirectorioBaseEmpresas & "Empresas\Grales\SaldosIniciales\FormatoBancos.xlsx"
|
Directorio = ModExtensiones.DirectorioBaseEmpresas & "Empresas\Grales\SaldosIniciales\FormatoBancos.xlsx"
|
||||||
|
ElseIf RblFormato.SelectedValue = "16" Then
|
||||||
|
Directorio = ModExtensiones.DirectorioBaseEmpresas & "Empresas\Grales\SaldosIniciales\FormatoClasificaciones.xlsx"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Not (Directorio = "") Then
|
If Not (Directorio = "") Then
|
||||||
|
|||||||
@@ -2037,7 +2037,13 @@ Partial Class Inventarios_RecepcionUsados
|
|||||||
End Sub
|
End Sub
|
||||||
Private Sub CambiaCliente(Optional CargaSucursales As Boolean = True, Optional CargaFacturas As Boolean = True)
|
Private Sub CambiaCliente(Optional CargaSucursales As Boolean = True, Optional CargaFacturas As Boolean = True)
|
||||||
If DdlClientes.SelectedValue.ToEntero > 0 Then
|
If DdlClientes.SelectedValue.ToEntero > 0 Then
|
||||||
Me.EsDistribuidor = CBool(GlobalDTCliente(UsuarioActual.CveEmpresa, CveCliente:=DdlClientes.SelectedValue.ToEntero(), Estatus:=-1).FiltroPrimeroValor("EsDistribuidor", ""))
|
Dim strDistribuidor = GlobalDTCliente(UsuarioActual.CveEmpresa, CveCliente:=DdlClientes.SelectedValue.ToEntero(), Estatus:=-1).FiltroPrimeroValor("EsDistribuidor", "")
|
||||||
|
If String.IsNullOrEmpty(strDistribuidor) Then
|
||||||
|
strDistribuidor = "False"
|
||||||
|
End If
|
||||||
|
|
||||||
|
Me.EsDistribuidor = CBool(strDistribuidor)
|
||||||
|
|
||||||
If CargaSucursales Then
|
If CargaSucursales Then
|
||||||
DivClienteSucursal.Visible = False
|
DivClienteSucursal.Visible = False
|
||||||
DdlClientesSucursales.Items.Clear()
|
DdlClientesSucursales.Items.Clear()
|
||||||
|
|||||||
@@ -1818,6 +1818,29 @@ Partial Class PV
|
|||||||
imgCalendario.Enabled = True
|
imgCalendario.Enabled = True
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub BtnPermisoEditarRemision_Click(sender As Object, e As EventArgs) Handles BtnPermisoEditarRemision.Click
|
Private Sub BtnPermisoEditarRemision_Click(sender As Object, e As EventArgs) Handles BtnPermisoEditarRemision.Click
|
||||||
|
Dim TieneInventario As Boolean = False
|
||||||
|
Dim TieneErrorInv As Boolean = False
|
||||||
|
|
||||||
|
Using ObjInv As New ClsInventarios
|
||||||
|
If ObjInv.GetInv_Mov(Me.CveVenta, UsuarioActual.CveEmpresa) Then
|
||||||
|
If ObjInv.DtResultados.Rows.Count > 0 Then
|
||||||
|
TieneInventario = True
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
TieneErrorInv = True
|
||||||
|
End If
|
||||||
|
End Using
|
||||||
|
|
||||||
|
If TieneInventario Then
|
||||||
|
Alert("La remisión no se puede editar porque ya tiene un movimiento de almacen.", TipoMensaje.MsgAdvertencia)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
If TieneErrorInv Then
|
||||||
|
Alert("No se pudo comprobar el inventario de la remisión", TipoMensaje.MsgError)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
HabilitarEdicion()
|
HabilitarEdicion()
|
||||||
BtnPermisoEditarRemision.Visible = False
|
BtnPermisoEditarRemision.Visible = False
|
||||||
BtnEditarRemision.Visible = True
|
BtnEditarRemision.Visible = True
|
||||||
|
|||||||
@@ -18062,7 +18062,7 @@ Partial Class Ventas
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub CalculaLineasAdicionales()
|
Private Sub CalculaLineasAdicionales()
|
||||||
If DdlTipoComprobante.SelectedValue = "Ing" AndAlso UsuarioActual.Empresa.Funcionalidad(705) = "1" Then
|
If DdlTipoComprobante.SelectedValue.Contiene("Ing", "Rem") AndAlso UsuarioActual.Empresa.Funcionalidad(705) = "1" Then
|
||||||
DdlLineaAdicional.DataSource = Nothing
|
DdlLineaAdicional.DataSource = Nothing
|
||||||
|
|
||||||
Using ObjVentas As New ClsVentas
|
Using ObjVentas As New ClsVentas
|
||||||
|
|||||||
Reference in New Issue
Block a user