Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-bphtb-models
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8c566756
authored
Feb 28, 2021
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Jumlah digit Invoice ID harus tepat sesuai struktur
1 parent
4f217062
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
CHANGES.txt
opensipkd/bphtb/services/default/__init__.py
CHANGES.txt
View file @
8c56675
0.3.3 2021-02-28
----------------
- Modul default jumlah digit Invoice ID harus tepat sesuai struktur.
0.3.2 2021-02-08
0.3.2 2021-02-08
----------------
----------------
- Tambah Kota Binjai
- Tambah Kota Binjai
...
...
opensipkd/bphtb/services/default/__init__.py
View file @
8c56675
...
@@ -37,6 +37,9 @@ class Common:
...
@@ -37,6 +37,9 @@ class Common:
def
__init__
(
self
,
invoice_id
):
def
__init__
(
self
,
invoice_id
):
self
.
invoice_id
=
invoice_id
self
.
invoice_id
=
invoice_id
self
.
invoice
=
None
if
len
(
invoice_id
)
!=
INVOICE_ID_LENGTH
:
return
self
.
invoice_struct
=
FixLength
(
INVOICE_ID
)
self
.
invoice_struct
=
FixLength
(
INVOICE_ID
)
self
.
invoice_struct
.
set_raw
(
invoice_id
)
self
.
invoice_struct
.
set_raw
(
invoice_id
)
self
.
tahun
=
self
.
invoice_struct
[
'Tahun'
]
self
.
tahun
=
self
.
invoice_struct
[
'Tahun'
]
...
@@ -44,8 +47,6 @@ class Common:
...
@@ -44,8 +47,6 @@ class Common:
if
self
.
invoice_struct
[
'Kode'
]:
if
self
.
invoice_struct
[
'Kode'
]:
q
=
self
.
query_invoice
()
q
=
self
.
query_invoice
()
self
.
invoice
=
q
.
first
()
self
.
invoice
=
q
.
first
()
else
:
self
.
invoice
=
None
def
query_invoice
(
self
):
def
query_invoice
(
self
):
kode
=
int
(
self
.
invoice_struct
[
'Kode'
])
kode
=
int
(
self
.
invoice_struct
[
'Kode'
])
...
@@ -171,7 +172,7 @@ class Inquiry(Common):
...
@@ -171,7 +172,7 @@ class Inquiry(Common):
def
get_nama_notaris
(
self
):
def
get_nama_notaris
(
self
):
if
self
.
notaris
:
if
self
.
notaris
:
return
self
.
notaris
.
nama
return
self
.
notaris
.
nama
.
upper
()
def
get_nama
(
self
):
# Nama Wajib Pajak
def
get_nama
(
self
):
# Nama Wajib Pajak
return
self
.
invoice
.
wp_nama
return
self
.
invoice
.
wp_nama
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment