Your shop closes the day in TritonX, while Xero needs the same sales as an invoice. Without a connection, someone types the amount, the customer and the discount in again. On a busy Saturday the receipts pile up and a return slips through. With this connection that second job disappears: the till stays the source and the bookkeeping follows.
Everything moves from the till to the books, never back. TritonX fetches the transactions from files on the server. A file that has been fully processed is not read again. If a file is still in progress, the next run picks up the rest. In Xero it becomes a sales invoice by default. If you prefer a purchase invoice or a quote, you choose that form yourself. A document that already exists is not added twice.
For each run you set a maximum for the number of files and the number of transactions yourself. Lines without a transaction number are left alone by the connection. A transaction that has already been passed on stays as it is unless you turn on resending. Discount that belongs to an item line is deducted from the unit price. On a return line that discount total is negative. Xero looks up the customer by email address, creates them if they are missing and leaves a customer that is found untouched.