Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -493,14 +493,16 @@ Partial Class Ventas_ActualizarPrecios
|
||||
DtExcel.Columns("PS").ColumnName = "Producto / Servicio"
|
||||
DtExcel.Columns("NumeroParte").ColumnName = "Número de parte"
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" OrElse UsuarioActual.Empresa.Funcionalidad(578) = "1" Then 'Empresa Acumuladores
|
||||
If UsuarioActual.Empresa.Funcionalidad(578) = "1" Or UsuarioActual.Empresa.Funcionalidad(531) = "1" Or UsuarioActual.Empresa.Funcionalidad(382) = "1" Then '
|
||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||
DtExcel.Columns("Número de parte").ColumnName = "Código CPK"
|
||||
End If
|
||||
Else
|
||||
DtExcel.Columns.Remove("Número de parte")
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
SpreadsheetInfo.SetLicense(ModExtensiones.SerialGemBoxSpreadsheet)
|
||||
|
||||
Dim FileExcel As New ExcelFile()
|
||||
@@ -988,20 +990,17 @@ Partial Class Ventas_ActualizarPrecios
|
||||
For Each GvRow As GridViewRow In GvMultiple.Rows
|
||||
|
||||
If GvRow.FCCheckBox("chkPS").Checked Then
|
||||
For colIndex As Integer = 2 To GvRow.Cells.Count - 1
|
||||
For colIndex As Integer = 2 To GvRow.Cells.Count - 3
|
||||
|
||||
Dim indiceColumna As Integer = (colIndex)
|
||||
|
||||
Dim CvePS As Integer = DtPreciosMultiple.Rows(GvRow.RowIndex)("CvePS").ToString().ToEntero()
|
||||
Dim LtlId As String = "LtlLista_" + (colIndex - 1).ToString()
|
||||
Dim TxtId As String = "TxtPrecio_" + (colIndex - 1).ToString()
|
||||
|
||||
If indiceColumna <= DtPreciosMultiple.Columns.Count - 1 Then
|
||||
|
||||
Dim CvePrecioLista As Integer = GvMultiple.HeaderRow.FCLabel(LtlId).Attributes().Item("cvepreciolista").ToEntero()
|
||||
Dim CvePS As Integer = DtPreciosMultiple.Rows(GvRow.RowIndex)("CvePS").ToString().ToEntero()
|
||||
|
||||
Dim Precio As Decimal = GvRow.FCTextBox(TxtId).Text.ToDecimal()
|
||||
|
||||
TieneError = Not ObjPS.UpdatePSPreciosLista(Precio, CvePrecioLista, 0, CvePS, UsuarioActual.CveUsuario, NowADS(), True)
|
||||
|
||||
If Not TieneError Then
|
||||
|
||||
@@ -14323,7 +14323,7 @@ Partial Class Ventas
|
||||
End If
|
||||
End If
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(578) = "1" AndAlso EsVentaMedica Then
|
||||
If UsuarioActual.Empresa.Funcionalidad(578) = "1" AndAlso EsVentaMedica AndAlso factura.TipoDocto.Contiene("Ped", "Rem") Then
|
||||
Dim CveClientesucursatTemp As Integer = DdlClienteSucursalSucursal()
|
||||
If CveClientesucursatTemp > 0 Then
|
||||
|
||||
@@ -14370,17 +14370,16 @@ Partial Class Ventas
|
||||
End If
|
||||
End If
|
||||
|
||||
Dim TotalImpuestoLocal As Double = 0
|
||||
Dim TotalImpuestoLocal As Decimal = 0
|
||||
If GvImpuestosLocales2.Rows.Count > 0 Then
|
||||
For Each gvr As GridViewRow In GvImpuestosLocales2.Rows
|
||||
If gvr.RowType = DataControlRowType.DataRow Then
|
||||
If gvr.FCTextBox("TxtImpuestoLocalPS").Text.ToDouble <> 0 Then
|
||||
If gvr.FCTextBox("TxtImpuestoLocalPS").Text.ToDecimal <> 0 Then
|
||||
If gvr.DataKey("TipoImpuesto") = "5" Then ' cuando es traslado local
|
||||
TotalImpuestoLocal -= gvr.FCTextBox("TxtImpuestoLocalPS").Text.ToDouble
|
||||
TotalImpuestoLocal -= gvr.FCTextBox("TxtImpuestoLocalPS").Text.ToDecimal
|
||||
Else ' cuando es retención
|
||||
TotalImpuestoLocal += gvr.FCTextBox("TxtImpuestoLocalPS").Text.ToDouble
|
||||
TotalImpuestoLocal += gvr.FCTextBox("TxtImpuestoLocalPS").Text.ToDecimal
|
||||
End If
|
||||
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
|
||||
Reference in New Issue
Block a user