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
8dddab8e
Commit
8dddab8e
authored
Nov 18, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add button to refresh order in the order screen
parent
56ef5527
Pipeline
#1469
passed with stage
in 1 minute 29 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
oders_helper_style.css
orders/static/css/oders_helper_style.css
+8
-0
orders_helper.js
orders/static/js/orders_helper.js
+13
-0
helper.html
templates/orders/helper.html
+3
-0
No files found.
orders/static/css/oders_helper_style.css
View file @
8dddab8e
...
...
@@ -155,6 +155,14 @@
min-height
:
45px
;
}
#do_inventory
{
border-top
:
1px
solid
#004aa6
;
}
#refresh_order
{
border-top
:
1px
solid
#004aa6
;
border-bottom
:
1px
solid
#004aa6
;
}
/* -- Order data */
#order_data_container
{
font-size
:
1.8rem
;
...
...
orders/static/js/orders_helper.js
View file @
8dddab8e
...
...
@@ -2153,6 +2153,19 @@ $(document).ready(function() {
}
});
$
(
"#refresh_order"
).
on
(
"click"
,
function
()
{
if
(
is_time_to
(
'refresh_order'
,
1000
))
{
openModal
();
check_products_data
()
.
then
(()
=>
{
update_cdb_order
();
update_main_screen
();
$
(
"#toggle_action_buttons"
).
click
();
closeModal
();
});
}
});
$
(
"#delete_order_button"
).
on
(
"click"
,
function
()
{
if
(
is_time_to
(
'press_delete_order_button'
,
1000
))
{
let
modal_remove_order
=
$
(
'#templates #modal_remove_order'
);
...
...
templates/orders/helper.html
View file @
8dddab8e
...
...
@@ -55,6 +55,9 @@
<button
type=
"button"
class=
'btn--primary action_button'
id=
"do_inventory"
style=
"display:none;"
>
Faire un inventaire
</button>
<button
type=
"button"
class=
'btn--primary action_button'
id=
"refresh_order"
>
Rafraîchir la commande
</button>
<button
type=
"button"
class=
'btn--danger action_button'
id=
"delete_order_button"
>
Supprimer la commande
</button>
...
...
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