Add message on cancel in SI if C-Form exists, fix minor error, Add validation in C-Form

Fixes #2173;
- Add msgprint on Sales Invoice cancellation if a C-form exists against current Sales Invoice
- Add validation in C-form to check if the Invoice number is cancelled
Remove this function