Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7f918cb6
authored
Oct 27, 2012
by
Riku Silvola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
foodies
1 parent
21855fb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
code/LanBortalDatabase/src/fi/insomnia/bortal/model/FoodWave.java
code/LanBortalWeb/WebContent/foodmanager/listFoodwaves.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodWaveView.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/FoodWave.java
View file @
7f918cb
...
...
@@ -183,8 +183,8 @@ public class FoodWave extends GenericEntity {
retval
+=
getAccountEvents
().
size
();
}
if
(
get
BillLines
()
!=
null
)
{
retval
+=
get
BillLines
().
size
();
if
(
get
UnpaidBillLineCount
()
!=
null
)
{
retval
+=
get
UnpaidBillLineCount
();
}
return
retval
;
...
...
@@ -193,5 +193,14 @@ public class FoodWave extends GenericEntity {
public
void
setMaximumFoods
(
Integer
maximumFoods
)
{
this
.
maximumFoods
=
maximumFoods
;
}
public
Integer
getUnpaidBillLineCount
()
{
Integer
i
=
0
;
for
(
BillLine
line
:
getBillLines
())
{
if
(!
line
.
getBill
().
isPaid
())
{
++
i
;
}
}
return
i
;
}
}
code/LanBortalWeb/WebContent/foodmanager/listFoodwaves.xhtml
View file @
7f918cb
...
...
@@ -56,7 +56,7 @@
<f:facet
name=
"header"
>
<h:outputText
value=
"${i18n['foodWave.unconfirmedOrders']}"
/>
</f:facet>
<h:outputText
value=
"#{foodwave.
billLines.size
()}"
/>
<h:outputText
value=
"#{foodwave.
getUnpaidBillLineCount
()}"
/>
</p:column>
<p:column>
<f:facet
name=
"header"
>
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodWaveView.java
View file @
7f918cb
...
...
@@ -5,6 +5,7 @@ import java.util.ArrayList;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.TreeSet
;
...
...
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