Question: Product Vise Discount Error In Sale Price

Product Vise Discount Error In Sale Price

When we make product vise discount for a product with one quantity, there is no issue, but when we make product vise discount with more then one quantity, the product price changes in invoic

TP

Thizzi POS

Asked
When we make product vise discount for a product with one quantity, there is no issue, but when we make product vise discount with more then one quantity, the product price changes in invoice, but there is no calculation issue. How can be the product price change ? (refer the attachments)
  • MS

    Mian Saleem

    Answered
    Hello,

    I have checked the presentation values are wrong. Please edit `themes/default/admin/views/pos/view.php` and change line no 169 to

    ```php
    echo '<tr><td class="no-border border-bottom">' . $this->sma->formatQuantity($row->unit_quantity) . ($row->product_unit_code ? $row->product_unit_code : '') . ' x ' . ($row->item_discount != 0 ? '(' . $this->sma->formatMoney($row->unit_price + ($row->item_discount / $row->unit_quantity)) . ' - ' . $this->sma->formatMoney($row->item_discount / $row->unit_quantity) . ')' : $this->sma->formatMoney($row->unit_price)) . ($row->item_tax != 0 ? ' [' . lang('tax') . ' <small>(' . ($Settings->indian_gst ? $row->tax : $row->tax_code) . ')</small> ' . $this->sma->formatMoney($row->item_tax) . ($row->hsn_code ? ' (' . lang($row->product_type == 'service' ? 'sac_code' : 'hsn_code') . ': ' . $row->hsn_code . ')' : '') . ']' : '') . '</td><td class="no-border border-bottom text-right">' . $this->sma->formatMoney($row->subtotal) . '</td></tr>';
    ```

    I will fix this in next update.

    Thank you
  • TP

    Thizzi POS

    Answered
    Thank you for your response. Now it fixed.
  • Login to Reply