1.Add the 'Sales Agreement' state
2.Add the payments to the 'Sales Agreement'
3.Add the 'Sales Advance Payments' to the invoice payments tab page
Add the third_modules that sales payments depending:sale_exceptions,sale_payment_method,sale_quick_payment