Question: How To Display Product Tax On Receipt

How To Display Product Tax On Receipt

Hi, i noticed that Tax details don't appear on receipt when using **Product Tax** instead of Order Tax. Can you possibly give me direction as to **how to display tax on invoice when using P

DE

Dere Ezekiel

Asked
Hi,
i noticed that Tax details don't appear on receipt when using **Product Tax** instead of Order Tax. Can you possibly give me direction as to **how to display tax on invoice when using Product Tax**.

We are using product inclusive tax format, and wish to let customers see tax amount appear on their receipt. So if possible, kindly guide me on how to: **Display it just before the Grand Total**.

Thank you
  • MS

    Mian Saleem

    Answered
    Hello,

    I will display it in next update. For now you can edit `themes/default/views/pos/view.php` for web browser and `themes/default/views/pos/eview.php` for php & print server and the lines below.

    In `themes/default/views/pos/view.php` around line 117 you can add the following

    ```
    if ($inv->total_tax != 0) {
    echo '<tr><th class="text-left" colspan="2">' . lang('tax') . '</th><th colspan="2" class="text-right">' . $this->tec->formatMoney($inv->total_tax) . '</th></tr>';
    }
    ```

    while in `themes/default/views/pos/eview.php` around line no 130

    ```
    if ($inv->total_tax != 0) {
    echo '<tr><th class="text-left">' . lang('tax') . '</th><th class="text-right">' . $this->tec->formatMoney($inv->total_tax) . '</th></tr>';
    }
    ```

    and in `themes/default/views/pos/remote_printing.php` around line 65

    ```
    if ($inv->total_tax != 0) { ?>
    receipt.totals += "<?= printLine(lang('tax') . ': ' . $this->tec->formatMoney($inv->total_tax), $char_per_line); ?>" + "\n";
    <?php
    }
    ```

    Thank you
  • DE

    Dere Ezekiel

    Answered
    Alright.
    Thank you a lot for your time.
  • Login to Reply