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 7bc6de9c
authored
Jul 29, 2024
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
https://git.opensipkd.com/sugiana/sismiop-models
2 parents
5f7fe665
752ec25e
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 @
7bc6de9
0.3.11 2024-07-28
0.3.11 2024-07-28
-----------------
-----------------
- Kabupaten Cirebon discount pokok 7,9% periode 1 Agustus - 31 Oktober 2024.
- 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
0.3.10 2024-07-07
-----------------
-----------------
...
...
sismiop/services/serang_kota.py
View file @
7bc6de9
from
datetime
import
date
from
sqlalchemy
import
func
from
sqlalchemy
import
func
from
opensipkd.hitung
import
round_up
from
opensipkd.hitung
import
round_up
from
..models.serang_kota
import
PembayaranSppt
from
..models.serang_kota
import
PembayaranSppt
...
@@ -9,6 +10,10 @@ from .default import (
...
@@ -9,6 +10,10 @@ from .default import (
)
)
AWAL_DISC_DENDA
=
date
(
2024
,
8
,
1
)
AKHIR_DISC_DENDA
=
date
(
2024
,
8
,
31
)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
def
get_payment_model
(
self
):
# Override
def
get_payment_model
(
self
):
# Override
return
PembayaranSppt
return
PembayaranSppt
...
@@ -34,6 +39,11 @@ class Inquiry(BaseInquiry):
...
@@ -34,6 +39,11 @@ class Inquiry(BaseInquiry):
else
:
else
:
self
.
tagihan
=
round_up
(
tagihan
)
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
):
class
Reversal
(
BaseReversal
):
def
get_payment_model
(
self
):
# Override
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