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
2
Merge Requests
2
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
cooperatic-foodcoops
third-party
Commits
2546a5fa
Commit
2546a5fa
authored
Aug 17, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing files for stock values
parent
1d174924
Pipeline
#2346
passed with stage
in 1 minute 27 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
0 deletions
+93
-0
stock_values.js
stock/static/js/stock_values.js
+61
-0
stock_values.html
templates/stock/stock_values.html
+32
-0
No files found.
stock/static/js/stock_values.js
0 → 100644
View file @
2546a5fa
$
(
document
).
ready
(
function
()
{
table_article
=
$
(
'#tableArticle'
).
DataTable
({
"ajax"
:
{
"url"
:
"get_valuable_stock"
,
"data"
:
""
},
"columns"
:[
{
data
:
"barcode"
,
"title"
:
"Code-barre"
,
"width"
:
"50%"
},
{
data
:
"display_name"
,
"title"
:
"Article"
,
"width"
:
"50%"
},
{
data
:
"qty_available"
,
"title"
:
"Stock"
,
"width"
:
"15%"
},
{
data
:
"standard_price"
,
"title"
:
"Prix achat"
,
"width"
:
"15%"
}
],
"searching"
:
true
,
"order"
:
[
[
2
,
"desc"
]
],
"iDisplayLength"
:
50
,
"language"
:
{
"emptyTable"
:
"Pas de donnée"
,
"info"
:
"Affiché : lignes _START_ à _END_ sur _TOTAL_"
,
"infoEmpty"
:
"Affiché : 0 ligne"
,
"infoFiltered"
:
"(filtré de _MAX_ lignes au total)"
,
"thousands"
:
","
,
"lengthMenu"
:
"Afficher _MENU_ lignes"
,
"loadingRecords"
:
"Loading..."
,
"processing"
:
"Processing..."
,
"search"
:
"Rechercher un article :"
,
"searchPlaceholder"
:
"Référence, code-barre"
,
"zeroRecords"
:
"Aucun résultat"
,
"paginate"
:
{
"first"
:
"Premier"
,
"last"
:
"Dernier"
,
"next"
:
"Suivant"
,
"previous"
:
"Precedant"
},
"aria"
:
{
"sortAscending"
:
": activate to sort column ascending"
,
"sortDescending"
:
": activate to sort column descending"
}
},
buttons
:
[
{
extend
:
'excelHtml5'
,
text
:
'Export en Excel'
,
className
:
'btn--primary btn_export'
},
],
dom
:
'<lr<t>ip><"clear"><B>'
,
});
});
\ No newline at end of file
templates/stock/stock_values.html
0 → 100644
View file @
2546a5fa
{% extends "stock/stock_menu.html" %}
{% load static %}
{% block additionnal_css %}
<link
rel=
"stylesheet"
href=
"{% static 'css/datatables/jquery.dataTables.css' %}"
>
{% endblock %}
{% block additionnal_scripts %}
<script
type=
"text/javascript"
src=
"{% static 'js/datatables/jquery.dataTables.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/datatables/dataTables.plugins.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/datatables/datatables.buttons.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/datatables/buttons.html5.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/datatables/jszip.min.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'js/stock_values.js' %}"
></script>
{% endblock %}
{% block content %}
<h1>
Stock valorisé
</h1>
<br>
<div
class=
"main"
>
<table
id=
"tableArticle"
class=
"display"
width=
"95%"
cellspacing=
"0"
></table>
</div>
<br/>
<br/>
<script
src=
"{% static "
js
/
all_common
.
js
"
%}?
v=
1651853225"
></script>
<script
src=
"{% static "
js
/
common
.
js
"
%}?
v=
1651853225"
></script>
{% endblock %}
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