Reembolsos Comprobante
This commit is contained in:
@@ -1153,7 +1153,7 @@ Public Class ClsInventarios
|
|||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function MovimientoRemove(CveMovimiento As Integer, CveEmpresa As Integer) As Boolean
|
Public Function MovimientoRemove(CveMovimiento As Integer, CveEmpresa As Integer, Optional CveUsuario As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
@@ -1162,6 +1162,7 @@ Public Class ClsInventarios
|
|||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveMovimiento", SqlDbType.Int).Value = CveMovimiento
|
.Add("@CveMovimiento", SqlDbType.Int).Value = CveMovimiento
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
.Add("@CveUsuario", SqlDbType.Int).Value = CveUsuario
|
||||||
|
|
||||||
End With
|
End With
|
||||||
|
|
||||||
|
|||||||
@@ -719,7 +719,10 @@ Partial Class Bancos_Creditos
|
|||||||
ErrorCredito = True
|
ErrorCredito = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ObjCredito.AddCreditos(TipoCreditoTemp, TxtCSReferencia.Text, TxtCSObservaciones.Text, DdlCuentaCredito.SelectedValue.ToEntero, HdnCveCompra.Value.ToEntero, -1, DdlCSTipoMoneda.SelectedValue.ToEntero, TxtCSFechaInicio.Text.Trim.ToDate, TxtCSFechaVencimiento.Text.Trim.ToDate, TxtCSTasa.Text.Trim.ToDouble, TxtCSSobreTasa.Text.Trim.ToDouble, -1, TxtCSPlazo.Text.ToEntero, CveIE, If(TipoCreditoTemp = 2, TxtCSTotalCredito.Text.ToEntero, TotalCompra), -1, -1, -1, CveProveedor, RBLClasificacionContable.SelectedValue.ToEntero, DdlCtaContable.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCuentaTarjeta:=DdlTarjetaCredito.SelectedValue.ToEntero, AplicaAnticipo:=If(RBLAnticipo.SelectedValue.ToEntero = 1, True, False)) > 0 Then
|
If ObjCredito.AddCreditos(TipoCreditoTemp, TxtCSReferencia.Text, TxtCSObservaciones.Text, DdlCuentaCredito.SelectedValue.ToEntero, HdnCveCompra.Value.ToEntero, -1, DdlCSTipoMoneda.SelectedValue.ToEntero, TxtCSFechaInicio.Text.Trim.ToDate,
|
||||||
|
TxtCSFechaVencimiento.Text.Trim.ToDate, TxtCSTasa.Text.Trim.ToDouble, TxtCSSobreTasa.Text.Trim.ToDouble, -1, TxtCSPlazo.Text.ToEntero, CveIE, If(TipoCreditoTemp = 2, TxtCSTotalCredito.Text.ToEntero, TotalCompra),
|
||||||
|
-1, -1, -1, CveProveedor, RBLClasificacionContable.SelectedValue.ToEntero, DdlCtaContable.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCuentaTarjeta:=DdlTarjetaCredito.SelectedValue.ToEntero,
|
||||||
|
AplicaAnticipo:=If(RBLAnticipo.SelectedValue.ToEntero = 1, True, False)) > 0 Then
|
||||||
'Dim Fecha = If(TipoCreditoTemp = 2, TxtCSFechaDeposito.Text.ToDate, TxtCSFechaVencimiento.Text.ToDate)
|
'Dim Fecha = If(TipoCreditoTemp = 2, TxtCSFechaDeposito.Text.ToDate, TxtCSFechaVencimiento.Text.ToDate)
|
||||||
'For i = 1 To If(TipoCreditoTemp = 2, TxtCSPeriodos.Text.Trim.ToEntero, 1)
|
'For i = 1 To If(TipoCreditoTemp = 2, TxtCSPeriodos.Text.Trim.ToEntero, 1)
|
||||||
'DateAdd("d", TxtPlazo.Text.ToEntero, Fecha)
|
'DateAdd("d", TxtPlazo.Text.ToEntero, Fecha)
|
||||||
@@ -761,7 +764,10 @@ Partial Class Bancos_Creditos
|
|||||||
If CveCredito > 0 Then
|
If CveCredito > 0 Then
|
||||||
Dim TipoCreditoTemp = DdlTipoCredito.SelectedValue.ToEntero
|
Dim TipoCreditoTemp = DdlTipoCredito.SelectedValue.ToEntero
|
||||||
|
|
||||||
If ObjCredito.UpdateCreditos(CveCredito, TipoCreditoTemp, TxtCSReferencia.Text, TxtCSObservaciones.Text, DdlCuentaCredito.SelectedValue.ToEntero, HdnCveCompra.Value.ToEntero, -1, DdlCSTipoMoneda.SelectedValue.ToEntero, TxtCSFechaInicio.Text.Trim.ToDate, TxtCSFechaVencimiento.Text.Trim.ToDate, TxtCSTasa.Text.Trim.ToDouble, TxtCSSobreTasa.Text.Trim.ToDouble, -1, TxtCSPlazo.Text.ToEntero, CveIE, If(TipoCreditoTemp = 2, TxtCSTotalCredito.Text.ToEntero, TotalCompra), -1, -1, -1, -1, RBLClasificacionContable.SelectedValue.ToEntero, DdlCtaContable.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCuentaTarjeta:=DdlTarjetaCredito.SelectedValue.ToEntero, AplicaAnticipo:=If(RBLAnticipo.SelectedValue.ToEntero = 1, True, False)) Then
|
If ObjCredito.UpdateCreditos(CveCredito, TipoCreditoTemp, TxtCSReferencia.Text, TxtCSObservaciones.Text, DdlCuentaCredito.SelectedValue.ToEntero, HdnCveCompra.Value.ToEntero, -1, DdlCSTipoMoneda.SelectedValue.ToEntero, TxtCSFechaInicio.Text.Trim.ToDate,
|
||||||
|
TxtCSFechaVencimiento.Text.Trim.ToDate, TxtCSTasa.Text.Trim.ToDouble, TxtCSSobreTasa.Text.Trim.ToDouble, -1, TxtCSPlazo.Text.ToEntero, CveIE, If(TipoCreditoTemp = 2, TxtCSTotalCredito.Text.ToEntero, TotalCompra),
|
||||||
|
-1, -1, -1, -1, RBLClasificacionContable.SelectedValue.ToEntero, DdlCtaContable.SelectedValue.ToEntero, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveCuentaTarjeta:=DdlTarjetaCredito.SelectedValue.ToEntero,
|
||||||
|
AplicaAnticipo:=If(RBLAnticipo.SelectedValue.ToEntero = 1, True, False)) Then
|
||||||
If Not ObjCredito.UpdateCreditosDetalle(ObjCredito.CveCredito, TxtCSFechaVencimiento.Text.ToDate, If(TipoCreditoTemp = 2, TxtCSTotalCredito.Text.ToString.ToEntero, TotalCompra), 0.0, 0.0, 0.0, 0.0, 0.0, If(TipoCreditoTemp = 1, 101, 1)) Then
|
If Not ObjCredito.UpdateCreditosDetalle(ObjCredito.CveCredito, TxtCSFechaVencimiento.Text.ToDate, If(TipoCreditoTemp = 2, TxtCSTotalCredito.Text.ToString.ToEntero, TotalCompra), 0.0, 0.0, 0.0, 0.0, 0.0, If(TipoCreditoTemp = 1, 101, 1)) Then
|
||||||
ErrorCredito = True
|
ErrorCredito = True
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -6331,7 +6331,7 @@ Partial Class Compras_Compras
|
|||||||
funcionalidad = 317
|
funcionalidad = 317
|
||||||
ConceptoContable = 243
|
ConceptoContable = 243
|
||||||
ElseIf DdlRetISRConcepto.SelectedValue.ToEntero = 3 Then
|
ElseIf DdlRetISRConcepto.SelectedValue.ToEntero = 3 Then
|
||||||
funcionalidad = 349
|
funcionalidad = 348
|
||||||
ConceptoContable = 327
|
ConceptoContable = 327
|
||||||
End If
|
End If
|
||||||
importeMovimiento = CompraActual.RetISR
|
importeMovimiento = CompraActual.RetISR
|
||||||
@@ -8557,40 +8557,45 @@ Partial Class Compras_Compras
|
|||||||
|
|
||||||
Dim CveMovimientoActual As Integer = diRow("CveMovimiento").ToString.ToEntero
|
Dim CveMovimientoActual As Integer = diRow("CveMovimiento").ToString.ToEntero
|
||||||
|
|
||||||
Dim DTMovimientoActual As DataTable = DTInventarios.FiltraParametros($"CveMovimiento = {CveMovimientoActual} ")
|
If Not ObjInventarios.MovimientoRemove(CveMovimientoActual, UsuarioActual.CveEmpresa, CveUsuario:=UsuarioActual.CveUsuario) Then
|
||||||
|
|
||||||
Dim detalleDescripcion As String = ""
|
|
||||||
Dim Description As String = ""
|
|
||||||
|
|
||||||
Dim FolioMovimiento As String = ""
|
|
||||||
Dim ConceptoMovimiento As String = ""
|
|
||||||
|
|
||||||
For Each dRowMovActual As DataRow In DTMovimientoActual.Rows
|
|
||||||
|
|
||||||
If dRowMovActual("UM").ToString = "" Then
|
|
||||||
FolioMovimiento = dRowMovActual("Folio").ToString
|
|
||||||
ConceptoMovimiento = dRowMovActual("Concepto").ToString
|
|
||||||
|
|
||||||
Description = String.Format("Eliminación Compra {6},Movimiento con Concepto: {0}, Almacen: {1}, Fecha: {2}, Folio: {3}, Usuario: {4}, Observaciones adicionales: {5}, Productos Información:<br/>",
|
|
||||||
ConceptoMovimiento,
|
|
||||||
dRowMovActual("Almacen").ToString,
|
|
||||||
dRowMovActual("FechaMovto").ToString.ToDate.ToString("dd/MM/yyyy"),
|
|
||||||
FolioMovimiento,
|
|
||||||
dRowMovActual("Usuario").ToString,
|
|
||||||
dRowMovActual("Observaciones").ToString,
|
|
||||||
$"{TxtSerie.Text}-{TxtFolio.Text}")
|
|
||||||
Else
|
|
||||||
detalleDescripcion = String.Format("- Cant: {0}, PS: {1}, PU: {2}, UM: {3}<br/>", dRowMovActual("Cantidad").ToString.ToEntero, dRowMovActual("CodigoPS"), dRowMovActual("PU"), dRowMovActual("UM"))
|
|
||||||
End If
|
|
||||||
|
|
||||||
Next
|
|
||||||
|
|
||||||
If Not ObjGral.AddHistorialBitacora(Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, "", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 1,
|
|
||||||
String.Format("{0}, Informacion = {1}", Description, detalleDescripcion),
|
|
||||||
"Inventarios", FolioMovimiento + " / " + ConceptoMovimiento) Then
|
|
||||||
ErrorCompra = True
|
ErrorCompra = True
|
||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
'Dim DTMovimientoActual As DataTable = DTInventarios.FiltraParametros($"CveMovimiento = {CveMovimientoActual} ")
|
||||||
|
|
||||||
|
'Dim detalleDescripcion As String = ""
|
||||||
|
'Dim Description As String = ""
|
||||||
|
|
||||||
|
'Dim FolioMovimiento As String = ""
|
||||||
|
'Dim ConceptoMovimiento As String = ""
|
||||||
|
|
||||||
|
'For Each dRowMovActual As DataRow In DTMovimientoActual.Rows
|
||||||
|
|
||||||
|
' If dRowMovActual("UM").ToString = "" Then
|
||||||
|
' FolioMovimiento = dRowMovActual("Folio").ToString
|
||||||
|
' ConceptoMovimiento = dRowMovActual("Concepto").ToString
|
||||||
|
|
||||||
|
' Description = String.Format("Eliminación Compra {6},Movimiento con Concepto: {0}, Almacen: {1}, Fecha: {2}, Folio: {3}, Usuario: {4}, Observaciones adicionales: {5}, Productos Información:<br/>",
|
||||||
|
' ConceptoMovimiento,
|
||||||
|
' dRowMovActual("Almacen").ToString,
|
||||||
|
' dRowMovActual("FechaMovto").ToString.ToDate.ToString("dd/MM/yyyy"),
|
||||||
|
' FolioMovimiento,
|
||||||
|
' dRowMovActual("Usuario").ToString,
|
||||||
|
' dRowMovActual("Observaciones").ToString,
|
||||||
|
' $"{TxtSerie.Text}-{TxtFolio.Text}")
|
||||||
|
' Else
|
||||||
|
' detalleDescripcion = String.Format("- Cant: {0}, PS: {1}, PU: {2}, UM: {3}<br/>", dRowMovActual("Cantidad").ToString.ToEntero, dRowMovActual("CodigoPS"), dRowMovActual("PU"), dRowMovActual("UM"))
|
||||||
|
' End If
|
||||||
|
|
||||||
|
'Next
|
||||||
|
|
||||||
|
'If Not ObjGral.AddHistorialBitacora(Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, "", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 1,
|
||||||
|
' String.Format("{0}, Informacion = {1}", Description, detalleDescripcion),
|
||||||
|
' "Inventarios", FolioMovimiento + " / " + ConceptoMovimiento) Then
|
||||||
|
' ErrorCompra = True
|
||||||
|
' Exit For
|
||||||
|
'End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -162,7 +162,12 @@
|
|||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<div class="chequesie" style="width: 700px;" runat="server" id="TableExpedirCheque" visible="false">
|
|
||||||
|
<div class="row" runat="server" id="TableExpedirCheque" visible="false" >
|
||||||
|
|
||||||
|
<div class="col-lg-8">
|
||||||
|
|
||||||
|
<div class="chequesie" style="width: 700px;" >
|
||||||
<div class="chequesie1">
|
<div class="chequesie1">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-2 truncate" style="width: 130px;">Tipo Movimiento:</label>
|
<label class="col-md-2 truncate" style="width: 130px;">Tipo Movimiento:</label>
|
||||||
@@ -255,6 +260,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4">
|
||||||
|
|
||||||
|
<asp:UpdatePanel runat="server">
|
||||||
|
<ContentTemplate>
|
||||||
|
<div>
|
||||||
|
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||||
|
</div>
|
||||||
|
</ContentTemplate>
|
||||||
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -521,6 +521,17 @@ Partial Class Compras_ReembolsosComprobaciones
|
|||||||
|
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
Dim filesgral As List(Of Archivo) = Anexo.getfiles().Archivos
|
||||||
|
|
||||||
|
Dim filemove As String = ""
|
||||||
|
Dim Comprobante As String = ""
|
||||||
|
Dim ComprobanteIE = ""
|
||||||
|
|
||||||
|
For Each fileItem As Archivo In filesgral
|
||||||
|
Comprobante = IO.Path.GetExtension(String.Format("{0}Temp\{1}", AppDomain.CurrentDomain.BaseDirectory, fileItem.filename)).Replace(".", "")
|
||||||
|
filemove = fileItem.filename
|
||||||
|
Next
|
||||||
|
|
||||||
If HdnCheque.Value.ToEntero > 0 AndAlso Not ChkReembolsarSinBancos.Checked Then
|
If HdnCheque.Value.ToEntero > 0 AndAlso Not ChkReembolsarSinBancos.Checked Then
|
||||||
CveIERegistrado = DDlCheques.SelectedValue.ToEntero
|
CveIERegistrado = DDlCheques.SelectedValue.ToEntero
|
||||||
|
|
||||||
@@ -569,14 +580,31 @@ Partial Class Compras_ReembolsosComprobaciones
|
|||||||
|
|
||||||
If ChkChequeExcedente.Checked Then
|
If ChkChequeExcedente.Checked Then
|
||||||
CvePrePolizaExcedente = ObjMov.AddPrePolizas("Compras/Comprobaciones3", 9, TxtImporte.Text.ToDecimal, TxtImporte.Text.ToDecimal, CveMoneda, TxtFechaDocumento.Text.ToDate, If(TxtObservaciones.Text.Trim = "", concepto, TxtObservaciones.Text.Trim), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
CvePrePolizaExcedente = ObjMov.AddPrePolizas("Compras/Comprobaciones3", 9, TxtImporte.Text.ToDecimal, TxtImporte.Text.ToDecimal, CveMoneda, TxtFechaDocumento.Text.ToDate, If(TxtObservaciones.Text.Trim = "", concepto, TxtObservaciones.Text.Trim), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
CveIEExcedente = ObjIE.AddBancos_IE(DdlCuenta.SelectedValue.ToEntero, DdlTipoTransaccion.SelectedValue.ToEntero, TxtFechaDocumento.Text.ToDate, TxtFolio.Text.Trim, TxtAboneA.Text, TxtImporte.Text.ToDecimal, CveMoneda, 0.0, TxtObservaciones.Text, "", ChkAbonoCuenta.Checked, True, -1, CvePrePolizaExcedente, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FueConciliado:=If(ChkReembolsarSinBancos.Checked, True, False))
|
CveIEExcedente = ObjIE.AddBancos_IE(DdlCuenta.SelectedValue.ToEntero, DdlTipoTransaccion.SelectedValue.ToEntero, TxtFechaDocumento.Text.ToDate, TxtFolio.Text.Trim, TxtAboneA.Text, TxtImporte.Text.ToDecimal, CveMoneda, 0.0, TxtObservaciones.Text, "", ChkAbonoCuenta.Checked, True, -1, CvePrePolizaExcedente, Comprobante, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FueConciliado:=If(ChkReembolsarSinBancos.Checked, True, False))
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, True, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, If(CveCajaChica > 0, 30, 29), TxtObservaciones.Text, TxtFechaDocumento.Text.ToDate, If(CveCajaChica > 0, IdCuentaBancaria, IdCtaPersonal), -1, CveIE:=CveIEExcedente, CvePersonal:=CvePersonal, CveCompra:=-1, CveProveedor:=-1, ImporteME:=If(tipoCambio = 1, 0, TxtImporte.Text.ToDecimal), ImporteMX:=TxtImporte.Text.ToDecimal * tipoCambio) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaExcedente, True, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, If(CveCajaChica > 0, 30, 29), TxtObservaciones.Text, TxtFechaDocumento.Text.ToDate, If(CveCajaChica > 0, IdCuentaBancaria, IdCtaPersonal), -1, CveIE:=CveIEExcedente, CvePersonal:=CvePersonal, CveCompra:=-1, CveProveedor:=-1, ImporteME:=If(tipoCambio = 1, 0, TxtImporte.Text.ToDecimal), ImporteMX:=TxtImporte.Text.ToDecimal * tipoCambio) Then
|
||||||
MsgError = "Error al registrar detalle de concepto bancario"
|
MsgError = "Error al registrar detalle de concepto bancario"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If CveIEExcedente > 0 Then
|
||||||
|
If filemove <> "" Then
|
||||||
|
filemove.FilesMove(CveIEExcedente.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
|
Anexo.Text = ""
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
ElseIf Not ChkReembolsarSinBancos.Checked Then
|
ElseIf Not ChkReembolsarSinBancos.Checked Then
|
||||||
CvePrePolizaIERegistrado = ObjMov.AddPrePolizas("Compras/Comprobaciones4", 9, TxtImporte.Text.ToDecimal, TxtImporte.Text.ToDecimal, CveMoneda, TxtFechaDocumento.Text.ToDate, If(TxtObservaciones.Text.Trim = "", concepto, TxtObservaciones.Text.Trim), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
CvePrePolizaIERegistrado = ObjMov.AddPrePolizas("Compras/Comprobaciones4", 9, TxtImporte.Text.ToDecimal, TxtImporte.Text.ToDecimal, CveMoneda, TxtFechaDocumento.Text.ToDate, If(TxtObservaciones.Text.Trim = "", concepto, TxtObservaciones.Text.Trim), UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa)
|
||||||
CveIERegistrado = ObjIE.AddBancos_IE(DdlCuenta.SelectedValue.ToEntero, DdlTipoTransaccion.SelectedValue.ToEntero, TxtFechaDocumento.Text.ToDate, TxtFolio.Text.Trim, TxtAboneA.Text, TxtImporte.Text.ToDecimal, CveMoneda, 0.0, TxtObservaciones.Text, "", ChkAbonoCuenta.Checked, True, -1, CvePrePolizaIERegistrado, "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FueConciliado:=If(ChkReembolsarSinBancos.Checked, True, False))
|
CveIERegistrado = ObjIE.AddBancos_IE(DdlCuenta.SelectedValue.ToEntero, DdlTipoTransaccion.SelectedValue.ToEntero, TxtFechaDocumento.Text.ToDate, TxtFolio.Text.Trim, TxtAboneA.Text, TxtImporte.Text.ToDecimal, CveMoneda, 0.0, TxtObservaciones.Text, "", ChkAbonoCuenta.Checked, True, -1, CvePrePolizaIERegistrado, Comprobante, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FueConciliado:=If(ChkReembolsarSinBancos.Checked, True, False))
|
||||||
|
|
||||||
|
If CveIERegistrado > 0 Then
|
||||||
|
If filemove <> "" Then
|
||||||
|
filemove.FilesMove(CveIERegistrado.ToString, String.Format("{0}IE", UsuarioActual.Empresa.Ruta), ConcatenarDirectorioBase:=False)
|
||||||
|
Anexo.Text = ""
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
'AGREGO PREPOLIZA IE BANCOS
|
'AGREGO PREPOLIZA IE BANCOS
|
||||||
If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaIERegistrado, True, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, 30, TxtObservaciones.Text, TxtFechaDocumento.Text.ToDate, IdCuentaBancaria, -1, CveIE:=CveIERegistrado, CvePersonal:=CvePersonal, CveCompra:=-1, CveProveedor:=-1, ImporteME:=If(tipoCambio = 1, 0, TxtImporte.Text.ToDecimal), ImporteMX:=TxtImporte.Text.ToDecimal * tipoCambio) Then
|
If Not ObjMov.AddPrePolizasDetalle(CvePrePolizaIERegistrado, True, TxtImporte.Text.ToDecimal, TxtObservaciones.Text, 30, TxtObservaciones.Text, TxtFechaDocumento.Text.ToDate, IdCuentaBancaria, -1, CveIE:=CveIERegistrado, CvePersonal:=CvePersonal, CveCompra:=-1, CveProveedor:=-1, ImporteME:=If(tipoCambio = 1, 0, TxtImporte.Text.ToDecimal), ImporteMX:=TxtImporte.Text.ToDecimal * tipoCambio) Then
|
||||||
|
|||||||
@@ -1,5 +1,115 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
|
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
|
||||||
|
<AutoRefresh>0</AutoRefresh>
|
||||||
|
<DataSources>
|
||||||
|
<DataSource Name="DataSet">
|
||||||
|
<ConnectionProperties>
|
||||||
|
<DataProvider>System.Data.DataSet</DataProvider>
|
||||||
|
<ConnectString>/* Local Connection */</ConnectString>
|
||||||
|
</ConnectionProperties>
|
||||||
|
<rd:DataSourceID>c1c71852-6fe8-4864-a742-cae14c1bf38d</rd:DataSourceID>
|
||||||
|
</DataSource>
|
||||||
|
</DataSources>
|
||||||
|
<DataSets>
|
||||||
|
<DataSet Name="DataSet1">
|
||||||
|
<Query>
|
||||||
|
<DataSourceName>DataSet</DataSourceName>
|
||||||
|
<CommandText>/* Local Query */</CommandText>
|
||||||
|
</Query>
|
||||||
|
<Fields>
|
||||||
|
<Field Name="Id">
|
||||||
|
<DataField>Id</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Nombre">
|
||||||
|
<DataField>Nombre</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Tipo">
|
||||||
|
<DataField>Tipo</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="CveTipo">
|
||||||
|
<DataField>CveTipo</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="CtaMayor">
|
||||||
|
<DataField>CtaMayor</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Nivel">
|
||||||
|
<DataField>Nivel</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Clasificacion">
|
||||||
|
<DataField>Clasificacion</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Sup">
|
||||||
|
<DataField>Sup</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Orden">
|
||||||
|
<DataField>Orden</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="SaldoInicial">
|
||||||
|
<DataField>SaldoInicial</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="SaldoActual">
|
||||||
|
<DataField>SaldoActual</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Cargos">
|
||||||
|
<DataField>Cargos</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Abonos">
|
||||||
|
<DataField>Abonos</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="Codigo">
|
||||||
|
<DataField>Codigo</DataField>
|
||||||
|
<rd:TypeName>System.String</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="SaldoID">
|
||||||
|
<DataField>SaldoID</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="SaldoIA">
|
||||||
|
<DataField>SaldoIA</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="TotalCargos">
|
||||||
|
<DataField>TotalCargos</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="TotalAbonos">
|
||||||
|
<DataField>TotalAbonos</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="SaldoAD">
|
||||||
|
<DataField>SaldoAD</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
<Field Name="SaldoAA">
|
||||||
|
<DataField>SaldoAA</DataField>
|
||||||
|
<rd:TypeName>System.Int16</rd:TypeName>
|
||||||
|
</Field>
|
||||||
|
</Fields>
|
||||||
|
<rd:DataSetInfo>
|
||||||
|
<rd:DataSetName>DataSet</rd:DataSetName>
|
||||||
|
<rd:SchemaPath>C:\Users\Caudillo\Documents\Visual Studio 2013\WebSites\WebSite3\App_Code\DataSet.xsd</rd:SchemaPath>
|
||||||
|
<rd:TableName>DataTable1</rd:TableName>
|
||||||
|
<rd:TableAdapterFillMethod />
|
||||||
|
<rd:TableAdapterGetDataMethod />
|
||||||
|
<rd:TableAdapterName />
|
||||||
|
</rd:DataSetInfo>
|
||||||
|
</DataSet>
|
||||||
|
</DataSets>
|
||||||
|
<ReportSections>
|
||||||
|
<ReportSection>
|
||||||
<Body>
|
<Body>
|
||||||
<ReportItems>
|
<ReportItems>
|
||||||
<Rectangle Name="Rectangle1">
|
<Rectangle Name="Rectangle1">
|
||||||
@@ -1432,7 +1542,6 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox3</rd:DefaultName>
|
<rd:DefaultName>Textbox3</rd:DefaultName>
|
||||||
<Top>0cm</Top>
|
|
||||||
<Left>14.86367cm</Left>
|
<Left>14.86367cm</Left>
|
||||||
<Height>0.6cm</Height>
|
<Height>0.6cm</Height>
|
||||||
<Width>5.37513cm</Width>
|
<Width>5.37513cm</Width>
|
||||||
@@ -1466,7 +1575,6 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox8</rd:DefaultName>
|
<rd:DefaultName>Textbox8</rd:DefaultName>
|
||||||
<Top>0cm</Top>
|
|
||||||
<Height>0.6cm</Height>
|
<Height>0.6cm</Height>
|
||||||
<Width>3.43894cm</Width>
|
<Width>3.43894cm</Width>
|
||||||
<ZIndex>1</ZIndex>
|
<ZIndex>1</ZIndex>
|
||||||
@@ -1497,7 +1605,6 @@
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
</Paragraphs>
|
</Paragraphs>
|
||||||
<rd:DefaultName>Textbox12</rd:DefaultName>
|
<rd:DefaultName>Textbox12</rd:DefaultName>
|
||||||
<Top>0cm</Top>
|
|
||||||
<Left>9.48438cm</Left>
|
<Left>9.48438cm</Left>
|
||||||
<Height>0.6cm</Height>
|
<Height>0.6cm</Height>
|
||||||
<Width>5.37929cm</Width>
|
<Width>5.37929cm</Width>
|
||||||
@@ -1528,114 +1635,8 @@
|
|||||||
<ColumnSpacing>0.13cm</ColumnSpacing>
|
<ColumnSpacing>0.13cm</ColumnSpacing>
|
||||||
<Style />
|
<Style />
|
||||||
</Page>
|
</Page>
|
||||||
<AutoRefresh>0</AutoRefresh>
|
</ReportSection>
|
||||||
<DataSources>
|
</ReportSections>
|
||||||
<DataSource Name="DataSet">
|
|
||||||
<ConnectionProperties>
|
|
||||||
<DataProvider>System.Data.DataSet</DataProvider>
|
|
||||||
<ConnectString>/* Local Connection */</ConnectString>
|
|
||||||
</ConnectionProperties>
|
|
||||||
<rd:DataSourceID>c1c71852-6fe8-4864-a742-cae14c1bf38d</rd:DataSourceID>
|
|
||||||
</DataSource>
|
|
||||||
</DataSources>
|
|
||||||
<DataSets>
|
|
||||||
<DataSet Name="DataSet1">
|
|
||||||
<Query>
|
|
||||||
<DataSourceName>DataSet</DataSourceName>
|
|
||||||
<CommandText>/* Local Query */</CommandText>
|
|
||||||
</Query>
|
|
||||||
<Fields>
|
|
||||||
<Field Name="Id">
|
|
||||||
<DataField>Id</DataField>
|
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="Nombre">
|
|
||||||
<DataField>Nombre</DataField>
|
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="Tipo">
|
|
||||||
<DataField>Tipo</DataField>
|
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="CveTipo">
|
|
||||||
<DataField>CveTipo</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="CtaMayor">
|
|
||||||
<DataField>CtaMayor</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="Nivel">
|
|
||||||
<DataField>Nivel</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="Clasificacion">
|
|
||||||
<DataField>Clasificacion</DataField>
|
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="Sup">
|
|
||||||
<DataField>Sup</DataField>
|
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="Orden">
|
|
||||||
<DataField>Orden</DataField>
|
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="SaldoInicial">
|
|
||||||
<DataField>SaldoInicial</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="SaldoActual">
|
|
||||||
<DataField>SaldoActual</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="Cargos">
|
|
||||||
<DataField>Cargos</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="Abonos">
|
|
||||||
<DataField>Abonos</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="Codigo">
|
|
||||||
<DataField>Codigo</DataField>
|
|
||||||
<rd:TypeName>System.String</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="SaldoID">
|
|
||||||
<DataField>SaldoID</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="SaldoIA">
|
|
||||||
<DataField>SaldoIA</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="TotalCargos">
|
|
||||||
<DataField>TotalCargos</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="TotalAbonos">
|
|
||||||
<DataField>TotalAbonos</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="SaldoAD">
|
|
||||||
<DataField>SaldoAD</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
<Field Name="SaldoAA">
|
|
||||||
<DataField>SaldoAA</DataField>
|
|
||||||
<rd:TypeName>System.Int16</rd:TypeName>
|
|
||||||
</Field>
|
|
||||||
</Fields>
|
|
||||||
<rd:DataSetInfo>
|
|
||||||
<rd:DataSetName>DataSet</rd:DataSetName>
|
|
||||||
<rd:SchemaPath>C:\Users\Caudillo\Documents\Visual Studio 2013\WebSites\WebSite3\App_Code\DataSet.xsd</rd:SchemaPath>
|
|
||||||
<rd:TableName>DataTable1</rd:TableName>
|
|
||||||
<rd:TableAdapterFillMethod />
|
|
||||||
<rd:TableAdapterGetDataMethod />
|
|
||||||
<rd:TableAdapterName />
|
|
||||||
</rd:DataSetInfo>
|
|
||||||
</DataSet>
|
|
||||||
</DataSets>
|
|
||||||
<ReportParameters>
|
<ReportParameters>
|
||||||
<ReportParameter Name="pEmp">
|
<ReportParameter Name="pEmp">
|
||||||
<DataType>String</DataType>
|
<DataType>String</DataType>
|
||||||
@@ -1643,6 +1644,8 @@
|
|||||||
</ReportParameter>
|
</ReportParameter>
|
||||||
<ReportParameter Name="pImg">
|
<ReportParameter Name="pImg">
|
||||||
<DataType>String</DataType>
|
<DataType>String</DataType>
|
||||||
|
<Nullable>true</Nullable>
|
||||||
|
<AllowBlank>true</AllowBlank>
|
||||||
<Prompt>ReportParameter1</Prompt>
|
<Prompt>ReportParameter1</Prompt>
|
||||||
</ReportParameter>
|
</ReportParameter>
|
||||||
<ReportParameter Name="pFechaIni">
|
<ReportParameter Name="pFechaIni">
|
||||||
|
|||||||
Reference in New Issue
Block a user