Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 48636c0c
authored
Jan 29, 2015
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixin place summary stuff
1 parent
2fe2f5a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/ProductBean.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/ProductBean.java
View file @
48636c0
...
...
@@ -562,7 +562,26 @@ public class ProductBean implements ProductBeanLocal {
@Override
public
List
<
Product
>
getPlaceProducts
()
{
return
placeFacade
.
getPlaceProducts
();
List
<
Product
>
allProducts
=
productFacade
.
findAll
();
List
<
Product
>
ticketProducts
=
new
ArrayList
<>();
for
(
Product
product
:
allProducts
)
{
if
(
product
.
getProductFlags
().
contains
(
ProductFlag
.
RESERVE_PLACE_WHEN_BOUGHT
))
{
ticketProducts
.
add
(
product
);
}
else
if
(
product
.
getPlaces
()
!=
null
&&
product
.
getPlaces
().
size
()
>
0
)
{
ticketProducts
.
add
(
product
);
}
}
return
ticketProducts
;
// TODO: fix this facade and use it
//return placeFacade.getPlaceProducts();
}
...
...
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