diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-10-25 10:19:18 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-10-25 10:19:18 +0700 |
| commit | b8ff264742f9415ceb4d919948b40800700fd9bd (patch) | |
| tree | cd1826d8a8825adefeaa5a3fd289630e1b3f5fe6 /indoteknik_api/controllers/api_v1/user.py | |
| parent | 9fa80c62cdffec5b91aaf2a2899d70d0f507c2e4 (diff) | |
<iman> update error code individu ke non pkp
Diffstat (limited to 'indoteknik_api/controllers/api_v1/user.py')
| -rw-r--r-- | indoteknik_api/controllers/api_v1/user.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_api/controllers/api_v1/user.py b/indoteknik_api/controllers/api_v1/user.py index e06a099f..b293c6b5 100644 --- a/indoteknik_api/controllers/api_v1/user.py +++ b/indoteknik_api/controllers/api_v1/user.py @@ -601,7 +601,7 @@ class User(controller.Controller): # user.partner_id.nama_wajib_pajak = new_company.nama_wajib_pajak # user.partner_id.alamat_lengkap_text = new_company.alamat_lengkap_text - if npwp_document != ' ': + if npwp_document: npwp_mimetype, _ = mimetypes.guess_type(npwp_filename) npwp_mimetype = npwp_mimetype or 'application/octet-stream' pdf_data = base64.b64decode(npwp_document) @@ -618,7 +618,7 @@ class User(controller.Controller): else: new_company.message_post(body="NPWP Uploaded", attachment_ids=[npwp_attachment.id]) - if sppkp_document != ' ': + if sppkp_document: sppkp_mimetype, _ = mimetypes.guess_type(sppkp_filename) sppkp_mimetype = sppkp_mimetype or 'application/octet-stream' pdf_data = base64.b64decode(sppkp_document) |
