Impuestos Locales y detalles de errores
This commit is contained in:
@@ -1327,19 +1327,19 @@ Partial Class General_SaldosIniciales
|
|||||||
Dim IVA As Decimal = Row("IVA").ToString.ToDecimal
|
Dim IVA As Decimal = Row("IVA").ToString.ToDecimal
|
||||||
Dim Total As Decimal = Row("Total").ToString.ToDecimal
|
Dim Total As Decimal = Row("Total").ToString.ToDecimal
|
||||||
Dim Saldo As Decimal = Row("Saldo").ToString.ToDecimal
|
Dim Saldo As Decimal = Row("Saldo").ToString.ToDecimal
|
||||||
Dim CveCliente As Integer = DtClientes.FiltroPrimeroValor("CveCliente", $"Codigo = '{RFC}'").ToString.ToEntero
|
Dim CveCliente As Integer = DtClientes.FiltroPrimeroValor("CveCliente", $"RFC = '{RFC}'").ToString.ToEntero
|
||||||
Dim RetIVA As Double = Row("Ret IVA").ToString.ToDouble
|
Dim RetIVA As Double = Row("Ret IVA").ToString.ToDouble
|
||||||
Dim RetISR As Double = Row("Ret ISR").ToString.ToDouble
|
Dim RetISR As Double = Row("Ret ISR").ToString.ToDouble
|
||||||
Dim Moneda As String = Row("Moneda").ToString
|
Dim Moneda As String = Row("Moneda").ToString
|
||||||
Dim TipoCambio As String = Row("Tipo Cambio").ToString
|
Dim TipoCambio As String = Row("Tipo Cambio").ToString
|
||||||
Dim CveMoneda As Integer = 1
|
Dim CveMoneda As Integer = 1
|
||||||
Dim Vendedor As String = Row("Vendedor").ToString
|
Dim Vendedor As String = "" 'Row("Vendedor").ToString
|
||||||
Dim CveVendedor As Integer = 0
|
Dim CveVendedor As Integer = 0
|
||||||
Dim IEPS As Decimal = Row("IEPS").ToString.ToDecimal
|
Dim IEPS As Decimal = 0 'Row("IEPS").ToString.ToDecimal
|
||||||
Dim CveClienteSucursal As Integer = Row("CveClienteSucursal").ToString.ToEntero
|
Dim CveClienteSucursal As Integer = 0 'Row("CveClienteSucursal").ToString.ToEntero
|
||||||
Dim ImpuestosLocales As Decimal = Row("ImpuestoLocal").ToString.ToDecimal
|
Dim ImpuestosLocales As Decimal = Row("ImpuestoLocal").ToString.ToDecimal
|
||||||
|
|
||||||
GuardaLog(Sucursal + "-" + Row("Sucursal").ToString)
|
GuardaLog(Sucursal + "-" + Row("Folio").ToString)
|
||||||
'Temporalmente SE BORRARA
|
'Temporalmente SE BORRARA
|
||||||
Dim Transaccion As String = "" ' Row("Transaccion2").ToString
|
Dim Transaccion As String = "" ' Row("Transaccion2").ToString
|
||||||
Dim Folio2 As String = "" ' Row("Folio2").ToString
|
Dim Folio2 As String = "" ' Row("Folio2").ToString
|
||||||
@@ -1347,7 +1347,7 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
|
|
||||||
'If Not CveCliente > 0 Then Alert(String.Format("No se encontró el cliente con el RFC: {0}", {RFC}), TipoMensaje.MsgError) : ErrorVentas = True : RFC.GuardaLog : Exit For
|
'If Not CveCliente > 0 Then Alert(String.Format("No se encontró el cliente con el RFC: {0}", {RFC}), TipoMensaje.MsgError) : ErrorVentas = True : RFC.GuardaLog : Exit For
|
||||||
TipoDocto = IIf(TipoDocto = "Ingresos", "Ing", IIf(TipoDocto = "Egresos", "Egs", "Rem")).ToString
|
TipoDocto = IIf(TipoDocto = "INGRESO", "Ing", IIf(TipoDocto = "EGRESO", "Egs", "Rem")).ToString
|
||||||
'PrePóliza
|
'PrePóliza
|
||||||
Dim CvePrePoliza As Integer = ObjConta.AddPrePolizas("Venta/SaldoInicial", 1, Total, Total, 1, Fecha, String.Format("{0}-{1}", Serie, Folio), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
Dim CvePrePoliza As Integer = ObjConta.AddPrePolizas("Venta/SaldoInicial", 1, Total, Total, 1, Fecha, String.Format("{0}-{1}", Serie, Folio), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
|
|
||||||
@@ -1412,7 +1412,7 @@ Partial Class General_SaldosIniciales
|
|||||||
|
|
||||||
'Saldo
|
'Saldo
|
||||||
If Saldo < Total Then
|
If Saldo < Total Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Total - Saldo, Folio.ToString, ConceptoContablePago, Folio.ToString, Fecha, -1, -1, CveVenta:=CveVenta, CveCliente:=CveCliente, ImporteMX:=Total - Saldo) Then ErrorVentas = True : Exit For
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, True, Total - Saldo, Folio.ToString, ConceptoContablePago, Folio.ToString, Fecha, -1, -1, CveVenta:=CveVenta, CveCliente:=CveCliente, ImporteMX:=Total - Saldo, CveVentaAmortizacion:=CveVenta) Then ErrorVentas = True : Exit For
|
||||||
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Total - Saldo, Folio.ToString, 95, Folio.ToString, Fecha, -1, -1, CveVenta:=CveVenta, CveCliente:=CveCliente, ImporteMX:=Total - Saldo) Then ErrorVentas = True : Exit For
|
If Not ObjConta.AddPrePolizasDetalle(CvePrePoliza, False, Total - Saldo, Folio.ToString, 95, Folio.ToString, Fecha, -1, -1, CveVenta:=CveVenta, CveCliente:=CveCliente, ImporteMX:=Total - Saldo) Then ErrorVentas = True : Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user