YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/modules/ServiceContracts/resources/Detail.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function onSubmit has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        onSubmit(ev) {
            ev.preventDefault();
            ev.stopPropagation();
            this.container.validationEngine(app.validationEngineOptions);
            const policyType = Number(this.container.find('[name="policy_type"]:checked').val());

    Function registerDelBtnClick has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            registerDelBtnClick(container) {
                container.find('.js-delete-row-action').on('click', (e) => {
                    e.preventDefault();
                    e.stopPropagation();
                    const row = $(e.target).closest('.js-custom-row');

      There are no issues that match your filters.

      Category
      Status