This commit is contained in:
Daniel
2021-04-08 19:17:48 +02:00
parent 33cd70065a
commit 9479aa4cad
4 changed files with 26 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ class CatalogService extends cds.ApplicationService { init(){
})
// Add some discount for overstocked books
this.after ('READ','Books', each => {
this.after ('READ','ListOfBooks', each => {
if (each.stock > 111) {
each.title += ` -- 11% discount!`
}