6e2c13f4c8
* feat(regional): Auto state wise taxation for GST India * fix: Update gst category on addition of GSTIN * fix: Codacy and travis fixes * fix: Travis * fix(test): Update GST category only if GSTIN field available * fix: Test Cases * fix: Do not skip accounts if place of supply is not present * fix: Auto GST taxation for SEZ Party types * fix: Automatic taxation for multi state * fix: Codacy and travis fixes * fix: Auto GST template selection in Sales Order * fix: Move inter state check and source state to tax category * fix: Remove unique check from tax template * fix: Remove unique check from tax template * fix: Address fetching logic in Sales * fix: fecth tax template on company address change * fix: fetch company gstin on address change * fix: company_gstin set value fix * fix: Mutiple fixes and code refactor * fix: Add missing semicolon * fix: Company address fetching in sales invoice * fix: Remove print statement * fix: Import functools * fix: Naming fixes and code cleanup * fix: Iteritems compatibility for python 3
85 lines
1.5 KiB
Python
85 lines
1.5 KiB
Python
from __future__ import unicode_literals
|
|
from six import iteritems
|
|
|
|
states = [
|
|
'',
|
|
'Andaman and Nicobar Islands',
|
|
'Andhra Pradesh',
|
|
'Arunachal Pradesh',
|
|
'Assam',
|
|
'Bihar',
|
|
'Chandigarh',
|
|
'Chhattisgarh',
|
|
'Dadra and Nagar Haveli',
|
|
'Daman and Diu',
|
|
'Delhi',
|
|
'Goa',
|
|
'Gujarat',
|
|
'Haryana',
|
|
'Himachal Pradesh',
|
|
'Jammu and Kashmir',
|
|
'Jharkhand',
|
|
'Karnataka',
|
|
'Kerala',
|
|
'Lakshadweep Islands',
|
|
'Madhya Pradesh',
|
|
'Maharashtra',
|
|
'Manipur',
|
|
'Meghalaya',
|
|
'Mizoram',
|
|
'Nagaland',
|
|
'Odisha',
|
|
'Other Territory',
|
|
'Pondicherry',
|
|
'Punjab',
|
|
'Rajasthan',
|
|
'Sikkim',
|
|
'Tamil Nadu',
|
|
'Telangana',
|
|
'Tripura',
|
|
'Uttar Pradesh',
|
|
'Uttarakhand',
|
|
'West Bengal',
|
|
]
|
|
|
|
state_numbers = {
|
|
"Andaman and Nicobar Islands": "35",
|
|
"Andhra Pradesh": "37",
|
|
"Arunachal Pradesh": "12",
|
|
"Assam": "18",
|
|
"Bihar": "10",
|
|
"Chandigarh": "04",
|
|
"Chhattisgarh": "22",
|
|
"Dadra and Nagar Haveli": "26",
|
|
"Daman and Diu": "25",
|
|
"Delhi": "07",
|
|
"Goa": "30",
|
|
"Gujarat": "24",
|
|
"Haryana": "06",
|
|
"Himachal Pradesh": "02",
|
|
"Jammu and Kashmir": "01",
|
|
"Jharkhand": "20",
|
|
"Karnataka": "29",
|
|
"Kerala": "32",
|
|
"Lakshadweep Islands": "31",
|
|
"Madhya Pradesh": "23",
|
|
"Maharashtra": "27",
|
|
"Manipur": "14",
|
|
"Meghalaya": "17",
|
|
"Mizoram": "15",
|
|
"Nagaland": "13",
|
|
"Odisha": "21",
|
|
"Other Territory": "98",
|
|
"Pondicherry": "34",
|
|
"Punjab": "03",
|
|
"Rajasthan": "08",
|
|
"Sikkim": "11",
|
|
"Tamil Nadu": "33",
|
|
"Telangana": "36",
|
|
"Tripura": "16",
|
|
"Uttar Pradesh": "09",
|
|
"Uttarakhand": "05",
|
|
"West Bengal": "19",
|
|
}
|
|
|
|
number_state_mapping = {v: k for k, v in iteritems(state_numbers)} |