Merge branch 'D-kom-Demo' into dkom
This commit is contained in:
@@ -4,5 +4,5 @@ Authorization: Basic QUxJQ0Utc2VjcmV0
|
||||
|
||||
{
|
||||
"PostalCode": "123456",
|
||||
"CityName": "BlaTown"
|
||||
"CityName": "AlteredTown"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user