Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -15,6 +15,7 @@ Imports ClsPaginas
|
|||||||
Imports System.Activities.Expressions
|
Imports System.Activities.Expressions
|
||||||
Imports Microsoft.Data.Edm.Expressions
|
Imports Microsoft.Data.Edm.Expressions
|
||||||
Imports Telerik.Web.UI
|
Imports Telerik.Web.UI
|
||||||
|
Imports DocumentFormat.OpenXml.Math
|
||||||
|
|
||||||
Partial Class Compras_Compras
|
Partial Class Compras_Compras
|
||||||
Inherits ClsPaginas
|
Inherits ClsPaginas
|
||||||
@@ -11712,6 +11713,8 @@ Partial Class Compras_Compras
|
|||||||
#Region " AJUSTA IMPORTES "
|
#Region " AJUSTA IMPORTES "
|
||||||
Private Sub AjustaImporteUltimoConcepto(ImporteAjuste As Decimal, Optional EsCarga As Boolean = False)
|
Private Sub AjustaImporteUltimoConcepto(ImporteAjuste As Decimal, Optional EsCarga As Boolean = False)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
If ImporteAjuste = 0 Then Exit Sub
|
If ImporteAjuste = 0 Then Exit Sub
|
||||||
|
|
||||||
Dim Amortizacion As Decimal = 0
|
Dim Amortizacion As Decimal = 0
|
||||||
@@ -17423,18 +17426,18 @@ Partial Class Compras_Compras
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Select Case Modalidad
|
'Select Case Modalidad
|
||||||
Case "A"
|
' Case "A"
|
||||||
If Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2) <> TmpDT.MAX("IVAPorcentaje").ToDouble And TmpDT.MAX("IVAPorcentaje").ToDouble <> 0 And Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2) <> 0 And TmpDT.Rows.Count > 0 Then
|
' If Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2) <> TmpDT.MAX("IVAPorcentaje").ToDouble And TmpDT.MAX("IVAPorcentaje").ToDouble <> 0 And Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2) <> 0 And TmpDT.Rows.Count > 0 Then
|
||||||
Alert("No puede haber dos tipos de IVA en la compra.", TipoMensaje.MsgAdvertencia)
|
' Alert("No puede haber dos tipos de IVA en la compra.", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
' Exit Sub
|
||||||
End If
|
' End If
|
||||||
Case "U"
|
' Case "U"
|
||||||
If Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2) <> TmpDT.FiltraParametros($"Consec <> {Index}").MAX("IVAPorcentaje").ToDouble And TmpDT.FiltraParametros($"Consec <> {Index}").MAX("IVAPorcentaje").ToDouble <> 0 And Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2) <> 0 And TmpDT.FiltraParametros($"Consec <> {Index}").Rows.Count > 0 Then
|
' If Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2) <> TmpDT.FiltraParametros($"Consec <> {Index}").MAX("IVAPorcentaje").ToDouble And TmpDT.FiltraParametros($"Consec <> {Index}").MAX("IVAPorcentaje").ToDouble <> 0 And Math.Round(DdlIVA.SelectedValue.ToDouble - 1, 2) <> 0 And TmpDT.FiltraParametros($"Consec <> {Index}").Rows.Count > 0 Then
|
||||||
Alert("No puede haber dos tipos de IVA en la compra.", TipoMensaje.MsgAdvertencia)
|
' Alert("No puede haber dos tipos de IVA en la compra.", TipoMensaje.MsgAdvertencia)
|
||||||
Exit Sub
|
' Exit Sub
|
||||||
End If
|
' End If
|
||||||
End Select
|
'End Select
|
||||||
|
|
||||||
|
|
||||||
Dim Total As Decimal = (TxtCantidad.Text.ToDecimal * TxtPrecio.Text.ToDecimal) - TxtDescuentoModal.Text.ToDecimal
|
Dim Total As Decimal = (TxtCantidad.Text.ToDecimal * TxtPrecio.Text.ToDecimal) - TxtDescuentoModal.Text.ToDecimal
|
||||||
|
|||||||
Reference in New Issue
Block a user