add invoice action

This commit is contained in:
Dzmitry_Tamashevich@epam.com
2020-10-17 18:30:52 +03:00
committed by Daniel Hutzel
parent 49f6b8c060
commit 0690762207
3 changed files with 46 additions and 5 deletions

View File

@@ -3,9 +3,12 @@ using {sap.capire.media.store as my} from '../db/schema';
@(requires : 'authenticated-user')
service InvoicesService {
@readonly
entity Invoices as projection on my.Invoices actions {
action invoice();
}
entity Invoices as projection on my.Invoices;
action invoice(tracks : array of {
track_ID : Integer;
unitPrice : Decimal(10, 2);
});
@readonly
entity InvoiceItems as projection on my.InvoiceItems;