Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
e908b983
Commit
e908b983
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
NEW Can search on shipments into the quick search box
parent
334cdbc2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/ajax/selectsearchbox.php
+12
-10
12 additions, 10 deletions
htdocs/core/ajax/selectsearchbox.php
htdocs/langs/en_US/main.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/en_US/main.lang
with
13 additions
and
10 deletions
htdocs/core/ajax/selectsearchbox.php
+
12
−
10
View file @
e908b983
...
...
@@ -71,32 +71,34 @@ if (! empty($conf->user->enabled) && empty($conf->global->MAIN_SEARCHFORM_PROJEC
$arrayresult
[
'searchintouser'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_user'
)
.
' '
.
$langs
->
trans
(
"SearchIntoUsers"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/user/index.php?sall='
.
urlencode
(
$search_boxvalue
));
}
if
(
!
empty
(
$conf
->
facture
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_CUSTOMER_
INVOICE
_DISABLED
)
&&
$user
->
rights
->
facture
->
lire
)
if
(
!
empty
(
$conf
->
propal
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_CUSTOMER_
PROPAL
_DISABLED
)
&&
$user
->
rights
->
propal
->
lire
)
{
$arrayresult
[
'searchinto
invoice
'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_
bil
l'
)
.
' '
.
$langs
->
trans
(
"SearchIntoCustomer
Invoice
s"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/com
pta/facture
/list.php?sall='
.
urlencode
(
$search_boxvalue
));
$arrayresult
[
'searchinto
propal
'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_
propa
l'
)
.
' '
.
$langs
->
trans
(
"SearchIntoCustomer
Proposal
s"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/com
m/propal
/list.php?sall='
.
urlencode
(
$search_boxvalue
));
}
if
(
!
empty
(
$conf
->
commande
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_CUSTOMER_ORDER_DISABLED
)
&&
$user
->
rights
->
commande
->
lire
)
{
$arrayresult
[
'searchintoorder'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_order'
)
.
' '
.
$langs
->
trans
(
"SearchIntoCustomerOrders"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/commande/list.php?sall='
.
urlencode
(
$search_boxvalue
));
}
if
(
!
empty
(
$conf
->
propal
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_CUSTOMER_PROPAL_DISABLED
)
&&
$user
->
rights
->
propal
->
lire
)
if
(
!
empty
(
$conf
->
facture
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_CUSTOMER_INVOICE_DISABLED
)
&&
$user
->
rights
->
facture
->
lire
)
{
$arrayresult
[
'searchintoinvoice'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_bill'
)
.
' '
.
$langs
->
trans
(
"SearchIntoCustomerInvoices"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/compta/facture/list.php?sall='
.
urlencode
(
$search_boxvalue
));
}
if
(
!
empty
(
$conf
->
expedition
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_CUSTOMER_SHIPMENT_DISABLED
)
&&
$user
->
rights
->
expedition
->
lire
)
{
$arrayresult
[
'searchinto
propal
'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_
propal
'
)
.
' '
.
$langs
->
trans
(
"SearchIntoCustomer
Proposal
s"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/
comm/propal
/list.php?sall='
.
urlencode
(
$search_boxvalue
));
$arrayresult
[
'searchinto
shipment
'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_
sending
'
)
.
' '
.
$langs
->
trans
(
"SearchIntoCustomer
Shipment
s"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/
expedition
/list.php?sall='
.
urlencode
(
$search_boxvalue
));
}
if
(
!
empty
(
$conf
->
fournisseur
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_SUPPLIER_
INVOICE
_DISABLED
)
&&
$user
->
rights
->
fournisseur
->
facture
->
lire
)
if
(
!
empty
(
$conf
->
supplier_proposal
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_SUPPLIER_
PROPAL
_DISABLED
)
&&
$user
->
rights
->
supplier_proposal
->
lire
)
{
$arrayresult
[
'searchintosupplier
invoice
'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_
bil
l'
)
.
' '
.
$langs
->
trans
(
"SearchIntoSupplier
Invoice
s"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/
fourn/facture
/list.php?sall='
.
urlencode
(
$search_boxvalue
));
$arrayresult
[
'searchintosupplier
propal
'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_
propa
l'
)
.
' '
.
$langs
->
trans
(
"SearchIntoSupplier
Proposal
s"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/
supplier_proposal
/list.php?sall='
.
urlencode
(
$search_boxvalue
));
}
if
(
!
empty
(
$conf
->
fournisseur
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_SUPPLIER_ORDER_DISABLED
)
&&
$user
->
rights
->
fournisseur
->
commande
->
lire
)
{
$arrayresult
[
'searchintosupplierorder'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_order'
)
.
' '
.
$langs
->
trans
(
"SearchIntoSupplierOrders"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/fourn/commande/list.php?search_all='
.
urlencode
(
$search_boxvalue
));
}
if
(
!
empty
(
$conf
->
supplier_proposal
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_SUPPLIER_
PROPAL
_DISABLED
)
&&
$user
->
rights
->
supplier_proposal
->
lire
)
if
(
!
empty
(
$conf
->
fournisseur
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_SUPPLIER_
INVOICE
_DISABLED
)
&&
$user
->
rights
->
fournisseur
->
facture
->
lire
)
{
$arrayresult
[
'searchintosupplier
propal
'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_
propa
l'
)
.
' '
.
$langs
->
trans
(
"SearchIntoSupplier
Proposal
s"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/
supplier_proposal
/list.php?sall='
.
urlencode
(
$search_boxvalue
));
$arrayresult
[
'searchintosupplier
invoice
'
]
=
array
(
'text'
=>
img_picto
(
''
,
'object_
bil
l'
)
.
' '
.
$langs
->
trans
(
"SearchIntoSupplier
Invoice
s"
,
$search_boxvalue
),
'url'
=>
DOL_URL_ROOT
.
'/
fourn/facture
/list.php?sall='
.
urlencode
(
$search_boxvalue
));
}
if
(
!
empty
(
$conf
->
contrat
->
enabled
)
&&
empty
(
$conf
->
global
->
MAIN_SEARCHFORM_CONTRACT_DISABLED
)
&&
$user
->
rights
->
contrat
->
lire
)
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/main.lang
+
1
−
0
View file @
e908b983
...
...
@@ -798,3 +798,4 @@ SearchIntoSupplierProposals=Supplier proposals
SearchIntoInterventions=Interventions
SearchIntoContracts=Contracts
SearchIntoExpenseReports=Expense reports
SearchIntoCustomerShipments=Customer shipments
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment