Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
payment-report
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 2fc9eb34
authored
May 19, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Perubahan rumus pada PBB
1 parent
ef152605
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
CHANGES.txt
payment_report/models.py
payment_report/pad/default.py
payment_report/pbb/default.py
CHANGES.txt
View file @
2fc9eb3
3.2 2024-05-17
--------------
- Perubahan rumus pada PBB
- Penambahan field kecamatan_nm pada PAD
3.1.4 2024-05-07
3.1.4 2024-05-07
----------------
----------------
- Tambah PBB H2H Only
- Tambah PBB H2H Only
...
...
payment_report/models.py
View file @
2fc9eb3
...
@@ -64,6 +64,8 @@ class Pad(Base, Common):
...
@@ -64,6 +64,8 @@ class Pad(Base, Common):
channel_id
=
Column
(
String
(
4
),
nullable
=
False
)
channel_id
=
Column
(
String
(
4
),
nullable
=
False
)
# Bit 41 / 42 / 43
# Bit 41 / 42 / 43
channel_name
=
Column
(
String
(
32
),
nullable
=
False
)
channel_name
=
Column
(
String
(
32
),
nullable
=
False
)
# pad.kecamatan.kecamatan_nm
kecamatan_nm
=
Column
(
String
(
50
))
# pad_reversal.tgl
# pad_reversal.tgl
tgl_batal
=
Column
(
DateTime
(
timezone
=
True
))
tgl_batal
=
Column
(
DateTime
(
timezone
=
True
))
...
...
payment_report/pad/default.py
View file @
2fc9eb3
...
@@ -37,14 +37,16 @@ class App(BaseApp):
...
@@ -37,14 +37,16 @@ class App(BaseApp):
CustomerUsaha
=
self
.
models
.
CustomerUsaha
CustomerUsaha
=
self
.
models
.
CustomerUsaha
Invoice
=
self
.
models
.
Invoice
Invoice
=
self
.
models
.
Invoice
Payment
=
self
.
models
.
Payment
Payment
=
self
.
models
.
Payment
Kecamatan
=
self
.
models
.
Kecamatan
self
.
base_q_pay
=
self
.
prod_session
.
query
(
Payment
)
self
.
base_q_pay
=
self
.
prod_session
.
query
(
Payment
)
self
.
base_q_inv
=
self
.
prod_session
.
query
(
self
.
base_q_inv
=
self
.
prod_session
.
query
(
Invoice
,
Pajak
,
Customer
,
Usaha
)
Invoice
,
Pajak
,
Customer
,
Usaha
,
Kecamatan
)
self
.
base_q_inv
=
self
.
base_q_inv
.
filter
(
self
.
base_q_inv
=
self
.
base_q_inv
.
filter
(
Invoice
.
pajak_id
==
Pajak
.
id
,
Invoice
.
pajak_id
==
Pajak
.
id
,
Invoice
.
customer_usaha_id
==
CustomerUsaha
.
id
,
Invoice
.
customer_usaha_id
==
CustomerUsaha
.
id
,
CustomerUsaha
.
customer_id
==
Customer
.
id
,
CustomerUsaha
.
customer_id
==
Customer
.
id
,
Usaha
.
id
==
Pajak
.
usaha_id
,)
Usaha
.
id
==
Pajak
.
usaha_id
,
Kecamatan
.
id
==
CustomerUsaha
.
kecamatan_id
)
self
.
base_q_log
=
self
.
prod_session
.
query
(
Log
)
.
filter_by
(
self
.
base_q_log
=
self
.
prod_session
.
query
(
Log
)
.
filter_by
(
mti
=
'0210'
,
bit_003
=
PAYMENT_CODE
,
bit_039
=
'00'
)
mti
=
'0210'
,
bit_003
=
PAYMENT_CODE
,
bit_039
=
'00'
)
try
:
try
:
...
@@ -113,7 +115,7 @@ class App(BaseApp):
...
@@ -113,7 +115,7 @@ class App(BaseApp):
def
create_data
(
self
,
pay
):
# Override
def
create_data
(
self
,
pay
):
# Override
Invoice
=
self
.
models
.
Invoice
Invoice
=
self
.
models
.
Invoice
q_inv
=
self
.
base_q_inv
.
filter
(
Invoice
.
id
==
pay
.
spt_id
)
q_inv
=
self
.
base_q_inv
.
filter
(
Invoice
.
id
==
pay
.
spt_id
)
inv
,
pajak
,
cust
,
usaha
=
q_inv
.
first
()
inv
,
pajak
,
cust
,
usaha
,
kecamatan
=
q_inv
.
first
()
invoice_id
=
FixLength
(
self
.
service
.
INVOICE_ID
)
invoice_id
=
FixLength
(
self
.
service
.
INVOICE_ID
)
invoice_id
[
'Tahun'
]
=
inv
.
tahun
invoice_id
[
'Tahun'
]
=
inv
.
tahun
invoice_id
[
'SptNo'
]
=
inv
.
sptno
invoice_id
[
'SptNo'
]
=
inv
.
sptno
...
@@ -143,6 +145,6 @@ class App(BaseApp):
...
@@ -143,6 +145,6 @@ class App(BaseApp):
jam
=
pay
.
sspdtgl
.
time
(),
nomor_bayar
=
invoice_id
.
get_raw
(),
jam
=
pay
.
sspdtgl
.
time
(),
nomor_bayar
=
invoice_id
.
get_raw
(),
jenis_pajak
=
usaha
.
usahanm
.
strip
(),
masa_pajak
=
inv
.
masadari
,
jenis_pajak
=
usaha
.
usahanm
.
strip
(),
masa_pajak
=
inv
.
masadari
,
npwpd
=
cust
.
npwpd
,
nama_wp
=
cust
.
customernm
.
strip
(),
npwpd
=
cust
.
npwpd
,
nama_wp
=
cust
.
customernm
.
strip
(),
pokok
=
pay
.
jml_bayar
-
pay
.
denda
,
denda
=
pay
.
denda
,
bunga
=
pay
.
bung
a
,
kecamatan_nm
=
kecamatan
.
kecamatannm
,
pokok
=
pay
.
jml_bayar
-
pay
.
dend
a
,
jml_bayar
=
pay
.
jml_bayar
,
channel_id
=
channel_id
,
denda
=
pay
.
denda
,
bunga
=
pay
.
bunga
,
jml_bayar
=
pay
.
jml_bayar
,
channel_name
=
channel_name
,
bank_id
=
bank_id
)
channel_
id
=
channel_id
,
channel_
name
=
channel_name
,
bank_id
=
bank_id
)
payment_report/pbb/default.py
View file @
2fc9eb3
...
@@ -284,7 +284,7 @@ class App(BaseApp):
...
@@ -284,7 +284,7 @@ class App(BaseApp):
channel_nama
=
self
.
get_va_channel
(
tgl
)
channel_nama
=
self
.
get_va_channel
(
tgl
)
if
not
channel_nama
:
if
not
channel_nama
:
kd_tp
=
psppt
.
kd_tp
.
strip
()
kd_tp
=
psppt
.
kd_tp
.
strip
()
channel_nama
=
self
.
kd_tp
.
get
(
kd_tp
,
'
MANUAL
'
)
channel_nama
=
self
.
kd_tp
.
get
(
kd_tp
,
'
LAINNYA
'
)
return
channel_kode
,
channel_nama
,
stan
,
ntb
,
bank_id
,
user_id
,
\
return
channel_kode
,
channel_nama
,
stan
,
ntb
,
bank_id
,
user_id
,
\
tgl_inquiry
tgl_inquiry
...
@@ -314,7 +314,7 @@ class App(BaseApp):
...
@@ -314,7 +314,7 @@ class App(BaseApp):
kd_blok
=
psppt
.
kd_blok
,
no_urut
=
psppt
.
no_urut
,
kd_blok
=
psppt
.
kd_blok
,
no_urut
=
psppt
.
no_urut
,
kd_jns_op
=
psppt
.
kd_jns_op
,
thn_pajak_sppt
=
psppt
.
thn_pajak_sppt
,
kd_jns_op
=
psppt
.
kd_jns_op
,
thn_pajak_sppt
=
psppt
.
thn_pajak_sppt
,
pembayaran_sppt_ke
=
psppt
.
pembayaran_sppt_ke
,
stan
=
stan
,
ntb
=
ntb
,
pembayaran_sppt_ke
=
psppt
.
pembayaran_sppt_ke
,
stan
=
stan
,
ntb
=
ntb
,
jml_sppt_yg_dibayar
=
bayar
,
denda_sppt
=
denda
or
0
,
jml_sppt_yg_dibayar
=
pokok
+
denda
,
denda_sppt
=
denda
or
0
,
discount
=
discount
or
0
,
tgl_pembayaran_sppt
=
tgl
,
discount
=
discount
or
0
,
tgl_pembayaran_sppt
=
tgl
,
tgl_inquiry
=
tgl_inquiry
,
tgl_inquiry
=
tgl_inquiry
,
tgl_rekam_byr_sppt
=
psppt
.
tgl_rekam_byr_sppt
,
tgl_rekam_byr_sppt
=
psppt
.
tgl_rekam_byr_sppt
,
...
...
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