Payments: Yuki knows what is open
Yuki keeps track of open receivables: which invoices have not yet been (fully) paid. Lean reads that list from Yuki and sets the amount paid on each posted invoice: the invoice amount minus what is still open in Yuki.
Your sales staff or project manager can see in Lean which customer still has to pay, without access to the accounts.
Please note: for payments, Yuki is the reference. A payment recorded in Lean that Yuki does not yet know about is reset to the Yuki amount at the next synchronisation. So record payments in Yuki.