-- poder relacionar oc relacionadas a ordenes de corte de otros proveedores, caso "castelos"
This commit is contained in:
@@ -13563,6 +13563,12 @@ Partial Class Compras_Compras
|
||||
Alert("Debe de Seleccionar un proveedor")
|
||||
Exit Sub
|
||||
End If
|
||||
Dim tCveProveedor As Integer = CveProveedor
|
||||
|
||||
'código para cambiar de proveedor a la oc, para caso 172
|
||||
If UsuarioActual.Empresa.Funcionalidad(267) = "1" AndAlso HdnCveProveedorOC.Value.ToEntero > 0 Then
|
||||
tCveProveedor = HdnCveProveedorOC.Value.ToEntero
|
||||
End If
|
||||
|
||||
'BANDERA DE SURTIDO
|
||||
If UsuarioActual.Empresa.Funcionalidad(131).ToEntero > 0 Then
|
||||
@@ -13582,7 +13588,7 @@ Partial Class Compras_Compras
|
||||
If PopUpOC Then
|
||||
Dim ArrayCveOC As String() = CvesOC.Split(New Char() {","c})
|
||||
For i As Integer = 0 To ArrayCveOC.Count - 1
|
||||
If OC.GetOrdenesCompraRep("OC", -1, -1, -1, -1, MinFecha, MaxFecha, ArrayCveOC(i).ToEntero, CveProveedor, -1, -1, -1, UsuarioActual.CveEmpresa, -1) Then
|
||||
If OC.GetOrdenesCompraRep("OC", -1, -1, -1, -1, MinFecha, MaxFecha, ArrayCveOC(i).ToEntero, tCveProveedor, -1, -1, -1, UsuarioActual.CveEmpresa, -1) Then
|
||||
If OC.DtResultados.FiltraParametros("TipoTermino = 3").Rows.Count = 1 Or DdlTipoComprobante.SelectedValue.Contiene("NC", "DEV") Then
|
||||
HdnVCveOC.Value += String.Format("{0}{1}", If(HdnVCveOC.Value <> "", ",", ""), OC.DtResultados.Rows(0)("CveOrdenCompra").ToString)
|
||||
HdnCveEstatusOC.Value += String.Format("{0}{1}", If(HdnCveEstatusOC.Value <> "", ",", ""), OC.DtResultados.Rows(0)("CveEstatusSiguiente").ToString)
|
||||
|
||||
Reference in New Issue
Block a user