Merge branch 'main' into main

This commit is contained in:
Christian Georgi
2021-11-09 17:55:55 +01:00
committed by GitHub
42 changed files with 11009 additions and 397 deletions

View File

@@ -1,8 +1,9 @@
const cds = require('@sap/cds')
const { Books } = cds.entities ('sap.capire.bookshop')
class CatalogService extends cds.ApplicationService { init(){
const { Books } = cds.entities ('sap.capire.bookshop')
// Reduce stock of ordered books if available stock suffices
this.on ('submitOrder', async req => {
const {book,quantity} = req.data