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 17e1bdb9
authored
Aug 25, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tambah get_jenis_usaha()
1 parent
c0c637eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletions
CHANGES.txt
opensipkd/pad/scripts/inquiry.py
opensipkd/pad/services/default/__init__.py
CHANGES.txt
View file @
17e1bdb
0.2.2 2020-08-04
----------------
- Tambah get_jenis_usaha()
0.2.1 2020-07-24
----------------
- Modul tangsel ada pengisian field is_valid
...
...
opensipkd/pad/scripts/inquiry.py
View file @
17e1bdb
...
...
@@ -51,6 +51,7 @@ def show(inq):
show_val
(
'Masa 2'
,
inq
.
get_masa_2
())
show_val
(
'Kode Rekening'
,
inq
.
get_kode_rekening
())
show_val
(
'Nama Rekening'
,
inq
.
get_nama_rekening
())
show_val
(
'Jenis Usaha'
,
inq
.
get_nama_jenis_usaha
())
show_val
(
'NPWPD'
,
inq
.
get_npwp
())
show_val
(
'Nama Wajib Pajak'
,
inq
.
get_nama
())
show_val
(
'Alamat Wajib Pajak'
,
inq
.
get_alamat_wp
())
...
...
@@ -62,7 +63,6 @@ def show(inq):
show_rp
(
'Denda'
,
inq
.
denda
)
show_rp
(
'Total Bayar'
,
inq
.
total_bayar
)
show_rp
(
'Total Tagihan'
,
inq
.
total
)
show_val
(
'Is Available'
,
inq
.
is_available
())
show_field
(
inq
.
invoice
,
'status_pembayaran'
)
...
...
opensipkd/pad/services/default/__init__.py
View file @
17e1bdb
...
...
@@ -116,6 +116,16 @@ class BaseInquiry:
q
=
DBSession
.
query
(
Rekening
)
.
filter_by
(
id
=
self
.
pajak
.
rekening_id
)
return
q
.
first
()
def
get_jenis_usaha
(
self
):
DBSession
=
get_db_session
()
Usaha
=
self
.
get_usaha_model
()
CustomerUsaha
=
self
.
get_customer_usaha_model
()
q
=
DBSession
.
query
(
CustomerUsaha
)
.
filter_by
(
id
=
self
.
invoice
.
customer_usaha_id
)
cust_usaha
=
q
.
first
()
q
=
DBSession
.
query
(
Usaha
)
.
filter_by
(
id
=
cust_usaha
.
usaha_id
)
return
q
.
first
()
def
set_profile
(
self
):
self
.
objek_pajak
=
self
.
get_objek_pajak
()
self
.
wajib_pajak
=
self
.
get_wajib_pajak
()
...
...
@@ -184,6 +194,10 @@ class BaseInquiry:
def
get_masa_2
(
self
):
return
self
.
invoice
.
masasd
.
strftime
(
'
%
d
%
m
%
Y'
)
def
get_nama_jenis_usaha
(
self
):
jenis
=
self
.
get_jenis_usaha
()
return
jenis
.
usahanm
class
Inquiry
(
BaseInquiry
):
def
__init__
(
...
...
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