Merge branch 'D-kom-Demo' into dkom

This commit is contained in:
Daniel
2019-12-17 14:35:34 +01:00
committed by GitHub
3 changed files with 3 additions and 14 deletions

View File

@@ -4,5 +4,5 @@ Authorization: Basic QUxJQ0Utc2VjcmV0
{
"PostalCode": "123456",
"CityName": "BlaTown"
"CityName": "AlteredTown"
}

View File

@@ -30,7 +30,6 @@ module.exports = (admin => {
})
// Replicate chosen addresses from S/4 when filing orders.
admin.before ('PATCH', 'Orders', async (req) => {
const ID = req.data.shippingAddress_ID; if (!ID) return //> something else
@@ -93,11 +92,3 @@ admin.before ('CREATE', 'Orders', async (req) => {
))
})
// eslint-disable-next-line no-unused-vars
function _diff (a,b) {
let any, diff={}
for (let each in b) if (b[each] !== a[each]) diff[each] = b[any=each]
return any && diff
}

View File

@@ -1,5 +1,4 @@
module.exports = srv => {
srv.on('UPDATE', req => {
const payload = {
@@ -8,6 +7,5 @@ module.exports = srv => {
console.log('<< emitting:', payload)
srv.emit('BusinessPartner/Changed', payload)
})
}
})
}