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 4b73490b
authored
Sep 30, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kota Cimahi diperpanjang hingga 28 Desember
1 parent
408c0a88
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
CHANGES.txt
pyproject.toml
sismiop/services/cimahi.py
CHANGES.txt
View file @
4b73490
0.4.5 2026-09-30
----------------
- Discount denda Kota Cimahi diperpanjang hingga 28 Desember
0.4.4 2026-09-02
0.4.4 2026-09-02
----------------
----------------
- Perubahan yang mendapat discount pokok di Kota Cimahi
- Perubahan yang mendapat discount pokok di Kota Cimahi
...
...
pyproject.toml
View file @
4b73490
...
@@ -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.
4
'
version
=
'
0.4.
5
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/cimahi.py
View file @
4b73490
...
@@ -7,7 +7,9 @@ from .sumedang import (
...
@@ -7,7 +7,9 @@ from .sumedang import (
AWAL_DISC_DENDA
=
date
(
2026
,
8
,
1
)
AWAL_DISC_DENDA
=
date
(
2026
,
8
,
1
)
AKHIR_DISC_DENDA
=
date
(
2026
,
9
,
30
)
AKHIR_DISC_DENDA
=
date
(
2026
,
12
,
28
)
AWAL_DISC_DENDA_2026
=
date
(
2026
,
10
,
1
)
AWAL_DISC_POKOK
=
date
(
2026
,
9
,
1
)
AWAL_DISC_POKOK
=
date
(
2026
,
9
,
1
)
AKHIR_DISC_POKOK
=
date
(
2026
,
9
,
30
)
AKHIR_DISC_POKOK
=
date
(
2026
,
9
,
30
)
...
@@ -29,8 +31,11 @@ class Inquiry(BaseInquiry):
...
@@ -29,8 +31,11 @@ class Inquiry(BaseInquiry):
self
.
discount_pokok
=
int
(
0.05
*
self
.
tagihan
)
self
.
discount_pokok
=
int
(
0.05
*
self
.
tagihan
)
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
if
'2013'
<=
self
.
invoice
.
thn_pajak_sppt
<=
'2025'
:
if
'2013'
<=
self
.
invoice
.
thn_pajak_sppt
<=
'2025'
:
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
self
.
discount_denda
=
self
.
denda
elif
self
.
invoice
.
thn_pajak_sppt
==
'2026'
:
if
AWAL_DISC_DENDA_2026
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
self
.
discount_denda
=
self
.
denda
self
.
discount_denda
=
self
.
denda
def
before_save
(
self
,
pay
):
# Override
def
before_save
(
self
,
pay
):
# Override
...
...
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