This chapter describes the logic used to make this integration.
The table Customer contains a
datetime field (
Each time a record is added or updated (
CustomerUpdate) the ERP Layer ensure that the field is updated with a
To synchronize the data from MyERP to Odyssee, the following steps are executed
ERP.Customerthat have been created or updated AFTER this date field (using milliseconds)
“ERP.Customer”to an object and verify on the
sync_cachethat he is well modified (Imagine that you have a field on your ERP that is not Sync. In this case, modify this field doesn’t mean you need to sync a new time this object to Odyssee).
sync_cacheor serialized object is different), it verify if this object has been already sent to Odyssee (to know if a
Guidon his cache
To synchronize the data from Odyssee to MyERP, the following steps are executed
Odyssee.Companyhave been created or updated AFTER this date field (using milliseconds)
Odyssee.Company.codeempty : it add it on MyERP, receive the new
ERP.Customer.idand make an API update on
Odyssee.Company.codeand add it on my
Odyssee.Company.codefilled : this customer comes from MyERP. Need to see if the value of the field
“name”is different than on my ERP.