summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1/user.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-08-27 09:53:05 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-08-27 09:53:05 +0700
commitbee9842dda7aff8925f71f520765b0cf017e4526 (patch)
tree44a37fb5e93f44c00f12e464a4da696dbeba19a2 /indoteknik_api/controllers/api_v1/user.py
parent60abd5d10aa4f606cade5ecf7d5c271905d4a18a (diff)
cr new register
Diffstat (limited to 'indoteknik_api/controllers/api_v1/user.py')
-rw-r--r--indoteknik_api/controllers/api_v1/user.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/indoteknik_api/controllers/api_v1/user.py b/indoteknik_api/controllers/api_v1/user.py
index cc97d004..2e2a2cc6 100644
--- a/indoteknik_api/controllers/api_v1/user.py
+++ b/indoteknik_api/controllers/api_v1/user.py
@@ -107,10 +107,10 @@ class User(controller.Controller):
phone = kw.get('phone')
# Form Data
- npwp = kw.get('npwp') # File upload for NPWP
- npwp_document = kw.get('npwp_document', False) # String input for NPWP document
- sppkp = kw.get('sppkp', False) # File upload for SPPKP
- sppkp_document = kw.get('sppkp_document', False) # String input for SPPKP document
+ npwp = kw.get('npwp')
+ npwp_document = kw.get('npwp_document', False)
+ sppkp = kw.get('sppkp', False)
+ sppkp_document = kw.get('sppkp_document', False)
email_partner = kw.get('email_partner')
business_name = kw.get('business_name', False)
industry_id = int(kw.get('industry_id', '0') or 0)
@@ -179,8 +179,8 @@ class User(controller.Controller):
'company_type_id': company_type_id if company_type_id else False,
'industry_id': industry_id,
'customer_type': 'pkp' if is_pkp else 'nonpkp',
- 'npwp': npwp if is_pkp else (npwp if npwp else '0000'),
- 'sppkp': sppkp if is_pkp else (sppkp if sppkp else '0000'),
+ 'npwp': npwp if is_pkp else (npwp if npwp else '0.000.000.0-000.000'),
+ 'sppkp': sppkp if is_pkp else (sppkp if sppkp else ''),
'nama_wajib_pajak': nama_wajib_pajak,
'email': email_partner,
'company_type': 'company'