Question: How To Display Total Discount In Invoice

How To Display Total Discount In Invoice

We want to display the total amount of the discount in the invoice, when we make individual discount for several products ? (Display the sum of individual discounts as total discount)

TP

Thizzi POS

Asked
We want to display the total amount of the discount in the invoice, when we make individual discount for several products ? (Display the sum of individual discounts as total discount)
  • MS

    Mian Saleem

    Answered
    Hello,

    As I know the discount column show the total discount. Can you please take the screenshot of the sale modal or pdf?

    Thank you
  • TP

    Thizzi POS

    Answered
    we included individual discounts for the products in "invoice 2", but there isn't the value of "total discount" prints in the "invoice 1".

    It prints the total discount when we include a total discount for the invoice, but it doesn't print the total discount when we include individual discounts for products.
    We want to print the toatal discount amount in the invoice, when we include individual discounts. How can we do that?
  • MS

    Mian Saleem

    Answered
    Hello,

    POS receipt don't show the total discount. You can add the following to <tfoot> in `themes/default/admin/views/pos/view.php`

    ```php
    if ($inv->total_discount > 0) {
    echo '<tr><th>' . lang('discount') . '</th><th class="text-right">' . $this->sma->formatMoney($return_sale ? ($inv->total_discount + $return_sale->total_discount) : $inv->total_discount) . '</th></tr>';
    }
    ```

    Thank you
  • TP

    Thizzi POS

    Answered
    We want to display the Promotion details(promotion prices) in the invoice like in individual product vise discounts.
    Example :- if we set a promotion for a product as 130 to 100 , invoice should display as 130 - 100, like in product vise discounts.
    How can we do that ?
  • MS

    Mian Saleem

    Answered
    Hello,

    There is no such ooption. Promo price will be cosidered as price for the promo period. There is no option to make it as discount :(

    Thank you
  • TP

    Thizzi POS

    Answered
    Is there a possible way to do that with coding ?
    Can we have instructions for that ?
  • MS

    Mian Saleem

    Answered
    Hello,

    You can modify the view file `themes/default/admin/views/pos/view.php` as you need.

    Thank you
  • TP

    Thizzi POS

    Answered
    can we have the code for that, please ?
  • MS

    Mian Saleem

    Answered
    I ma sorry as I can't help with code. You can hire any developer to help you. Thanks
  • TP

    Thizzi POS

    Answered
    Please provide it your next update. Thankz
  • Login to Reply