Question: How To Remove Paragraph Tag

How To Remove Paragraph Tag

Hi, I create expense enter note and download report but download <p></p> tag also how to remove

M

mahalakshmi

Asked
Hi,
I create expense enter note and download report but download <p></p> tag also how to remove
  • MS

    Mian Saleem

    Answered
    Hello,

    SMA use `WYSIWYG` edit that added the tags automatically. If you don't need it, you can add the `skip` class to textarea input. To remove it for add expense, you can edit `themes/default/admin/views/purchases/add_expense.php` edit line 66 from

    ```
    <?php echo form_textarea('note', ($_POST['note'] ?? ''), 'class="form-control" id="note"'); ?>
    ```

    to

    ```
    <?php echo form_textarea('note', ($_POST['note'] ?? ''), 'class="form-control skip" id="note"'); ?>
    ```

    This will remove the edit and display the plain textarea element that won't add any html code to your input.

    Thank you
  • M

    mahalakshmi

    Answered
    Thank You
  • M

    mahalakshmi

    Answered
    How to category wise total amount display in expense report
  • MS

    Mian Saleem

    Answered
    You can check the `Expenses Report` and customise it by selecting the category. Thank you
  • M

    mahalakshmi

    Answered
    hi Mian Saleem Expenses Report i got it but i need total report, user wise total because we create 10 expense user, download excel file we need individual total expense so check attached file once
  • MS

    Mian Saleem

    Answered
    Hello,

    You can see the up & down arrow at top right of your screenshot. Please click down arrow to get form and select the created by, category and others as you need and submit to generate report.

    There is no option to display report as you need. Feel free to hire developer to help you modify the code to get desired results.

    Thank you
  • M

    mahalakshmi

    Answered
    ok thank you how to hide time picker, select start date and end date expense report , i need date only
  • MS

    Mian Saleem

    Answered
    You can edit the input in view file `themes/default/admin/views/reports/expenses.php` as you need. Thank you
  • Login to Reply