An obligor who has consented to an assignment of the credit by the obligee to a third party may not claim against the latter any compensation that otherwise he could have claimed against the former.
An obligor who has been given notice of an assignment to which he did not consent may not claim compensation against the assignee for an obligation of the assignor arising after that notice.
La. C.C. § 1900