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
b9a54b70
Commit
b9a54b70
authored
Oct 06, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALC: dont ignore target amount if target coverage days set
parent
04f149b4
Pipeline
#2411
passed with stage
in 1 minute 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
orders_helper.js
orders/static/js/orders_helper.js
+3
-1
No files found.
orders/static/js/orders_helper.js
View file @
b9a54b70
...
...
@@ -344,7 +344,9 @@ function compute_products_coverage_qties() {
order_doc
.
coeff
=
coeff
;
if
(
order_doc
.
coverage_days
!=
null
)
{
compute_and_affect_product_supplier_quantities
(
coeff
,
order_doc
.
coverage_days
);
}
else
if
(
order_doc
.
targeted_amount
!=
null
)
{
}
if
(
order_doc
.
targeted_amount
!=
null
)
{
const
small_step
=
0.1
,
max_iter
=
182
;
// Assume that no more than 1/2 year coverage is far enough
let
go_on
=
true
,
...
...
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