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,5 +1,6 @@
namespace sap.capire.bookshop;
using { Currency, managed, cuid, sap } from '@sap/cds/common';
// using { Currency, managed, sap } from '@sap/cds/common';
using { Currency, managed, sap } from '@capire/common';
entity Books : managed {
key ID : Integer;
@@ -27,16 +28,3 @@ entity Genres : sap.common.CodeList {
parent : Association to Genres;
children : Composition of many Genres on children.parent = $self;
}
entity Orders : cuid, managed {
OrderNo : String @title:'Order Number'; //> readable key
Items : Composition of many OrderItems on Items.parent = $self;
total : Decimal(9,2) @readonly;
currency : Currency;
}
entity OrderItems : cuid {
parent : Association to Orders;
book : Association to Books;
amount : Integer;
netAmount : Decimal(9,2);
}