cleaned up

This commit is contained in:
Daniel
2020-03-02 08:29:49 +01:00
parent cb066233c9
commit c6eb21ec51
26 changed files with 140 additions and 122 deletions

View File

@@ -1,13 +1,15 @@
using AdminService from '@capire/bookshop/srv/admin-service';
using OrdersService from '@capire/orders/srv/orders-service';
annotate AdminService.Books with {
annotate OrdersService.Books with {
price @Common.FieldControl: #ReadOnly;
}
////////////////////////////////////////////////////////////////////////////
//
// Common
//
annotate AdminService.OrderItems with {
annotate OrdersService.OrderItems with {
book @(
Common: {
Text: book.title,
@@ -22,7 +24,7 @@ annotate AdminService.OrderItems with {
@odata.draft.enabled
annotate AdminService.Orders with @(
annotate OrdersService.Orders with @(
UI: {
////////////////////////////////////////////////////////////////////////////
//
@@ -83,9 +85,9 @@ annotate AdminService.Orders with @(
//The enity types name is AdminService.my_bookshop_OrderItems
//The enity types name is OrdersService.my_bookshop_OrderItems
//The annotations below are not generated in edmx WHY?
annotate AdminService.OrderItems with @(
annotate OrdersService.OrderItems with @(
UI: {
HeaderInfo: {
TypeName: 'Order Item', TypeNamePlural: ' ',