AA
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 .
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 .
Attachments
- MSAnsweredHello,
Can you please take screenshots again. These are too small and can't really understand the numbers.
Thank you - AAAnsweredplease see attached filesAttachments
- AAAnswered**[Mian Saleem](/u/saleem)** please see attached filesAttachments
- MSAnsweredHello,
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
```php
$grand_total = $this->sma->formatDecimal(($total + $total_tax + $this->sma->formatDecimal($shipping) - $this->sma->formatDecimal($order_discount)), 4);
```
Thank you - AAAnswered**[Mian Saleem](/u/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% - AAAnswered**[Mian Saleem](/u/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 - MSAnsweredHello,
For return, the method name is `return_sale` in `app/controllers/admin/Sales.php` You can replace the `$grand_total` line with following
```php
$grand_total = $this->sma->formatDecimal(($total + $total_tax + $return_surcharge + (0 - $shipping) - $this->sma->formatDecimal($order_discount)), 4);
```
Thank you - AAAnswered**[Mian Saleem](/u/saleem)** thank you , the total grand now it's okay but still the Total Tax Amount not right please check the attached.Attachments
- MSAnsweredHello,
Let me check and I shall fix the return and update the file this week.
Thank you - Login to Reply