This commit is contained in:
Wolfgang Koch
2020-11-10 11:24:05 +01:00
parent 8160997eec
commit 5fd9ee3993
2 changed files with 8 additions and 8 deletions

View File

@@ -11,9 +11,9 @@ extend Orders with {
} }
entity Customers : cuid, managed { entity Customers : cuid, managed {
email : String; email : String;
firstName : String; firstName : String;
lastName : String; lastName : String;
creditCardNo : String; creditCardNo : String;
dateOfBirth : Date; dateOfBirth : Date;
} }

View File

@@ -15,12 +15,12 @@ using { sap.capire.bookshop.OrderItems } from '@capire/orders';
entity OrderItemView as entity OrderItemView as
SELECT from Orders SELECT from Orders
{ key ID, { key ID,
key Items.ID as Item_ID, key Items.ID as Item_ID,
OrderNo, OrderNo,
Customer.ID as Customer_ID, Customer.ID as Customer_ID,
Customer.email as Customer_Email, Customer.email as Customer_Email,
Items.book.ID as Item_Book_ID, Items.book.ID as Item_Book_ID,
Items.amount as Item_Amount, Items.amount as Item_Amount,
Items.netAmount as Item_NetAmount}; Items.netAmount as Item_NetAmount};
// annotate new view // annotate new view