GDiaz - 2024.08.02, serie OC
This commit is contained in:
@@ -14242,6 +14242,7 @@ Partial Class Compras_Compras
|
||||
HdnVCveOC.Value = ""
|
||||
HdnCveEstatusOC.Value = ""
|
||||
|
||||
Dim tmpPorcentajeProntoPago As Decimal = 0
|
||||
Dim OC As New ClsOC
|
||||
If PopUpOC Then
|
||||
Dim ArrayCveOC As String() = CvesOC.Split(New Char() {","c})
|
||||
@@ -14252,6 +14253,7 @@ Partial Class Compras_Compras
|
||||
HdnCveEstatusOC.Value += String.Format("{0}{1}", If(HdnCveEstatusOC.Value <> "", ",", ""), OC.DtResultados.Rows(0)("CveEstatusSiguiente").ToString)
|
||||
EntregaDirecta += If(OC.DtResultados.Rows(0)("EntregaDirecta").ToString = "True", 1, 0)
|
||||
MetodoPagoOC = OC.DtResultados.Rows(0)("MetodoPagoOC").ToString.ToEntero
|
||||
tmpPorcentajeProntoPago = OC.DtResultados.Rows(0)("PorcentajeProntoPago").ToString.ToDecimal
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
@@ -14268,6 +14270,11 @@ Partial Class Compras_Compras
|
||||
HdnCveEstatusOC.Value += String.Format("{0}{1}", If(HdnCveEstatusOC.Value <> "", ",", ""), OC.DtResultados.Rows(0)("CveEstatusSiguiente").ToString)
|
||||
EntregaDirecta += If(OC.DtResultados.Rows(0)("EntregaDirecta").ToString = "True", 1, 0)
|
||||
MetodoPagoOC = OC.DtResultados.Rows(0)("MetodoPagoOC").ToString.ToEntero
|
||||
|
||||
If tmpPorcentajeProntoPago = 0 Then
|
||||
tmpPorcentajeProntoPago = OC.DtResultados.Rows(0)("PorcentajeProntoPago").ToString.ToDecimal
|
||||
End If
|
||||
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
@@ -14281,6 +14288,11 @@ Partial Class Compras_Compras
|
||||
PopUpOC = False
|
||||
|
||||
|
||||
If tmpPorcentajeProntoPago > 0 Then
|
||||
PorcentajeProntoPago = tmpPorcentajeProntoPago
|
||||
End If
|
||||
|
||||
|
||||
If HdnVCveOC.Value <> "" Then
|
||||
If HdnCveEstatusOC.Value = "" Then
|
||||
Alert("No se tiene especificado el siguiente estatus de la Orden(es) de Compra. Por favor verifique los estatus y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
|
||||
|
||||
Reference in New Issue
Block a user