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 788b6bdd
authored
Oct 25, 2012
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of codecrew.fi:bortal
2 parents
35db1aa9
76da913a
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
90 additions
and
41 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/BillBean.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/ProductPBean.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/FoodWaveTemplate.java
code/LanBortalWeb/WebContent/foodwave/ThanksForOrderingFromCounter.xhtml
code/LanBortalWeb/WebContent/foodwave/list.xhtml
code/LanBortalWeb/WebContent/foodwave/listProducts.xhtml
code/LanBortalWeb/WebContent/foodwave/listTemplates.xhtml
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en.properties
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodShopView.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/BillBean.java
View file @
788b6bd
...
@@ -38,14 +38,7 @@ import fi.insomnia.bortal.utilities.I18n;
...
@@ -38,14 +38,7 @@ import fi.insomnia.bortal.utilities.I18n;
*/
*/
@Stateless
@Stateless
@LocalBean
@LocalBean
@DeclareRoles
({
@DeclareRoles
({
BillPermission
.
S_CREATE_BILL
,
BillPermission
.
S_READ_ALL
,
BillPermission
.
S_VIEW_OWN
,
BillPermission
.
S_WRITE_ALL
,
SpecialPermission
.
S_USER
,
SpecialPermission
.
S_VERKKOMAKSU_CHECK
,
})
BillPermission
.
S_CREATE_BILL
,
BillPermission
.
S_READ_ALL
,
BillPermission
.
S_VIEW_OWN
,
BillPermission
.
S_WRITE_ALL
,
SpecialPermission
.
S_USER
,
SpecialPermission
.
S_VERKKOMAKSU_CHECK
,
})
public
class
BillBean
implements
BillBeanLocal
{
public
class
BillBean
implements
BillBeanLocal
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
BillBean
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
BillBean
.
class
);
...
@@ -92,7 +85,8 @@ public class BillBean implements BillBeanLocal {
...
@@ -92,7 +85,8 @@ public class BillBean implements BillBeanLocal {
EventUser
currentuser
=
permbean
.
getCurrentUser
();
EventUser
currentuser
=
permbean
.
getCurrentUser
();
logger
.
debug
(
"bill {} user {}"
,
bill
,
currentuser
);
logger
.
debug
(
"bill {} user {}"
,
bill
,
currentuser
);
if
(
bill
!=
null
&&
!
currentuser
.
equals
(
bill
.
getUser
())
&&
!
permbean
.
hasPermission
(
BillPermission
.
READ_ALL
))
{
if
(
bill
!=
null
&&
!
currentuser
.
equals
(
bill
.
getUser
())
&&
!
permbean
.
hasPermission
(
BillPermission
.
READ_ALL
))
{
bill
=
null
;
bill
=
null
;
}
}
return
bill
;
return
bill
;
...
@@ -197,26 +191,29 @@ public class BillBean implements BillBeanLocal {
...
@@ -197,26 +191,29 @@ public class BillBean implements BillBeanLocal {
@Override
@Override
@RolesAllowed
(
BillPermission
.
S_READ_ALL
)
@RolesAllowed
(
BillPermission
.
S_READ_ALL
)
public
Collection
<
BillSummary
>
getBillLineSummary
()
{
public
Collection
<
BillSummary
>
getBillLineSummary
()
{
Collection
<
BillSummary
>
ret
=
billLineFacade
.
getLineSummary
(
eventbean
.
getCurrentEvent
());
Collection
<
BillSummary
>
ret
=
billLineFacade
.
getLineSummary
(
eventbean
.
getCurrentEvent
());
return
ret
;
return
ret
;
}
}
@Override
@Override
@RolesAllowed
({
BillPermission
.
S_WRITE_ALL
,
SpecialPermission
.
S_VERKKOMAKSU_CHECK
})
@RolesAllowed
({
BillPermission
.
S_WRITE_ALL
,
SpecialPermission
.
S_VERKKOMAKSU_CHECK
})
public
void
markPaid
(
Bill
bill
,
Calendar
when
)
{
public
void
markPaid
(
Bill
bill
,
Calendar
when
)
{
if
(
bill
.
getAccountEvent
()
!=
null
||
bill
.
getPaidDate
()
!=
null
)
if
(
bill
.
getAccountEvent
()
!=
null
||
bill
.
getPaidDate
()
!=
null
)
{
{
throw
new
EJBException
(
"Bill already marked paid!"
);
throw
new
EJBException
(
"Bill already marked paid!"
);
}
}
bill
=
billFacade
.
reload
(
bill
);
bill
=
billFacade
.
reload
(
bill
);
Product
creditproduct
=
productBean
.
findCreditProduct
();
Product
creditproduct
=
productBean
.
findCreditProduct
();
EventUser
user
=
bill
.
getUser
();
EventUser
user
=
bill
.
getUser
();
AccountEvent
ac
=
productBean
.
createAccountEvent
(
creditproduct
,
bill
.
totalPrice
(),
user
);
AccountEvent
ac
=
productBean
.
createAccountEvent
(
creditproduct
,
bill
.
totalPrice
(),
user
);
logger
.
info
(
"Created creditentry. {}, userproducts {}"
,
ac
,
user
.
getAccountEvents
().
size
());
logger
.
info
(
"Created creditentry. {}, userproducts {}"
,
ac
,
user
.
getAccountEvents
().
size
());
ac
.
setDelivered
(
when
);
ac
.
setDelivered
(
when
);
ac
.
setEventTime
(
when
);
ac
.
setEventTime
(
when
);
...
@@ -231,17 +228,24 @@ public class BillBean implements BillBeanLocal {
...
@@ -231,17 +228,24 @@ public class BillBean implements BillBeanLocal {
for
(
BillLine
bl
:
bill
.
getBillLines
())
{
for
(
BillLine
bl
:
bill
.
getBillLines
())
{
Product
prod
=
bl
.
getLineProduct
();
Product
prod
=
bl
.
getLineProduct
();
if
(
prod
!=
null
if
(
prod
!=
null
&&
prod
.
getProductFlags
().
contains
(
ProductFlag
.
PREPAID_INSTANT_CREATE
))
{
&&
prod
.
getProductFlags
().
contains
(
ProductFlag
.
PREPAID_INSTANT_CREATE
))
{
logger
.
debug
(
"Creating Bill prepaidInstant product {}, {}"
,
prod
.
getName
(),
bl
.
getQuantity
());
if
(
prod
.
getProductFlags
().
contains
(
ProductFlag
.
RESERVE_PLACE_WHEN_BOUGHT
)
logger
.
debug
(
"Creating Bill prepaidInstant product {}, {}"
,
||
prod
.
getProductFlags
().
contains
(
ProductFlag
.
CREATE_NEW_PLACE_WHEN_BOUGHT
))
prod
.
getName
(),
bl
.
getQuantity
());
{
if
(
prod
.
getProductFlags
().
contains
(
placebean
.
lockPlaceProduct
(
bill
.
getUser
(),
prod
,
bl
.
getQuantity
());
ProductFlag
.
RESERVE_PLACE_WHEN_BOUGHT
)
||
prod
.
getProductFlags
().
contains
(
ProductFlag
.
CREATE_NEW_PLACE_WHEN_BOUGHT
))
{
placebean
.
lockPlaceProduct
(
bill
.
getUser
(),
prod
,
bl
.
getQuantity
());
}
}
AccountEvent
ac2
=
productPBean
.
createAccountEvent
(
prod
,
bl
.
getQuantity
(),
user
,
bill
.
getSentDate
());
AccountEvent
ac2
=
productPBean
.
createAccountEvent
(
prod
,
logger
.
info
(
"Created ac from product. {}, userproducts {}"
,
ac2
,
user
.
getAccountEvents
().
size
());
bl
.
getQuantity
(),
user
,
bill
.
getSentDate
(),
bl
.
getFoodwave
());
logger
.
info
(
"Created ac from product. {}, userproducts {}"
,
ac2
,
user
.
getAccountEvents
().
size
());
ac2
.
setSeller
(
permbean
.
getCurrentUser
());
ac2
.
setSeller
(
permbean
.
getCurrentUser
());
}
}
...
@@ -249,7 +253,9 @@ public class BillBean implements BillBeanLocal {
...
@@ -249,7 +253,9 @@ public class BillBean implements BillBeanLocal {
}
}
MailMessage
msg
=
new
MailMessage
();
MailMessage
msg
=
new
MailMessage
();
msg
.
setSubject
(
I18n
.
get
(
"bill.billMarkedPaidMail.subject"
));
msg
.
setSubject
(
I18n
.
get
(
"bill.billMarkedPaidMail.subject"
));
msg
.
setMessage
(
I18n
.
get
(
"bill.billMarkedPaidMail.message"
,
(
bill
.
getBillNumber
()
==
null
)
?
"----"
:
bill
.
getBillNumber
().
toString
()));
msg
.
setMessage
(
I18n
.
get
(
"bill.billMarkedPaidMail.message"
,
(
bill
.
getBillNumber
()
==
null
)
?
"----"
:
bill
.
getBillNumber
()
.
toString
()));
msg
.
setTo
(
bill
.
getUser
().
getUser
());
msg
.
setTo
(
bill
.
getUser
().
getUser
());
utilbean
.
sendMail
(
msg
);
utilbean
.
sendMail
(
msg
);
eventUserFacade
.
flush
();
eventUserFacade
.
flush
();
...
@@ -259,9 +265,13 @@ public class BillBean implements BillBeanLocal {
...
@@ -259,9 +265,13 @@ public class BillBean implements BillBeanLocal {
@Override
@Override
@RolesAllowed
({
BillPermission
.
S_CREATE_BILL
,
BillPermission
.
S_WRITE_ALL
})
@RolesAllowed
({
BillPermission
.
S_CREATE_BILL
,
BillPermission
.
S_WRITE_ALL
})
public
void
createBill
(
Bill
bill
)
{
public
void
createBill
(
Bill
bill
)
{
if
(!
permbean
.
isCurrentUser
(
bill
.
getUser
())
&&
!
permbean
.
hasPermission
(
BillPermission
.
WRITE_ALL
))
{
if
(!
permbean
.
isCurrentUser
(
bill
.
getUser
())
loggingBean
.
logMessage
(
SecurityLogType
.
permissionDenied
,
permbean
.
getCurrentUser
(),
"Not enought rights to create bill for user "
);
&&
!
permbean
.
hasPermission
(
BillPermission
.
WRITE_ALL
))
{
throw
new
EJBAccessException
(
"Could not create bill for another user"
);
loggingBean
.
logMessage
(
SecurityLogType
.
permissionDenied
,
permbean
.
getCurrentUser
(),
"Not enought rights to create bill for user "
);
throw
new
EJBAccessException
(
"Could not create bill for another user"
);
}
}
billFacade
.
create
(
bill
);
billFacade
.
create
(
bill
);
generateBillNumber
(
bill
);
generateBillNumber
(
bill
);
...
@@ -275,9 +285,13 @@ public class BillBean implements BillBeanLocal {
...
@@ -275,9 +285,13 @@ public class BillBean implements BillBeanLocal {
@Override
@Override
@RolesAllowed
({
BillPermission
.
S_VIEW_OWN
,
BillPermission
.
S_READ_ALL
})
@RolesAllowed
({
BillPermission
.
S_VIEW_OWN
,
BillPermission
.
S_READ_ALL
})
public
List
<
Bill
>
find
(
EventUser
user
)
{
public
List
<
Bill
>
find
(
EventUser
user
)
{
if
(!
permbean
.
isCurrentUser
(
user
)
&&
!
permbean
.
hasPermission
(
BillPermission
.
READ_ALL
))
{
if
(!
permbean
.
isCurrentUser
(
user
)
loggingBean
.
logMessage
(
SecurityLogType
.
permissionDenied
,
permbean
.
getCurrentUser
(),
"Not enought rights to get bill list for user "
);
&&
!
permbean
.
hasPermission
(
BillPermission
.
READ_ALL
))
{
throw
new
EJBAccessException
(
"Could not list bills for another user"
);
loggingBean
.
logMessage
(
SecurityLogType
.
permissionDenied
,
permbean
.
getCurrentUser
(),
"Not enought rights to get bill list for user "
);
throw
new
EJBAccessException
(
"Could not list bills for another user"
);
}
}
return
billFacade
.
find
(
user
);
return
billFacade
.
find
(
user
);
}
}
...
...
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/ProductPBean.java
View file @
788b6bd
...
@@ -18,6 +18,7 @@ import fi.insomnia.bortal.model.AccountEvent;
...
@@ -18,6 +18,7 @@ import fi.insomnia.bortal.model.AccountEvent;
import
fi.insomnia.bortal.model.Discount
;
import
fi.insomnia.bortal.model.Discount
;
import
fi.insomnia.bortal.model.DiscountInstance
;
import
fi.insomnia.bortal.model.DiscountInstance
;
import
fi.insomnia.bortal.model.EventUser
;
import
fi.insomnia.bortal.model.EventUser
;
import
fi.insomnia.bortal.model.FoodWave
;
import
fi.insomnia.bortal.model.Product
;
import
fi.insomnia.bortal.model.Product
;
/**
/**
...
@@ -31,7 +32,8 @@ public class ProductPBean {
...
@@ -31,7 +32,8 @@ public class ProductPBean {
private
PermissionBean
permbean
;
private
PermissionBean
permbean
;
@EJB
@EJB
private
AccountEventFacade
accounteventfacade
;
private
AccountEventFacade
accounteventfacade
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ProductPBean
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ProductPBean
.
class
);
/**
/**
* Default constructor.
* Default constructor.
...
@@ -40,6 +42,11 @@ public class ProductPBean {
...
@@ -40,6 +42,11 @@ public class ProductPBean {
// TODO Auto-generated constructor stub
// TODO Auto-generated constructor stub
}
}
public
AccountEvent
createAccountEvent
(
Product
product
,
BigDecimal
quantity
,
EventUser
user
,
Calendar
date
)
{
return
this
.
createAccountEvent
(
product
,
quantity
,
user
,
date
,
null
);
}
/**
/**
* Creates new AccountEvent from provided product to provided user <br>
* Creates new AccountEvent from provided product to provided user <br>
* <strong>Notice</strong>, that this function expects the user parameter to
* <strong>Notice</strong>, that this function expects the user parameter to
...
@@ -56,11 +63,13 @@ public class ProductPBean {
...
@@ -56,11 +63,13 @@ public class ProductPBean {
* AccountEvent creation time
* AccountEvent creation time
* @return The created AccountEvent entity
* @return The created AccountEvent entity
*/
*/
public
AccountEvent
createAccountEvent
(
Product
product
,
BigDecimal
quantity
,
EventUser
user
,
Calendar
date
)
{
public
AccountEvent
createAccountEvent
(
Product
product
,
BigDecimal
quantity
,
EventUser
user
,
Calendar
date
,
FoodWave
foodwave
)
{
if
(!
product
.
getEvent
().
equals
(
user
.
getEvent
()))
if
(!
product
.
getEvent
().
equals
(
user
.
getEvent
()))
{
{
throw
new
EJBException
(
throw
new
EJBException
(
"Trying to create accountevent for different event in user and product"
);
"Trying to create accountevent for different event in user and product"
);
}
}
BigDecimal
unitPrice
=
product
.
getPrice
().
negate
();
BigDecimal
unitPrice
=
product
.
getPrice
().
negate
();
...
@@ -69,11 +78,16 @@ public class ProductPBean {
...
@@ -69,11 +78,16 @@ public class ProductPBean {
unitPrice
=
unitPrice
.
multiply
(
d
.
getPercentage
());
unitPrice
=
unitPrice
.
multiply
(
d
.
getPercentage
());
}
}
AccountEvent
ret
=
new
AccountEvent
(
user
,
product
,
unitPrice
,
quantity
,
Calendar
.
getInstance
());
AccountEvent
ret
=
new
AccountEvent
(
user
,
product
,
unitPrice
,
quantity
,
Calendar
.
getInstance
());
ret
.
setDelivered
(
Calendar
.
getInstance
());
ret
.
setDelivered
(
Calendar
.
getInstance
());
ret
.
setSeller
(
permbean
.
getCurrentUser
());
ret
.
setSeller
(
permbean
.
getCurrentUser
());
if
(
foodwave
!=
null
)
{
ret
.
setFoodWave
(
foodwave
);
}
List
<
DiscountInstance
>
accEventdiscounts
=
ret
.
getDiscountInstances
();
List
<
DiscountInstance
>
accEventdiscounts
=
ret
.
getDiscountInstances
();
for
(
Discount
d
:
discounts
)
{
for
(
Discount
d
:
discounts
)
{
// discountsArray.add(discInst);
// discountsArray.add(discInst);
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/FoodWaveTemplate.java
View file @
788b6bd
...
@@ -14,6 +14,7 @@ import javax.persistence.Lob;
...
@@ -14,6 +14,7 @@ import javax.persistence.Lob;
import
javax.persistence.ManyToMany
;
import
javax.persistence.ManyToMany
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.OneToMany
;
import
javax.persistence.OneToMany
;
import
javax.persistence.OrderBy
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
org.eclipse.persistence.annotations.OptimisticLocking
;
import
org.eclipse.persistence.annotations.OptimisticLocking
;
...
@@ -45,6 +46,7 @@ public class FoodWaveTemplate extends GenericEntity {
...
@@ -45,6 +46,7 @@ public class FoodWaveTemplate extends GenericEntity {
private
List
<
Product
>
products
;
private
List
<
Product
>
products
;
@OneToMany
(
mappedBy
=
"template"
)
@OneToMany
(
mappedBy
=
"template"
)
@OrderBy
(
value
=
"time"
)
private
List
<
FoodWave
>
foodwaves
;
private
List
<
FoodWave
>
foodwaves
;
public
FoodWaveTemplate
()
{
public
FoodWaveTemplate
()
{
...
...
code/LanBortalWeb/WebContent/foodwave/ThanksForOrderingFromCounter.xhtml
View file @
788b6bd
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
<ui:define
name=
"title"
>
<ui:define
name=
"title"
>
<h1>
#{i18n['user.shop.title']}
</h1>
<h1>
#{i18n['user.shop.title']}
</h1>
<users:usertabs
tabId=
"foodwave"
/>
</ui:define>
</ui:define>
<ui:define
name=
"content"
>
<ui:define
name=
"content"
>
Kiitoksia tilauksesta, muista käydä maksamassa tilaukset tiskillä.
Kiitoksia tilauksesta, muista käydä maksamassa tilaukset tiskillä.
...
...
code/LanBortalWeb/WebContent/foodwave/list.xhtml
View file @
788b6bd
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
<ui:define
name=
"title"
>
<ui:define
name=
"title"
>
<h1>
#{i18n['user.shop.title']}
</h1>
<h1>
#{i18n['user.shop.title']}
</h1>
<users:usertabs
tabId=
"foodwave"
/>
</ui:define>
</ui:define>
<ui:define
name=
"content"
>
<ui:define
name=
"content"
>
...
...
code/LanBortalWeb/WebContent/foodwave/listProducts.xhtml
View file @
788b6bd
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
<ui:define
name=
"title"
>
<ui:define
name=
"title"
>
<h1>
#{i18n['user.foodwave.products.title']}
</h1>
<h1>
#{i18n['user.foodwave.products.title']}
</h1>
<users:usertabs
tabId=
"foodwave"
/>
</ui:define>
</ui:define>
<ui:define
name=
"content"
>
<ui:define
name=
"content"
>
...
...
code/LanBortalWeb/WebContent/foodwave/listTemplates.xhtml
View file @
788b6bd
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
<ui:define
name=
"title"
>
<ui:define
name=
"title"
>
<h1>
#{i18n['user.shop.title']}
</h1>
<h1>
#{i18n['user.shop.title']}
</h1>
<users:usertabs
tabId=
"foodwave"
/>
</ui:define>
</ui:define>
<ui:define
name=
"content"
>
<ui:define
name=
"content"
>
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_en.properties
View file @
788b6bd
...
@@ -77,6 +77,8 @@ billine.vat = VAT
...
@@ -77,6 +77,8 @@ billine.vat = VAT
bills.noBills
=
No bills
bills.noBills
=
No bills
card.massprint.title
=
Print all
cardTemplate.create
=
Create
cardTemplate.create
=
Create
cardTemplate.edit
=
Edit
cardTemplate.edit
=
Edit
cardTemplate.id
=
Id
cardTemplate.id
=
Id
...
@@ -104,6 +106,7 @@ checkout.return.successMessage = Payment confirmed. Your products have been paid
...
@@ -104,6 +106,7 @@ checkout.return.successMessage = Payment confirmed. Your products have been paid
compo.edit
=
Edit compo
compo.edit
=
Edit compo
compo.saveVotes
=
Save votes
compo.saveVotes
=
Save votes
compo.savesort
=
Save order
compo.votesSaved
=
Votes saved
compo.votesSaved
=
Votes saved
compofile.download
=
Download
compofile.download
=
Download
...
@@ -270,6 +273,13 @@ mapView.errorWhenReservingPlace = Error when reserving place!
...
@@ -270,6 +273,13 @@ mapView.errorWhenReservingPlace = Error when reserving place!
mapView.errorWhileBuyingPlaces
=
Error when buying places. Please try again. If error reoccurs please contact organizers.
mapView.errorWhileBuyingPlaces
=
Error when buying places. Please try again. If error reoccurs please contact organizers.
mapView.notEnoughCreditsToReserve
=
You don't have enough credits to reserve this place.
mapView.notEnoughCreditsToReserve
=
You don't have enough credits to reserve this place.
menu.item
=
Item
menu.name
=
Name
menu.select
=
Select
menu.sort
=
Sort
menuitem.navigation.key
=
Product flag
nasty.user
=
Go away!
nasty.user
=
Go away!
org.hibernate.validator.constraints.Email.message
=
not a well-formed email address
org.hibernate.validator.constraints.Email.message
=
not a well-formed email address
...
@@ -465,11 +475,14 @@ productshop.plusTen = +10
...
@@ -465,11 +475,14 @@ productshop.plusTen = +10
productshop.total
=
Total
productshop.total
=
Total
reader.assocToCard
=
Associate to card
reader.assocToCard
=
Associate to card
reader.automaticProduct
=
Default product
reader.automaticProductCount
=
Amount
reader.createNewCard
=
Create new card
reader.createNewCard
=
Create new card
reader.description
=
Description
reader.description
=
Description
reader.edit
=
Edit
reader.edit
=
Edit
reader.identification
=
Identification
reader.identification
=
Identification
reader.name
=
Reader name
reader.name
=
Reader name
reader.save
=
Save
reader.select
=
Select reader
reader.select
=
Select reader
reader.tag
=
Tag
reader.tag
=
Tag
reader.type
=
Type
reader.type
=
Type
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/resources/i18n_fi.properties
View file @
788b6bd
...
@@ -75,6 +75,8 @@ billine.vat = ALV
...
@@ -75,6 +75,8 @@ billine.vat = ALV
bills.noBills
=
Ei laskuja
bills.noBills
=
Ei laskuja
card.massprint.title
=
Tulosta kaikki
cardTemplate.create
=
Luo
cardTemplate.create
=
Luo
cardTemplate.edit
=
Muokkaa
cardTemplate.edit
=
Muokkaa
cardTemplate.id
=
Id
cardTemplate.id
=
Id
...
@@ -102,6 +104,7 @@ checkout.return.successMessage = Maksu vahvistettu. Tuotteet on maksettu ja voit
...
@@ -102,6 +104,7 @@ checkout.return.successMessage = Maksu vahvistettu. Tuotteet on maksettu ja voit
compo.edit
=
Muokkaa compoa
compo.edit
=
Muokkaa compoa
compo.saveVotes
=
Tallenna
\u
00E4
\u
00E4net
compo.saveVotes
=
Tallenna
\u
00E4
\u
00E4net
compo.savesort
=
Tallenna j
\u
00E4rjestys
compo.votesSaved
=
\u
00C4
\u
00E4net tallennettu
compo.votesSaved
=
\u
00C4
\u
00E4net tallennettu
compofile.download
=
lataa
compofile.download
=
lataa
...
@@ -278,9 +281,12 @@ mapView.errorWhileBuyingPlaces = Virhe paikkojen ostossa. Ole hyv\u00E4 ja yr
...
@@ -278,9 +281,12 @@ mapView.errorWhileBuyingPlaces = Virhe paikkojen ostossa. Ole hyv\u00E4 ja yr
mapView.notEnoughCreditsToReserve
=
Sinulla ei ole riitt
\u
00E4v
\u
00E4sti suoritettuja konepaikkamaksuja t
\u
00E4m
\u
00E4n paikan varaamiseen.
mapView.notEnoughCreditsToReserve
=
Sinulla ei ole riitt
\u
00E4v
\u
00E4sti suoritettuja konepaikkamaksuja t
\u
00E4m
\u
00E4n paikan varaamiseen.
menu.index
=
Etusivu
menu.index
=
Etusivu
menu.name
=
Nimi
menu.place.placemap
=
Paikkakartta
menu.place.placemap
=
Paikkakartta
menu.poll.index
=
Kyselyt
menu.poll.index
=
Kyselyt
menu.select
=
Valitse
menu.shop.createBill
=
Kauppa
menu.shop.createBill
=
Kauppa
menu.sort
=
J
\u
00E4rjest
\u
00E4
menu.user.edit
=
Omat tiedot
menu.user.edit
=
Omat tiedot
news.abstract
=
Lyhennelm
\u
00E4
news.abstract
=
Lyhennelm
\u
00E4
...
@@ -453,11 +459,14 @@ productshop.plusTen = +10
...
@@ -453,11 +459,14 @@ productshop.plusTen = +10
productshop.total
=
Yhteens
\u
00E4
productshop.total
=
Yhteens
\u
00E4
reader.assocToCard
=
Yhdist
\u
00E4 korttiin
reader.assocToCard
=
Yhdist
\u
00E4 korttiin
reader.automaticProduct
=
Oletustuote
reader.automaticProductCount
=
M
\u
00E4
\u
00E4r
\u
00E4
reader.createNewCard
=
Luo uusi kortti
reader.createNewCard
=
Luo uusi kortti
reader.description
=
Kuvaus
reader.description
=
Kuvaus
reader.edit
=
Muokkaa
reader.edit
=
Muokkaa
reader.identification
=
Tunniste
reader.identification
=
Tunniste
reader.name
=
Lukijan nimi
reader.name
=
Lukijan nimi
reader.save
=
Tallenna
reader.select
=
Valitse lukija
reader.select
=
Valitse lukija
reader.tag
=
Tag
reader.tag
=
Tag
reader.type
=
Tyyppi
reader.type
=
Tyyppi
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodShopView.java
View file @
788b6bd
...
@@ -26,6 +26,7 @@ public class FoodShopView extends GenericCDIView {
...
@@ -26,6 +26,7 @@ public class FoodShopView extends GenericCDIView {
private
static
final
long
serialVersionUID
=
1288114954999406683L
;
private
static
final
long
serialVersionUID
=
1288114954999406683L
;
@Inject
@Inject
@SelectedUser
@SelectedUser
private
EventUser
user
;
private
EventUser
user
;
...
...
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