Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4136 มุมมอง

Hello kind folks,

I am new to Odoo and trying to define a method for computing tax (GST) for my invoices.


I deal in refurbished gadgets and the tax computation is different from regular Indian GST system. In my business,

Tax (GST) = (Sale Price - Purchase Price) * Tax Rate

or Tax (GST) = Margin * Tax Rate


We only charge/pay GST on the gross margin.


I am trying to define this taxation system through the python code option available in the Invoicing app of Odoo. I tried with 

Python Code: result = (price_unit - cost_unit) * 0.09

Applicable Code: result = true


But it seems cost_unit is not recognized by the system. Is there a simple workaround for this? Perhaps by getting the correct reference term for purchase price of the unit?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Nikunj Jajodia,

Yes you can use the python code like:

        Python Code: result = (price_unit - product.standard_price) * 0.09

Hope it will help you.

อวตาร
ละทิ้ง
ผู้เขียน

Thank you Malay! You are a superstar. Worked perfectly and solved my purpose.

ผู้เขียน คำตอบที่ดีที่สุด

Thank you Malay! You are a superstar. Worked perfectly and solved my purpose.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 24
1433
3
ม.ค. 24
1674
0
ธ.ค. 23
1584
1
ก.ค. 23
1893
0
ก.ค. 23
649