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 752ec25e
authored
Jul 28, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Kota Serang discount denda 100% periode 1 Agustus - 31 Agustus 2024
1 parent
70f63f3a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
CHANGES.txt
sismiop/services/serang_kota.py
CHANGES.txt
View file @
752ec25
0.3.11 2024-07-28
-----------------
- Kabupaten Cirebon discount pokok 7,9% periode 1 Agustus - 31 Oktober 2024.
- Kota Serang discount denda 100% periode 1 Agustus - 31 Agustus 2024.
0.3.10 2024-07-07
-----------------
...
...
sismiop/services/serang_kota.py
View file @
752ec25
from
datetime
import
date
from
sqlalchemy
import
func
from
opensipkd.hitung
import
round_up
from
..models.serang_kota
import
PembayaranSppt
...
...
@@ -9,6 +10,10 @@ from .default import (
)
AWAL_DISC_DENDA
=
date
(
2024
,
8
,
1
)
AKHIR_DISC_DENDA
=
date
(
2024
,
8
,
31
)
class
Inquiry
(
BaseInquiry
):
def
get_payment_model
(
self
):
# Override
return
PembayaranSppt
...
...
@@ -34,6 +39,11 @@ class Inquiry(BaseInquiry):
else
:
self
.
tagihan
=
round_up
(
tagihan
)
def
hitung_discount
(
self
):
# Override
self
.
discount_pokok
=
self
.
discount_denda
=
0
if
AWAL_DISC_DENDA
<=
self
.
tgl_bayar
<=
AKHIR_DISC_DENDA
:
self
.
discount
=
self
.
discount_denda
=
self
.
denda
class
Reversal
(
BaseReversal
):
def
get_payment_model
(
self
):
# 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