add status to invoices
This commit is contained in:
committed by
Daniel Hutzel
parent
9a63f406ec
commit
52f00c62b7
@@ -3,7 +3,7 @@ using {sap.capire.media.store as my} from '../db/schema';
|
||||
@(requires : 'authenticated-user')
|
||||
service Invoices {
|
||||
@readonly
|
||||
entity Invoices as projection on my.Invoices;
|
||||
entity MyInvoices as projection on my.Invoices;
|
||||
|
||||
action invoice(tracks : array of {
|
||||
ID : Integer;
|
||||
|
||||
@@ -15,7 +15,7 @@ module.exports = async function () {
|
||||
);
|
||||
});
|
||||
|
||||
this.on("READ", "Invoices", async (req) => {
|
||||
this.on("READ", "MyInvoices", async (req) => {
|
||||
return await db.run(req.query.where({ customer_ID: req.user.attr.ID }));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user