Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions _i18n/i18n.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
AcceptTravel=Accept Travel
Accept=Accept
Agency=Agency
AgencyName=Agency Name
AvgPrice=Average Price
BeginDate=Starting Date
Block=Block
Booking=Booking
BookingDate=Booking Date
BookingDetails=Booking Details
Expand Down Expand Up @@ -37,7 +38,9 @@ Price=Price
Prices=Prices
ProductID=Product
ProductPrice=Product Price
RejectTravel=Reject Travel
Reject=Reject
Reopen=Reopen
Review=Review
Status=Status
Street=Street
Sustainability=Sustainability
Expand All @@ -49,4 +52,5 @@ TravelAgency=Travel Agency
Travels=Travels
TravelStatus=Travel Status
TreesPlanted=Trees Planted
Unblock=Unblock
WebAddress=Web Address
8 changes: 6 additions & 2 deletions _i18n/i18n_de.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
AcceptTravel=Reise akzeptieren
Accept=Genehmigen
Agency=Agentur
AgencyName=Agenturname
AvgPrice=Durchschnittspreis
BeginDate=Startdatum
Block=Sperren
Booking=Buchung
BookingDate=Buchungsdatum
BookingDetails=Buchungsdetails
Expand Down Expand Up @@ -35,7 +36,9 @@ Price=Preis
Prices=Preise
ProductID=Produkt
ProductPrice=Produktpreis
RejectTravel=Reise ablehnen
Reject=Ablehnen
Reopen=Wiedereröffnen
Review=Überprüfen
Status=Status
Street=Straße
Title=Titel
Expand All @@ -45,4 +48,5 @@ Travel=Reise
TravelAgency=Veranstalter
Travels=Reisen
TravelStatus=Reisestatus
Unblock=Entsperren
WebAddress=Web-Adresse
13 changes: 7 additions & 6 deletions _i18n/i18n_en.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
AcceptTravel=Accept Travel
Accept=Accept
Agency=Agency
AgencyName=Agency Name
AvgPrice=Average Price
BeginDate=Starting Date
BlockTravel=Block Travel
Block=Block
Booking=Booking
BookingDate=Booking Date
BookingDetails=Booking Details
Expand Down Expand Up @@ -36,9 +36,9 @@ Price=Price
Prices=Prices
ProductID=Product
ProductPrice=Product Price
RejectTravel=Reject Travel
ReopenTravel=Reopen Travel
ReviewTravel=Review Travel
Reject=Reject
Reopen=Reopen
Review=Review
Status=Status
Street=Street
Title=Title
Expand All @@ -48,5 +48,6 @@ Travel=Travel
TravelAgency=Travel Agency
Travels=Travels
TravelStatus=Travel Status
UnblockTravel=Unblock Travel
Unblock=Unblock Travel
Unblock=Unblock
WebAddress=Web Address
8 changes: 6 additions & 2 deletions _i18n/i18n_fr.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
AcceptTravel=Accepter le voyage
Accept=Accepter
Agency=Agence
AgencyName=Nom de l''agence
AvgPrice=Prix moyen
BeginDate=Date de début
Block=Blocker
Booking=Réservation
BookingDate=Date d''inscription
BookingDetails=Les détails de réservation
Expand Down Expand Up @@ -36,7 +37,9 @@ Price=Prix
Prices=Prix
ProductID=Produit
ProductPrice=Prix du produit
RejectTravel=Refuser le voyage
Reject=Refuser le voyage
Reopen=Rouvrir
Review=Vérifier
Status=Statut
Street=Rue
Title=Titre
Expand All @@ -46,4 +49,5 @@ Travel=Voyage
TravelAgency=Agence de voyage
Travels=Voyages
TravelStatus=Statut du voyage
Unblock=Débloquer
WebAddress=Adresse e-mail
6 changes: 3 additions & 3 deletions app/labels.cds
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ annotate schema.Passengers with @title: '{i18n>Passenger}' {
using { TravelService } from '../srv/travel-service';

annotate TravelService.Travels with actions {
rejectTravel @title: '{i18n>RejectTravel}';
acceptTravel @title: '{i18n>AcceptTravel}';
reopenTravel @title: '{i18n>ReopenTravel}';
rejectTravel @title: '{i18n>Reject}';
acceptTravel @title: '{i18n>Accept}';
reopenTravel @title: '{i18n>Reopen}';
deductDiscount @title: '{i18n>DeductDiscount}';
};

Expand Down
4 changes: 2 additions & 2 deletions app/travels/layouts.cds
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ annotate TravelService.Travels with @UI : {
Criticality : (
Status.code == #Accepted ? 3 :
Status.code == #Open OR Status.code == #InReview ? 2 :
Status.code == #Canceled OR Status.code == #Blocked ? 1 : 0
Status.code == #Rejected OR Status.code == #Blocked ? 1 : 0
),
@UI.Importance : #High,
@HTML5.CssDefaults: {width:'10em'}
Expand All @@ -71,7 +71,7 @@ annotate TravelService.Travels with @UI : {
Criticality : (
Status.code == #Accepted ? 3 :
Status.code == #Open OR Status.code == #InReview ? 2 :
Status.code == #Canceled OR Status.code == #Blocked ? 1 : 0
Status.code == #Rejected OR Status.code == #Blocked ? 1 : 0
),
},
{ Value : BeginDate },
Expand Down
2 changes: 1 addition & 1 deletion db/data/sap.capire.travels-TravelStatus.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ O;Open
R;InReview
B;Blocked
A;Accepted
X;Canceled
X;Rejected
2 changes: 1 addition & 1 deletion db/data/sap.capire.travels-TravelStatus.texts.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
code;locale;name
O;en;Open
A;en;Accepted
X;en;Canceled
X;en;Rejected
O;de;Offen
A;de;Genehmigt
X;de;Abgelehnt
Expand Down
2 changes: 1 addition & 1 deletion db/schema.cds
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ entity TravelStatus : sap.common.CodeList {
InReview = 'R';
Blocked = 'B';
Accepted = 'A';
Canceled = 'X';
Rejected = 'X';
}
}

Expand Down
Loading