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 ed815d16
authored
Oct 28, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kota Bekasi
1 parent
35f86af3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
2 deletions
CHANGES.txt
pyproject.toml
sismiop/models/bekasi_kota.py
sismiop/services/bekasi_kota.py
CHANGES.txt
View file @
ed815d1
0.4.11 2026-10-27
-----------------
- Discount denda Kota Bekasi
0.4.10 2026-10-21
0.4.10 2026-10-21
-----------------
-----------------
- Discount denda Kabupaten Pangandaran
- Discount denda Kabupaten Pangandaran
...
...
pyproject.toml
View file @
ed815d1
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
[project]
name
=
'sismiop-models'
name
=
'sismiop-models'
version
=
'
0.4.1
0
'
version
=
'
0.4.1
1
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/models/bekasi_kota.py
View file @
ed815d1
...
@@ -32,6 +32,9 @@ class PembayaranSppt(Base, BasePembayaranSpptMixin):
...
@@ -32,6 +32,9 @@ class PembayaranSppt(Base, BasePembayaranSpptMixin):
denda_sppt
=
Column
(
Float
)
denda_sppt
=
Column
(
Float
)
jml_sppt_yg_dibayar
=
Column
(
Float
,
nullable
=
False
)
jml_sppt_yg_dibayar
=
Column
(
Float
,
nullable
=
False
)
nip_rekam_byr_sppt
=
Column
(
String
(
9
),
nullable
=
False
)
nip_rekam_byr_sppt
=
Column
(
String
(
9
),
nullable
=
False
)
discount
=
Column
(
Float
)
discount_pokok
=
Column
(
Float
)
discount_denda
=
Column
(
Float
)
class
Kelurahan
(
Base
,
KelurahanMixin
):
class
Kelurahan
(
Base
,
KelurahanMixin
):
...
...
sismiop/services/bekasi_kota.py
View file @
ed815d1
...
@@ -27,7 +27,6 @@ from .binjai import (
...
@@ -27,7 +27,6 @@ from .binjai import (
AWAL_DISC
=
date
(
2026
,
8
,
1
)
AWAL_DISC
=
date
(
2026
,
8
,
1
)
AKHIR_DISC
=
date
(
2026
,
9
,
9
)
AKHIR_DISC
=
date
(
2026
,
9
,
9
)
BUKU_DISC_POKOK
=
[
BUKU_DISC_POKOK
=
[
(
100000
,
0.17
),
(
100000
,
0.17
),
(
500000
,
0.08
),
(
500000
,
0.08
),
...
@@ -36,6 +35,9 @@ BUKU_DISC_POKOK = [
...
@@ -36,6 +35,9 @@ BUKU_DISC_POKOK = [
(
None
,
0.02
)]
(
None
,
0.02
)]
TAHUN_LUNAS
=
[
str
(
x
)
for
x
in
range
(
2021
,
2027
)]
TAHUN_LUNAS
=
[
str
(
x
)
for
x
in
range
(
2021
,
2027
)]
AWAL_DISC_PEMUDA
=
date
(
2026
,
10
,
28
)
AKHIR_DISC_PEMUDA
=
date
(
2026
,
12
,
31
)
def
hitung_denda
(
def
hitung_denda
(
tagihan
:
int
,
jatuh_tempo
:
date
,
tgl_hitung
:
date
,
tagihan
:
int
,
jatuh_tempo
:
date
,
tgl_hitung
:
date
,
...
@@ -129,6 +131,8 @@ class Inquiry(BaseInquiry):
...
@@ -129,6 +131,8 @@ class Inquiry(BaseInquiry):
if
AWAL_DISC
<=
self
.
tgl_bayar
<=
AKHIR_DISC
:
if
AWAL_DISC
<=
self
.
tgl_bayar
<=
AKHIR_DISC
:
self
.
hitung_discount_pokok
()
self
.
hitung_discount_pokok
()
self
.
hitung_discount_denda
()
self
.
hitung_discount_denda
()
elif
AWAL_DISC_PEMUDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_PEMUDA
:
self
.
hitung_discount_denda
()
self
.
discount
=
self
.
discount_denda
+
self
.
discount_pokok
self
.
discount
=
self
.
discount_denda
+
self
.
discount_pokok
def
before_save
(
self
,
payment
):
# Override
def
before_save
(
self
,
payment
):
# Override
...
@@ -136,6 +140,8 @@ class Inquiry(BaseInquiry):
...
@@ -136,6 +140,8 @@ class Inquiry(BaseInquiry):
payment
.
denda_sppt
=
self
.
denda
-
self
.
discount_denda
payment
.
denda_sppt
=
self
.
denda
-
self
.
discount_denda
if
self
.
discount_pokok
:
if
self
.
discount_pokok
:
Query
.
set_faktor_pengurang_sppt
(
self
,
self
.
discount_pokok
)
Query
.
set_faktor_pengurang_sppt
(
self
,
self
.
discount_pokok
)
payment
.
discount_pokok
=
self
.
discount_pokok
payment
.
discount_denda
=
self
.
discount_denda
def
get_op_model
(
self
):
# Override
def
get_op_model
(
self
):
# Override
return
ObjekPajak
return
ObjekPajak
...
@@ -166,6 +172,7 @@ class Reversal(BaseReversal):
...
@@ -166,6 +172,7 @@ class Reversal(BaseReversal):
def
before_save
(
self
):
# Override
def
before_save
(
self
):
# Override
Query
.
set_faktor_pengurang_sppt
(
Query
.
set_faktor_pengurang_sppt
(
self
,
-
self
.
invoice
.
faktor_pengurang_sppt
)
self
,
-
self
.
invoice
.
faktor_pengurang_sppt
)
self
.
payment
.
discount_pokok
=
self
.
payment
.
discount_denda
=
0
class
AvailableInvoice
(
BaseAvailableInvoice
):
class
AvailableInvoice
(
BaseAvailableInvoice
):
...
...
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