Product Tax Column In Invoice Not Showing

Dear all,



I’ve enabled Tax for certain products as below:



Tax Rate: 6%

Price include tax: No



How do I show the tax value column inside the invoice? I looked in the invoice.tpl and the code for tax column is there. However the value of $oi.tax_value is 0; which is not true since tax is enabled for this product.



I have attached a sample invoice with the value of $oi.tax_value shown as 0 (should be 1.28).

csc_tax.PNG

Hi helmi_pts,



Can you see the correct tax display on Checkout page and in the cart?

If not you may need to check customer's location and if the tax is applied to it.



Best regards,

Alt-team

[quote name='helmi_pts' timestamp='1427371355' post='209133']

Dear all,



I've enabled Tax for certain products as below:



Tax Rate: 6%

Price include tax: No



How do I show the tax value column inside the invoice? I looked in the invoice.tpl and the code for tax column is there. However the value of $oi.tax_value is 0; which is not true since tax is enabled for this product.



I have attached a sample invoice with the value of $oi.tax_value shown as 0 (should be 1.28).

[/quote]



What CS-Cart version do you use?

Hi [quote name='Alt-team' timestamp='1427381086' post='209164']

Hi helmi_pts,



Can you see the correct tax display on Checkout page and in the cart?

If not you may need to check customer's location and if the tax is applied to it.



Best regards,

Alt-team

[/quote]



Yup the total tax is correctly displayed at the checkout page as well as in the invoice.



Referring to the invoice, RRP is 25.00 - discount(3.75) = 21.25.



Tax is 6%; 21.25 * 0.0.6 = 1.28 which is correct.



Cs-cart version is 4.2.4

This is an example of the blob text inside the cs_cart_order table:



[925344469] => Array
(
[product_id] => 2907
[product_code] => 978-967-369-279-8
[product] => CATATAN MATLUTHFI
[amount] => 1
[product_options] => Array
(
)
[price] => 21.25
[stored_price] => N
[main_pair] => Array
(
[pair_id] => 4676
[image_id] => 0
[detailed_id] => 6311
[position] => 0
[detailed] => Array
(
[image_path] => http://snip/images/detailed/6/1.PNG
[alt] =>
[image_x] => 455
[image_y] => 634
[http_image_path] => http://snip/images/detailed/6/1.PNG
[absolute_path] => /snip/images/detailed/6/1.PNG
[relative_path] => detailed/6/1.PNG
)
)
[extra] => Array
(
[product_options] => Array
(
)
[unlimited_download] => N
[return_period] => 10
)
[stored_discount] => N
[company_id] => 1
[return_period] => 10
[amount_total] => 1
[options_type] => P
[exceptions_type] => F
[modifiers_price] => 0
[is_edp] => N
[edp_shipping] => N
[discount] => 3.75
[promotions] => Array
(
[95] => Array
(
[bonuses] => Array
(
[0] => Array
(
[discount_bonus] => by_percentage
[discount_value] => 15
[discount] => 3.75
)
)
)
)
[base_price] => 25
[display_price] => 21.25

It is required to examine the code. I am not sure why the information about taxes was lost

Hi helmi_pts,



Did you change the “Tax calculation method based on” (General settings) recently?

It seems like the order was placed and then you changed the setting to “per unit”. Try to reorder this order and check the invoice, it should be fine this time.



Thus if the taxes are calculated based on subtotal, they are not recalculated when you change it to “per unit”.

Hi all,



Thanks for the suggestion. I've change it to per unit and now the invoice is displayed correctly.



Thank you again.