mensaje de negativos
This commit is contained in:
@@ -167,6 +167,7 @@
|
|||||||
<ajax:TabPanel ID="TA" runat="server" HeaderText="IVA Acreditable">
|
<ajax:TabPanel ID="TA" runat="server" HeaderText="IVA Acreditable">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<h4><b>IVA Acreditable</b></h4>
|
<h4><b>IVA Acreditable</b></h4>
|
||||||
|
<asp:Label ID="LblMsgAcreditable" runat="server" Text="" ForeColor="Red"></asp:Label>
|
||||||
<asp:GridView ID="GvA" runat="server" EmptyDataText="No se encontraron datos con los filtros seleccionados" OnRowDataBound="GvIVAAcreditable_RowDataBound" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="99%" GridLines="None" AutoGenerateColumns="false">
|
<asp:GridView ID="GvA" runat="server" EmptyDataText="No se encontraron datos con los filtros seleccionados" OnRowDataBound="GvIVAAcreditable_RowDataBound" CssClass="table table-hover table-striped ScrollAD mysmallbtn" data-sort="true" Width="99%" GridLines="None" AutoGenerateColumns="false">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:BoundField HeaderText="Docto" DataField="TipoDocto" ItemStyle-HorizontalAlign="Center" />
|
<asp:BoundField HeaderText="Docto" DataField="TipoDocto" ItemStyle-HorizontalAlign="Center" />
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ public partial class Contabilidad_RepIVA : ClsPaginas
|
|||||||
{
|
{
|
||||||
if (TipoCambio == 3 && TxtEspecifico.Text != "") { TCEspecifico = TxtEspecifico.Text.ToDouble(); } else { TCEspecifico = -1; }
|
if (TipoCambio == 3 && TxtEspecifico.Text != "") { TCEspecifico = TxtEspecifico.Text.ToDouble(); } else { TCEspecifico = -1; }
|
||||||
int Conciliado = DdlTipoMovto.SelectedValue.ToEntero();
|
int Conciliado = DdlTipoMovto.SelectedValue.ToEntero();
|
||||||
|
LblMsgAcreditable.Text = ""; // lbl de mensajes de negativos
|
||||||
|
|
||||||
ClsContabilidad ObjCont = new ClsContabilidad();
|
ClsContabilidad ObjCont = new ClsContabilidad();
|
||||||
if (ObjCont.GetRepIVA(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), 1, UsuarioActual.CveUsuario, Conciliado, UsuarioActual.CveEmpresa, TipoCambio, TCEspecifico))
|
if (ObjCont.GetRepIVA(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), 1, UsuarioActual.CveUsuario, Conciliado, UsuarioActual.CveEmpresa, TipoCambio, TCEspecifico))
|
||||||
@@ -83,10 +84,18 @@ public partial class Contabilidad_RepIVA : ClsPaginas
|
|||||||
{
|
{
|
||||||
GvA.DataSource = ObjCont.DtResultados;
|
GvA.DataSource = ObjCont.DtResultados;
|
||||||
DtIVAAcreditable = ObjCont.DtResultados;
|
DtIVAAcreditable = ObjCont.DtResultados;
|
||||||
|
if (DtIVAAcreditable.FiltraParametros("IVA < 0 OR IEPS < 0 ").Rows.Count > 0)
|
||||||
|
{
|
||||||
|
LblMsgAcreditable.Text = "La información presenta importes en negativo, estos no se incluirán en el archivo generado para DIOT";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (ObjCont.GetRepIVAAcumulado(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), Conciliado, 3, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
if (ObjCont.GetRepIVAAcumulado(txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), Conciliado, 3, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
GvIVA2.DataSource = ObjCont.DtResultados;
|
GvIVA2.DataSource = ObjCont.DtResultados;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
ObjCont.Dispose();
|
ObjCont.Dispose();
|
||||||
GvT.DataBind();
|
GvT.DataBind();
|
||||||
|
|||||||
Reference in New Issue
Block a user