High level structure
This is actually 2 Daemons. Firstly the data is read into temporary tables in Mantiki. A second Daemon runs to read the data from the temporary tables and write this into the MantikiFeed tables from which Finance harvest the data.
Temporary Tables In Mantiki (process_extract tables)
Sales are split into two temporary tables in Mantiki.
process_extract_dream_shipment
process_extract_dream_shipment_payment
MantikiFeed
Standard sales
...
dbo.sales
...
Preorders have some specific rules to follow.
...
Temporary Tables In Mantiki (process_extract tables) - Sales