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 022d498e
authored
Jul 30, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kota Tangerang discount pokok & denda periode Agustus 2024
1 parent
7bc6de9c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
19 deletions
CHANGES.txt
sismiop/services/tangkota.py
CHANGES.txt
View file @
022d498
0.3.12 2024-07-30
-----------------
- Kota Tangerang discount pokok 25% untuk 1994 - 2014, discount denda 100%
untuk 1994 - 2023, periode 1 - 31 Agustus 2024.
0.3.11 2024-07-28
-----------------
- Kabupaten Cirebon discount pokok 7,9% periode 1 Agustus - 31 Oktober 2024.
...
...
sismiop/services/tangkota.py
View file @
022d498
...
...
@@ -14,15 +14,10 @@ from .tangsel import (
)
AWAL_DISC
=
date
(
2024
,
2
,
26
)
AKHIR_DISC
=
date
(
2024
,
3
,
31
)
TAHUN_PAJAK_DISC_POKOK
=
'2024'
BUKU_DISC_POKOK
=
[
(
100000
,
0.2
),
(
500000
,
0.1
),
(
2000000
,
0.06
),
(
5000000
,
0.04
),
(
None
,
0.03
)]
AWAL_DISC
=
date
(
2024
,
8
,
1
)
AKHIR_DISC
=
date
(
2024
,
8
,
31
)
TAHUN_PAJAK_DISC_POKOK
=
[
str
(
x
)
for
x
in
range
(
1994
,
2014
+
1
)]
TAHUN_PAJAK_DISC_DENDA
=
[
str
(
x
)
for
x
in
range
(
1994
,
2023
+
1
)]
def
hitung_denda
(
tagihan
,
jatuh_tempo
,
tgl_hitung
):
...
...
@@ -68,19 +63,12 @@ class Inquiry(BaseInquiry):
self
.
discount
=
self
.
discount_pokok
+
self
.
discount_denda
def
hitung_discount_pokok
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<=
'2014'
:
return
int
(
0.4
*
self
.
tagihan
)
if
self
.
invoice
.
thn_pajak_sppt
!=
TAHUN_PAJAK_DISC_POKOK
:
if
self
.
invoice
.
thn_pajak_sppt
in
TAHUN_PAJAK_DISC_POKOK
:
return
int
(
0.25
*
self
.
tagihan
)
return
0
for
max_tagihan
,
disc
in
BUKU_DISC_POKOK
:
if
max_tagihan
is
None
:
break
if
self
.
invoice
.
pbb_yg_harus_dibayar_sppt
<=
max_tagihan
:
break
return
int
(
disc
*
self
.
tagihan
)
def
hitung_discount_denda
(
self
):
if
self
.
invoice
.
thn_pajak_sppt
<=
'2023'
:
if
self
.
invoice
.
thn_pajak_sppt
in
TAHUN_PAJAK_DISC_DENDA
:
return
self
.
denda
return
0
...
...
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