Prorateo deducible Compras, clientes asignar cuenta sig generada
This commit is contained in:
@@ -1140,6 +1140,7 @@
|
|||||||
<div class="col-md-6 ">
|
<div class="col-md-6 ">
|
||||||
<asp:Button runat="server" ID="btnProrateo" Visible="false" Text="Prorratear" CommandArgument="Compras" CssClass="btn btn-success" />
|
<asp:Button runat="server" ID="btnProrateo" Visible="false" Text="Prorratear" CommandArgument="Compras" CssClass="btn btn-success" />
|
||||||
<asp:Button runat="server" ID="btnProrateo2" Visible="false" Text="Prorratear Nomina" CommandArgument="Nomina" CssClass="btn btn-success" />
|
<asp:Button runat="server" ID="btnProrateo2" Visible="false" Text="Prorratear Nomina" CommandArgument="Nomina" CssClass="btn btn-success" />
|
||||||
|
<asp:Button runat="server" ID="BtnProrateoDeducible" Visible="false" Text="Prorratear Deducible" CommandArgument="Prorratear Deducible" CssClass="btn btn-success" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1444,6 +1444,11 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If UsuarioActual.TienePermisoProceso(360) Then
|
||||||
|
BtnProrateoDeducible.Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
ElseIf Request("CveCompra") IsNot Nothing AndAlso IsNumeric(Request("CveCompra")) AndAlso Request("CveCompra").ToEntero > 0 Then
|
ElseIf Request("CveCompra") IsNot Nothing AndAlso IsNumeric(Request("CveCompra")) AndAlso Request("CveCompra").ToEntero > 0 Then
|
||||||
|
|
||||||
ViewState("CveCompra") = Request("CveCompra")
|
ViewState("CveCompra") = Request("CveCompra")
|
||||||
@@ -20622,6 +20627,73 @@ Partial Class Compras_Compras
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub ProratearDeducible()
|
||||||
|
|
||||||
|
|
||||||
|
ChkEsNoDeducible_CheckedChanged1(Nothing, Nothing)
|
||||||
|
|
||||||
|
|
||||||
|
Dim DTProtateo As DataTable = TmpDT.Clone
|
||||||
|
|
||||||
|
|
||||||
|
Dim Consec As Integer = 1
|
||||||
|
|
||||||
|
For Each dRowOriginal As DataRow In TmpDT.Rows
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Dim dRow91_5 As DataRow = DTProtateo.NewRow
|
||||||
|
Dim dRow8_5 As DataRow = DTProtateo.NewRow
|
||||||
|
|
||||||
|
dRow91_5.ItemArray = dRowOriginal.ItemArray
|
||||||
|
dRow8_5.ItemArray = dRowOriginal.ItemArray
|
||||||
|
|
||||||
|
Dim Mul91_5 As Decimal = 0.915D
|
||||||
|
Dim Mul85 As Decimal = 0.085D
|
||||||
|
|
||||||
|
|
||||||
|
dRow91_5("Consec") = Consec
|
||||||
|
dRow91_5("PU") = dRow91_5("PU").ToString.ToDecimal * Mul91_5
|
||||||
|
dRow91_5("IVA") = dRow91_5("IVA").ToString.ToDecimal * Mul91_5
|
||||||
|
dRow91_5("RetIVA") = dRow91_5("RetIVA").ToString.ToDecimal * Mul91_5
|
||||||
|
dRow91_5("RetISR") = dRow91_5("RetISR").ToString.ToDecimal * Mul91_5
|
||||||
|
dRow91_5("IEPSPS") = dRow91_5("IEPSPS").ToString.ToDecimal * Mul91_5
|
||||||
|
dRow91_5("IEPSPSIVA") = dRow91_5("IEPSPSIVA").ToString.ToDecimal * Mul91_5
|
||||||
|
dRow91_5("Total") = dRow91_5("Total").ToString.ToDecimal * Mul91_5
|
||||||
|
dRow91_5("NoDeducible") = 1
|
||||||
|
|
||||||
|
|
||||||
|
dRow8_5("Consec") = Consec + 1
|
||||||
|
dRow8_5("PU") = dRow8_5("PU").ToString.ToDecimal * Mul85
|
||||||
|
dRow8_5("IVA") = dRow8_5("IVA").ToString.ToDecimal * Mul85
|
||||||
|
dRow8_5("RetIVA") = dRow8_5("RetIVA").ToString.ToDecimal * Mul85
|
||||||
|
dRow8_5("RetISR") = dRow8_5("RetISR").ToString.ToDecimal * Mul85
|
||||||
|
dRow8_5("IEPSPS") = dRow8_5("IEPSPS").ToString.ToDecimal * Mul85
|
||||||
|
dRow8_5("IEPSPSIVA") = dRow8_5("IEPSPSIVA").ToString.ToDecimal * Mul85
|
||||||
|
dRow8_5("Total") = dRow8_5("Total").ToString.ToDecimal * Mul85
|
||||||
|
dRow8_5("NoDeducible") = 0
|
||||||
|
|
||||||
|
|
||||||
|
DTProtateo.Rows.Add(dRow91_5)
|
||||||
|
DTProtateo.Rows.Add(dRow8_5)
|
||||||
|
|
||||||
|
Consec = Consec + 2
|
||||||
|
|
||||||
|
Next
|
||||||
|
|
||||||
|
DTProtateo.AcceptChanges()
|
||||||
|
TmpDT = DTProtateo
|
||||||
|
|
||||||
|
BtnProrateoDeducible.Visible = False
|
||||||
|
|
||||||
|
AddPS2(True)
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub BtnProrateoDeducible_Click(sender As Object, e As EventArgs) Handles BtnProrateoDeducible.Click
|
||||||
|
ProratearDeducible()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|||||||
@@ -3056,6 +3056,7 @@ Fields!ImporteActual.Value, 0), "DataSet1")</Value>
|
|||||||
<Variable Name="TotalPatrimonioHActual">
|
<Variable Name="TotalPatrimonioHActual">
|
||||||
<Value>=Sum(Microsoft.VisualBasic.Interaction.iif(Fields!Sup.Value = "CAPITAL"
|
<Value>=Sum(Microsoft.VisualBasic.Interaction.iif(Fields!Sup.Value = "CAPITAL"
|
||||||
OR Fields!Sup.Value = "CAPITAL CONTABLE"
|
OR Fields!Sup.Value = "CAPITAL CONTABLE"
|
||||||
|
OR Fields!Sup.Value = "Capital Contable"
|
||||||
OR Fields!Sup.Value = "Capital Social"
|
OR Fields!Sup.Value = "Capital Social"
|
||||||
OR Fields!Sup.Value = "Capital",
|
OR Fields!Sup.Value = "Capital",
|
||||||
Fields!ImporteActual.Value, 0),"DataSet1")</Value>
|
Fields!ImporteActual.Value, 0),"DataSet1")</Value>
|
||||||
|
|||||||
@@ -3968,17 +3968,19 @@ Partial Class Clientes
|
|||||||
If ObjContabilidad.GetCuentasGlobales(UsuarioActual.CveEmpresa, 1) Then
|
If ObjContabilidad.GetCuentasGlobales(UsuarioActual.CveEmpresa, 1) Then
|
||||||
Dim CvePadre As Integer = ObjContabilidad.DtResultados.FiltroPrimeroValor("CveCuenta").ToEntero
|
Dim CvePadre As Integer = ObjContabilidad.DtResultados.FiltroPrimeroValor("CveCuenta").ToEntero
|
||||||
If CvePadre > 0 Then
|
If CvePadre > 0 Then
|
||||||
If ObjContabilidad.AddCuenta(CvePadre, CodigoCuentaAltaCompaq, NombreCuentaCuentaAltaCompaq, "A", 2, 1, CveCliente:=CveCliente, IdCompaq:=IdCuentaAltaCompaq) > 0 Then
|
|
||||||
Respuesta = True
|
Dim CvecuentaNueva As Integer = ObjContabilidad.AddCuenta(CvePadre, CodigoCuentaAltaCompaq, NombreCuentaCuentaAltaCompaq, "A", 2, 1, CveCliente:=CveCliente, IdCompaq:=IdCuentaAltaCompaq)
|
||||||
|
|
||||||
|
If CvecuentaNueva > 0 Then
|
||||||
|
If ObjContabilidad.AddCuentasAsignaciones(1, UsuarioActual.CveEmpresa, CvecuentaNueva, CveCliente:=CveCliente) Then
|
||||||
|
Respuesta = True
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'If ObjContabilidad.GetCuentasAsignacionesSistema(UsuarioActual.CveEmpresa, 7, -1, 1) Then
|
|
||||||
|
|
||||||
|
|
||||||
'End If
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Return Respuesta
|
Return Respuesta
|
||||||
@@ -4856,6 +4858,7 @@ Partial Class Clientes
|
|||||||
|
|
||||||
#Region "Cuentas/Equipos"
|
#Region "Cuentas/Equipos"
|
||||||
Public Sub BtnAgregarCtaEquipo_Click(sender As Object, e As EventArgs)
|
Public Sub BtnAgregarCtaEquipo_Click(sender As Object, e As EventArgs)
|
||||||
|
|
||||||
HdnModalidad.Value = "I"
|
HdnModalidad.Value = "I"
|
||||||
DivCicloComercial.Visible = False
|
DivCicloComercial.Visible = False
|
||||||
TxtIdentificador.Text = ""
|
TxtIdentificador.Text = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user