Topic: Use of type, trans_no and ref in system
Hello fellas
I'm looking into the beginnings of an API to post transactions. I've seen the downloads for customer and item importation on this site in the download section - these are relatively straightforward, however sys_type updates are obviously more complex as counters, next refs, taxes etc need to kept up to date. I don't think anyone's done this yet through an API-style interface.
A few questions for the experts:
1) In the 1_sys_types table, what is the difference between 'type_no' and 'next reference'? I note that sometimes they are in sync, but in the empty US SQL import file, they aren't always.
2) Am I right in saying that sys_type and type_no are THE definitive keys for any transaction in the system. Does this mean that type_no and next_reference should stay in sync? How would they get out of sync?
3) Is 1_refs table? just a text 'reference' information field against a transaction keyed by a sys_type and id number?
Thanks boys I'll let you know how I go.....
Pete