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 a64daed7
authored
Sep 05, 2024
by
iwan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Discount denda Kabupaten Kuningan
1 parent
131f9a52
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
CHANGES.txt
pyproject.toml
sismiop/services/kuningan.py
CHANGES.txt
View file @
a64daed
0.3.17 2024-09-05
-----------------
- Discount denda Kabupaten Kuningan
0.3.16 2024-09-03
0.3.16 2024-09-03
-----------------
-----------------
- Discount denda Kabupaten Tasikmalaya
- Discount denda Kabupaten Tasikmalaya
...
...
pyproject.toml
View file @
a64daed
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
[project]
name
=
'sismiop-models'
name
=
'sismiop-models'
version
=
'
0.3.1
6
'
version
=
'
0.3.1
7
'
dependencies
=
[
dependencies
=
[
'sqlalchemy'
,
'sqlalchemy'
,
'zope.sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
sismiop/services/kuningan.py
View file @
a64daed
...
@@ -10,8 +10,8 @@ from .cilegon import (
...
@@ -10,8 +10,8 @@ from .cilegon import (
from
.base
import
get_db_session
from
.base
import
get_db_session
A
KHIR_DISC
=
date
(
2023
,
12
,
31
)
A
WAL_DISC
=
date
(
2024
,
9
,
5
)
DISC_THN_PAJAK
=
(
'2016'
,
'2017'
,
'2018'
,
'2019'
,
'2020'
,
'2021'
,
'2022'
)
AKHIR_DISC
=
date
(
2024
,
9
,
30
)
class
Inquiry
(
BaseInquiry
):
class
Inquiry
(
BaseInquiry
):
...
@@ -44,9 +44,10 @@ class Inquiry(BaseInquiry):
...
@@ -44,9 +44,10 @@ class Inquiry(BaseInquiry):
else
:
else
:
self
.
tagihan
=
round_up
(
tagihan
)
self
.
tagihan
=
round_up
(
tagihan
)
def
hitung_discount_denda
(
self
):
def
hitung_discount_denda
(
self
):
# Override
if
self
.
denda
>
0
and
self
.
tgl_bayar
<=
AKHIR_DISC
and
\
if
self
.
denda
<
1
:
self
.
invoice
.
thn_pajak_sppt
in
DISC_THN_PAJAK
:
return
0
if
AWAL_DISC
<=
self
.
tgl_bayar
<=
AKHIR_DISC
:
return
self
.
denda
return
self
.
denda
return
0
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