Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexis AOUN
third-party
Commits
30c46ddb
Commit
30c46ddb
authored
Jul 01, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
npa column on the right
parent
4ec2983d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
orders_helper.js
orders/static/js/orders_helper.js
+11
-10
No files found.
orders/static/js/orders_helper.js
View file @
30c46ddb
...
...
@@ -1034,16 +1034,6 @@ function prepare_datatable_columns() {
title
:
"Produit"
},
{
data
:
"purchase_ok"
,
title
:
`NPA`
,
className
:
"dt-body-center"
,
orderable
:
false
,
render
:
function
(
data
)
{
return
`<input type="checkbox" class="product_npa_cb" value="purchase_ok"
${
data
?
''
:
'checked'
}
>`
;
},
width
:
"4%"
},
{
data
:
"qty_available"
,
title
:
"Stock"
,
className
:
"dt-body-center"
,
...
...
@@ -1127,6 +1117,17 @@ function prepare_datatable_columns() {
width
:
"4%"
});
columns
.
push
({
data
:
"purchase_ok"
,
title
:
`NPA`
,
className
:
"dt-body-center"
,
orderable
:
false
,
render
:
function
(
data
)
{
return
`<input type="checkbox" class="product_npa_cb" value="purchase_ok"
${
data
?
''
:
'checked'
}
>`
;
},
width
:
"4%"
});
return
columns
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment