Question: Inclusive Tax Calculation

Inclusive Tax Calculation

Hi, when I add item to the point of sale the tax calculate correct but when I print the receipt the tax amount change spacally if the quantity has decimal like 3.5 Please see attached pics

AA

Ahmed Alsayed

Asked

Hi, when I add item to the point of sale the tax calculate correct but when I print the receipt the tax amount change spacally if the quantity has decimal like 3.5 Please see attached pics .

  • MS

    Mian Saleem

    Answered

    Hello,

    Can you please take screenshots again. These are too small and can’t really understand the numbers.

    Thank you

  • AA

    Ahmed Alsayed

    Answered

    please see attached files

  • AA

    Ahmed Alsayed

    Answered

    Mian Saleem please see attached files

  • MS

    Mian Saleem

    Answered

    Hello,

    I will fix this in next update.

    If you need it urgent, please edit index method of app/controllers/admin/Pos.php and replace the Line no 907 to

    $grand_total    = $this->sma->formatDecimal(($total + $total_tax + $this->sma->formatDecimal($shipping) - $this->sma->formatDecimal($order_discount)), 4);
    

    Thank you

  • AA

    Ahmed Alsayed

    Answered

    Mian Saleem thank you Saleem , it’s working but if I did return the total will be wrong again!!

    item price 16 , Q:3.5 tax 15%

  • AA

    Ahmed Alsayed

    Answered

    Mian Saleem Hi Mr. Saleem, could you please see what I can do " it’s working but if I did return the total will be wrong again!!

    item price 16 , Q:3.5 tax 15%" As it’s urgent! thank you again

  • MS

    Mian Saleem

    Answered

    Hello,

    For return, the method name is return_sale in app/controllers/admin/Sales.php You can replace the $grand_total line with following

    $grand_total = $this->sma->formatDecimal(($total + $total_tax + $return_surcharge + (0 - $shipping) - $this->sma->formatDecimal($order_discount)), 4);
    

    Thank you

  • AA

    Ahmed Alsayed

    Answered

    Mian Saleem thank you , the total grand now it’s okay but still the Total Tax Amount not right please check the attached.

  • MS

    Mian Saleem

    Answered

    Hello,

    Let me check and I shall fix the return and update the file this week.

    Thank you

  • Login to Reply