Currently when importing Sales Ledger from Cin7 we store the Primary contact ID for the the sales ledger and do not sync the secondary contact's ID for the sales ledgers. Sales can be raised under a secondary contact in Cin7.
When we import the sales made to a secondary contact from Cin7, we are not able to find the sales ledger with the ID that matches the secondary contact's ID and create a new sales ledger with only the ID of the secondary contact as the name of it. These ledgers lack any substantial information and make it hard to see who those sales where actually made to from the CRM.
We should sync the secondary contact's id on each ledger and then when importing sales, if we cannot find a sales ledger with the primary id specified on the sale, we should check for a secondary contact with that ID and save the sale under the expected ledger before creating a new one.