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 10f8ac97
authored
Mar 01, 2023
by
Candra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Penambahan conf untuk memilah channel pembayaran va & qris pada webr berdasarkan ntb
1 parent
3b91773f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
CHANGES.txt
payment_report/scripts/webr.py
CHANGES.txt
View file @
10f8ac9
2.9 2023-0
2-15
2.9 2023-0
3-01
--------------
--------------
- Tambah BPHTB Kabupaten Serang
- Tambah BPHTB Kabupaten Serang
- Tambah PAD Cimahi
- Tambah PAD Cimahi
- Perbaikan data masa_pajak = pad_spt.masadari
- Perbaikan data masa_pajak = pad_spt.masadari
- Perbaikan channel EMONEY > DIGICASH
- Perbaikan channel EMONEY > DIGICASH
- Penambahan conf untuk memilah channel pembayaran va & qris pada webr berdasarkan ntb
2.8 2022-12-26
2.8 2022-12-26
--------------
--------------
...
...
payment_report/scripts/webr.py
View file @
10f8ac9
...
@@ -60,6 +60,8 @@ class App(BaseApp):
...
@@ -60,6 +60,8 @@ class App(BaseApp):
self
.
IsoLog
=
AlternativeLog
self
.
IsoLog
=
AlternativeLog
self
.
base_q_iso
=
self
.
base_q_iso
.
filter_by
(
self
.
base_q_iso
=
self
.
base_q_iso
.
filter_by
(
mti
=
'0210'
,
bit_003
=
PAYMENT_CODE
,
bit_039
=
'00'
)
mti
=
'0210'
,
bit_003
=
PAYMENT_CODE
,
bit_039
=
'00'
)
self
.
ntb_qris
=
self
.
conf
.
get
(
'ntb_qris'
)
self
.
ntb_va
=
self
.
conf
.
get
(
'ntb_va'
)
def
get_iso
(
self
,
inv
):
def
get_iso
(
self
,
inv
):
q
=
self
.
base_q_iso
.
filter
(
func
.
trim
(
self
.
IsoLog
.
bit_061
)
==
inv
.
kode
)
q
=
self
.
base_q_iso
.
filter
(
func
.
trim
(
self
.
IsoLog
.
bit_061
)
==
inv
.
kode
)
...
@@ -82,6 +84,18 @@ class App(BaseApp):
...
@@ -82,6 +84,18 @@ class App(BaseApp):
channel_id
=
str
(
pay
.
channel_id
)
channel_id
=
str
(
pay
.
channel_id
)
channel_name
=
BIT_18_NAMES
[
channel_id
]
channel_name
=
BIT_18_NAMES
[
channel_id
]
else
:
else
:
channel_kode
=
'0001'
if
self
.
ntb_qris
and
\
pay
.
ntb
==
\
self
.
ntb_qris
:
channel_name
=
'QRIS'
else
:
channel_kode
=
'0002'
if
self
.
ntb_va
and
\
pay
.
ntb
==
\
self
.
ntb_va
:
channel_name
=
'VA'
else
:
channel_id
=
'0000'
channel_id
=
'0000'
channel_name
=
self
.
get_va_channel
(
pay
.
created
.
date
())
or
'MANUAL'
channel_name
=
self
.
get_va_channel
(
pay
.
created
.
date
())
or
'MANUAL'
stan
=
iso
and
iso
.
bit_011
or
None
stan
=
iso
and
iso
.
bit_011
or
None
...
...
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