Two laws two paths (MN 117). Standard Theravada. Dhammaniyama vs kammaniyama.
Kamma niyama is a general rather than absolute law. Do good, get good. Do bad, get bad. But there can also be do good, get bad and do bad, get good (MN 136).
MN 117 says the geneeral kamma law includes attachment (upadhi). In other words, this law is about "I do good, I get good. I do bad, I get bad".
The absolute Dhamma Law of Dependent Origination (SN 12.20) is whenever there is attachment, there will always be suffering.