Correction in payment rule calculation.
Revert "Readonly fields WIP."

This reverts commit f1f889ba1ac84431323dcb15f8cdb7ac942977a3.