Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
sismiop-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 ab62aea7
authored
Jun 01, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount Kota Sukabumi
1 parent
d9651e51
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
CHANGES.txt
sismiop/services/sukabumi_kota.py
CHANGES.txt
View file @
ab62aea
0.2.5 2023-06-01
----------------
- Discount Kota Sukabumi
0.2.4 2023-05-19
0.2.4 2023-05-19
----------------
----------------
- Discount Kabupaten Serang
- Discount Kabupaten Serang
...
...
sismiop/services/sukabumi_kota.py
View file @
ab62aea
from
datetime
import
datetime
from
datetime
import
(
datetime
,
date
,
)
from
sqlalchemy
import
func
from
sqlalchemy
import
func
from
..models.sukabumi_kota
import
(
from
..models.sukabumi_kota
import
(
Objek
,
Objek
,
...
@@ -19,6 +22,10 @@ from .base import (
...
@@ -19,6 +22,10 @@ from .base import (
)
)
AWAL_DISC
=
date
(
2023
,
6
,
1
)
AKHIR_DISC
=
date
(
2023
,
9
,
30
)
def
get_nop
(
row
):
def
get_nop
(
row
):
return
''
.
join
(
return
''
.
join
(
[
row
.
KD_PROPINSI
,
row
.
KD_DATI2
,
row
.
KD_KECAMATAN
,
[
row
.
KD_PROPINSI
,
row
.
KD_DATI2
,
row
.
KD_KECAMATAN
,
...
@@ -52,6 +59,14 @@ class Inquiry(BaseInquiry):
...
@@ -52,6 +59,14 @@ class Inquiry(BaseInquiry):
def
get_tagihan_pokok
(
self
):
# Override
def
get_tagihan_pokok
(
self
):
# Override
return
self
.
invoice
.
PBB_YG_HARUS_DIBAYAR_SPPT
return
self
.
invoice
.
PBB_YG_HARUS_DIBAYAR_SPPT
def
hitung_denda
(
self
):
# Override
if
AWAL_DISC
<=
self
.
tgl_bayar
<=
AKHIR_DISC
and
\
self
.
invoice
.
THN_PAJAK_SPPT
<=
'2022'
:
self
.
bln_tunggakan
=
0
self
.
denda
=
0
else
:
super
()
.
hitung_denda
()
def
get_jatuh_tempo
(
self
):
# Override
def
get_jatuh_tempo
(
self
):
# Override
return
self
.
invoice
.
TGL_JATUH_TEMPO_SPPT
return
self
.
invoice
.
TGL_JATUH_TEMPO_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