Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2755e263
authored
Nov 08, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nothing yetQ
1 parent
8549e634
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
code/moya-web/WebContent/resources/cditools/shop/shoppingcart.xhtml
code/moya-web/src/main/java/fi/codecrew/moya/web/helpers/ProductShopItem.java
code/moya-web/WebContent/resources/cditools/shop/shoppingcart.xhtml
View file @
2755e26
...
...
@@ -55,6 +55,12 @@
<f:convertNumber
maxFractionDigits=
"2"
minFractionDigits=
"2"
/>
</h:outputText>
</p:column>
<p:column
headerText=
"#{i18n['shop.sellPrice']}"
>
<h:outputText
value=
"#{prods.creditPrice}"
>
<f:convertNumber
maxFractionDigits=
"2"
minFractionDigits=
"2"
/>
</h:outputText>
</p:column>
<p:column
headerText=
"#{i18n['shop.totalPrice']}"
>
<h:outputText
value=
"#{prods.price}"
>
<f:convertNumber
maxFractionDigits=
"2"
minFractionDigits=
"2"
/>
...
...
code/moya-web/src/main/java/fi/codecrew/moya/web/helpers/ProductShopItem.java
View file @
2755e26
...
...
@@ -144,7 +144,7 @@ public class ProductShopItem {
public
void
setId
(
Integer
setid
)
{
logger
.
info
(
"Setting id {} to cart {}"
,
setid
,
id
);
if
(!
id
.
equals
(
setid
))
{
throw
new
RuntimeException
(
"Carts mixed up! Please r
a
port an error to coders! "
);
throw
new
RuntimeException
(
"Carts mixed up! Please r
e
port an error to coders! "
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment