Project

General

Profile

Feature #15

Implementar un motor de búsqueda más inteligente (búsqueda avanzada) en donde se pueda buscar dentro de los campos a seleccionar.

Added by Joaquín Verástegui about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Fiorella Quino
Category:
-
Target version:
Start date:
11/05/2015
Due date:
11/12/2015
% Done:

100%

Estimated time:
8.00 h
Spent time:

History

#1 Updated by Joaquín Verástegui about 9 years ago

  • Tracker changed from Bug to Feature
  • Due date set to 10/22/2015
  • Estimated time set to 8.00 h

#2 Updated by Fiorella Quino about 9 years ago

  • Due date changed from 10/22/2015 to 11/12/2015

#3 Updated by Fiorella Quino about 9 years ago

  • Start date changed from 10/07/2015 to 11/05/2015

#4 Updated by Fiorella Quino almost 9 years ago

  • Status changed from New to In progress
  • % Done changed from 0 to 70

Se agregó check_boxes para que el usuario pueda elegir si buscar en Inventario, BOMs o Solicitudes de Compra:

check_f = forms.BooleanField(required=False, initial=True, label=_(u'Fungible'))
check_bom = forms.BooleanField(required=False, label=_(u'BOM'))
check_p = forms.BooleanField(required=False,label=_(u'Purchase Request'))

#5 Updated by Fiorella Quino almost 9 years ago

  • Target version set to Version 1.0

#6 Updated by Fiorella Quino almost 9 years ago

  • % Done changed from 70 to 80

#Lista de 2 letras que filtra campos: Fungible, Budget, Purchase y BOM

(forms)
check_f = forms.BooleanField(required=False, initial = True, label=(u'Fungible'))
check_bom = forms.BooleanField(required=False, label=
(u'BOM'))
check_p = forms.BooleanField(required=False, label=(u'Purchase Request'))
check_budget = forms.BooleanField(required=False, label=
(u'Budget'))

(views)
check_f = forms.BooleanField(required=False, initial = True, label=(u'Fungible'))
check_bom = forms.BooleanField(required=False, label=
(u'BOM'))
check_p = forms.BooleanField(required=False, label=(u'Purchase Request'))
check_budget = forms.BooleanField(required=False, label=
(u'Budget'))

filter_list=[]

checkf = False
checkbom = False
checkp = False
checkbudget = False

    if ('check_f' in request.GET):
        checkf = bool(request.GET['check_f'])
        if checkf == True:
            filter_list=filter_list+["FU"]

    if ('check_bom' in request.GET):
        checkbom = bool(request.GET['check_bom'])
        if checkbom == True:
            filter_list=filter_list+["BI"]+["LI"]

    if ('check_p' in request.GET):
        checkp = bool(request.GET['check_p']) 
        if checkp == True:
            filter_list=filter_list+["PU"]+["AR"]+["SO"]+["OR"]

    if ('check_budget' in request.GET):
        checkbudget = bool(request.GET['check_budget'])
        if checkbudget == True:
            filter_list=filter_list+["BU"]+["PR"]

    valor_checkbox = {'q': query_string, 'check_f' : checkf, 'check_bom' : checkbom, 'check_p' : checkp, 'check_budget' : checkbudget}        
    form = SearchForm(initial=valor_checkbox)

#7 Updated by Fiorella Quino almost 9 years ago

  • Status changed from In progress to Resolved
  • % Done changed from 80 to 100

Cambios se encuentran en el servidor de producción.

#8 Updated by Fiorella Quino over 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF