Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
soko
Project
Project
Details
Activity
Releases
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
bitsoko services
soko
Commits
984b0805
Commit
984b0805
authored
Dec 11, 2018
by
gaseema.n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inventory metric update
parent
b7d1c99a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
inventory.js
js/inventory.js
+2
-1
No files found.
js/inventory.js
View file @
984b0805
...
@@ -43,7 +43,8 @@ function sponpProdNamesInput() {
...
@@ -43,7 +43,8 @@ function sponpProdNamesInput() {
var
itemPrice
=
sponProds
[
iii
].
price
;
var
itemPrice
=
sponProds
[
iii
].
price
;
var
itemId
=
sponProds
[
iii
].
id
;
var
itemId
=
sponProds
[
iii
].
id
;
var
itemIcon
=
sponProds
[
iii
].
icon
;
var
itemIcon
=
sponProds
[
iii
].
icon
;
$
(
'.inventoryItemsToAdd'
).
append
(
'<form action="#" style="padding-right: 20px;"> <p> <label> <input class="inventoryItems" type="checkbox" pid="'
+
itemId
+
'" id="inventoryItem'
+
itemId
+
'"/> <span><img src="'
+
itemIcon
+
'" style=" width: 25px; height: 25px; object-fit: cover; border-radius: 50%; float: left; margin-right: 10px;">'
+
itemName
+
' @ '
+
itemPrice
+
'</span> </label> </p></form>'
);
var
itemMetric
=
sponProds
[
iii
].
metric
;
$
(
'.inventoryItemsToAdd'
).
append
(
'<form action="#" style="padding-right: 20px;"> <p> <label> <input class="inventoryItems" type="checkbox" pid="'
+
itemId
+
'" id="inventoryItem'
+
itemId
+
'"/> <span><img src="'
+
itemIcon
+
'" style=" width: 25px; height: 25px; object-fit: cover; border-radius: 50%; float: left; margin-right: 10px;">'
+
itemName
+
' @ '
+
itemPrice
+
' '
+
itemMetric
+
'</span> </label> </p></form>'
);
if
(
invetoryItemsInStore
.
includes
(
itemId
)
==
true
)
{
if
(
invetoryItemsInStore
.
includes
(
itemId
)
==
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