- garantia
This commit is contained in:
@@ -5107,11 +5107,7 @@ Partial Class Compras_Compras
|
|||||||
' Next
|
' Next
|
||||||
'End If
|
'End If
|
||||||
|
|
||||||
If DdlTipoCompra.SelectedValue = "14" Then 'recolección
|
|
||||||
If Not ObjGrales.UpdateInvEntregaAlmacenEstatus(DdlRecoleccion.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, 2, CveCompra) Then
|
|
||||||
ErrorDetalles = True
|
|
||||||
End If
|
|
||||||
End If
|
|
||||||
|
|
||||||
'AGREGA AF COMPRA - Cuando es Compra se guarda CveCompraDetalle en AF
|
'AGREGA AF COMPRA - Cuando es Compra se guarda CveCompraDetalle en AF
|
||||||
If Row("TipoAF").ToString.ToEntero = 2 Then
|
If Row("TipoAF").ToString.ToEntero = 2 Then
|
||||||
@@ -5136,6 +5132,12 @@ Partial Class Compras_Compras
|
|||||||
Next
|
Next
|
||||||
''TERMINA: INSERTA DETALLES DE LA COMPRA
|
''TERMINA: INSERTA DETALLES DE LA COMPRA
|
||||||
|
|
||||||
|
If DdlTipoCompra.SelectedValue = "14" Then 'recolección
|
||||||
|
If Not ObjGrales.UpdateInvEntregaAlmacenEstatus(DdlRecoleccion.SelectedValue.ToEntero, UsuarioActual.CveEmpresa, 2, CveCompra) Then
|
||||||
|
ErrorDetalles = True
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
|
||||||
'QUEMA SALDOS DE INV-COMPRA | MERCANCIA RECIBIDA POR ADELANTADO (OC) | PP 176
|
'QUEMA SALDOS DE INV-COMPRA | MERCANCIA RECIBIDA POR ADELANTADO (OC) | PP 176
|
||||||
If OCVinculada And Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV", "Ant") Then
|
If OCVinculada And Not DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV", "Ant") Then
|
||||||
For Each Row As DataRow In TmpDT.FiltraParametros("CveTipoPS = 2").Rows
|
For Each Row As DataRow In TmpDT.FiltraParametros("CveTipoPS = 2").Rows
|
||||||
@@ -19742,6 +19744,10 @@ Partial Class Compras_Compras
|
|||||||
Dim cantidad As Decimal = dr("CantidadDisponible").ToString.ToDecimal
|
Dim cantidad As Decimal = dr("CantidadDisponible").ToString.ToDecimal
|
||||||
AddPS(cantidad, dr("CveUM").ToString.ToEntero, "", dr("CveClasificacion").ToString.ToEntero, "", dr("CvePS").ToString.ToEntero, dr("PS").ToString, 2, tCveSub.ToString, "SE", "SE", "", "", pu, Total, Porcentaje, 0, 0, 0, 0, 0, PorcentajeIVA:=Porcentaje, TCalculaTotales:=True, CveTipoGasto:=tCveTipoGasto)
|
AddPS(cantidad, dr("CveUM").ToString.ToEntero, "", dr("CveClasificacion").ToString.ToEntero, "", dr("CvePS").ToString.ToEntero, dr("PS").ToString, 2, tCveSub.ToString, "SE", "SE", "", "", pu, Total, Porcentaje, 0, 0, 0, 0, 0, PorcentajeIVA:=Porcentaje, TCalculaTotales:=True, CveTipoGasto:=tCveTipoGasto)
|
||||||
Next
|
Next
|
||||||
|
'cambia si hay ps con uso de serie
|
||||||
|
For Each dr As DataRow In TmpDT.Rows
|
||||||
|
dr("CveMetodoInventario") = 1
|
||||||
|
Next
|
||||||
AddPS2()
|
AddPS2()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user