Question: Product Level Discount On Receipt

Product Level Discount On Receipt

Hi, I am confusing while i provide product level discount, on the receipt shows that the discount is substracted from different price. could you please explain how those product level disco

MK

Mohamed Ishraque Kalideen

Asked

Hi,

I am confusing while i provide product level discount, on the receipt shows that the discount is substracted from different price. could you please explain how those product level discount is displayed on the receipt.

Actually on attached receipt my product price is 10 and number quantity purchased 10, discount provided only 5.

it should be like (100-5)

  • MS

    Mian Saleem

    Answered

    Hello,

    The receipt only shows the discounted price.

    The discount will be applied to unit price. Let say your product price is 10 and you apply 10% discount so the price will be 9 and for 10 pc it will be 90. If you apply fixed discount of 2 then 8 will be unit price and 10 items will be for 80.

    Thank you

  • MK

    Mohamed Ishraque Kalideen

    Answered

    what is the meaning for (14.50 - 5.00) above invoice on product discount. I have provided product level discount 5% for 10 product each product price is 10 product.

    But, all calculations are correct but i am confusing on display of discount in invoice.

  • MS

    Mian Saleem

    Answered

    Hello,

    That should be (unit price - discount amount)

    Thank you

  • MK

    Mohamed Ishraque Kalideen

    Answered

    Product price is 10 but it has printed like 14.50 on the receipt (attachment 1), and you can check my product price on attachment 2

  • MK

    Mohamed Ishraque Kalideen

    Answered

    please check on this attachment

  • MS

    Mian Saleem

    Answered

    I will check this on Monday. Thank you

  • MK

    Mohamed Ishraque Kalideen

    Answered

    I am waiting for your support regarding above issue

  • 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

    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>';
    

    Thank you

  • MK

    Mohamed Ishraque Kalideen

    Answered

    echo ‘#’ . $r . ‘:   ’ . product_name($row->product_name, ($printer ? $printer->char_per_line : null)) . ($row->variant ? ’ (’ . $row->variant . ‘)’ : ‘’) , ($row->serial_no ? ‘
    ’ . $row->serial_no : ‘’) . ‘’ . ($row->tax_code ? ‘*’ . $row->tax_code : ‘’) . $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’) . ’ (’ . ($Settings->indian_gst ? $row->tax : $row->tax_code) . ‘) ’ . $this->sma->formatMoney($row->item_tax) . ($row->hsn_code ? ’ (’ . lang($row->product_type == ‘service’ ? ‘sac_code’ : ‘hsn_code’) . ': ’ . $row->hsn_code . ‘)’ : ‘’) . ‘]’ : ‘’) . ‘’ . $this->sma->formatMoney($row->subtotal) . ‘’; if (!empty($row->second_name)) { echo ‘’ . $row->second_name . ‘’;

    after changing this code like you shared my Today profit changed like following screen shot, Profit displays as Minus. Could you please look in to this issue?

  • MK

    Mohamed Ishraque Kalideen

    Answered

    why product cost is higher than revenue?

  • Login to Reply