Factoring AR

SOLVED

Is there a best practice for entering payments when factoring AR?  The way we are doing it the entire amount of the invoice is deposited on the bank reconciliation and the bank fees are an offsetting withdrawl.  In addition, if the customer returns the product after the bank has paid us, the customer credit is only for the amount paid to us by the bank, not the original invoice amount.