-
This commit is contained in:
@@ -2457,6 +2457,8 @@ Partial Class Bancos_IE
|
|||||||
If CveIE > 0 Then
|
If CveIE > 0 Then
|
||||||
|
|
||||||
If DdlTipoTransaccion.SelectedValue = "1" Then FolioFijo = ObjIE.Folio.ToEntero 'cheque
|
If DdlTipoTransaccion.SelectedValue = "1" Then FolioFijo = ObjIE.Folio.ToEntero 'cheque
|
||||||
|
If UsuarioActual.CveEmpresa = 119 Then FolioFijo = 0
|
||||||
|
|
||||||
CvePrePoliza = ObjMov.AddPrePolizas("Bancos/IE " + If(Request("Opcion") IsNot Nothing, Request("Opcion").ToString, "") + " " + RBL.SelectedValue, CvePlantillaPoliza, TxtImporte.Text.Trim.ToDouble, TxtImporte.Text.Trim.ToDouble, tCveMoneda, TxtFechaDocumento.Text.ToDate, PagueseA, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FolioFijo:=FolioFijo, ReglaFolioPoliza:=ObjComp.ObtenerReglaFolio(DdlTipoTransaccion.SelectedValue, Nothing, UsuarioActual.CveEmpresa), CveTipoPoliza:=ObjMov.ObtenerTipoPoliza(DdlTipoTransaccion.SelectedValue, "-1", UsuarioActual.CveEmpresa))
|
CvePrePoliza = ObjMov.AddPrePolizas("Bancos/IE " + If(Request("Opcion") IsNot Nothing, Request("Opcion").ToString, "") + " " + RBL.SelectedValue, CvePlantillaPoliza, TxtImporte.Text.Trim.ToDouble, TxtImporte.Text.Trim.ToDouble, tCveMoneda, TxtFechaDocumento.Text.ToDate, PagueseA, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, FolioFijo:=FolioFijo, ReglaFolioPoliza:=ObjComp.ObtenerReglaFolio(DdlTipoTransaccion.SelectedValue, Nothing, UsuarioActual.CveEmpresa), CveTipoPoliza:=ObjMov.ObtenerTipoPoliza(DdlTipoTransaccion.SelectedValue, "-1", UsuarioActual.CveEmpresa))
|
||||||
|
|
||||||
'valida prepoliza
|
'valida prepoliza
|
||||||
|
|||||||
@@ -844,7 +844,7 @@ public partial class Bancos_PagoDeudor : ClsPaginas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool AutoConta = UsuarioActual.Empresa.Funcionalidad(200).Equals("1");
|
bool AutoConta = UsuarioActual.Empresa.Funcionalidad(200).Equals("1");
|
||||||
if (UsuarioActual.CveEmpresa == 119) AutoConta = false;
|
//if (UsuarioActual.CveEmpresa == 119) AutoConta = false;
|
||||||
|
|
||||||
if (AutoConta && MsgError.Equals(""))
|
if (AutoConta && MsgError.Equals(""))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5095,7 +5095,7 @@ Partial Class PV
|
|||||||
|
|
||||||
'Dim NoMesesTrascurridos = Math.Ceiling(MesesTranscurridos)
|
'Dim NoMesesTrascurridos = Math.Ceiling(MesesTranscurridos)
|
||||||
|
|
||||||
TxtMesesUso.Text = (DateDiff(DateInterval.Month, FechaI, FechaF) + 1).ToString()
|
TxtMesesUso.Text = (DateDiff(DateInterval.Month, FechaI, FechaF)).ToString()
|
||||||
CalculaPorcentajeAjuste()
|
CalculaPorcentajeAjuste()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -9572,24 +9572,24 @@ Partial Class Ventas
|
|||||||
TCFluctuacion = GlobalTipoCambio(TxtFecha.Text.ToDate).ToDecimal
|
TCFluctuacion = GlobalTipoCambio(TxtFecha.Text.ToDate).ToDecimal
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If DdlMoneda.SelectedValue.ToEntero = 2 AndAlso Not Dr("TCCambioValuacion").ToString.ToDecimal > 1 Then
|
If DdlMoneda.SelectedValue.ToEntero = 2 AndAlso Not Dr("TCCambioValuacion").ToString.ToDecimal > 1 Then
|
||||||
ImporteMN251 = Dr("Importe").ToString.ToDecimal * TCFluctuacion
|
ImporteMN251 = Dr("Importe").ToString.ToDecimal * TCFluctuacion
|
||||||
ElseIf DdlMoneda.SelectedValue.ToEntero = 2 AndAlso Dr("TCCambioValuacion").ToString.ToDecimal > 1 Then
|
ElseIf DdlMoneda.SelectedValue.ToEntero = 2 AndAlso Dr("TCCambioValuacion").ToString.ToDecimal > 1 Then
|
||||||
ImporteMN251 = Dr("Importe").ToString.ToDecimal * TCFluctuacion
|
ImporteMN251 = Dr("Importe").ToString.ToDecimal * TCFluctuacion
|
||||||
ElseIf DdlMoneda.SelectedValue.ToEntero = 1 AndAlso Dr("TCCambioValuacion").ToString.ToDecimal > 1 Then
|
ElseIf DdlMoneda.SelectedValue.ToEntero = 1 AndAlso Dr("TCCambioValuacion").ToString.ToDecimal > 1 Then
|
||||||
Importe251 = Dr("Importe").ToString.ToDecimal / TCFluctuacion
|
Importe251 = Dr("Importe").ToString.ToDecimal / TCFluctuacion
|
||||||
ImporteMN251 = Dr("Importe").ToString.ToDecimal
|
ImporteMN251 = Dr("Importe").ToString.ToDecimal
|
||||||
Else
|
Else
|
||||||
ImporteMN251 = Dr("Importe").ToString.ToDecimal
|
ImporteMN251 = Dr("Importe").ToString.ToDecimal
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Importe251 = (Importe251 * Multiplicador).RoundSQL
|
Importe251 = Importe251.RoundSQL
|
||||||
|
|
||||||
Importe91 = (Importe91 * ValorMultiplicador).RoundSQL
|
Importe91 = (Importe91).RoundSQL
|
||||||
ImporteMN91 = (ImporteMN91 * Multiplicador).RoundSQL
|
ImporteMN91 = (ImporteMN91 * Multiplicador).RoundSQL
|
||||||
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${Importe91.FormatoNumero(2)}"
|
If tipoCambio > 1 Then Concepto += $" TC:{tipoCambio} ${Importe91.FormatoNumero(2)}"
|
||||||
|
|
||||||
CveUltimaVenta = Dr("CveVenta").ToString.ToEntero
|
CveUltimaVenta = Dr("CveVenta").ToString.ToEntero
|
||||||
|
|
||||||
Dim ImporteComplementarioIngreso As Decimal = 0
|
Dim ImporteComplementarioIngreso As Decimal = 0
|
||||||
If UsaComplementariaClientes = True AndAlso tipoCambio > 1 Then
|
If UsaComplementariaClientes = True AndAlso tipoCambio > 1 Then
|
||||||
|
|||||||
Reference in New Issue
Block a user