Hi,
We have a requirement where the GST has to be used as Group Tax and has to be equally distributed. For example GST 18% will have a group of CGST as 9% and SGST as 9%. For that we want to use the python code.
Under SGST 9% and CGST 9% python code I want use the following condition;
For example Product website listed price is 399 then the Sales Order should have Untaxed amount as 338.13 and CGST 30.43 and SGST 30.43. These numbers we can get it by doing the following equation, i.e. product_price/1.18 = 399/1.18=338.13. Then remaining amount will be for tax 300-338.13=60.87. That will be further divided by 2, 60.87/2=30.43.
Product Price = 399
Untaxed Amount = 338.13
CGST = 30.43
SGST = 30.43
Not able to put the same in python code. Any help or guidance in the above requested will be really appreciated.
I tried using the shared code as shown above, but I am getting the following error;
Please will appreciate your kind guidance.