-- nuevo concepto de pago a clientes por NC ME
This commit is contained in:
@@ -9751,7 +9751,9 @@ Public Class ClsPaginas
|
||||
|
||||
Pago.CveConceptoPago = If(Pago.CveConceptoPago = -1, 2, Pago.CveConceptoPago) 'si viene en parametro lo toma com primera opcion, sino el 2
|
||||
|
||||
If VentaActual.CveMoneda <> 1 Then Pago.CveConceptoPago = 292
|
||||
If VentaActual.CveMoneda <> 1 Then
|
||||
If Pago.TipoPago = "NC" Then Pago.CveConceptoPago = 301 : Pago.CveConceptoPago = 292
|
||||
End If
|
||||
|
||||
Dim Concepto As String = String.Format("{0} F:{1}", VentaActual.ClienteNombre, VentaActual.SerieFolio)
|
||||
Dim FuncionalidadFluctuacionImpuestos As Boolean = If(UsuarioActual.Empresa.Funcionalidad(159) = "1", True, False)
|
||||
|
||||
@@ -210,11 +210,11 @@ Partial Class PopUpAuxiliar
|
||||
e.Row.FCLiteral("LtlConcepto").Text = String.Format("{0}{1}</a>", Liga, e.Row.DBCampo("ConceptoContable"))
|
||||
End If
|
||||
|
||||
If e.Row.DBCampo("CveConceptoContable").Contiene("91", "251") Then 'desaplicar NC
|
||||
If e.Row.DBCampo("CveConceptoContable").Contiene("91", "251", "301") Then 'desaplicar NC
|
||||
|
||||
e.Row.FCLinkButton("LnkDesAplicar").Visible = True
|
||||
e.Row.FCLinkButton("imgD").Visible = False
|
||||
If e.Row.DBCampo("CveConceptoContable").Contiene("251") Then
|
||||
If e.Row.DBCampo("CveConceptoContable").Contiene("251", "301") Then
|
||||
e.Row.FCLinkButton("LnkDesAplicar").CommandArgument = String.Format("{0}|{1}|{2}", e.Row.DBCampo("CvePrePoliza"), e.Row.DBCampo("CveVenta"), e.Row.DBCampo("CveVentaAmortizacion"))
|
||||
Else
|
||||
e.Row.FCLinkButton("LnkDesAplicar").CommandArgument = String.Format("{0}|{1}|{2}", e.Row.DBCampo("CvePrePoliza"), e.Row.DBCampo("CveVentaAmortizacion"), e.Row.DBCampo("CveVenta"))
|
||||
|
||||
@@ -15615,16 +15615,12 @@ Partial Class Ventas
|
||||
Dim TipoMovimiento As Boolean = True
|
||||
Dim Concepto As String = VentaActual.SerieFolio
|
||||
Dim Referencia As String = VentaActual.SerieFolio
|
||||
CveIEAnticipo = gvr.DataKey("CveIE").ToEntero()
|
||||
|
||||
Select Case gvr.DataKey("CveConceptoContable").ToString()
|
||||
Case "3"
|
||||
CveIEAnticipo = gvr.DataKey("CveIE").ToEntero()
|
||||
|
||||
importeMovimiento = gvr.FCTextBox("TxtAnticipo" & gvr.RowIndex).Text.ToDecimal - ((gvr.FCTextBox("TxtAnticipo" & gvr.RowIndex).Text.ToDecimal / gvr.DataKey("TotalAnticipo").ToDecimal) * gvr.DataKey("IVAAnticipo").ToDecimal)
|
||||
|
||||
' TipoCambioGeneral = tipoCambioPago
|
||||
' IdCtaContable = IdCtaContAnticipos
|
||||
|
||||
If importeMovimiento <> 0 Then
|
||||
|
||||
Dim Pago As New VentaPago
|
||||
@@ -15682,6 +15678,8 @@ Partial Class Ventas
|
||||
Pago.TipoPago = "NC"
|
||||
Pago.CveVentaAmortizacion = gvr.DataKey("CveVenta").ToEntero()
|
||||
Pago.AplicaTraslado = gvr.DataKey("RegresarImpuesto") = "1"
|
||||
Pago.Referencia = gvr.DataKey("Folio")
|
||||
Pago.CveConceptoPago = 251
|
||||
|
||||
ErrorConta = AplicaPrePolizaPagoVenta(VentaActual, Pago, CvePrePoliza, ObjConta)
|
||||
SimplificaPrePoliza = False
|
||||
@@ -15689,7 +15687,7 @@ Partial Class Ventas
|
||||
|
||||
Case "66"
|
||||
If gvr.DataKey("CveIE").ToEntero() > 0 Then
|
||||
CveIEAnticipo = gvr.DataKey("CveIE").ToEntero()
|
||||
|
||||
importeMovimiento = gvr.FCTextBox("TxtAnticipo" & gvr.RowIndex).Text.ToDecimal
|
||||
IdCtaContable = IdCtaContClientes
|
||||
|
||||
@@ -15702,6 +15700,7 @@ Partial Class Ventas
|
||||
Pago.TipoPago = "A"
|
||||
Pago.CveVentaAmortizacion = gvr.DataKey("CveVenta").ToEntero()
|
||||
Pago.AplicaTraslado = gvr.DataKey("RegresarImpuesto") = "1"
|
||||
Pago.Referencia = gvr.DataKey("Folio")
|
||||
|
||||
ErrorConta = AplicaPrePolizaPagoVenta(VentaActual, Pago, CvePrePoliza, ObjConta)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user