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
eb3c39c8
Commit
eb3c39c8
authored
Jul 08, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comments
parent
5a7df93d
Pipeline
#2311
passed with stage
in 1 minute 23 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
reception_produits.js
reception/static/js/reception_produits.js
+2
-0
No files found.
reception/static/js/reception_produits.js
View file @
eb3c39c8
...
...
@@ -2043,11 +2043,13 @@ function create_orders() {
let
item_qty_package
=
0
;
// If package qty is > than input value, package qty will be used while creating order
let
package_qty
=
p_supplierinfo
.
package_qty
;
if
(
product_qty
<
package_qty
)
{
package_qty
=
product_qty
;
}
// Round differently for unit & kg products
if
(
product_uom
.
includes
(
"kg"
)
)
{
item_qty_package
=
Math
.
round
((
product_qty
/
package_qty
)
*
1
e2
)
/
1
e2
;
}
else
{
...
...
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