add cancel invoice action

This commit is contained in:
Dzmitry_Tamashevich@epam.com
2020-10-29 12:20:49 +03:00
committed by Daniel Hutzel
parent 52f00c62b7
commit a319199e10
5 changed files with 48 additions and 17 deletions

View File

@@ -1,15 +1,18 @@
using {sap.capire.media.store as my} from '../db/schema';
@(requires : 'authenticated-user')
service Invoices {
service BrowseInvoices {
@readonly
entity MyInvoices as projection on my.Invoices;
entity Invoices as projection on my.Invoices;
@readonly
entity Tracks as projection on my.Tracks;
action invoice(tracks : array of {
ID : Integer;
unitPrice : Decimal(10, 2);
});
@readonly
entity InvoiceItems as projection on my.InvoiceItems;
action cancelInvoice(ID : Integer);
}