Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-pad-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 3ef445ab
authored
Jan 04, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kelurahan dan Kecamatan boleh kosong
1 parent
9a7683a6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
opensipkd/pad/services/ciamis.py
opensipkd/pad/services/default.py
opensipkd/pad/services/ciamis.py
View file @
3ef445a
...
...
@@ -17,6 +17,10 @@ INVOICE_ID = [
class
Inquiry
(
BaseInquiry
):
invoice_id_structure
=
INVOICE_ID
# Cekal 2024, Iwan, 4-1-2024
def
is_available
(
self
):
# Override
return
super
()
.
is_available
()
and
self
.
tahun_terbit
<
2024
def
get_kohir_model
(
self
):
# Override
return
Kohir
...
...
@@ -24,6 +28,9 @@ class Inquiry(BaseInquiry):
class
Reversal
(
BaseReversal
):
invoice_id_structure
=
INVOICE_ID
def
get_kohir_model
(
self
):
# Override
return
Kohir
class
AvailableInvoice
(
BaseAvailableInvoice
):
invoice_id_structure
=
INVOICE_ID
...
...
opensipkd/pad/services/default.py
View file @
3ef445a
...
...
@@ -137,6 +137,8 @@ class BaseInquiry:
return
q
.
first
()
def
get_kelurahan
(
self
):
if
not
self
.
objek_pajak
.
kelurahan_id
:
return
Kelurahan
=
self
.
get_kelurahan_model
()
DBSession
=
get_db_session
()
q
=
DBSession
.
query
(
Kelurahan
)
.
filter_by
(
...
...
@@ -144,6 +146,8 @@ class BaseInquiry:
return
q
.
first
()
def
get_kecamatan
(
self
):
if
not
self
.
objek_pajak
.
kecamatan_id
:
return
Kecamatan
=
self
.
get_kecamatan_model
()
DBSession
=
get_db_session
()
q
=
DBSession
.
query
(
Kecamatan
)
.
filter_by
(
...
...
@@ -238,9 +242,11 @@ class BaseInquiry:
return
upper
(
self
.
objek_pajak
.
opalamat
)
def
get_kelurahan_op
(
self
):
if
self
.
kelurahan
:
return
self
.
kelurahan
.
kelurahannm
.
strip
()
.
upper
()
def
get_kecamatan_op
(
self
):
if
self
.
kecamatan
:
return
self
.
kecamatan
.
kecamatannm
.
strip
()
.
upper
()
def
get_kode_rekening
(
self
):
...
...
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